proskomma-core 0.9.21 → 0.10.0
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ Received directive:
|
|
|
125
125
|
*
|
|
126
126
|
* Copyright (c) 2020, Robert Eisele (robert@xarg.org)
|
|
127
127
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
128
|
-
**/(function(t,e){(function(n){var r=32,u=5;function s(d){return d-=d>>>1&1431655765,d=(d&858993459)+(d>>>2&858993459),(d+(d>>>4)&252645135)*16843009>>>24}function o(d,p){for(var f=0,m=0;m<d.length;m++){f*=2;var C=(d[m]+f)/p|0;f=(d[m]+f)%p,d[m]=C}return f}function i(d,p){if(p==null){d.data=[0,0,0,0,0,0,0,0,0,0],d._=0;return}if(p instanceof a){d.data=p.data,d._=p._;return}switch(typeof p){case"number":d.data=[p|0],d._=0;break;case"string":var f=2,m=r;p.indexOf("0b")===0?p=p.substr(2):p.indexOf("0x")===0&&(p=p.substr(2),f=16,m=8),d.data=[],d._=0;var C=p.length-m,T=p.length;do{var S=parseInt(p.slice(C>0?C:0,T),f);if(isNaN(S))throw SyntaxError("Invalid param");if(d.data.push(S|0),C<=0)break;C-=m,T-=m}while(1);break;default:d.data=[0];var b=d.data;if(p instanceof Array){for(var P=p.length-1;P>=0;P--){var O=p[P];O===1/0?d._=-1:(c(d,O),b[O>>>u]|=1<<O)}break}if(Uint8Array&&p instanceof Uint8Array){var M=8;c(d,p.length*M);for(var P=0;P<p.length;P++)for(var L=p[P],V=0;V<M;V++){var Q=P*M+V;b[Q>>>u]|=(L>>V&1)<<Q}break}throw SyntaxError("Invalid param")}}function a(d){if(!(this instanceof a))return new a(d);i(this,d),this.data=this.data.slice()}function c(d,p){for(var f=p>>>u,m=d.data,C=d._,T=m.length;f>=T;f--)m.push(C)}var l={data:[],_:0};a.prototype={data:[],_:0,set:function(d,p){return d|=0,c(this,d),p===void 0||p?this.data[d>>>u]|=1<<d:this.data[d>>>u]&=~(1<<d),this},get:function(d){d|=0;var p=this.data,f=d>>>u;return f>=p.length?this._&1:p[f]>>>d&1},not:function(){for(var d=this.clone(),p=d.data,f=0;f<p.length;f++)p[f]=~p[f];return d._=~d._,d},and:function(d){i(l,d);var p=this.clone(),f=p.data,m=l.data,C=m.length,T=l._,S=p._;S!==0&&c(p,C*r-1);for(var b=f.length,P=Math.min(C,b),O=0;O<P;O++)f[O]&=m[O];for(;O<b;O++)f[O]&=T;return p._&=T,p},or:function(d){i(l,d);for(var p=this.clone(),f=p.data,m=l.data,C=m.length-1,T=f.length-1,S=Math.min(T,C),b=C;b>S;b--)f[b]=m[b];for(;b>=0;b--)f[b]|=m[b];return p._|=l._,p},xor:function(d){i(l,d);var p=this.clone(),f=p.data,m=l.data,C=p._,T=l._,S=0,b=f.length-1,P=m.length-1;for(S=b;S>P;S--)f[S]^=T;for(S=P;S>b;S--)f[S]=C^m[S];for(;S>=0;S--)f[S]^=m[S];return p._^=T,p},andNot:function(d){return this.and(new a(d).flip())},flip:function(d,p){if(d===void 0){for(var f=this.data,m=0;m<f.length;m++)f[m]=~f[m];this._=~this._}else if(p===void 0)c(this,d),this.data[d>>>u]^=1<<d;else if(0<=d&&d<=p){c(this,p);for(var m=d;m<=p;m++)this.data[m>>>u]^=1<<m}return this},clear:function(d,p){var f=this.data;if(d===void 0){for(var m=f.length-1;m>=0;m--)f[m]=0;this._=0}else if(p===void 0)d|=0,c(this,d),f[d>>>u]&=~(1<<d);else if(d<=p){c(this,p);for(var m=d;m<=p;m++)f[m>>>u]&=~(1<<m)}return this},slice:function(d,p){if(d===void 0)return this.clone();if(p===void 0){p=this.data.length*r;var f=Object.create(a.prototype);f._=this._,f.data=[0];for(var m=d;m<=p;m++)f.set(m-d,this.get(m));return f}else if(d<=p&&0<=d){var f=Object.create(a.prototype);f.data=[0];for(var m=d;m<=p;m++)f.set(m-d,this.get(m));return f}return null},setRange:function(d,p,f){for(var m=d;m<=p;m++)this.set(m,f);return this},clone:function(){var d=Object.create(a.prototype);return d.data=this.data.slice(),d._=this._,d},toArray:Math.clz32?function(){for(var d=[],p=this.data,f=p.length-1;f>=0;f--)for(var m=p[f];m!==0;){var C=31-Math.clz32(m);m^=1<<C,d.unshift(f*r+C)}return this._!==0&&d.push(1/0),d}:function(){for(var d=[],p=this.data,f=0;f<p.length;f++)for(var m=p[f];m!==0;){var C=m&-m;m^=C,d.push(f*r+s(C-1))}return this._!==0&&d.push(1/0),d},toString:function(d){var p=this.data;if(d||(d=2),!(d&d-1)&&d<36){for(var f="",m=2+Math.log(4294967295)/Math.log(d)|0,C=p.length-1;C>=0;C--){var T=p[C];T<0&&(T+=4294967296);var S=T.toString(d);f!==""&&(f+="0".repeat(m-S.length-1)),f+=S}return this._===0?(f=f.replace(/^0+/,""),f===""&&(f="0"),f):(f="1111"+f,f.replace(/^1+/,"...1111"))}else{if(2>d||d>36)throw SyntaxError("Invalid base");for(var f=[],b=[],C=p.length;C--;)for(var P=r;P--;)b.push(p[C]>>>P&1);do f.unshift(o(b,d).toString(d));while(!b.every(function(M){return M===0}));return f.join("")}},isEmpty:function(){if(this._!==0)return!1;for(var d=this.data,p=d.length-1;p>=0;p--)if(d[p]!==0)return!1;return!0},cardinality:function(){if(this._!==0)return 1/0;for(var d=0,p=this.data,f=0;f<p.length;f++){var m=p[f];m!==0&&(d+=s(m))}return d},msb:Math.clz32?function(){if(this._!==0)return 1/0;for(var d=this.data,p=d.length;p-- >0;){var f=Math.clz32(d[p]);if(f!==r)return p*r+r-1-f}return 1/0}:function(){if(this._!==0)return 1/0;for(var d=this.data,p=d.length;p-- >0;){var f=d[p],m=0;if(f){for(;(f>>>=1)>0;m++);return p*r+m}}return 1/0},ntz:function(){for(var d=this.data,p=0;p<d.length;p++){var f=d[p];if(f!==0)return f=(f^f-1)>>>1,p*r+s(f)}return 1/0},lsb:function(){for(var d=this.data,p=0;p<d.length;p++){var f=d[p],m=0;if(f){for(var C=f&-f;C>>>=1;m++);return r*p+m}}return this._&1},equals:function(d){i(l,d);var p=this.data,f=l.data,m=this._,C=l._,T=p.length-1,S=f.length-1;if(C!==m)return!1;for(var b=T<S?T:S,P=0;P<=b;P++)if(p[P]!==f[P])return!1;for(P=T;P>S;P--)if(p[P]!==C)return!1;for(P=S;P>T;P--)if(f[P]!==m)return!1;return!0},[Symbol.iterator]:function(){var d=this.data,p=0;if(this._===0){for(var f=0,m=d.length-1;m>=0;m--)if(d[m]!==0){f=m;break}return{next:function(){var C=p>>>u;return{done:C>f||C===f&&d[C]>>>p===0,value:C>f?0:d[C]>>>p++&1}}}}else return{next:function(){var C=p>>>u;return{done:!1,value:C<d.length?d[C]>>>p++&1:1}}}}},a.fromBinaryString=function(d){return new a("0b"+d)},a.fromHexString=function(d){return new a("0x"+d)},a.Random=function(d){(d===void 0||d<0)&&(d=r);for(var p=d%r,f=[],m=Math.ceil(d/r),C=Object.create(a.prototype),T=0;T<m;T++)f.push(Math.random()*4294967296|0);return p>0&&(f[m-1]&=(1<<p)-1),C.data=f,C._=0,C},Object.defineProperty(e,"__esModule",{value:!0}),a.default=a,a.BitSet=a,t.exports=a})()})(Ph,ws);const al=W1(ws),Nh="proskomma-core",_h="0.9.21",kh="A Scripture Runtime Engine",Oh=["dist"],$h="./dist/index.js",xh="./dist/module.mjs",Rh={".":{require:"./dist/index.js",import:"./dist/index.mjs"}},qh={build:"rm -fr dist && vite build",test:'export PKSRC=dist && bash -c "tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js"',"win:test":'set PKSRC=dist&& bash -c "tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js"',rawTest:'export PKSRC=dist && bash -c "tape -r @babel/register test/code/*.cjs"',oneTest:'bash -c "tape -r @babel/register test/code/$TESTSCRIPT.cjs"',prepublishOnly:"npm run build"},Mh={type:"git",url:"git+https://github.com/Proskomma/proskomma-core.git"},Lh=["USFM","USX","Scripture","parser","lexer","Proskomma"],jh="Mark Howe",Gh="MIT",Uh={url:"https://github.com/Proskomma/proskomma-core/issues"},Vh="https://github.com/Proskomma/proskomma-core#readme",Jh={"@babel/preset-env":"^7.20.2","@graphql-tools/schema":"^9.0.3","async-mutex":"^0.4.0","base-64":"^1.0.0","base64-js":"^1.5.1",bitset:"^5.1.1",buffer:"^6.0.3","deep-copy-all":"^1.3.4","deep-equal":"^2.0.5","easy-crc32":"^0.0.2","fs-extra":"^11.1.0",graphql:"^v16.6.0","proskomma-json-tools":"^0.6.5","pure-uuid":"^1.6.2",sax:"^1.2.4",stream:"0.0.2",string_decoder:"^1.3.0","utf8-string-bytes":"^1.0.3",util:"^0.12.4",xregexp:"^5.1.1"},Hh={"@babel/eslint-parser":"^7.19.1","@babel/register":"^7.18.9","@esbuild-plugins/node-globals-polyfill":"^0.2.3",events:"^3.3.0",parcel:"^2.8.3",process:"^0.11.10","stream-browserify":"^3.0.0","tap-summary":"^4.0.0",tape:"^5.6.0",typescript:"^4.9.5",vite:"^4.1.4"},Wh={name:Nh,version:_h,description:kh,files:Oh,main:$h,module:xh,exports:Rh,scripts:qh,repository:Mh,keywords:Lh,author:jh,license:Gh,bugs:Uh,homepage:Vh,dependencies:Jh,devDependencies:Hh},Kh=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var u=t.charCodeAt(r);u<128?e[n++]=u:u<2048?(e[n++]=u>>6|192,e[n++]=u&63|128):(u&64512)==55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)==56320?(u=65536+((u&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=u>>18|240,e[n++]=u>>12&63|128,e[n++]=u>>6&63|128,e[n++]=u&63|128):(e[n++]=u>>12|224,e[n++]=u>>6&63|128,e[n++]=u&63|128)}return e},Xh=function(t){for(var e=[],n=0,r=0;n<t.length;){var u=t[n++];if(u<128)e[r++]=String.fromCharCode(u);else if(u>191&&u<224){var s=t[n++];e[r++]=String.fromCharCode((u&31)<<6|s&63)}else if(u>239&&u<365){var s=t[n++],o=t[n++],i=t[n++],a=((u&7)<<18|(s&63)<<12|(o&63)<<6|i&63)-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(a&1023))}else{var s=t[n++],o=t[n++];e[r++]=String.fromCharCode((u&15)<<12|(s&63)<<6|o&63)}}return e.join("")};var vc={utf8ByteArrayToString:Xh,stringToUtf8ByteArray:Kh},Rr={};Rr.byteLength=Zh;Rr.toByteArray=e3;Rr.fromByteArray=r3;var cn=[],Lt=[],zh=typeof Uint8Array<"u"?Uint8Array:Array,Ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Er=0,Yh=Ao.length;Er<Yh;++Er)cn[Er]=Ao[Er],Lt[Ao.charCodeAt(Er)]=Er;Lt["-".charCodeAt(0)]=62;Lt["_".charCodeAt(0)]=63;function cl(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Zh(t){var e=cl(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Qh(t,e,n){return(e+n)*3/4-n}function e3(t){var e,n=cl(t),r=n[0],u=n[1],s=new zh(Qh(t,r,u)),o=0,i=u>0?r-4:r,a;for(a=0;a<i;a+=4)e=Lt[t.charCodeAt(a)]<<18|Lt[t.charCodeAt(a+1)]<<12|Lt[t.charCodeAt(a+2)]<<6|Lt[t.charCodeAt(a+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return u===2&&(e=Lt[t.charCodeAt(a)]<<2|Lt[t.charCodeAt(a+1)]>>4,s[o++]=e&255),u===1&&(e=Lt[t.charCodeAt(a)]<<10|Lt[t.charCodeAt(a+1)]<<4|Lt[t.charCodeAt(a+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function t3(t){return cn[t>>18&63]+cn[t>>12&63]+cn[t>>6&63]+cn[t&63]}function n3(t,e,n){for(var r,u=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),u.push(t3(r));return u.join("")}function r3(t){for(var e,n=t.length,r=n%3,u=[],s=16383,o=0,i=n-r;o<i;o+=s)u.push(n3(t,o,o+s>i?i:o+s));return r===1?(e=t[n-1],u.push(cn[e>>2]+cn[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],u.push(cn[e>>10]+cn[e>>4&63]+cn[e<<2&63]+"=")),u.join("")}const Tt=(t,e,n)=>{if(typeof t!="number")throw new Error(`Argument ${n} of ${e} should be a number, not '${t}' (${typeof t})`)};let Au=class{constructor(e,n){e=e||64,n=n||0,this.growMax=1024*16,this.length=n,this.byteArray=new Uint8Array(e)}byte(e){if(Tt(e,"byte","n"),e>this.length-1)throw Error(`Attempt to read byte ${e} of ByteArray of length ${this.length}`);return this.byteArray[e]}bytes(e,n){if(Tt(e,"bytes","n"),Tt(n,"bytes","l"),e+n>this.length)throw Error(`Attempt to read ${n} bytes from start ${e} of ByteArray of length ${this.length}`);return this.byteArray.subarray(e,e+n)}setByte(e,n){if(Tt(e,"setByte","n"),Tt(n,"setByte","v"),e>this.length-1)throw Error(`Attempt to set byte ${e} of ByteArray of length ${this.length}`);if(typeof n!="number"||n<0||n>255)throw Error(`Expected value 0-255 when setting ByteArray, found ${n}`);this.byteArray[e]=n}setBytes(e,n){if(Tt(e,"setBytes","n"),e+n.length>this.length)throw Error(`Attempt to set ${n.length} bytes from start ${e} of ByteArray of length ${this.length}`);this.byteArray.set(n,e)}pushByte(e){if(typeof e!="number"||e<0||e>255)throw Error(`Expected value 0-255 when pushing to ByteArray, found ${e}`);this.length===this.byteArray.length&&this.grow(),this.byteArray[this.length]=e,this.length++}grow(e){const n=new Uint8Array(Math.max(e||0,this.byteArray.length+Math.min(this.growMax,Math.max(16,this.byteArray.length))));n.set(this.byteArray),this.byteArray=n}trim(){const e=new Uint8Array(this.length);e.set(this.byteArray.subarray(0,this.length)),this.byteArray=e}pushBytes(e){for(const n of e)this.pushByte(n)}pushNByte(e){if(Tt(e,"pushNByte","v"),typeof e!="number"||e<0)throw Error(`Expected positive number in pushNByte, found ${e}`);if(e<128)this.pushByte(e+128);else{const n=e%128;this.pushByte(n),this.pushNByte(e>>7)}}pushNBytes(e){for(const n of e)try{this.pushNByte(n)}catch{throw Error(`Error from pushNByte, called as pushNBytes(${JSON.stringify(e)})`)}}nByte(e){if(Tt(e,"nByte","n"),e>this.length-1)throw Error(`Attempt to read nByte ${e} of ByteArray of length ${this.length}`);const n=this.byteArray[e];return n>127?n-128:n+128*this.nByte(e+1)}nBytes(e,n){Tt(e,"nBytes","n"),Tt(n,"nBytes","nValues");const r=[];for(;n>0;){let u=!1,s=0,o=1;do{if(e>this.length-1)throw Error(`Attempt to read nByte ${e} of ByteArray of length ${this.length} in nBytes(${e}, ${n})`);const i=this.byteArray[e];i>127?(s+=(i-128)*o,r.push(s),s=0,u=!0):(s+=i*o,o*=128),e++}while(!u);n--}return r}nByteLength(e){if(Tt(e,"nByteLength","v"),e>=128**4)throw new Error("> 4 bytes found in nByteLength");let n=1;for(;e>127;)e=e>>7,n+=1;return n}pushCountedString(e){const n=vc.stringToUtf8ByteArray(e);this.pushByte(n.length),this.pushBytes(n)}countedString(e){Tt(e,"countedString","n");const n=this.byte(e);return vc.utf8ByteArrayToString(this.bytes(e+1,n))}clear(){this.byteArray.fill(0),this.length=0}base64(){return Rr.fromByteArray(this.byteArray)}fromBase64(e){this.byteArray=Rr.toByteArray(e),this.length=this.byteArray.length}deleteItem(e){Tt(e,"deleteItem","n");const n=this.byte(e)&63;if(this.length-=n,this.length>e){const r=this.byteArray.slice(e+n);this.byteArray.set(r,e)}}insert(e,n){Tt(e,"insert","n");const r=n.length,u=this.length+r;if(u>=this.byteArray.length+r&&this.grow(u),e<u){const s=this.byteArray.slice(e,this.length);this.byteArray.set(s,e+r)}this.byteArray.set(n.byteArray.slice(0,n.length),e),this.length=u}};const ll=[{code:"GEN",categories:["ot","pentateuch"]},{code:"EXO",categories:["ot","pentateuch"]},{code:"LEV",categories:["ot","pentateuch"]},{code:"NUM",categories:["ot","pentateuch"]},{code:"DEU",categories:["ot","pentateuch"]},{code:"JOS",categories:["ot","history"]},{code:"JDG",categories:["ot","history"]},{code:"RUT",categories:["ot","history"]},{code:"1SA",categories:["ot","history"]},{code:"2SA",categories:["ot","history"]},{code:"1KI",categories:["ot","history"]},{code:"2KI",categories:["ot","history"]},{code:"1CH",categories:["ot","history"]},{code:"2CH",categories:["ot","history"]},{code:"EZR",categories:["ot","history"]},{code:"NEH",categories:["ot","history"]},{code:"EST",categories:["ot","history"]},{code:"JOB",categories:["ot","wisdom"]},{code:"PSA",categories:["ot","wisdom"]},{code:"PRO",categories:["ot","wisdom"]},{code:"ECC",categories:["ot","wisdom"]},{code:"SNG",categories:["ot","wisdom"]},{code:"ISA",categories:["ot","prophecy"]},{code:"JER",categories:["ot","prophecy"]},{code:"LAM",categories:["ot","prophecy"]},{code:"EZK",categories:["ot","prophecy"]},{code:"DAN",categories:["ot","prophecy"]},{code:"HOS",categories:["ot","prophecy"]},{code:"JOL",categories:["ot","prophecy"]},{code:"AMO",categories:["ot","prophecy"]},{code:"OBA",categories:["ot","prophecy"]},{code:"JON",categories:["ot","prophecy"]},{code:"MIC",categories:["ot","prophecy"]},{code:"NAM",categories:["ot","prophecy"]},{code:"HAB",categories:["ot","prophecy"]},{code:"ZEP",categories:["ot","prophecy"]},{code:"HAG",categories:["ot","prophecy"]},{code:"ZEC",categories:["ot","prophecy"]},{code:"MAL",categories:["ot","prophecy"]},{code:"MAT",categories:["nt","gospel","synoptic"]},{code:"MRK",categories:["nt","gospel","synoptic"]},{code:"LUK",categories:["nt","gospel","synoptic"]},{code:"JHN",categories:["nt","gospel"]},{code:"ACT",categories:["nt","gospel"]},{code:"ROM",categories:["nt","epistle"]},{code:"1CO",categories:["nt","epistle"]},{code:"2CO",categories:["nt","epistle"]},{code:"GAL",categories:["nt","epistle"]},{code:"EPH",categories:["nt","epistle"]},{code:"PHP",categories:["nt","epistle"]},{code:"COL",categories:["nt","epistle"]},{code:"1TH",categories:["nt","epistle"]},{code:"2TH",categories:["nt","epistle"]},{code:"1TI",categories:["nt","epistle"]},{code:"2TI",categories:["nt","epistle"]},{code:"TIT",categories:["nt","epistle"]},{code:"PHM",categories:["nt","epistle"]},{code:"HEB",categories:["nt","epistle"]},{code:"JAS",categories:["nt","epistle"]},{code:"1PE",categories:["nt","epistle"]},{code:"2PE",categories:["nt","epistle"]},{code:"1JN",categories:["nt","epistle"]},{code:"2JN",categories:["nt","epistle"]},{code:"3JN",categories:["nt","epistle"]},{code:"JUD",categories:["nt","epistle"]},{code:"REV",categories:["nt","epistle"]},{code:"TOB",categories:["dc"]},{code:"JDT",categories:["dc"]},{code:"ESG",categories:["dc","history"]},{code:"WIS",categories:["dc","wisdom"]},{code:"SIR",categories:["dc","wisdom"]},{code:"BAR",categories:["dc","prophecy"]},{code:"LJE",categories:["dc"]},{code:"S3Y",categories:["dc"]},{code:"SUS",categories:["dc"]},{code:"BEL",categories:["dc"]},{code:"1MA",categories:["dc"]},{code:"2MA",categories:["dc"]},{code:"3MA",categories:["dc"]},{code:"4MA",categories:["dc"]},{code:"1ES",categories:["dc"]},{code:"2ES",categories:["dc"]},{code:"MAN",categories:["dc"]},{code:"PS2",categories:["dc"]},{code:"ODA",categories:["dc"]},{code:"PSS",categories:["dc"]},{code:"JSA",categories:["dc"]},{code:"JDB",categories:["dc"]},{code:"TBS",categories:["dc"]},{code:"SST",categories:["dc"]},{code:"DNT",categories:["dc"]},{code:"BLT",categories:["dc"]},{code:"EZA",categories:["dc"]},{code:"5EZ",categories:["dc"]},{code:"6EZ",categories:["dc"]},{code:"DAG",categories:["dc"]},{code:"PS3",categories:["dc"]},{code:"2BA",categories:["dc"]},{code:"LBA",categories:["dc"]},{code:"JUB",categories:["dc"]},{code:"ENO",categories:["dc"]},{code:"1MQ",categories:["dc"]},{code:"2MQ",categories:["dc"]},{code:"3MQ",categories:["dc"]},{code:"REP",categories:["dc"]},{code:"4BA",categories:["dc"]},{code:"LAO",categories:["dc"]}];let dl={};for(const t of ll.entries())dl[t[1].code]={...t[1],position:t[0]};const u3={ptBookArray:ll,ptBooks:dl},s3=(t,e)=>{let n=0,r=0;for(;n<t.length;){const u=t.byte(n);if(t.countedString(n)===e)return r;n+=u+1,r+=1}return-1},o3=(t,e)=>{let n=0,r=0;const u=[];for(;n<t.length;){const s=t.byte(n),o=t.countedString(n);R.exec(o,R(e,"i"))&&u.push([r,o]),n+=s+1,r+=1}return u},i3={enumStringIndex:s3,enumRegexIndexTuples:o3};var si={},a3={get exports(){return si},set exports(t){si=t}};/*!
|
|
128
|
+
**/(function(t,e){(function(n){var r=32,u=5;function s(d){return d-=d>>>1&1431655765,d=(d&858993459)+(d>>>2&858993459),(d+(d>>>4)&252645135)*16843009>>>24}function o(d,p){for(var f=0,m=0;m<d.length;m++){f*=2;var C=(d[m]+f)/p|0;f=(d[m]+f)%p,d[m]=C}return f}function i(d,p){if(p==null){d.data=[0,0,0,0,0,0,0,0,0,0],d._=0;return}if(p instanceof a){d.data=p.data,d._=p._;return}switch(typeof p){case"number":d.data=[p|0],d._=0;break;case"string":var f=2,m=r;p.indexOf("0b")===0?p=p.substr(2):p.indexOf("0x")===0&&(p=p.substr(2),f=16,m=8),d.data=[],d._=0;var C=p.length-m,T=p.length;do{var S=parseInt(p.slice(C>0?C:0,T),f);if(isNaN(S))throw SyntaxError("Invalid param");if(d.data.push(S|0),C<=0)break;C-=m,T-=m}while(1);break;default:d.data=[0];var b=d.data;if(p instanceof Array){for(var P=p.length-1;P>=0;P--){var O=p[P];O===1/0?d._=-1:(c(d,O),b[O>>>u]|=1<<O)}break}if(Uint8Array&&p instanceof Uint8Array){var M=8;c(d,p.length*M);for(var P=0;P<p.length;P++)for(var L=p[P],V=0;V<M;V++){var Q=P*M+V;b[Q>>>u]|=(L>>V&1)<<Q}break}throw SyntaxError("Invalid param")}}function a(d){if(!(this instanceof a))return new a(d);i(this,d),this.data=this.data.slice()}function c(d,p){for(var f=p>>>u,m=d.data,C=d._,T=m.length;f>=T;f--)m.push(C)}var l={data:[],_:0};a.prototype={data:[],_:0,set:function(d,p){return d|=0,c(this,d),p===void 0||p?this.data[d>>>u]|=1<<d:this.data[d>>>u]&=~(1<<d),this},get:function(d){d|=0;var p=this.data,f=d>>>u;return f>=p.length?this._&1:p[f]>>>d&1},not:function(){for(var d=this.clone(),p=d.data,f=0;f<p.length;f++)p[f]=~p[f];return d._=~d._,d},and:function(d){i(l,d);var p=this.clone(),f=p.data,m=l.data,C=m.length,T=l._,S=p._;S!==0&&c(p,C*r-1);for(var b=f.length,P=Math.min(C,b),O=0;O<P;O++)f[O]&=m[O];for(;O<b;O++)f[O]&=T;return p._&=T,p},or:function(d){i(l,d);for(var p=this.clone(),f=p.data,m=l.data,C=m.length-1,T=f.length-1,S=Math.min(T,C),b=C;b>S;b--)f[b]=m[b];for(;b>=0;b--)f[b]|=m[b];return p._|=l._,p},xor:function(d){i(l,d);var p=this.clone(),f=p.data,m=l.data,C=p._,T=l._,S=0,b=f.length-1,P=m.length-1;for(S=b;S>P;S--)f[S]^=T;for(S=P;S>b;S--)f[S]=C^m[S];for(;S>=0;S--)f[S]^=m[S];return p._^=T,p},andNot:function(d){return this.and(new a(d).flip())},flip:function(d,p){if(d===void 0){for(var f=this.data,m=0;m<f.length;m++)f[m]=~f[m];this._=~this._}else if(p===void 0)c(this,d),this.data[d>>>u]^=1<<d;else if(0<=d&&d<=p){c(this,p);for(var m=d;m<=p;m++)this.data[m>>>u]^=1<<m}return this},clear:function(d,p){var f=this.data;if(d===void 0){for(var m=f.length-1;m>=0;m--)f[m]=0;this._=0}else if(p===void 0)d|=0,c(this,d),f[d>>>u]&=~(1<<d);else if(d<=p){c(this,p);for(var m=d;m<=p;m++)f[m>>>u]&=~(1<<m)}return this},slice:function(d,p){if(d===void 0)return this.clone();if(p===void 0){p=this.data.length*r;var f=Object.create(a.prototype);f._=this._,f.data=[0];for(var m=d;m<=p;m++)f.set(m-d,this.get(m));return f}else if(d<=p&&0<=d){var f=Object.create(a.prototype);f.data=[0];for(var m=d;m<=p;m++)f.set(m-d,this.get(m));return f}return null},setRange:function(d,p,f){for(var m=d;m<=p;m++)this.set(m,f);return this},clone:function(){var d=Object.create(a.prototype);return d.data=this.data.slice(),d._=this._,d},toArray:Math.clz32?function(){for(var d=[],p=this.data,f=p.length-1;f>=0;f--)for(var m=p[f];m!==0;){var C=31-Math.clz32(m);m^=1<<C,d.unshift(f*r+C)}return this._!==0&&d.push(1/0),d}:function(){for(var d=[],p=this.data,f=0;f<p.length;f++)for(var m=p[f];m!==0;){var C=m&-m;m^=C,d.push(f*r+s(C-1))}return this._!==0&&d.push(1/0),d},toString:function(d){var p=this.data;if(d||(d=2),!(d&d-1)&&d<36){for(var f="",m=2+Math.log(4294967295)/Math.log(d)|0,C=p.length-1;C>=0;C--){var T=p[C];T<0&&(T+=4294967296);var S=T.toString(d);f!==""&&(f+="0".repeat(m-S.length-1)),f+=S}return this._===0?(f=f.replace(/^0+/,""),f===""&&(f="0"),f):(f="1111"+f,f.replace(/^1+/,"...1111"))}else{if(2>d||d>36)throw SyntaxError("Invalid base");for(var f=[],b=[],C=p.length;C--;)for(var P=r;P--;)b.push(p[C]>>>P&1);do f.unshift(o(b,d).toString(d));while(!b.every(function(M){return M===0}));return f.join("")}},isEmpty:function(){if(this._!==0)return!1;for(var d=this.data,p=d.length-1;p>=0;p--)if(d[p]!==0)return!1;return!0},cardinality:function(){if(this._!==0)return 1/0;for(var d=0,p=this.data,f=0;f<p.length;f++){var m=p[f];m!==0&&(d+=s(m))}return d},msb:Math.clz32?function(){if(this._!==0)return 1/0;for(var d=this.data,p=d.length;p-- >0;){var f=Math.clz32(d[p]);if(f!==r)return p*r+r-1-f}return 1/0}:function(){if(this._!==0)return 1/0;for(var d=this.data,p=d.length;p-- >0;){var f=d[p],m=0;if(f){for(;(f>>>=1)>0;m++);return p*r+m}}return 1/0},ntz:function(){for(var d=this.data,p=0;p<d.length;p++){var f=d[p];if(f!==0)return f=(f^f-1)>>>1,p*r+s(f)}return 1/0},lsb:function(){for(var d=this.data,p=0;p<d.length;p++){var f=d[p],m=0;if(f){for(var C=f&-f;C>>>=1;m++);return r*p+m}}return this._&1},equals:function(d){i(l,d);var p=this.data,f=l.data,m=this._,C=l._,T=p.length-1,S=f.length-1;if(C!==m)return!1;for(var b=T<S?T:S,P=0;P<=b;P++)if(p[P]!==f[P])return!1;for(P=T;P>S;P--)if(p[P]!==C)return!1;for(P=S;P>T;P--)if(f[P]!==m)return!1;return!0},[Symbol.iterator]:function(){var d=this.data,p=0;if(this._===0){for(var f=0,m=d.length-1;m>=0;m--)if(d[m]!==0){f=m;break}return{next:function(){var C=p>>>u;return{done:C>f||C===f&&d[C]>>>p===0,value:C>f?0:d[C]>>>p++&1}}}}else return{next:function(){var C=p>>>u;return{done:!1,value:C<d.length?d[C]>>>p++&1:1}}}}},a.fromBinaryString=function(d){return new a("0b"+d)},a.fromHexString=function(d){return new a("0x"+d)},a.Random=function(d){(d===void 0||d<0)&&(d=r);for(var p=d%r,f=[],m=Math.ceil(d/r),C=Object.create(a.prototype),T=0;T<m;T++)f.push(Math.random()*4294967296|0);return p>0&&(f[m-1]&=(1<<p)-1),C.data=f,C._=0,C},Object.defineProperty(e,"__esModule",{value:!0}),a.default=a,a.BitSet=a,t.exports=a})()})(Ph,ws);const al=W1(ws),Nh="proskomma-core",_h="0.10.0",kh="A Scripture Runtime Engine",Oh=["dist"],$h="./dist/index.js",xh="./dist/module.mjs",Rh={".":{require:"./dist/index.js",import:"./dist/index.mjs"}},qh={build:"rm -fr dist && vite build",test:'export PKSRC=dist && bash -c "tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js"',"win:test":'set PKSRC=dist&& bash -c "tape -r @babel/register test/code/**/*.cjs | node_modules/tap-summary/bin/cmd.js"',rawTest:'export PKSRC=dist && bash -c "tape -r @babel/register test/code/*.cjs"',oneTest:'bash -c "tape -r @babel/register test/code/$TESTSCRIPT.cjs"',prepublishOnly:"npm run build"},Mh={type:"git",url:"git+https://github.com/Proskomma/proskomma-core.git"},Lh=["USFM","USX","Scripture","parser","lexer","Proskomma"],jh="Mark Howe",Gh="MIT",Uh={url:"https://github.com/Proskomma/proskomma-core/issues"},Vh="https://github.com/Proskomma/proskomma-core#readme",Jh={"@babel/preset-env":"^7.20.2","@graphql-tools/schema":"^9.0.3","async-mutex":"^0.4.0","base-64":"^1.0.0","base64-js":"^1.5.1",bitset:"^5.1.1",buffer:"^6.0.3","deep-copy-all":"^1.3.4","deep-equal":"^2.0.5","easy-crc32":"^0.0.2","fs-extra":"^11.1.0",graphql:"^v16.6.0","proskomma-json-tools":"^0.6.5","pure-uuid":"^1.6.2",sax:"^1.2.4",stream:"0.0.2",string_decoder:"^1.3.0","utf8-string-bytes":"^1.0.3",util:"^0.12.4",xregexp:"^5.1.1"},Hh={"@babel/eslint-parser":"^7.19.1","@babel/register":"^7.18.9","@esbuild-plugins/node-globals-polyfill":"^0.2.3",events:"^3.3.0",parcel:"^2.8.3",process:"^0.11.10","stream-browserify":"^3.0.0","tap-summary":"^4.0.0",tape:"^5.6.0",typescript:"^4.9.5",vite:"^4.1.4"},Wh={name:Nh,version:_h,description:kh,files:Oh,main:$h,module:xh,exports:Rh,scripts:qh,repository:Mh,keywords:Lh,author:jh,license:Gh,bugs:Uh,homepage:Vh,dependencies:Jh,devDependencies:Hh},Kh=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var u=t.charCodeAt(r);u<128?e[n++]=u:u<2048?(e[n++]=u>>6|192,e[n++]=u&63|128):(u&64512)==55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)==56320?(u=65536+((u&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=u>>18|240,e[n++]=u>>12&63|128,e[n++]=u>>6&63|128,e[n++]=u&63|128):(e[n++]=u>>12|224,e[n++]=u>>6&63|128,e[n++]=u&63|128)}return e},Xh=function(t){for(var e=[],n=0,r=0;n<t.length;){var u=t[n++];if(u<128)e[r++]=String.fromCharCode(u);else if(u>191&&u<224){var s=t[n++];e[r++]=String.fromCharCode((u&31)<<6|s&63)}else if(u>239&&u<365){var s=t[n++],o=t[n++],i=t[n++],a=((u&7)<<18|(s&63)<<12|(o&63)<<6|i&63)-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(a&1023))}else{var s=t[n++],o=t[n++];e[r++]=String.fromCharCode((u&15)<<12|(s&63)<<6|o&63)}}return e.join("")};var vc={utf8ByteArrayToString:Xh,stringToUtf8ByteArray:Kh},Rr={};Rr.byteLength=Zh;Rr.toByteArray=e3;Rr.fromByteArray=r3;var cn=[],Lt=[],zh=typeof Uint8Array<"u"?Uint8Array:Array,Ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Er=0,Yh=Ao.length;Er<Yh;++Er)cn[Er]=Ao[Er],Lt[Ao.charCodeAt(Er)]=Er;Lt["-".charCodeAt(0)]=62;Lt["_".charCodeAt(0)]=63;function cl(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Zh(t){var e=cl(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Qh(t,e,n){return(e+n)*3/4-n}function e3(t){var e,n=cl(t),r=n[0],u=n[1],s=new zh(Qh(t,r,u)),o=0,i=u>0?r-4:r,a;for(a=0;a<i;a+=4)e=Lt[t.charCodeAt(a)]<<18|Lt[t.charCodeAt(a+1)]<<12|Lt[t.charCodeAt(a+2)]<<6|Lt[t.charCodeAt(a+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=e&255;return u===2&&(e=Lt[t.charCodeAt(a)]<<2|Lt[t.charCodeAt(a+1)]>>4,s[o++]=e&255),u===1&&(e=Lt[t.charCodeAt(a)]<<10|Lt[t.charCodeAt(a+1)]<<4|Lt[t.charCodeAt(a+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function t3(t){return cn[t>>18&63]+cn[t>>12&63]+cn[t>>6&63]+cn[t&63]}function n3(t,e,n){for(var r,u=[],s=e;s<n;s+=3)r=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(t[s+2]&255),u.push(t3(r));return u.join("")}function r3(t){for(var e,n=t.length,r=n%3,u=[],s=16383,o=0,i=n-r;o<i;o+=s)u.push(n3(t,o,o+s>i?i:o+s));return r===1?(e=t[n-1],u.push(cn[e>>2]+cn[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],u.push(cn[e>>10]+cn[e>>4&63]+cn[e<<2&63]+"=")),u.join("")}const Tt=(t,e,n)=>{if(typeof t!="number")throw new Error(`Argument ${n} of ${e} should be a number, not '${t}' (${typeof t})`)};let Au=class{constructor(e,n){e=e||64,n=n||0,this.growMax=1024*16,this.length=n,this.byteArray=new Uint8Array(e)}byte(e){if(Tt(e,"byte","n"),e>this.length-1)throw Error(`Attempt to read byte ${e} of ByteArray of length ${this.length}`);return this.byteArray[e]}bytes(e,n){if(Tt(e,"bytes","n"),Tt(n,"bytes","l"),e+n>this.length)throw Error(`Attempt to read ${n} bytes from start ${e} of ByteArray of length ${this.length}`);return this.byteArray.subarray(e,e+n)}setByte(e,n){if(Tt(e,"setByte","n"),Tt(n,"setByte","v"),e>this.length-1)throw Error(`Attempt to set byte ${e} of ByteArray of length ${this.length}`);if(typeof n!="number"||n<0||n>255)throw Error(`Expected value 0-255 when setting ByteArray, found ${n}`);this.byteArray[e]=n}setBytes(e,n){if(Tt(e,"setBytes","n"),e+n.length>this.length)throw Error(`Attempt to set ${n.length} bytes from start ${e} of ByteArray of length ${this.length}`);this.byteArray.set(n,e)}pushByte(e){if(typeof e!="number"||e<0||e>255)throw Error(`Expected value 0-255 when pushing to ByteArray, found ${e}`);this.length===this.byteArray.length&&this.grow(),this.byteArray[this.length]=e,this.length++}grow(e){const n=new Uint8Array(Math.max(e||0,this.byteArray.length+Math.min(this.growMax,Math.max(16,this.byteArray.length))));n.set(this.byteArray),this.byteArray=n}trim(){const e=new Uint8Array(this.length);e.set(this.byteArray.subarray(0,this.length)),this.byteArray=e}pushBytes(e){for(const n of e)this.pushByte(n)}pushNByte(e){if(Tt(e,"pushNByte","v"),typeof e!="number"||e<0)throw Error(`Expected positive number in pushNByte, found ${e}`);if(e<128)this.pushByte(e+128);else{const n=e%128;this.pushByte(n),this.pushNByte(e>>7)}}pushNBytes(e){for(const n of e)try{this.pushNByte(n)}catch{throw Error(`Error from pushNByte, called as pushNBytes(${JSON.stringify(e)})`)}}nByte(e){if(Tt(e,"nByte","n"),e>this.length-1)throw Error(`Attempt to read nByte ${e} of ByteArray of length ${this.length}`);const n=this.byteArray[e];return n>127?n-128:n+128*this.nByte(e+1)}nBytes(e,n){Tt(e,"nBytes","n"),Tt(n,"nBytes","nValues");const r=[];for(;n>0;){let u=!1,s=0,o=1;do{if(e>this.length-1)throw Error(`Attempt to read nByte ${e} of ByteArray of length ${this.length} in nBytes(${e}, ${n})`);const i=this.byteArray[e];i>127?(s+=(i-128)*o,r.push(s),s=0,u=!0):(s+=i*o,o*=128),e++}while(!u);n--}return r}nByteLength(e){if(Tt(e,"nByteLength","v"),e>=128**4)throw new Error("> 4 bytes found in nByteLength");let n=1;for(;e>127;)e=e>>7,n+=1;return n}pushCountedString(e){const n=vc.stringToUtf8ByteArray(e);this.pushByte(n.length),this.pushBytes(n)}countedString(e){Tt(e,"countedString","n");const n=this.byte(e);return vc.utf8ByteArrayToString(this.bytes(e+1,n))}clear(){this.byteArray.fill(0),this.length=0}base64(){return Rr.fromByteArray(this.byteArray)}fromBase64(e){this.byteArray=Rr.toByteArray(e),this.length=this.byteArray.length}deleteItem(e){Tt(e,"deleteItem","n");const n=this.byte(e)&63;if(this.length-=n,this.length>e){const r=this.byteArray.slice(e+n);this.byteArray.set(r,e)}}insert(e,n){Tt(e,"insert","n");const r=n.length,u=this.length+r;if(u>=this.byteArray.length+r&&this.grow(u),e<u){const s=this.byteArray.slice(e,this.length);this.byteArray.set(s,e+r)}this.byteArray.set(n.byteArray.slice(0,n.length),e),this.length=u}};const ll=[{code:"GEN",categories:["ot","pentateuch"]},{code:"EXO",categories:["ot","pentateuch"]},{code:"LEV",categories:["ot","pentateuch"]},{code:"NUM",categories:["ot","pentateuch"]},{code:"DEU",categories:["ot","pentateuch"]},{code:"JOS",categories:["ot","history"]},{code:"JDG",categories:["ot","history"]},{code:"RUT",categories:["ot","history"]},{code:"1SA",categories:["ot","history"]},{code:"2SA",categories:["ot","history"]},{code:"1KI",categories:["ot","history"]},{code:"2KI",categories:["ot","history"]},{code:"1CH",categories:["ot","history"]},{code:"2CH",categories:["ot","history"]},{code:"EZR",categories:["ot","history"]},{code:"NEH",categories:["ot","history"]},{code:"EST",categories:["ot","history"]},{code:"JOB",categories:["ot","wisdom"]},{code:"PSA",categories:["ot","wisdom"]},{code:"PRO",categories:["ot","wisdom"]},{code:"ECC",categories:["ot","wisdom"]},{code:"SNG",categories:["ot","wisdom"]},{code:"ISA",categories:["ot","prophecy"]},{code:"JER",categories:["ot","prophecy"]},{code:"LAM",categories:["ot","prophecy"]},{code:"EZK",categories:["ot","prophecy"]},{code:"DAN",categories:["ot","prophecy"]},{code:"HOS",categories:["ot","prophecy"]},{code:"JOL",categories:["ot","prophecy"]},{code:"AMO",categories:["ot","prophecy"]},{code:"OBA",categories:["ot","prophecy"]},{code:"JON",categories:["ot","prophecy"]},{code:"MIC",categories:["ot","prophecy"]},{code:"NAM",categories:["ot","prophecy"]},{code:"HAB",categories:["ot","prophecy"]},{code:"ZEP",categories:["ot","prophecy"]},{code:"HAG",categories:["ot","prophecy"]},{code:"ZEC",categories:["ot","prophecy"]},{code:"MAL",categories:["ot","prophecy"]},{code:"MAT",categories:["nt","gospel","synoptic"]},{code:"MRK",categories:["nt","gospel","synoptic"]},{code:"LUK",categories:["nt","gospel","synoptic"]},{code:"JHN",categories:["nt","gospel"]},{code:"ACT",categories:["nt","gospel"]},{code:"ROM",categories:["nt","epistle"]},{code:"1CO",categories:["nt","epistle"]},{code:"2CO",categories:["nt","epistle"]},{code:"GAL",categories:["nt","epistle"]},{code:"EPH",categories:["nt","epistle"]},{code:"PHP",categories:["nt","epistle"]},{code:"COL",categories:["nt","epistle"]},{code:"1TH",categories:["nt","epistle"]},{code:"2TH",categories:["nt","epistle"]},{code:"1TI",categories:["nt","epistle"]},{code:"2TI",categories:["nt","epistle"]},{code:"TIT",categories:["nt","epistle"]},{code:"PHM",categories:["nt","epistle"]},{code:"HEB",categories:["nt","epistle"]},{code:"JAS",categories:["nt","epistle"]},{code:"1PE",categories:["nt","epistle"]},{code:"2PE",categories:["nt","epistle"]},{code:"1JN",categories:["nt","epistle"]},{code:"2JN",categories:["nt","epistle"]},{code:"3JN",categories:["nt","epistle"]},{code:"JUD",categories:["nt","epistle"]},{code:"REV",categories:["nt","epistle"]},{code:"TOB",categories:["dc"]},{code:"JDT",categories:["dc"]},{code:"ESG",categories:["dc","history"]},{code:"WIS",categories:["dc","wisdom"]},{code:"SIR",categories:["dc","wisdom"]},{code:"BAR",categories:["dc","prophecy"]},{code:"LJE",categories:["dc"]},{code:"S3Y",categories:["dc"]},{code:"SUS",categories:["dc"]},{code:"BEL",categories:["dc"]},{code:"1MA",categories:["dc"]},{code:"2MA",categories:["dc"]},{code:"3MA",categories:["dc"]},{code:"4MA",categories:["dc"]},{code:"1ES",categories:["dc"]},{code:"2ES",categories:["dc"]},{code:"MAN",categories:["dc"]},{code:"PS2",categories:["dc"]},{code:"ODA",categories:["dc"]},{code:"PSS",categories:["dc"]},{code:"JSA",categories:["dc"]},{code:"JDB",categories:["dc"]},{code:"TBS",categories:["dc"]},{code:"SST",categories:["dc"]},{code:"DNT",categories:["dc"]},{code:"BLT",categories:["dc"]},{code:"EZA",categories:["dc"]},{code:"5EZ",categories:["dc"]},{code:"6EZ",categories:["dc"]},{code:"DAG",categories:["dc"]},{code:"PS3",categories:["dc"]},{code:"2BA",categories:["dc"]},{code:"LBA",categories:["dc"]},{code:"JUB",categories:["dc"]},{code:"ENO",categories:["dc"]},{code:"1MQ",categories:["dc"]},{code:"2MQ",categories:["dc"]},{code:"3MQ",categories:["dc"]},{code:"REP",categories:["dc"]},{code:"4BA",categories:["dc"]},{code:"LAO",categories:["dc"]}];let dl={};for(const t of ll.entries())dl[t[1].code]={...t[1],position:t[0]};const u3={ptBookArray:ll,ptBooks:dl},s3=(t,e)=>{let n=0,r=0;for(;n<t.length;){const u=t.byte(n);if(t.countedString(n)===e)return r;n+=u+1,r+=1}return-1},o3=(t,e)=>{let n=0,r=0;const u=[];for(;n<t.length;){const s=t.byte(n),o=t.countedString(n);R.exec(o,R(e,"i"))&&u.push([r,o]),n+=s+1,r+=1}return u},i3={enumStringIndex:s3,enumRegexIndexTuples:o3};var si={},a3={get exports(){return si},set exports(t){si=t}};/*!
|
|
129
129
|
** Pure-UUID -- Pure JavaScript Based Universally Unique Identifier (UUID)
|
|
130
130
|
** Copyright (c) 2004-2021 Dr. Ralf S. Engelschall <rse@engelschall.com>
|
|
131
131
|
**
|
package/dist/index.mjs
CHANGED
|
@@ -13046,7 +13046,7 @@ var ws = {}, wh = {
|
|
|
13046
13046
|
}, Object.defineProperty(e, "__esModule", { value: !0 }), a.default = a, a.BitSet = a, t.exports = a;
|
|
13047
13047
|
})();
|
|
13048
13048
|
})(wh, ws);
|
|
13049
|
-
const al = /* @__PURE__ */ W1(ws), Ih = "proskomma-core", Ph = "0.
|
|
13049
|
+
const al = /* @__PURE__ */ W1(ws), Ih = "proskomma-core", Ph = "0.10.0", Nh = "A Scripture Runtime Engine", _h = [
|
|
13050
13050
|
"dist"
|
|
13051
13051
|
], kh = "./dist/index.js", Oh = "./dist/module.mjs", $h = {
|
|
13052
13052
|
".": {
|