view x/static/js/5099.14f82444.chunk.js @ 125:49f3d3878413 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse2 commit 5ea1f9c1eef1de76232e69aa6d34cda77d90d566
author fubar
date Sat, 05 Oct 2024 23:58:05 +0000
parents
children
line wrap: on
line source

/*! For license information please see 5099.14f82444.chunk.js.LICENSE.txt */
(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[5099],{75099:(e,t,A)=>{"use strict";A.d(t,{Wb:()=>Fe,bQ:()=>Le});const r=1,n=2,o=4,i=8,a=1,s=2,g=4,c=8,f=16,I=32,h=64,C=128,d=256,l=512,u=1024,B=2048,Q={a:0,A:0,c:1,C:1,g:2,G:2,t:3,T:3,n:4,N:4};function E(e){const t={};for(const[A,r]of e)t[`is${r}`]=e=>!!(e&A),t[`set${r}`]=e=>e|A;return t}const w=E([[1,"Paired"],[2,"ProperlyPaired"],[4,"SegmentUnmapped"],[8,"MateUnmapped"],[16,"ReverseComplemented"],[32,"MateReverseComplemented"],[64,"Read1"],[128,"Read2"],[256,"Secondary"],[512,"FailedQc"],[1024,"Duplicate"],[2048,"Supplementary"]]),m=E([[1,"PreservingQualityScores"],[2,"Detached"],[4,"WithMateDownstream"],[8,"DecodeSequenceAsStar"]]),y=E([[1,"OnNegativeStrand"],[2,"Unmapped"]]);class p{constructor({flags:e,cramFlags:t,readLength:A,mappingQuality:r,lengthOnRef:n,qualityScores:o,mateRecordNumber:i,readBases:a,readFeatures:s,mateToUse:g,readGroupId:c,readName:f,sequenceId:I,uniqueId:h,templateSize:C,alignmentStart:d,tags:l}){this.flags=e,this.cramFlags=t,this.readLength=A,this.mappingQuality=r,this.lengthOnRef=n,this.qualityScores=o,a&&(this.readBases=a),this.readGroupId=c,this.readName=f,this.sequenceId=I,this.uniqueId=h,this.templateSize=C,this.alignmentStart=d,this.tags=l,s&&(this.readFeatures=s),g&&(this.mate={flags:g.mateFlags,readName:g.mateReadName,sequenceId:g.mateSequenceId,alignmentStart:g.mateAlignmentStart}),i&&(this.mateRecordNumber=i)}isPaired(){return!!(this.flags&a)}isProperlyPaired(){return!!(this.flags&s)}isSegmentUnmapped(){return!!(this.flags&g)}isMateUnmapped(){return!!(this.flags&c)}isReverseComplemented(){return!!(this.flags&f)}isMateReverseComplemented(){return!!(this.flags&I)}isRead1(){return!!(this.flags&h)}isRead2(){return!!(this.flags&C)}isSecondary(){return!!(this.flags&d)}isFailedQc(){return!!(this.flags&l)}isDuplicate(){return!!(this.flags&u)}isSupplementary(){return!!(this.flags&B)}isDetached(){return!!(this.cramFlags&n)}hasMateDownStream(){return!!(this.cramFlags&o)}isPreservingQualityScores(){return!!(this.cramFlags&r)}isUnknownBases(){return!!(this.cramFlags&i)}getReadBases(){if(!this.readBases&&this._refRegion){const e=function(e,t){if(!e.lengthOnRef&&!e.readLength)return null;if(e.isUnknownBases())return null;const A=e.alignmentStart-t.start;if(!e.readFeatures)return t.seq.slice(A,A+(e.lengthOnRef||0)).toUpperCase();let r="",n=A,o=0;for(;r.length<e.readLength;)if(o<e.readFeatures.length){const A=e.readFeatures[o];if("Q"===A.code||"q"===A.code)o+=1;else if(A.pos===r.length+1)if(o+=1,"b"===A.code){const e=A.data;r+=e,n+=e.length}else"B"===A.code?(r+=A.data[0],n+=1):"X"===A.code?(r+=A.sub,n+=1):"I"===A.code?r+=A.data:"D"===A.code?n+=A.data:"i"===A.code?r+=A.data:"N"===A.code?n+=A.data:"S"===A.code?r+=A.data:"P"===A.code||A.code;else if(o<e.readFeatures.length){const e=t.seq.slice(n,n+A.pos-r.length-1);r+=e,n+=e.length}}else{const A=t.seq.slice(n,n+e.readLength-r.length);r+=A,n+=A.length}return r.toUpperCase()}(this,this._refRegion);e&&(this.readBases=e)}return this.readBases}getPairOrientation(){if(!this.isSegmentUnmapped()&&this.isPaired()&&!this.isMateUnmapped()&&this.mate&&this.sequenceId===this.mate.sequenceId){const e=this.isReverseComplemented()?"R":"F",t=this.isMateReverseComplemented()?"R":"F";let A=" ",r=" ";this.isRead1()?(A="1",r="2"):this.isRead2()&&(A="2",r="1");const n=[];let o=this.templateLength||this.templateSize;if(void 0===o)throw new Error("One of templateSize and templateLength must be set");return this.alignmentStart>this.mate.alignmentStart&&o>0&&(o=-o),o>0?(n[0]=e,n[1]=A,n[2]=t,n[3]=r):(n[2]=e,n[3]=A,n[0]=t,n[1]=r),n.join("")}return null}addReferenceSequence(e,t){this.readFeatures&&this.readFeatures.forEach((A=>{"X"===A.code&&function(e,t,A,r){const n=r.refPos-t.start,o=t.seq.charAt(n);o&&(r.ref=o);let i=Q[o];void 0===i&&(i=4);const a=A.substitutionMatrix[i][r.data];a&&(r.sub=a)}(0,e,t,A)})),!this.readBases&&e.start<=this.alignmentStart&&e.end>=this.alignmentStart+(this.lengthOnRef||this.readLength)-1&&(this._refRegion=e)}toJSON(){const e={};return Object.keys(this).forEach((t=>{t.startsWith("_")||(e[t]=this[t])})),e.readBases=this.getReadBases(),e}}var v=A(35451),D=A(91454),S=A(16308),b=A.n(S),N=A(25164),R=A.n(N),k=A(22823),q=A.n(k),F=A(41967);class L extends Error{}class M extends Error{}class U extends L{}class _ extends L{}var x=A(57864);function J(e){return v.hp.from((0,x.inflate)(e))}const H=12,G=4096,Y=1<<23;class W{constructor(){this.F=void 0,this.C=void 0}}function K(e,t,A,r){return A*(e>>r)+(e&(1<<r)-1)-t}const P={FC:W,AriDecoder:class{constructor(){this.fc=new Array(256);for(let e=0;e<this.fc.length;e+=1)this.fc[e]=new W;this.R=null}},DecodingSymbol:class{constructor(){this.start=void 0,this.freq=void 0}},symbolInit:function(e,t,A){if(!(t<=65536))throw new U("assertion failed: start <= 1<<16");if(!(A<=65536-t))throw new U("assertion failed: freq <= 1<<16");e.start=t,e.freq=A},advanceStep:K,advanceSymbolStep:function(e,t,A){return K(e,t.start,t.freq,A)},get:function(e,t){return e&(1<<t)-1},advanceSymbol:function(e,t,A,r){return function(e,t,A,r,n){if((e=r*(e>>n)+(e&(1<<n)-1)-A)<Y)do{e=e<<8|255&t.get()}while(e<Y);return e}(e,t,A.start,A.freq,r)},renormalize:function(e,t){if(e<Y)do{e=e<<8|255&t.get()}while(e<Y);return e}};function T(e){if(!e)throw new U("assertion failed")}class z{constructor(e,t=0){this._buffer=e,this._position=t,this.length=e.length}get(){const e=this._buffer[this._position];return this._position+=1,e}getByte(){return this.get()}getByteAt(e){return this._buffer[e]}position(){return this._position}put(e){return this._buffer[this._position]=e,this._position+=1,e}putAt(e,t){return this._buffer[e]=t,t}setPosition(e){return this._position=e,e}getInt(){const e=this._buffer.readInt32LE(this._position);return this._position+=4,e}remaining(){return this._buffer.length-this._position}}var O=A(12363),V=A.n(O),X=A(59086),j=A.n(X);class $ extends Error{}function Z(e,t,A){let r=0;if(t.bytePosition+(7-t.bitPosition+A)/8>e.length)throw new $("read error during decoding. the file seems to be truncated.");for(let n=A;n;n--)r<<=1,r|=e[t.bytePosition]>>t.bitPosition&1,t.bitPosition-=1,t.bitPosition<0&&(t.bytePosition+=1),t.bitPosition&=7;return r}function ee(e,t){let A=t;const r=e[A];let n;if(r<128?(n=r,A+=1):r<192?(n=16383&(r<<8|e[A+1]),A+=2):r<224?(n=2097151&(r<<16|e[A+1]<<8|e[A+2]),A+=3):r<240?(n=268435455&(r<<24|e[A+1]<<16|e[A+2]<<8|e[A+3]),A+=4):(n=(15&r)<<28|e[A+1]<<20|e[A+2]<<12|e[A+3]<<4|15&e[A+4],A+=5),A>e.length)throw new $("Attempted to read beyond end of buffer; this file seems truncated.");return[n,A-t]}function te(e,t){let A=t;const r=e[A];let n;if(r<128)n=r,A+=1;else if(r<192)n=16383&(e[A]<<8|e[A+1]),A+=2;else if(r<224)n=2097151&(e[A]<<16|e[A+1]<<8|e[A+2]),n=(63&r)<<16|e.readUInt16LE(A+1),A+=3;else if(r<240)n=268435455&(e[A]<<24|e[A+1]<<16|e[A+2]<<8|e[A+3]),A+=4;else if(r<248)n=(15&e[A])*2**32+(e[A+1]<<24)|e[A+2]<<16|e[A+3]<<8|e[A+4],A+=5;else if(r<252)n=((7&e[A])<<8|e[A+1])*2**32+(e[A+2]<<24)|e[A+3]<<16|e[A+4]<<8|e[A+5],A+=6;else if(r<254)n=((3&e[A])<<16|e[A+1]<<8|e[A+2])*2**32+(e[A+3]<<24)|e[A+4]<<16|e[A+5]<<8|e[A+6],A+=7;else if(r<255){if(n=j().fromBytesBE(e.slice(A+1,A+8)),n.greaterThan(Number.MAX_SAFE_INTEGER)||n.lessThan(Number.MIN_SAFE_INTEGER))throw new Error("integer overflow");n=n.toNumber(),A+=8}else{if(n=j().fromBytesBE(e.slice(A+1,A+9)),n.greaterThan(Number.MAX_SAFE_INTEGER)||n.lessThan(Number.MIN_SAFE_INTEGER))throw new Error("integer overflow");n=n.toNumber(),A+=9}return[n,A-t]}function Ae(e,t,A=0,r=0){const{offset:n,value:o}=t(e,A);return{...o,_endPosition:n+r,_size:n-A}}function re(e,t){const A=e.prototype[t],r=`_memo_${t}`;e.prototype[t]=function(){if(!(r in this)){const e=A.call(this);this[r]=e,Promise.resolve(e).catch((()=>{delete this[r]}))}return this[r]}}function ne(){return{parser:(e,t=0)=>{const A=e,r=new DataView(A.buffer,A.byteOffset,A.length);let n=0;const o=e.subarray(n,n+4).toString();n+=4;const i=r.getUint8(n);n+=1;const a=r.getUint8(n);n+=1;const s=A.subarray(n,n+20).toString().replaceAll("\0","");return n+=20,{value:{magic:o,majorVersion:i,minorVersion:a,fileId:s},offset:n}},maxLength:26}}function oe(e,t,A){const r=e.toString("utf8",t,A),n=[];for(let e=0;e<r.length;e+=3)n.push(r.slice(e,e+3));return n}function ie(e){const t={};for(const{key:A,value:r}of e.ents)t[A]&&console.warn(`duplicate key ${A} in map`),t[A]=r;return t}function ae(e){return"number"==typeof e.refSeqId}function se(e){let t=0;return t+=5,t+=9,t+=10,t+=16,{parser:(t,A)=>{const[r,n]=ee(t,A);A+=n;let o=0;if(e>=3){const[e,r]=te(t,A);A+=r,o=e}else if(2===e){const[e,r]=ee(t,A);A+=r,o=e}else console.warn("recordCounter=0");const[i,a]=ee(t,A);A+=a;const[s,g]=ee(t,A);A+=g;const c=[];for(let e=0;e<s;e++){const[e,r]=ee(t,A);A+=r,c.push(e)}let f;return e>=2&&(f=[...t.subarray(A,A+16)],A+=16),{value:{recordCounter:o,md5:f,contentIds:c,numContentIds:s,numBlocks:i,numRecords:r},offset:A}},maxLength:e=>40+5*e}}function ge(e){let t=0;return t+=20,t+=9,t+=15,t+=16,{parser:(t,A)=>{const[r,n]=ee(t,A);A+=n;const[o,i]=ee(t,A);A+=i;const[a,s]=ee(t,A);A+=s;const[g,c]=ee(t,A);A+=c;let f=0;if(e>=3){const[e,r]=te(t,A);A+=r,f=e}else if(2===e){const[e,r]=ee(t,A);A+=r,f=e}else console.warn("majorVersion is <2, recordCounter set to 0");const[I,h]=ee(t,A);A+=h;const[C,d]=ee(t,A);A+=d;const l=[];for(let e=0;e<C;e++){const[e,r]=ee(t,A);A+=r,l.push(e)}const[u,B]=ee(t,A);let Q;return A+=B,e>=2&&(Q=[...t.subarray(A,A+16)],A+=16),{value:{md5:Q,numBlocks:I,numRecords:g,numContentIds:C,refSeqSpan:a,refSeqId:r,refSeqStart:o,recordCounter:f,refBaseBlockId:u,contentIds:l},offset:A}},maxLength:e=>60+5*e}}function ce(e,t){const A=e,r=new DataView(A.buffer,A.byteOffset,A.length),[n,o]=ee(e,t);t+=o;const[i,a]=ee(e,t);t+=a;const s={};if(0===n);else if(1===n){const[A,r]=ee(e,t);s.blockContentId=A,t+=r}else if(2===n){const[A,r]=ee(e,t);s.offset=A,t+=r;const[n,o]=ee(e,t);s.M=n,t+=o}else if(3===n){const A=ee(e,t),r=A[0];t+=A[1];const n=[];for(let A=0;A<r;A++){const A=ee(e,t);n.push(A[0]),t+=A[1]}s.symbols=n;const o=ee(e,t),i=A[0];s.numLengths=i,s.numCodes=r,s.numLengths=i,t+=o[1];const a=[];for(let A=0;A<i;A++){const A=ee(e,t);t+=A[1],a.push(A[0])}s.bitLengths=a}else if(4===n){const{value:A,offset:r}=ce(e,t);s.lengthsEncoding=A,t=r;const{value:n,offset:o}=ce(e,t);s.valuesEncoding=n,t=o}else if(5===n){s.stopByte=r.getUint8(t),t+=1;const[A,n]=ee(e,t);s.blockContentId=A,t+=n}else if(6===n){const[A,r]=ee(e,t);s.offset=A,t+=r;const[n,o]=ee(e,t);s.length=n,t+=o}else if(7===n){const[A,r]=ee(e,t);s.offset=A,t+=r;const[n,o]=ee(e,t);s.K=n,t+=o}else if(8===n){const[A,r]=ee(e,t);s.offset=A,t+=r;const[n,o]=ee(e,t);s.log2m=n,t+=o}else{if(9!==n)throw new Error(`unknown codecId ${n}`);{const[A,r]=ee(e,t);s.offset=A,t+=r}}return{value:{codecId:n,parametersBytes:i,parameters:s},offset:t}}function fe(){return{parser:(e,t)=>{const[A,r]=ee(e,t);t+=r;const[n,o]=ee(e,t);t+=o;const i=[];for(let A=0;A<n;A++){const A=String.fromCharCode(e[t])+String.fromCharCode(e[t+1]);t+=2;const{value:r,offset:n}=ce(e,t);t=n,i.push({key:A,value:r})}return{value:{mapSize:A,ents:i,mapCount:n},offset:t}}}}function Ie(){return{parser:(e,t)=>{const[A,r]=ee(e,t);t+=r;const[n,o]=ee(e,t);t+=o;const i=[];for(let A=0;A<n;A++){const[A,r]=ee(e,t);t+=r;const n=String.fromCharCode(A>>16&255)+String.fromCharCode(A>>8&255)+String.fromCharCode(255&A),{value:o,offset:a}=ce(e,t);t=a,i.push({key:n,value:o})}return{value:{mapSize:A,ents:i,mapCount:n},offset:t}}}}function he(e){let t=4;return t+=20,t+=9,t+=9,t+=10,{maxLength:52,parser:(t,A)=>{const r=t,n=new DataView(r.buffer,r.byteOffset,r.length).getInt32(A,!0);A+=4;const[o,i]=ee(t,A);A+=i;const[a,s]=ee(t,A);A+=s;const[g,c]=ee(t,A);A+=c;const[f,I]=ee(t,A);A+=I;let h,C=0;if(e>=3){const[e,r]=te(t,A);C=e,A+=r}else if(2===e){const[e,r]=ee(t,A);C=e,A+=r}else console.warn("setting recordCounter=0");if(e>1){const[e,r]=te(t,A);h=e,A+=r}const[d,l]=ee(t,A);A+=l;const[u,B]=ee(t,A);return{value:{length:n,refSeqId:o,refSeqStart:a,alignmentSpan:g,numBlocks:d,numLandmarks:u,numBases:h,recordCounter:C,numRecords:f},offset:A+=B}}}}function Ce(e){return{parser:(t,A)=>{const r=t,n=new DataView(r.buffer,r.byteOffset,r.length),[o,i]=ee(t,A);A+=i;const a=[];for(let e=0;e<o;e++){const[e,r]=ee(t,A);A+=r,a.push(e)}let s;return e>=3&&(s=n.getUint32(A,!0),A+=4),{value:{...void 0===s?{}:{crc32:s},numLandmarks:o,landmarks:a},offset:A}},maxLength:e=>5+5*e+4}}function de(e){return{cramFileDefinition:ne(),cramBlockHeader:{parser:(e,t=0)=>{const A=e,r=new DataView(A.buffer,A.byteOffset,A.length);let n=0;const o=r.getUint8(n),i=["raw","gzip","bzip2","lzma","rans","rans4x16","arith","fqzcomp","tok3"][o];if(!i)throw new Error(`compression method number ${o} not implemented`);n+=1;const a=r.getUint8(n),s=["FILE_HEADER","COMPRESSION_HEADER","MAPPED_SLICE_HEADER","UNMAPPED_SLICE_HEADER","EXTERNAL_DATA","CORE_DATA"][a];if(!s)throw new Error(`invalid block content type id ${a}`);n+=1;const[g,c]=ee(e,n);n+=c;const[f,I]=ee(e,n);n+=I;const[h,C]=ee(e,n);return n+=C,{offset:n,value:{uncompressedSize:h,compressedSize:f,contentId:g,contentType:s,compressionMethod:i}}},maxLength:17},cramBlockCrc32:{parser:(e,t)=>{const A=e,r=new DataView(A.buffer,A.byteOffset,A.length).getUint32(t,!0);return{offset:t+=4,value:{crc32:r}}},maxLength:4},cramDataSeriesEncodingMap:fe(),cramTagEncodingMap:Ie(),cramCompressionHeader:{parser:(e,t)=>{const{value:A,offset:r}=((e,t)=>{const A=e,r=new DataView(A.buffer,A.byteOffset,A.length),[n,o]=ee(e,t);t+=o;const[i,a]=ee(e,t);t+=a;const s=[];for(let A=0;A<i;A++){const A=String.fromCharCode(e[t])+String.fromCharCode(e[t+1]);if(t+=2,"MI"===A||"UI"===A||"PI"===A||"RN"===A||"AP"===A||"RR"===A)s.push({key:A,value:!!r.getUint8(t)}),t+=1;else if("SM"===A)s.push({key:A,value:[r.getUint8(t),r.getUint8(t+1),r.getUint8(t+2),r.getUint8(t+3),r.getUint8(t+4)]}),t+=5;else{if("TD"!==A)throw new Error(`unknown key ${A}`);{const{offset:r,value:n}=((e,t)=>{const[A,r]=ee(e,t);t+=r;const n=e.subarray(t,t+A);t+=A;const o=[];let i=0,a=0;for(;a<n.length;a++)n[a]||(o.push(oe(n,i,a)),i=a+1);return a>i&&o.push(oe(n,i,a)),{value:{size:A,ents:o},offset:t}})(e,t);s.push({key:A,value:n.ents}),t=r}}}return{value:{mapSize:n,mapCount:i,ents:s},offset:t}})(e,t);t=r;const{value:n,offset:o}=fe().parser(e,t);t=o;const{value:i,offset:a}=Ie().parser(e,t);return t=a,{value:{dataSeriesEncoding:ie(n),preservation:ie(A),tagEncoding:ie(i)},offset:t}}},cramEncoding:{parser:(e,t)=>ce(e,t)},cramUnmappedSliceHeader:se(e),cramMappedSliceHeader:ge(e),cramContainerHeader1:he(e),cramContainerHeader2:Ce(e)}}function le(e){let t="";for(let A=0;A<e.length&&0!==e[A];A++)t+=String.fromCharCode(e[A]);return t}function ue(e,t){if("Z"===e)return le(t);if("A"===e)return String.fromCharCode(t[0]);if("I"===e)return new Uint32Array(t.buffer)[0];if("i"===e)return new Int32Array(t.buffer)[0];if("s"===e)return new Int16Array(t.buffer)[0];if("S"===e)return new Uint16Array(t.buffer)[0];if("c"===e)return new Int8Array(t.buffer)[0];if("C"===e)return t[0];if("f"===e)return new Float32Array(t.buffer)[0];if("H"===e)return Number.parseInt(le(t).replace(/^0x/,""),16);if("B"===e)return function(e){const t=String.fromCharCode(e[0]),A=Int32Array.from(e.slice(1))[0],r=new Array(A);if(e=e.slice(5),"c"===t){const t=new Int8Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}else if("C"===t){const t=new Uint8Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}else if("s"===t){const t=new Int16Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}else if("S"===t){const t=new Uint16Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}else if("i"===t){const t=new Int32Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}else if("I"===t){const t=new Uint32Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}else{if("f"!==t)throw new Error(`unknown type: ${t}`);{const t=new Float32Array(e.buffer);for(let e=0;e<A;e+=1)r[e]=t[e]}}return r}(t);throw new U(`Unrecognized tag type ${e}`)}function Be(e,t,A,r,n,o,i,a,s){let g=t("BF");const c=t("CF");if(!ae(r.parsedContent))throw new Error("slice header not mapped");const f=a>1&&-2===r.parsedContent.refSeqId?t("RI"):r.parsedContent.refSeqId,I=t("RL");let h=t("AP");A.APdelta&&(h+=i.lastAlignmentStart),i.lastAlignmentStart=h;const C=t("RG");let d,l,u,B;if(A.readNamesIncluded&&(d=le(t("RN"))),m.isDetached(c)){const e=t("MF");let r;A.readNamesIncluded||(r=le(t("RN")),d=r);const n=t("NS"),o=t("NP");(e||n>-1)&&(l={mateFlags:e,mateSequenceId:n,mateAlignmentStart:o,mateReadName:r}),u=t("TS"),y.isUnmapped(e)&&(g=w.setMateUnmapped(g)),y.isOnNegativeStrand(e)&&(g=w.setMateReverseComplemented(g))}else m.isWithMateDownstream(c)&&(B=t("NF")+s+1);const Q=t("TL");if(Q<0)throw new U("invalid TL index");const E={},p=A.getTagNames(Q),v=p.length;for(let t=0;t<v;t+=1){const r=p[t],a=r.slice(0,2),s=r.slice(2,3),g=A.getCodecForTag(r).decode(e,n,o,i);E[a]="number"==typeof g?g:ue(s,g)}let D,S,b,N,R;if(w.isSegmentUnmapped(g))if(m.isDecodeSequenceAsStar(c))R=null,N=null;else{const e=new Array(I);for(let A=0;A<e.length;A+=1)e[A]=t("BA");if(R=String.fromCharCode(...e),m.isPreservingQualityScores(c)){N=new Array(I);for(let A=0;A<e.length;A+=1)N[A]=t("QS")}}else{const e=t("FN");if(e&&(D=function(e,t,A,r,n){let o=0,i=e-1;const a=new Array(t);function s([e,t]){const r=A(t);if("character"===e)return String.fromCharCode(r);if("string"===e){let e="";for(let t=0;t<r.byteLength;t++)e+=String.fromCharCode(r[t]);return e}return"numArray"===e?r.toArray():r}for(let e=0;e<t;e+=1){const t=String.fromCharCode(A("FC")),r=A("FP"),g={B:["character","BA"],S:["string",n>1?"SC":"IN"],X:["number","BS"],D:["number","DL"],I:["string","IN"],i:["character","BA"],b:["string","BB"],q:["numArray","QQ"],Q:["number","QS"],H:["number","HC"],P:["number","PD"],N:["number","RS"]}[t];if(!g)throw new U(`invalid read feature code "${t}"`);let c=s(g);const f={B:["number","QS"]}[t];f&&(c=[c,s(f)]),o+=r;const I=o;i+=r;const h=i;"D"===t||"N"===t?i+=c:"I"===t||"S"===t?i-=c.length:"i"===t&&(i-=1),a[e]={code:t,pos:I,refPos:h,data:c}}return a}(h,e,t,0,a)),S=I,D)for(const{code:e,data:t}of D)"D"===e||"N"===e?S+=t:"I"===e||"S"===e?S-=t.length:"i"===e&&(S-=1);if(Number.isNaN(S)&&(console.warn(`${d||`${f}:${h}`} record has invalid read features`),S=I),b=t("MQ"),m.isPreservingQualityScores(c)){N=new Array(I);for(let e=0;e<N.length;e++)N[e]=t("QS")}}return{readLength:I,sequenceId:f,cramFlags:c,flags:g,alignmentStart:h,readGroupId:C,readName:d,mateToUse:l,templateSize:u,mateRecordNumber:B,readFeatures:D,lengthOnRef:S,mappingQuality:b,qualityScores:N,readBases:R,tags:E}}function Qe(e,t,A,r){const n=!!(r.mate||void 0!==r.mateRecordNumber&&r.mateRecordNumber!==t);A.readName||(A.readName=String(A.uniqueId),r.readName=A.readName),A.mate={sequenceId:r.sequenceId,alignmentStart:r.alignmentStart,uniqueId:r.uniqueId},r.readName&&(A.mate.readName=r.readName),r.mate||void 0!==r.mateRecordNumber||(r.mate={sequenceId:A.sequenceId,alignmentStart:A.alignmentStart,uniqueId:A.uniqueId},A.readName&&(r.mate.readName=A.readName)),A.flags|=a,r.flags&g&&(A.flags|=c),A.flags&g&&(r.flags|=c),r.flags&f&&(A.flags|=I),A.flags&f&&(r.flags|=I),void 0===A.templateLength&&(n?function(e,t,A){const r=function t(A){const r=[A];if(void 0!==A.mateRecordNumber&&A.mateRecordNumber>=0){const n=e[A.mateRecordNumber];if(!n)throw new U("intra-slice mate record not found, this file seems malformed");r.push(...t(n))}return r}(A),n=r.map((e=>e.alignmentStart)),o=r.map((e=>e.alignmentStart+e.readLength-1)),i=Math.max(...o)-Math.min(...n)+1;i>=0&&r.forEach((e=>{if(void 0!==e.templateLength)throw new U("mate pair group has some members that have template lengths already, this file seems malformed");e.templateLength=i}))}(e,0,A):function(e,t){const A=Math.min(e.alignmentStart,t.alignmentStart),r=Math.max(e.alignmentStart+e.readLength-1,t.alignmentStart+t.readLength-1)-A+1;e.templateLength=r,t.templateLength=r}(A,r)),A.mateRecordNumber=void 0}class Ee{constructor(e,t,A){this.container=e,this.containerPosition=t,this.sliceSize=A,this.file=e.file}async getHeader(){const{majorVersion:e}=await this.file.getDefinition(),t=de(e),A=await this.container.getHeader();if(!A)throw new Error("no container header detected");const r=await this.file.readBlock(A._endPosition+this.containerPosition);if(void 0===r)throw new Error("block header undefined");if("MAPPED_SLICE_HEADER"===r.contentType){const e=Ae(r.content,t.cramMappedSliceHeader.parser,0,A._endPosition);return{...r,parsedContent:e}}if("UNMAPPED_SLICE_HEADER"===r.contentType){const e=Ae(r.content,t.cramUnmappedSliceHeader.parser,0,A._endPosition);return{...r,parsedContent:e}}throw new U(`error reading slice header block, invalid content type ${r.contentType}`)}async getBlocks(){const e=await this.getHeader();let t=e._endPosition;const A=new Array(e.parsedContent.numBlocks);for(let e=0;e<A.length;e++){const r=await this.file.readBlock(t);if(void 0===r)throw new Error("block undefined");A[e]=r,t=A[e]._endPosition}return A}async getCoreDataBlock(){return(await this.getBlocks())[0]}async _getBlocksContentIdIndex(){const e=await this.getBlocks(),t={};return e.forEach((e=>{"EXTERNAL_DATA"===e.contentType&&(t[e.contentId]=e)})),t}async getBlockByContentId(e){return(await this._getBlocksContentIdIndex())[e]}async getReferenceRegion(){const e=(await this.getHeader()).parsedContent;if(!ae(e))throw new Error("slice header not mapped");if(e.refSeqId<0)return;const t=await this.container.getCompressionScheme();if(void 0===t)throw new Error("compression scheme undefined");if(e.refBaseBlockId>=0){const t=await this.getBlockByContentId(e.refBaseBlockId);if(!t)throw new U("embedded reference specified, but reference block does not exist");return{seq:t.data.toString("utf8"),start:e.refSeqStart,end:e.refSeqStart+e.refSeqSpan-1,span:e.refSeqSpan}}if(t.referenceRequired||this.file.fetchReferenceSequenceCallback){if(!this.file.fetchReferenceSequenceCallback)throw new Error("reference sequence not embedded, and seqFetch callback not provided, cannot fetch reference sequence");const t=await this.file.fetchReferenceSequenceCallback(e.refSeqId,e.refSeqStart,e.refSeqStart+e.refSeqSpan-1);if(t.length!==e.refSeqSpan)throw new _("seqFetch callback returned a reference sequence of the wrong length");return{seq:t,start:e.refSeqStart,end:e.refSeqStart+e.refSeqSpan-1,span:e.refSeqSpan}}}getAllRecords(){return this.getRecords((()=>!0))}async _fetchRecords(){var e,t;const{majorVersion:A}=await this.file.getDefinition(),r=await this.container.getCompressionScheme();if(void 0===r)throw new Error("compression scheme undefined");const n=await this.getHeader(),o=await this._getBlocksContentIdIndex();if(A>1&&this.file.options.checkSequenceMD5&&ae(n.parsedContent)&&n.parsedContent.refSeqId>=0&&"0000000000000000"!==(null===(e=n.parsedContent.md5)||void 0===e?void 0:e.join(""))){const e=await this.getReferenceRegion();if(e){const{seq:A,start:r,end:o}=e,i=function(e){return V()(e.toUpperCase().replaceAll(/[^\u0021-\u007e]/g,""))}(A),a=null===(t=n.parsedContent.md5)||void 0===t?void 0:t.map((e=>(e<16?"0":"")+e.toString(16))).join("");if(i!==a)throw new U(`MD5 checksum reference mismatch for ref ${n.parsedContent.refSeqId} pos ${r}..${o}. recorded MD5: ${a}, calculated MD5: ${i}`)}}const i=await this.getCoreDataBlock(),a={lastAlignmentStart:ae(n.parsedContent)?n.parsedContent.refSeqStart:0,coreBlock:{bitPosition:7,bytePosition:0},externalBlocks:{map:new Map,getCursor(e){let t=this.map.get(e);return void 0===t&&(t={bitPosition:7,bytePosition:0},this.map.set(e,t)),t}}},s=e=>{const t=r.getCodecForDataSeries(e);if(!t)throw new U(`no codec defined for ${e} data series`);return t.decode(this,i,o,a)},g=new Array(n.parsedContent.numRecords);for(let e=0;e<g.length;e+=1)try{const t=Be(this,s,r,n,i,o,a,A,e);g[e]=new p({...t,uniqueId:n.contentPosition+n.parsedContent.recordCounter+e+1})}catch(e){if(e instanceof $){console.warn("read attempted beyond end of buffer, file seems truncated.");break}throw e}for(let e=0;e<g.length;e+=1){const{mateRecordNumber:t}=g[e];void 0!==t&&t>=0&&Qe(g,e,g[e],g[t])}return g}async getRecords(e){const t=this.container.filePosition+this.containerPosition;let A=this.file.featureCache.get(t.toString());A||(A=this._fetchRecords(),this.file.featureCache.set(t.toString(),A));const r=(await A).filter(e);if(r.length&&this.file.fetchReferenceSequenceCallback){const e=await this.getHeader();if(ae(e.parsedContent)&&(e.parsedContent.refSeqId>=0||-2===e.parsedContent.refSeqId)){const t=e.parsedContent.refSeqId>=0?e.parsedContent.refSeqId:void 0,A=await this.container.getCompressionScheme();if(void 0===A)throw new Error("compression scheme undefined");const n={};for(const e of r){const A=void 0!==t?t:e.sequenceId;let r=n[A];r||(r={id:A,start:e.alignmentStart,end:Number.NEGATIVE_INFINITY,seq:null},n[A]=r);const o=e.alignmentStart+(e.lengthOnRef||e.readLength)-1;o>r.end&&(r.end=o),e.alignmentStart<r.start&&(r.start=e.alignmentStart)}await Promise.all(Object.values(n).map((async e=>{-1!==e.id&&e.start<=e.end&&this.file.fetchReferenceSequenceCallback&&(e.seq=await this.file.fetchReferenceSequenceCallback(e.id,e.start,e.end))})));for(const e of r){const r=n[void 0!==t?t:e.sequenceId];if(null==r?void 0:r.seq){const t=r.seq;e.addReferenceSequence({...r,seq:t},A)}}}}return r}}"getHeader getBlocks _getBlocksContentIdIndex".split(" ").forEach((e=>{re(Ee,e)}));class we{constructor(e,t){this.parameters=e,this.dataType=t}}class me extends we{constructor(e,t,A){super(e,t),this.instantiateCodec=A}decode(e,t,A,r){const n=this._getLengthCodec().decode(e,t,A,r),o=this._getDataCodec(),i=new Uint8Array(n);for(let a=0;a<n;a+=1)i[a]=o.decode(e,t,A,r);return i}_getLengthCodec(){const e=this.parameters.lengthsEncoding;return this.instantiateCodec(e,"int")}_getDataCodec(){const e=this.parameters.valuesEncoding;return this.instantiateCodec(e,"byte")}}"_getLengthCodec _getDataCodec".split(" ").forEach((e=>{re(me,e)}));const ye={1:class extends we{constructor(e,t){if(super(e,t),"int"===this.dataType)this._decodeData=this._decodeInt;else{if("byte"!==this.dataType)throw new M(`${this.dataType} decoding not yet implemented by EXTERNAL codec`);this._decodeData=this._decodeByte}}decode(e,t,A,r){const{blockContentId:n}=this.parameters,o=A[n];if(!o)throw new U(`no block found with content ID ${n}}`);const i=r.externalBlocks.getCursor(n);return this._decodeData(o,i)}_decodeInt(e,t){const[A,r]=ee(e.content,t.bytePosition);return t.bytePosition=t.bytePosition+r,A}_decodeByte(e,t){if(t.bytePosition>=e.content.length)throw new $("attempted to read beyond end of block. this file seems truncated.");return e.content[t.bytePosition++]}},3:class extends we{constructor(e,t){if(super(e,t),this.codes={},this.codeBook={},this.sortedCodes=[],this.sortedValuesByBitCode=[],this.sortedBitCodes=[],this.sortedBitLengthsByBitCode=[],this.bitCodeToValue=[],!["byte","int"].includes(this.dataType))throw new TypeError(`${this.dataType} decoding not yet implemented by HUFFMAN_INT codec`);this.buildCodeBook(),this.buildCodes(),this.buildCaches(),0===this.sortedCodes[0].bitLength&&(this._decode=this._decodeZeroLengthCode)}buildCodeBook(){let e=new Array(this.parameters.numCodes);for(let t=0;t<this.parameters.numCodes;t++)e[t]={symbol:this.parameters.symbols[t],bitLength:this.parameters.bitLengths[t]};e=e.sort(((e,t)=>e.bitLength-t.bitLength||e.symbol-t.symbol)),this.codeBook={},e.forEach((e=>{this.codeBook[e.bitLength]||(this.codeBook[e.bitLength]=[]),this.codeBook[e.bitLength].push(e.symbol)}))}buildCodes(){this.codes={};let e=0,t=-1;Object.entries(this.codeBook).forEach((([A,r])=>{const n=Number.parseInt(A,10);r.forEach((A=>{const r={bitLength:n,value:A,bitCode:0};t+=1;const o=n-e;if(t<<=o,r.bitCode=t,e+=o,function(e){let t=e-(e>>1)&1431655765;return t=(858993459&t)+(t>>2&858993459),16843009*(t+(t>>4)&252645135)>>24}(t)>n)throw new U("Symbol out of range");this.codes[A]=r}))}))}buildCaches(){this.sortedCodes=Object.values(this.codes).sort(((e,t)=>e.bitLength-t.bitLength||e.bitCode-t.bitCode)),this.sortedValuesByBitCode=this.sortedCodes.map((e=>e.value)),this.sortedBitCodes=this.sortedCodes.map((e=>e.bitCode)),this.sortedBitLengthsByBitCode=this.sortedCodes.map((e=>e.bitLength));const e=Math.max(...this.sortedBitCodes);this.bitCodeToValue=new Array(e+1).fill(-1);for(let e=0;e<this.sortedBitCodes.length;e+=1)this.bitCodeToValue[this.sortedCodes[e].bitCode]=e}decode(e,t,A,r){return this._decode(e,t,r.coreBlock)}_decodeZeroLengthCode(){return this.sortedCodes[0].value}_decode(e,t,A){const r=t.content;let n=0,o=0;for(let e=0;e<this.sortedCodes.length;e+=1){const t=this.sortedCodes[e].bitLength;o<<=t-n,o|=Z(r,A,t-n),n=t;{const A=this.bitCodeToValue[o];if(A>-1&&this.sortedBitLengthsByBitCode[A]===t)return this.sortedValuesByBitCode[A];for(let A=e;this.sortedCodes[A+1].bitLength===t&&A<this.sortedCodes.length;A+=1)e+=1}}throw new U("Huffman symbol not found.")}},4:me,5:class extends we{decode(e,t,A,r){const{blockContentId:n}=this.parameters,o=A[n];if(!o)throw new U(`no block found with content ID ${n}`);const i=r.externalBlocks.getCursor(n);return this._decodeByteArray(o,i)}_decodeByteArray(e,t){const A=e.content,{stopByte:r}=this.parameters,n=t.bytePosition;let o=t.bytePosition;for(;A[o]!==r&&o<A.length;){if(o===A.length)throw new $("byteArrayStop reading beyond length of data buffer?");o+=1}return t.bytePosition=o+1,A.subarray(n,o)}},6:class extends we{constructor(e,t){if(super(e,t),"int"!==this.dataType)throw new M(`${this.dataType} decoding not yet implemented by BETA codec`)}decode(e,t,A,r){return Z(t.content,r.coreBlock,this.parameters.length)-this.parameters.offset}},7:class extends we{constructor(e,t){if(super(e,t),"int"!==this.dataType)throw new M(`${this.dataType} decoding not yet implemented by SUBEXP codec`)}decode(e,t,A,r){let n,o,i=0;for(;Z(t.content,r.coreBlock,1);)i+=1;return 0===i?(n=this.parameters.K,o=Z(t.content,r.coreBlock,n)):(n=i+this.parameters.K-1,o=1<<n|Z(t.content,r.coreBlock,n)),o-this.parameters.offset}},9:class extends we{constructor(e,t){if(super(e,t),"int"!==this.dataType)throw new M(`${this.dataType} decoding not yet implemented by GAMMA codec`)}decode(e,t,A,r){let n=1;for(;0===Z(t.content,r.coreBlock,1);)n+=1;return(Z(t.content,r.coreBlock,n-1)|1<<n-1)-this.parameters.offset}}};function pe(e,t){const A=(r="ignore"===t?0:e.codecId,ye[r]);var r;if(!A)throw new M(`no codec implemented for codec ID ${e.codecId}`);return new A(e.parameters,t,pe)}const ve={BF:"int",CF:"int",RI:"int",RL:"int",AP:"int",RG:"int",MF:"int",NS:"int",NP:"int",TS:"int",NF:"int",TC:"byte",TN:"int",FN:"int",FC:"byte",FP:"int",BS:"byte",IN:"byteArray",SC:"byteArray",DL:"int",BA:"byte",BB:"byteArray",RS:"int",PD:"int",HC:"int",MQ:"int",RN:"byteArray",QS:"byte",QQ:"byteArray",TL:"int"};class De{constructor(e){this.dataSeriesCodecCache={},this.tagCodecCache={},this.tagEncoding={},this.readNamesIncluded=e.preservation.RN,this.APdelta=e.preservation.AP,this.referenceRequired=!!e.preservation.RR,this.tagIdsDictionary=e.preservation.TD,this.substitutionMatrix=function(e){const t=new Array(5);for(let e=0;e<5;e+=1)t[e]=new Array(4);return t[0][e[0]>>6&3]="C",t[0][e[0]>>4&3]="G",t[0][e[0]>>2&3]="T",t[0][3&e[0]]="N",t[1][e[1]>>6&3]="A",t[1][e[1]>>4&3]="G",t[1][e[1]>>2&3]="T",t[1][3&e[1]]="N",t[2][e[2]>>6&3]="A",t[2][e[2]>>4&3]="C",t[2][e[2]>>2&3]="T",t[2][3&e[2]]="N",t[3][e[3]>>6&3]="A",t[3][e[3]>>4&3]="C",t[3][e[3]>>2&3]="G",t[3][3&e[3]]="N",t[4][e[4]>>6&3]="A",t[4][e[4]>>4&3]="C",t[4][e[4]>>2&3]="G",t[4][3&e[4]]="T",t}(e.preservation.SM),this.dataSeriesEncoding=e.dataSeriesEncoding,this.tagEncoding=e.tagEncoding}getCodecForTag(e){const t=this.tagCodecCache[e];if(t)return t;{const t=this.tagEncoding[e];if(!t)throw new Error("Error, no tag encoding");const A=pe(t,"byteArray");return this.tagCodecCache[e]=A,A}}getTagNames(e){return this.tagIdsDictionary[e]}getCodecForDataSeries(e){let t=this.dataSeriesCodecCache[e];if(void 0===t){const A=this.dataSeriesEncoding[e];if(A){const r=ve[e];if(!r)throw new U(`data series name ${e} not defined in file compression header`);t=pe(A,r),this.dataSeriesCodecCache[e]=t}}return t}toJSON(){const e={};return Object.keys(this).forEach((t=>{t.endsWith("Cache")||(e[t]=this[t])})),e}}class Se{constructor(e,t){this.file=e,this.filePosition=t}getHeader(){return this._readContainerHeader(this.filePosition)}async getCompressionHeaderBlock(){const e=await this.getHeader();if(!(null==e?void 0:e.numRecords))return null;const{majorVersion:t}=await this.file.getDefinition(),A=de(t),r=await this.getFirstBlock();if(void 0===r)return;if("COMPRESSION_HEADER"!==r.contentType)throw new U(`invalid content type ${r.contentType} in compression header block`);const n=Ae(r.content,A.cramCompressionHeader.parser,0,r.contentPosition);return{...r,parsedContent:n}}async getFirstBlock(){const e=await this.getHeader();if(e)return this.file.readBlock(e._endPosition)}async getCompressionScheme(){const e=await this.getCompressionHeaderBlock();if(e)return new De(e.parsedContent)}getSlice(e,t){return new Ee(this,e,t)}async _readContainerHeader(e){const{majorVersion:t}=await this.file.getDefinition(),A=de(t),{cramContainerHeader1:r,cramContainerHeader2:n}=A,{size:o}=await this.file.stat();if(e>=o)return void console.warn(`pos:${e}>=fileSize:${o} in cram container`);const i=v.hp.allocUnsafe(r.maxLength);await this.file.read(i,0,r.maxLength,e);const a=Ae(i,r.parser),s=-128&(g=a.numLandmarks)?-16384&g?-2097152&g?-268435456&g?5:4:3:2:1;var g;if(e+a.length>=o)return void console.warn(`container at ${e} is beyond fileSize:${o}, skipping`);const c=v.hp.allocUnsafe(n.maxLength(a.numLandmarks));await this.file.read(c,0,n.maxLength(a.numLandmarks),e+a._size-s);const f=Ae(c,n.parser);return this.file.validateChecksums&&void 0!==f.crc32&&await this.file.checkCrc32(e,a._size+f._size-s-4,f.crc32,`container header beginning at position ${e}`),Object.assign(a,f,{_size:a._size+f._size-s,_endPosition:a._size+f._size-s+e})}}"getHeader getCompressionHeaderBlock getCompressionScheme".split(" ").forEach((e=>{re(Se,e)}));var be=A(45834);function Ne(e,t,A){if(A)return A;if(e)return new be.Tx(e);if(t)return new be.EY(t);throw new Error("no url, path, or filehandle provided, cannot open")}function Re(e){const t=e.split(/\r?\n/),A=[];for(const e of t){const[t,...r]=e.split(/\t/);t&&A.push({tag:t.slice(1),data:r.map((e=>{const t=e.indexOf(":");return-1!==t?{tag:e.slice(0,t),value:e.slice(t+1)}:{tag:e,value:""}}))})}return A}class ke{constructor(e){var t;if(this.file=Ne(e.url,e.path,e.filehandle),this.validateChecksums=!0,this.fetchReferenceSequenceCallback=e.seqFetch,this.options={checkSequenceMD5:e.checkSequenceMD5,cacheSize:null!==(t=e.cacheSize)&&void 0!==t?t:2e4},this.featureCache=new(b())({maxSize:this.options.cacheSize}),function(){const e=new Uint32Array([287454020]),t=new Uint8Array(e.buffer);return 68===t[0]?0:17===t[0]?1:2}()>0)throw new Error("Detected big-endian machine, may be unable to run")}read(e,t,A,r){return this.file.read(e,t,A,r)}stat(){return this.file.stat()}async getDefinition(){const{maxLength:e,parser:t}=ne(),A=v.hp.allocUnsafe(e);await this.file.read(A,0,e,0);const r=t(A).value;if(2!==r.majorVersion&&3!==r.majorVersion)throw new M(`CRAM version ${r.majorVersion} not supported`);return r}async getSamHeader(){const e=await this.getContainerById(0);if(!e)throw new U("file contains no containers");const t=await e.getFirstBlock();if(void 0===t)return Re("");const A=t.content,r=A.readInt32LE(0),n=A.toString("utf8",4,4+r);return this.header=n,Re(n)}async getHeaderText(){return await this.getSamHeader(),this.header}async getContainerById(e){const{majorVersion:t}=await this.getDefinition(),A=de(t);let r=A.cramFileDefinition.maxLength;const{size:n}=await this.file.stat(),{cramContainerHeader1:o}=A;let i;for(let t=0;t<=e;t++){if(r+o.maxLength+8>=n)return;i=this.getContainerAtPosition(r);const A=await i.getHeader();if(!A)throw new U(`container ${e} not found in file`);if(0===t){r=A._endPosition;for(let e=0;e<A.numBlocks;e++){const e=await this.readBlock(r);if(void 0===e)return;r=e._endPosition}}else r+=A._size+A.length}return i}async checkCrc32(e,t,A,r){const n=v.hp.allocUnsafe(t);await this.file.read(n,0,t,e);const o=D.A.unsigned(n);if(o!==A)throw new U(`crc mismatch in ${r}: recorded CRC32 = ${A}, but calculated CRC32 = ${o}`)}async containerCount(){const{majorVersion:e}=await this.getDefinition(),t=de(e),{size:A}=await this.file.stat(),{cramContainerHeader1:r}=t;let n=0,o=t.cramFileDefinition.maxLength;for(;o+r.maxLength+8<A;){const e=await this.getContainerAtPosition(o).getHeader();if(!e)break;if(0===n){o=e._endPosition;for(let t=0;t<e.numBlocks;t++){const e=await this.readBlock(o);if(void 0===e)return;o=e._endPosition}}else o+=e._size+e.length;n+=1}return n}getContainerAtPosition(e){return new Se(this,e)}async readBlockHeader(e){const{majorVersion:t}=await this.getDefinition(),A=de(t),{cramBlockHeader:r}=A,{size:n}=await this.file.stat();if(e+r.maxLength>=n)return;const o=v.hp.allocUnsafe(r.maxLength);return await this.file.read(o,0,r.maxLength,e),Ae(o,r.parser,0,e)}async _parseSection(e,t,A=e.maxLength,r){let n;if(r)n=r;else{const{size:e}=await this.file.stat();if(t+A>=e)return;n=v.hp.allocUnsafe(A),await this.file.read(n,0,A,t)}const o=Ae(n,e.parser,0,t);if(o._size!==A)throw new U(`section read error: requested size ${A} does not equal parsed size ${o._size}`);return o}async _uncompress(e,t,A){if("gzip"===e)J(t).copy(A);else if("bzip2"===e){const e=q().array(t);let r,n=q().header(e),o=0;do{r=q().decompress(e,n),-1!==r&&(v.hp.from(r).copy(A,o),o+=r.length,n-=r.length)}while(-1!==r)}else if("lzma"===e){const e=new Response(new F.XzReadableStream((r=t,new ReadableStream({start(e){e.enqueue(r),e.close()}}))));v.hp.from(await e.arrayBuffer()).copy(A)}else if("rans"===e)!function(e,t,A=0){if(0===e.length)return t.fill(0),t;const r=new z(e,A),n=r.get();if(0!==n&&1!==n)throw new U(`Invalid rANS order ${n}`);if(r.getInt()!==r.remaining()-4)throw new U("Incorrect input length.");const o=r.getInt(),i=new z(t||v.hp.allocUnsafe(o));if(i.length<o)throw new U(`Output buffer too small to fit ${o} bytes.`);switch(n){case 0:return function(e,t){const A=new P.AriDecoder,r=new Array(256);for(let e=0;e<r.length;e+=1)r[e]=new P.DecodingSymbol;return function(e,t,A){let r=0,n=0,o=255&e.get();do{null==t.fc[o]&&(t.fc[o]=new P.FC),t.fc[o].F=255&e.get(),t.fc[o].F>=128&&(t.fc[o].F&=-129,t.fc[o].F=(127&t.fc[o].F)<<8|255&e.get()),t.fc[o].C=n,P.symbolInit(A[o],t.fc[o].C,t.fc[o].F),t.R||(t.R=new Array(G)),t.R.fill(o,n,n+t.fc[o].F),n+=t.fc[o].F,0===r&&o+1===(255&e.getByteAt(e.position()))?(o=255&e.get(),r=255&e.get()):0!==r?(r-=1,o+=1):o=255&e.get()}while(0!==o);T(n<G)}(e,A,r),function(e,t,A,r){let n=e.getInt(),o=e.getInt(),i=e.getInt(),a=e.getInt();const s=r.remaining(),g=-4&s;for(let s=0;s<g;s+=4){const g=t.R[P.get(n,H)],c=t.R[P.get(o,H)],f=t.R[P.get(i,H)],I=t.R[P.get(a,H)];r.putAt(s,g),r.putAt(s+1,c),r.putAt(s+2,f),r.putAt(s+3,I),n=P.advanceSymbolStep(n,A[255&g],H),o=P.advanceSymbolStep(o,A[255&c],H),i=P.advanceSymbolStep(i,A[255&f],H),a=P.advanceSymbolStep(a,A[255&I],H),n=P.renormalize(n,e),o=P.renormalize(o,e),i=P.renormalize(i,e),a=P.renormalize(a,e)}let c;switch(r.setPosition(g),3&s){case 0:break;case 1:c=t.R[P.get(n,H)],P.advanceSymbol(n,e,A[255&c],H),r.put(c);break;case 2:c=t.R[P.get(n,H)],P.advanceSymbol(n,e,A[255&c],H),r.put(c),c=t.R[P.get(o,H)],P.advanceSymbol(o,e,A[255&c],H),r.put(c);break;case 3:c=t.R[P.get(n,H)],P.advanceSymbol(n,e,A[255&c],H),r.put(c),c=t.R[P.get(o,H)],P.advanceSymbol(o,e,A[255&c],H),r.put(c),c=t.R[P.get(i,H)],P.advanceSymbol(i,e,A[255&c],H),r.put(c);break;default:throw new U("invalid output size encountered during rANS decoding")}r.setPosition(0)}(e,A,r,t),t}(r,i);case 1:return function(e,t){const A=new Array(256);for(let e=0;e<A.length;e+=1)A[e]=new P.AriDecoder;const r=new Array(256);for(let e=0;e<r.length;e+=1){r[e]=new Array(256);for(let t=0;t<r[e].length;t+=1)r[e][t]=new P.DecodingSymbol}return function(e,t,A){let r=0,n=255&e.get();do{let o=0,i=0,a=255&e.get();null==t[n]&&(t[n]=new P.AriDecoder);do{null==t[n].fc[a]&&(t[n].fc[a]=new P.FC),t[n].fc[a].F=255&e.get(),t[n].fc[a].F>=128&&(t[n].fc[a].F&=-129,t[n].fc[a].F=(127&t[n].fc[a].F)<<8|255&e.get()),t[n].fc[a].C=i,0===t[n].fc[a].F&&(t[n].fc[a].F=G),null==A[n][a]&&(A[n][a]=new P.RansDecSymbol),P.symbolInit(A[n][a],t[n].fc[a].C,t[n].fc[a].F),null==t[n].R&&(t[n].R=new Array(G)),t[n].R.fill(a,i,i+t[n].fc[a].F),i+=t[n].fc[a].F,T(i<=G),0===o&&a+1===(255&e.getByteAt(e.position()))?(a=255&e.get(),o=255&e.get()):0!==o?(o-=1,a+=1):a=255&e.get()}while(0!==a);0===r&&n+1===(255&e.getByteAt(e.position()))?(n=255&e.get(),r=255&e.get()):0!==r?(r-=1,n+=1):n=255&e.get()}while(0!==n)}(e,A,r),function(e,t,A,r){const n=t.remaining();let o=e.getInt(),i=e.getInt(),a=e.getInt(),s=e.getInt();const g=n>>2;let c=0,f=g,I=2*g,h=3*g,C=0,d=0,l=0,u=0;for(;c<g;c+=1,f+=1,I+=1,h+=1){const n=255&A[C].R[P.get(o,H)],g=255&A[d].R[P.get(i,H)],B=255&A[l].R[P.get(a,H)],Q=255&A[u].R[P.get(s,H)];t.putAt(c,n),t.putAt(f,g),t.putAt(I,B),t.putAt(h,Q),o=P.advanceSymbolStep(o,r[C][n],H),i=P.advanceSymbolStep(i,r[d][g],H),a=P.advanceSymbolStep(a,r[l][B],H),s=P.advanceSymbolStep(s,r[u][Q],H),o=P.renormalize(o,e),i=P.renormalize(i,e),a=P.renormalize(a,e),s=P.renormalize(s,e),C=n,d=g,l=B,u=Q}for(;h<n;h+=1){const n=255&A[u].R[P.get(s,H)];t.putAt(h,n),s=P.advanceSymbol(s,e,r[u][n],H),u=n}}(e,t,A,r),t}(r,i);default:throw new U(`Invalid rANS order: ${n}`)}}(t,A);else if("rans4x16"===e)R().r4x16_uncompress(t,A);else if("arith"===e)R().arith_uncompress(t,A);else if("fqzcomp"===e)R().fqzcomp_uncompress(t,A);else{if("tok3"!==e)throw new M(`${e} decompression not yet implemented`);R().tok3_uncompress(t,A)}var r}async readBlock(e){const{majorVersion:t}=await this.getDefinition(),A=de(t),r=await this.readBlockHeader(e);if(void 0===r)return;const n=r._endPosition,o=v.hp.allocUnsafe(r.uncompressedSize),i={...r,_endPosition:n,contentPosition:n,content:o};if("raw"!==r.compressionMethod){const e=v.hp.allocUnsafe(r.compressedSize);await this.read(e,0,r.compressedSize,n),await this._uncompress(r.compressionMethod,e,o)}else await this.read(o,0,r.uncompressedSize,n);if(t>=3){const t=await this._parseSection(A.cramBlockCrc32,n+r.compressedSize);if(void 0===t)return;i.crc32=t.crc32,this.validateChecksums&&await this.checkCrc32(e,r._size+r.compressedSize,t.crc32,"block data"),i._endPosition=t._endPosition,i._size=i.compressedSize+A.cramBlockCrc32.maxLength}else i._endPosition=n+i.compressedSize,i._size=i.compressedSize;return i}}function qe(e,t){const[A,r,n,o,i,a]=t,s=A;e[s]||(e[s]=[]),e[s].push({start:r,span:n,containerStart:o,sliceStart:i,sliceBytes:a})}"getDefinition getSectionParsers getSamHeader".split(" ").forEach((e=>{re(ke,e)}));class Fe{constructor(e){this.filehandle=Ne(e.url,e.path,e.filehandle)}async parseIndex(){const e={},t=31===(A=await this.filehandle.readFile())[0]&&139===A[1]?J(A):A;var A;if(t.length>4&&21578050===t.readUInt32LE(0))throw new U("invalid .crai index file. note: file appears to be a .bai index. this is technically legal but please open a github issue if you need support");let r=[],n="";for(const A of t)if(A>=48&&A<=57||!n&&45===A)n+=String.fromCharCode(A);else if(9===A)r.push(Number.parseInt(n,10)),n="";else if(10===A)r.push(Number.parseInt(n,10)),n="",qe(e,r),r=[];else if(13!==A&&32!==A)throw new U("invalid .crai index file");return n&&r.push(Number.parseInt(n,10)),6===r.length&&qe(e,r),Object.entries(e).forEach((([t,A])=>{const r=A;e[t]=r.sort(((e,t)=>e.start-t.start||e.span-t.span))})),e}getIndex(){return this.parseIndexP||(this.parseIndexP=this.parseIndex().catch((e=>{throw this.parseIndexP=void 0,e}))),this.parseIndexP}async hasDataForReferenceSequence(e){return!!(await this.getIndex())[e]}async getEntriesForRange(e,t,A){const r=(await this.getIndex())[e];if(!r)return[];const n=e=>{const r=e.start,n=e.start+e.span;return r>A?-1:n<=t?1:0},o=[];for(const e of r)0===n(e)&&o.push(e);return o}}class Le{constructor(e){var t;if(this.cram=null!==(t=e.cram)&&void 0!==t?t:new ke({url:e.cramUrl,path:e.cramPath,filehandle:e.cramFilehandle,seqFetch:e.seqFetch,checkSequenceMD5:e.checkSequenceMD5,cacheSize:e.cacheSize}),!(this.cram instanceof ke))throw new Error("invalid arguments: no cramfile");this.index=e.index}async getRecordsForRange(e,t,A,r={}){if(r.viewAsPairs=r.viewAsPairs||!1,r.pairAcrossChr=r.pairAcrossChr||!1,r.maxInsertSize=r.maxInsertSize||2e5,"string"==typeof e)throw new M("string sequence names not yet supported");const n=e,o=await this.index.getEntriesForRange(n,t,A),i=r=>r.sequenceId===e&&r.alignmentStart<=A&&void 0!==r.lengthOnRef&&r.alignmentStart+r.lengthOnRef-1>=t,a=await Promise.all(o.map((e=>this.getRecordsInSlice(e,i))));let s=Array.prototype.concat(...a);if(r.viewAsPairs){const e={},t={};for(const A of s){const r=A.readName;if(void 0===r)throw new Error("readName undefined");const n=A.uniqueId;e[r]||(e[r]=0),e[r]+=1,t[n]=1}const A={};Object.entries(e).forEach((([e,t])=>{1===t&&(A[e]=!0)}));const o=[];for(const e of s){const t=e.readName;if(void 0===t)throw new Error("readName undefined");if(A[t]&&e.mate&&(e.mate.sequenceId===n||r.pairAcrossChr)&&Math.abs(e.alignmentStart-e.mate.alignmentStart)<r.maxInsertSize){const t=this.index.getEntriesForRange(e.mate.sequenceId,e.mate.alignmentStart,e.mate.alignmentStart+1);o.push(t)}}const i=await Promise.all(o);let a=[];for(const e of i)a.push(...e);a=a.sort(((e,t)=>e.toString().localeCompare(t.toString()))).filter(((e,t,A)=>!t||e.toString()!==A[t-1].toString()));const g=[],c=[];for(const e of a){let r=this.cram.featureCache.get(e.toString());r||(r=this.getRecordsInSlice(e,(()=>!0)),this.cram.featureCache.set(e.toString(),r)),g.push(r);const n=r.then((e=>{const r=[];for(const n of e){if(void 0===n.readName)throw new Error("readName undefined");A[n.readName]&&!t[n.uniqueId]&&r.push(n)}return r}));c.push(n)}const f=await Promise.all(c);if(f.length){const e=f.reduce(((e,t)=>e.concat(t)));s=s.concat(e)}}return s}getRecordsInSlice({containerStart:e,sliceStart:t,sliceBytes:A},r){return this.cram.getContainerAtPosition(e).getSlice(t,A).getRecords(r)}hasDataForReferenceSequence(e){return this.index.hasDataForReferenceSequence(e)}}},85911:(e,t,A)=>{const r=A(88946),n=A(76526),o=A(38298),i=A(22823),a=128;e.exports=class{decode(e){return this.stream=new n(e),this.decodeStream(this.stream)}decodeStream(e,t=0){var A=this.stream.ReadByte();16&A||(t=this.stream.ReadUint7());var r,n=t,o=1&A;if(8&A)return this.decodeStripe(this.stream,t);if(A&a&&([r,n]=this.decodePackMeta(this.stream)),32&A)var i=this.decodeCat(this.stream,n);else i=4&A?this.decodeExt(this.stream,n):64&A?o?this.decodeRLE1(this.stream,n):this.decodeRLE0(this.stream,n):o?this.decode1(this.stream,n):this.decode0(this.stream,n);return A&a&&(i=this.decodePack(i,r,t)),i}encode(e,t){if(this.stream=new n("",0,1.1*e.length+100),this.stream.WriteByte(t),16&t||this.stream.WriteUint7(e.length),8&t)return Buffer.concat([this.stream.buf.slice(0,this.stream.pos),this.encodeStripe(this.stream,e,t>>8)]);var A,r=1&t,o=e.length;return t&a&&([A,e,o]=this.encodePack(e)),t&a&&this.stream.WriteStream(A),64&t?r?this.encodeRLE1(e,o,this.stream):this.encodeRLE0(e,o,this.stream):r?this.encode1(e,o,this.stream):this.encode0(e,o,this.stream)}decode0(e,t){var A=new Buffer.allocUnsafe(t),n=e.ReadByte();0==n&&(n=256);var i=new o(n),a=new r(e);a.RangeStartDecode(e);for(var s=0;s<t;s++)A[s]=i.ModelDecode(e,a);return A}encode0(e,t,A){for(var n=0,i=0;i<t;i++)n<e[i]&&(n=e[i]);n++;var a=new o(n);A.WriteByte(n);var s=new r(A);for(i=0;i<t;i++)a.ModelEncode(A,s,e[i]);return s.RangeFinishEncode(A),A.buf.slice(0,A.pos)}decode1(e,t){var A=new Buffer.allocUnsafe(t),n=e.ReadByte();0==n&&(n=256);for(var i=new Array(n),a=0;a<n;a++)i[a]=new o(n);var s=new r(e);s.RangeStartDecode(e);var g=0;for(a=0;a<t;a++)A[a]=i[g].ModelDecode(e,s),g=A[a];return A}encode1(e,t,A){for(var n=0,i=0;i<t;i++)n<e[i]&&(n=e[i]);n++;var a=new Array(n);for(i=0;i<n;i++)a[i]=new o(n);A.WriteByte(n);var s=new r(A),g=0;for(i=0;i<t;i++)a[g].ModelEncode(A,s,e[i]),g=e[i];return s.RangeFinishEncode(A),A.buf.slice(0,A.pos)}decodeExt(e,t){var A=new Buffer.allocUnsafe(t),r=i.array(e.buf.slice(e.pos)),n=i.header(r),o=0;do{var a=i.decompress(r,n);-1!=a&&(Buffer.from(a).copy(A,o),o+=a.length,n-=a.length)}while(-1!=a);return A}encodeExt(e,t){}decodeRLE0(e,t){var A=new Buffer.allocUnsafe(t),n=e.ReadByte();0==n&&(n=256);for(var i=new o(n),a=new Array(258),s=0;s<=257;s++)a[s]=new o(4);var g=new r(e);for(g.RangeStartDecode(e),s=0;s<t;){A[s]=i.ModelDecode(e,g);for(var c=a[A[s]].ModelDecode(e,g),f=c,I=256;3==c;)c=a[I].ModelDecode(e,g),I=257,f+=c;for(var h=1;h<=f;h++)A[s+h]=A[s];s+=f+1}return A}encodeRLE0(e,t,A){for(var n=0,i=0;i<t;i++)n<e[i]&&(n=e[i]);n++;var a=new o(n),s=new Array(258);for(i=0;i<=257;i++)s[i]=new o(4);A.WriteByte(n);var g=new r(A);for(i=0;i<t;){a.ModelEncode(A,g,e[i]);for(var c=1;i+c<t&&e[i+c]==e[i];)c++;c--;var f=e[i];e[i],i+=c+1;var I=c>=3?3:c;for(s[f].ModelEncode(A,g,I),c-=I,f=256;3==I;)I=c>=3?3:c,s[f].ModelEncode(A,g,I),f=257,c-=I}return g.RangeFinishEncode(A),A.buf.slice(0,A.pos)}decodeRLE1(e,t){var A=new Buffer.allocUnsafe(t),n=e.ReadByte();0==n&&(n=256);for(var i=new Array(n),a=0;a<n;a++)i[a]=new o(n);var s=new Array(258);for(a=0;a<=257;a++)s[a]=new o(4);var g=new r(e);g.RangeStartDecode(e);var c=0;for(a=0;a<t;){A[a]=i[c].ModelDecode(e,g),c=A[a];for(var f=s[A[a]].ModelDecode(e,g),I=f,h=256;3==f;)f=s[h].ModelDecode(e,g),h=257,I+=f;for(var C=1;C<=I;C++)A[a+C]=A[a];a+=I+1}return A}encodeRLE1(e,t,A){for(var n=0,i=0;i<t;i++)n<e[i]&&(n=e[i]);n++;var a=new Array(n);for(i=0;i<n;i++)a[i]=new o(n);var s=new Array(258);for(i=0;i<=257;i++)s[i]=new o(4);A.WriteByte(n);for(var g=new r(A),c=(i=0,0);i<t;){a[c].ModelEncode(A,g,e[i]);for(var f=1;i+f<t&&e[i+f]==e[i];)f++;f--;var I=e[i];c=e[i],i+=f+1;var h=f>=3?3:f;for(s[I].ModelEncode(A,g,h),f-=h,I=256;3==h;)h=f>=3?3:f,s[I].ModelEncode(A,g,h),I=257,f-=h}return g.RangeFinishEncode(A),A.buf.slice(0,A.pos)}decodePackMeta(e){this.nsym=e.ReadByte();for(var t=new Array(this.nsym),A=0;A<this.nsym;A++)t[A]=e.ReadByte();return[t,e.ReadUint7()]}decodePack(e,t,A){var r=new Buffer.allocUnsafe(A);if(this.nsym<=1)for(var n=0;n<A;n++)r[n]=t[0];else if(this.nsym<=2){n=0;for(var o=0;n<A;n++){if(n%8==0)var i=e[o++];r[n]=t[1&i],i>>=1}}else if(this.nsym<=4)for(n=0,o=0;n<A;n++)n%4==0&&(i=e[o++]),r[n]=t[3&i],i>>=2;else{if(!(this.nsym<=16))return e;for(n=0,o=0;n<A;n++)n%2==0&&(i=e[o++]),r[n]=t[15&i],i>>=4}return r}packMeta(e){for(var t=new n("",0,1024),A=new Array(256),r=0;r<e.length;r++)A[e[r]]=1;var o=0;for(r=0;r<256;r++)A[r]&&(A[r]=++o);for(t.WriteByte(o),r=0;r<256;r++)A[r]&&(t.WriteByte(r),A[r]--);return[t,A,o]}encodePack(e){var t,A,r;[t,A,r]=this.packMeta(e);var n=e.length,o=0;if(r<=1)return t.WriteUint7(0),[t,new Buffer.allocUnsafe(0),0];if(r<=2){for(var i=new Buffer.allocUnsafe(Math.floor((n+7)/8)),a=(o=0,0);o<(-8&n);o+=8,a++)i[a]=(0|A[e[o+0]])+(A[e[o+1]]<<1)+(A[e[o+2]]<<2)+(A[e[o+3]]<<3)+(A[e[o+4]]<<4)+(A[e[o+5]]<<5)+(A[e[o+6]]<<6)+(A[e[o+7]]<<7);if(o<n){i[a]=0;for(var s=0;o<n;)i[a]|=A[e[o++]]<<s,s++;a++}return t.WriteUint7(a),[t,i,i.length]}if(r<=4){for(i=new Buffer.allocUnsafe(Math.floor((n+3)/4)),o=0,a=0;o<(-4&n);o+=4,a++)i[a]=(0|A[e[o+0]])+(A[e[o+1]]<<2)+(A[e[o+2]]<<4)+(A[e[o+3]]<<6);if(o<n){for(i[a]=0,s=0;o<n;)i[a]|=A[e[o++]]<<s,s+=2;a++}return t.WriteUint7(a),[t,i,i.length]}if(r<=16){for(i=new Buffer.allocUnsafe(Math.floor((n+1)/2)),o=0,a=0;o<(-2&n);o+=2,a++)i[a]=(0|A[e[o+0]])+(A[e[o+1]]<<4);return o<n&&(i[a++]=A[e[o++]]),t.WriteUint7(a),[t,i,i.length]}return t.WriteUint7(e.length),[t,e,e.length]}encodeStripe(e,t,A){0==A&&(A=4);for(var r=new Array(A),o=new Array(A),i=0;i<A;i++)o[i]=Math.floor(t.length/A)+(t.length%A>i),r[i]=new Array(o[i]);for(var a=0,s=0;s<t.length;s+=A,a++)for(var g=0;g<A;g++)a<r[g].length&&(r[g][a]=t[s+g]);var c=new Array(A),f=0;for(i=0;i<A;i++){var I=this.encode(r[i],0),h=this.encode(r[i],1);c[i]=h.length<I.length?h:I,f+=c[i].length}var C=new n("",0,f+5*A+1);for(C.WriteByte(A),i=0;i<A;i++)C.WriteUint7(c[i].length);for(i=0;i<A;i++)C.WriteData(c[i],c[i].length);return C.buf.slice(0,C.buf.pos)}decodeStripe(e,t){for(var A=e.ReadByte(),r=new Array(A),n=new Array(A),o=0;o<A;o++)r[o]=e.ReadUint7();var i=new Array(A);for(o=0;o<A;o++)n[o]=Math.floor(t/A)+(t%A>o),i[o]=this.decodeStream(e,n[o]);var a=new Buffer.allocUnsafe(t);for(o=0;o<A;o++)for(var s=0;s<n[o];s++)a[s*A+o]=i[o][s];return a}decodeCat(e,t){for(var A=new Buffer.allocUnsafe(t),r=0;r<t;r++)A[r]=e.ReadByte();return A}}},88946:e=>{e.exports=class{constructor(e){this.low=0,this.range=4294967295,this.code=0,this.FFnum=0,this.carry=0,this.cache=0}RangeStartDecode(e){for(var t=0;t<5;t++)this.code=(this.code<<8)+e.ReadByte();this.code&=4294967295,this.code>>>=0}RangeGetFrequency(e){return this.range=Math.floor(this.range/e),Math.floor(this.code/this.range)}RangeDecode(e,t,A,r){for(this.code-=t*this.range,this.range*=A;this.range<1<<24;)this.range*=256,this.code=256*this.code+e.ReadByte()}RangeShiftLow(e){if(this.low<4278190080|this.carry){for(e.WriteByte(this.cache+this.carry);this.FFnum;)e.WriteByte(this.carry-1),this.FFnum--;this.cache=this.low>>>24,this.carry=0}else this.FFnum++;this.low<<=8,this.low>>>=0}RangeEncode(e,t,A,r){var n=this.low;for(this.range=Math.floor(this.range/r),this.low+=t*this.range,this.low>>>=0,this.range*=A,this.low<n&&(0!=this.carry&&console.log("ERROR: Multiple carry"),this.carry=1);this.range<1<<24;)this.range*=256,this.RangeShiftLow(e)}RangeFinishEncode(e){for(var t=0;t<5;t++)this.RangeShiftLow(e)}}},38298:e=>{e.exports=class{constructor(e=256){this.total_freq=e,this.max_sym=e-1,this.S=new Array,this.F=new Array;for(var t=0;t<=this.max_sym;t++)this.S[t]=t,this.F[t]=1}ModelDecode(e,t){for(var A=t.RangeGetFrequency(this.total_freq),r=0,n=0;r+this.F[n]<=A;)r+=this.F[n++];t.RangeDecode(e,r,this.F[n],this.total_freq),this.F[n]+=16,this.total_freq+=16,this.total_freq>65519&&this.ModelRenormalise();var o=this.S[n];if(n>0&&this.F[n]>this.F[n-1]){var i=this.F[n];this.F[n]=this.F[n-1],this.F[n-1]=i,i=this.S[n],this.S[n]=this.S[n-1],this.S[n-1]=i}return o}ModelRenormalise(){this.total_freq=0;for(var e=0;e<=this.max_sym;e++)this.F[e]-=Math.floor(this.F[e]/2),this.total_freq+=this.F[e]}ModelEncode(e,t,A){for(var r=0,n=0;this.S[n]!=A;n++)r+=this.F[n];if(t.RangeEncode(e,r,this.F[n],this.total_freq),this.F[n]+=16,this.total_freq+=16,this.total_freq>65519&&this.ModelRenormalise(),A=this.S[n],n>0&&this.F[n]>this.F[n-1]){var o=this.F[n];this.F[n]=this.F[n-1],this.F[n-1]=o,o=this.S[n],this.S[n]=this.S[n-1],this.S[n-1]=o}}}},50786:(e,t,A)=>{const r=A(76526),n=A(38298),o=A(88946);function i(e,t,A){for(var r=0,n=0,o=-1,i=new Array(1024);n<A;){var a=e.ReadByte();if(i[r++]=a,n+=a,a==o){var s=e.ReadByte();for(n+=a*s;s--;)i[r++]=a}o=a}var g=0;for(r=0,n=0;n<A;){var c=0;do{var f=i[r++];c+=f}while(255==f);for(;c--;)t[n++]=g;g++}}function a(e,t,A){var r=e.context;return t.qctx=(t.qctx<<e.qshift)+e.qtab[A],r+=(t.qctx&(1<<e.qbits)-1)<<e.qloc,e.do_pos&&(r+=e.ptab[Math.min(t.p,1023)]<<e.ploc),e.do_delta&&(r+=e.dtab[Math.min(t.delta,255)]<<e.dloc,t.delta+=t.prevq!=A?1:0,t.prevq=A),e.do_sel&&(r+=t.s<<e.sloc),t.p--,65535&r}function s(e){var t={};t.context=e.ReadUint16(),t.pflags=e.ReadByte(),t.do_dedup=2&t.pflags,t.fixed_len=4&t.pflags,t.do_sel=8&t.pflags,t.do_qmap=16&t.pflags,t.do_pos=32&t.pflags,t.do_delta=64&t.pflags,t.do_qtab=128&t.pflags,t.max_sym=e.ReadByte();var A=e.ReadByte();if(t.qbits=A>>4,t.qshift=15&A,A=e.ReadByte(),t.qloc=A>>4,t.sloc=15&A,A=e.ReadByte(),t.ploc=A>>4,t.dloc=15&A,t.qmap=new Array(256),16&t.pflags)for(var r=0;r<t.max_sym;r++)t.qmap[r]=e.ReadByte();else for(r=0;r<256;r++)t.qmap[r]=r;if(t.qtab=new Array(1024),t.qbits>0&&128&t.pflags)i(e,t.qtab,256);else for(r=0;r<256;r++)t.qtab[r]=r;return t.ptab=new Array(1024),32&t.pflags&&i(e,t.ptab,1024),t.dtab=new Array(256),64&t.pflags&&i(e,t.dtab,256),t}function g(e,t,A,r,n,o){A.max_sel>0?n.s=r.sel.ModelDecode(e,t):n.s=0,n.x=A.stab[n.s];var i=A.params[n.x];if(i.fixed_len>=0){var a=r.len[0].ModelDecode(e,t);a|=r.len[1].ModelDecode(e,t)<<8,a|=r.len[2].ModelDecode(e,t)<<16,a|=r.len[3].ModelDecode(e,t)<<24,i.fixed_len>0&&(i.fixed_len=-a)}else a=-i.fixed_len;n.len=a,A.do_rev&&(o[n.rec]=r.rev.ModelDecode(e,t)),n.is_dup=0,2&i.pflags&&r.dup.ModelDecode(e,t)&&(n.is_dup=1),n.p=a,n.delta=0,n.qctx=0,n.prevq=0,n.rec++}function c(e,t,A){for(var r=0,n=0,o=new Array(2*A),i=0;r<A;){for(var a=r;r<A&&t[r]==n;)r++;var s=r-a;do{var g=Math.min(255,s);o[i++]=g,s-=g}while(255==g);n++}var c=-1,f=new Array(2*A),I=0;for(r=0;r<i;){var h=o[r++];if(f[I++]=h,h==c){for(a=r;r<i&&o[r]==c&&r-a<255;)r++;f[I++]=r-a}else c=h}e.WriteData(f,I)}e.exports={decode:function(e,t){return function(e,t){var A=e.ReadUint7(),r=function(e){var t={max_sym:0};if(5==e.ReadByte()){var A=e.ReadByte(),r=1&A?e.ReadByte():1,n=A.nparam>1?A.nparam-1:0,o=new Array(256);if(2&A)n=e.ReadByte(),i(e,o,256);else{for(var a=0;a<r;a++)o[a]=a;for(;a<256;a++)o[a]=r-1}t.do_rev=4&A,t.stab=o,t.max_sel=n,t.params=new Array(t.nparam);for(var g=0;g<r;g++)t.params[g]=s(e),t.max_sym<t.params[g].max_sym&&(t.max_sym=t.params[g].max_sym);return t}console.error("Invalid FQZComp version number")}(e);if(r){var c=r.params,f=new Array(t.length),I=function(e){var t={};t.qual=new Array(65536);for(var A=0;A<65536;A++)t.qual[A]=new n(e.max_sym+1);for(t.len=new Array(4),A=0;A<4;A++)t.len[A]=new n(256);return t.rev=new n(2),t.dup=new n(2),e.max_sel>0&&(t.sel=new n(e.max_sel+1)),t}(r),h=new o(e);h.RangeStartDecode(e);for(var C=new Buffer.allocUnsafe(A),d={qctx:0,prevq:0,delta:0,p:0,s:0,x:0,len:0,is_dup:0,rec:0},l=0;l<A;){if(0==d.p){if(g(e,h,r,I,d,f),d.is_dup>0&&I.dup.ModelDecode(e,h)){for(var u=0;u<len;u++)C[l+u]=C[l+u-d.len];l+=d.len,d.p=0;continue}t.push(d.len);var B=(c=r.params[d.x]).context}var Q=I.qual[B].ModelDecode(e,h);C[l++]=c.qmap[Q],B=a(c,d,Q)}return r.do_rev&&function(e,t,A,r){for(var n=0,o=0;o<t;){if(A[n])for(var i=0,a=r[n]-1;i<a;){var s=e[o+i];e[o+i]=e[o+a],e[o+a]=s,i++,a--}o+=r[n++]}}(C,A,f,t),C}}(new r(e),t)},encode:function(e,t,A){for(var i=new Array(2),a=new Array(2),s=new Array(2),g=new Array(2),f=new Array(256),I=0;I<2;I++)i[I]=new Array(256),a[I]=new Array(256),s[I]=new Array(1024),g[I]=new Array(256);(C=new r("",0,1.1*e.length+100)).WriteUint7(e.length);var h=function(e,t,A,r){for(var n=A[0],o=0;o<A.length&&A[o]==n;o++);var i=o==A.length?1:0,a=0,s=0;for(o=0;o<256;o++)r[0][o]=0;var g=0,c=0;for(o=0;o<e.length;o++)0==c&&(c=t[g<t.length-1?g++:g]),r[0][e[o]]++,c--;for(o=0;o<256;o++)r[0][o]&&(s<o&&(s=o),a++);var f=5,I=0;return a<=16&&(I=1,f=a<=2?1:a<=4?2:a<=8?3:4),[{qbits:8+(f>4),qshift:f,qloc:7,pbits:7,pshift:t[0]>128?1:0,ploc:0,dbits:f>4?0:1,dshift:3,dloc:15,sbits:0,sloc:15,do_stab:0,context:0,max_sym:s,nsym:a,do_qmap:I,do_dedup:0,fixed_len:1==t.length?1:0,do_sel:0,do_rev:0,do_pos:1,do_delta:f<=4?1:0,do_qtab:0,qbits:8+(f>4)-(0==i),sbits:1,sloc:15-(f<=4),do_stab:1,do_sel:1}]}(e,t,A,i),C=function(e,t,A,r,n,o,i){for(var a=[0,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],s=0;s<t.length;s++)i[s]=s;for(;s<256;s++)i[s]=t.length-1;e.WriteByte(5);var g=(t.length>1?1:0)|(t[0].do_stab?2:0);if(e.WriteByte(g),1&g&&e.WriteByte(t.length),2&g){var f=1<<t[0].sbits;f>0&&f--,e.WriteByte(f),c(e,i,256)}for(var I=0;I<t.length;I++){if(e.WriteUint16(t[I].context),e.WriteByte((t[I].do_qtab?128:0)|(t[I].do_delta?64:0)|(t[I].do_pos?32:0)|(t[I].do_qmap?16:0)|(t[I].do_sel?8:0)|(t[I].fixed_len?4:0)|(t[I].do_dedup?2:0)),t[I].do_qmap?e.WriteByte(t[I].nsym):e.WriteByte(t[I].max_sym),e.WriteByte(t[I].qbits<<4|t[I].qshift),e.WriteByte(t[I].qloc<<4|t[I].sloc),e.WriteByte(t[I].ploc<<4|t[I].dloc),t[I].do_qmap){t[I].max_sym=t[I].nsym;var h=0;for(s=0;s<256;s++)A[I][s]&&(e.WriteByte(s),A[I][s]=h++);for(;h<t[I].nsym;h++)e.WriteByte(0)}else for(s=0;s<256;s++)A[I][s]=s;if(t[I].qbits>0){for(s=0;s<256;s++)r[I][s]=s;t[I].do_qtab&&c(e,r[I],256)}if(t[I].pbits>0){for(s=0;s<1024;s++)n[I][s]=Math.min((1<<t[I].pbits)-1,s>>t[I].pshift);c(e,n[I],1024)}if(t[I].dbits>0){for(s=0;s<256;s++)a[s]>(1<<t[I].dbits)-1&&(a[s]=(1<<t[I].dbits)-1);for(s=0;s<256;s++)o[I][s]=a[Math.min(a.length-1,s>>t[I].dshift)];c(e,o[I],256)}}return e}(C,h,i,a,s,g,f);return function(e,t,A,r,i,a,s,g,c,f){var I=1<<i[0].sbits;I>0&&I--;for(var h=t.length,C=0,d=0;d<i.length;d++)C<i[d].max_sym&&(C=i[d].max_sym);for(var l=new Array(65536),u=0;u<65536;u++)l[u]=new n(C+1);var B=new Array(4);for(u=0;u<4;u++)B[u]=new n(256);new n(2),new n(2);for(var Q=new n(I+1),E=new o(t),w=(d=0,u=0,0);u<h;){if(0==d){var m=r[w];i[0].sbits>0&&Q.ModelEncode(e,E,m);var y=f[m],p=A[Math.min(A.length-1,w++)];i[y].fixed_len?i[y].fixed_len>0&&(B[0].ModelEncode(e,E,255&p),B[1].ModelEncode(e,E,p>>8&255),B[2].ModelEncode(e,E,p>>16&255),B[3].ModelEncode(e,E,p>>24&255),i[y].fixed_len=-1):(B[0].ModelEncode(e,E,255&p),B[1].ModelEncode(e,E,p>>8&255),B[2].ModelEncode(e,E,p>>16&255),B[3].ModelEncode(e,E,p>>24&255)),i[y].do_dedup&&process.exit(1),d=p;var v=0,D=i[y].context,S=0,b=0}var N=t[u++],R=a[y][N];l[D].ModelEncode(e,E,R),S=(S<<i[y].qshift)+s[y][R],D=i[y].context,D+=(S&(1<<i[y].qbits)-1)<<i[y].qloc,i[y].pbits>0&&(D+=g[y][Math.min(d,1023)]<<i[y].ploc),i[y].dbits>0&&(D+=c[y][Math.min(v,255)]<<i[y].dloc,v+=b!=R?1:0,b=R),i[y].do_sel&&(D+=m<<i[y].sloc),D&=65535,d--}return E.RangeFinishEncode(e),e.buf.slice(0,e.pos)}(C,e,t,A,h,i,a,s,g,f)}}},25164:(e,t,A)=>{"use strict";var r=A(5960),n=A(57379),o=A(85911),i=A(50786),a=A(57561);e.exports={r4x8_uncompress:function(e,t){r.decode(e).copy(t,0,0)},r4x16_uncompress:function(e,t){n.decode(e).copy(t,0,0)},arith_uncompress:function(e,t){o.decode(e).copy(t,0,0)},fqzcomp_uncompress:function(e,t){var A=new Array;i.decode(e,A).copy(t,0,0)},tok3_uncompress:function(e,t){var A=a.decode(e,0,"\0");Buffer.from(A,"binary").copy(t,0,0)}}},76526:e=>{e.exports=class{constructor(e,t=0,A=0){0!=A?(this.buf=Buffer.allocUnsafe(A),this.length=A):(this.buf=e,this.length=e.length),this.pos=t}EOF(){return this.pos>=this.length}ReadData(e){var t=this.buf.slice(this.pos,this.pos+e);return this.pos+=e,t}ReadByte(){const e=this.buf[this.pos];return this.pos++,e}ReadChar(){const e=this.buf[this.pos];return this.pos++,String.fromCharCode(e)}ReadUint16(){return this.ReadByte()|this.ReadByte()<<8}ReadUint32(){const e=this.buf.readInt32LE(this.pos);return this.pos+=4,e}ReadString(){var e="";do{var t=this.buf[this.pos++];t&&(e+=String.fromCharCode(t))}while(t);return e}ReadUint7(){var e=0;do{var t=this.ReadByte();e=e<<7|127&t}while(128&t);return e}ReadITF8(){var e=this.buf[this.pos];return this.pos++,e>=240?(e=(15&e)<<28,e+=(this.buf[this.pos+0]<<20)+(this.buf[this.pos+1]<<12)+(this.buf[this.pos+2]<<4)+(this.buf[this.pos+3]>>4),this.pos+=4):e>=224?(e=(15&e)<<24,e+=(this.buf[this.pos+0]<<16)+(this.buf[this.pos+1]<<8)+(0|this.buf[this.pos+2]),this.pos+=3):e>=192?(e=(31&e)<<16,e+=(this.buf[this.pos+0]<<8)+(0|this.buf[this.pos+1]),this.pos+=2):e>=128&&(e=(63&e)<<8,e+=this.buf[this.pos],this.pos++),e}WriteByte(e){this.buf[this.pos++]=e}WriteChar(e){this.buf[this.pos++]=e.charCodeAt(0)}WriteString(e){for(var t=0;t<e.length;t++)this.buf[this.pos++]=e.charCodeAt(t);this.buf[this.pos++]=0}WriteData(e,t){for(var A=0;A<t;A++)this.buf[this.pos++]=e[A]}WriteStream(e){this.WriteData(e.buf,e.pos)}WriteUint16(e){this.WriteByte(255&e),this.WriteByte(e>>8&255)}WriteUint32(e){this.buf.writeInt32LE(e,this.pos),this.pos+=4}WriteUint7(e){var t=0,A=e;do{t+=7,A>>=7}while(A>0);do{t-=7,this.WriteByte((e>>t&127)+((t>0)<<7))}while(t>0)}WriteITF8(e){e<0&&(e=1+e),e<=127?this.buf[this.pos++]=e:e<=16383?(this.buf[this.pos++]=128|Math.floor(e/256),this.buf[this.pos++]=255&e):e<131071?(this.buf[this.pos++]=192|Math.floor(e/65536),this.buf[this.pos++]=255&Math.floor(e/256),this.buf[this.pos++]=255&e):e<268435455?(this.buf[this.pos++]=224|Math.floor(e/16777216),this.buf[this.pos++]=255&Math.floor(e/65536),this.buf[this.pos++]=255&Math.floor(e/256),this.buf[this.pos++]=255&e):(this.buf[this.pos++]=240|Math.floor(e/268435456),this.buf[this.pos++]=255&Math.floor(e/1048576),this.buf[this.pos++]=255&Math.floor(e/4096),this.buf[this.pos++]=255&Math.floor(e/4),this.buf[this.pos++]=15&e)}WriteByteNeg(e){this.buf[--this.pos]=e}}},5960:(e,t,A)=>{const r=A(76526);function n(e){return 4095&e}function o(e,t){for(var A=0;t>=e[A+1];)A++;return A}function i(e){for(var t=new Array(4096),A=0,r=0;r<4096;r++){for(;r>=e[A+1];)A++;t[r]=A}return t}function a(e,t,A){return A*(e>>12)+(4095&e)-t}function s(e,t){for(;t<1<<23;)t=(t<<8)+e.ReadByte();return t}function g(e,t){t.WriteByteNeg(e>>24&255),t.WriteByteNeg(e>>16&255),t.WriteByteNeg(e>>8&255),t.WriteByteNeg(255&e)}function c(e,t,A,r,n){return e=function(e,t,A,r){for(var n=(1<<23>>r<<8)*A;e>=n;)t.WriteByteNeg(255&e),e>>=8;return e}(e,t,r,n),(Math.floor(e/r)<<n)+e%r+A}function f(e,t,A){for(var r=0;r<256;r++)t[r]=0;var n=e.ReadByte(),o=n,i=0;do{var a=e.ReadITF8();t[n]=a,i>0?(i--,n++):(n=e.ReadByte())==o+1&&(i=e.ReadByte()),o=n}while(0!=n);for(A[0]=0,r=0;r<=255;r++)A[r+1]=A[r]+t[r]}function I(e){for(var t=0,A=0;A<256;A++)t+=e[A];const r=4096;var n=r/t;do{var o=0,i=0,a=0;for(t=0,A=0;A<256;A++)0!=e[A]&&(o<e[A]&&(o=e[A],i=A),e[A]=Math.floor(e[A]*n),0==e[A]&&(e[A]=1),t+=e[A]);t<r?e[i]+=r-t:t-r<e[i]/2&&e[i]>2?e[i]-=t-r:t!=r&&(n*=.99,a=1)}while(a)}function h(e,t){for(var A=0,r=0;r<256;r++)if(t[r]){if(A>0)A--;else if(e.WriteByte(r),r>0&&t[r-1]>0){for(A=r+1;A<256&&t[A];A++);A-=r+1,e.WriteByte(A)}e.WriteITF8(t[r])}e.WriteByte(0)}e.exports={decode:function(e){var t=new r(e),A=t.ReadByte(),g=(t.ReadUint32(),t.ReadUint32());return 0==A?function(e,t){var A=new Array(256),r=new Array(256);f(e,A,r);for(var o=i(r),g=new Array(4),c=0;c<4;c++)g[c]=e.ReadUint32();var I=new Buffer.allocUnsafe(t);for(c=0;c<t;c++){var h=c%4,C=o[n(g[h])];I[c]=C,g[h]=a(g[h],r[C],A[C]),g[h]=s(e,g[h])}return I}(t,g):function(e,t){var A=new Array(256),r=new Array(256);!function(e,t,A){for(var r=0;r<256;r++){t[r]=new Array(256),A[r]=new Array(256);for(var n=0;n<256;n++)t[r][n]=0}var o=e.ReadByte(),i=o,a=0;do{f(e,t[o],A[o]),a>0?(a--,o++):(o=e.ReadByte())==i+1&&(a=e.ReadByte()),i=o}while(0!=o)}(e,A,r);for(var g=new Array(256),c=0;c<256;c++)g[c]=i(r[c]);for(var I=new Array(4),h=new Array(4),C=0;C<4;C++)I[C]=e.ReadUint32(),h[C]=0;var d=new Buffer.allocUnsafe(t),l=Math.floor(t/4);for(c=0;c<l;c++)for(C=0;C<4;C++){var u=n(I[C]),B=g[h[C]][u];d[c+C*l]=B,I[C]=a(I[C],r[h[C]][B],A[h[C]][B]),I[C]=s(e,I[C]),h[C]=B}for(c*=4;c<t;)u=n(I[3]),B=o(r[h[3]],u),d[c++]=B,I[3]=a(I[3],r[h[3]][B],A[h[3]][B]),I[3]=s(e,I[3]),h[3]=B;return d}(t,g)},encode:function(e,t){return 0==t?function(e){const t=e.length;var A=new r("",0,780);A.WriteByte(0),A.WriteUint32(0),A.WriteUint32(0);var n=new Array(256);(function(e,t){for(var A=0;A<256;A++)t[A]=0;for(A=0;A<e.length;A++)t[e[A]]++})(e,n),I(n),h(A,n);var o=new Array(256);o[0]=0;for(var i=1;i<256;i++)o[i]=o[i-1]+n[i-1];var a=new Array(4);for(i=0;i<4;i++)a[i]=1<<23;var s=Math.floor(1.05*t+100),f=new r("",s,s);for(i=t-1;i>=0;i--)a[i%4]=c(a[i%4],f,o[e[i]],n[e[i]],12);for(i=3;i>=0;i--)g(a[i],f);var C=A.pos;return A.buf.writeInt32LE(C-9+(f.length-f.pos),1),A.buf.writeInt32LE(t,5),Buffer.concat([A.buf.slice(0,A.pos),f.buf.slice(f.pos,f.length)],A.pos+f.length-f.pos)}(e):function(e){const t=e.length;var A=new r("",0,198156);A.WriteByte(1),A.WriteUint32(0),A.WriteUint32(0);for(var n=new Array(256),o=new Array(256),i=new Array(256),a=0;a<256;a++)o[a]=new Array(256),i[a]=new Array(256);for(function(e,t,A){for(var r=0;r<256;r++){A[r]=0;for(var n=0;n<256;n++)t[r][n]=0}var o=0;for(r=0;r<e.length;r++)A[e[r]]++,t[o][e[r]]++,o=e[r];t[0][e[1*(e.length>>2)]]++,t[0][e[2*(e.length>>2)]]++,t[0][e[3*(e.length>>2)]]++,A[0]+=3}(e,o,n),function(e,t){for(var A=0;A<256;A++)t[A]&&I(e[A])}(o,n),function(e,t,A){for(var r=0,n=0;n<256;n++)if(A[n]){if(r>0)r--;else if(e.WriteByte(n),n>0&&A[n-1]>0){for(r=n+1;r<256&&A[r];r++);r-=n+1,e.WriteByte(r)}h(e,t[n])}e.WriteByte(0)}(A,o,n),a=0;a<256;a++)if(n[a]){i[a][0]=0;for(var s=1;s<256;s++)i[a][s]=i[a][s-1]+o[a][s-1]}var f=new Array(4),C=new Array(4);for(s=0;s<4;s++)f[s]=1<<23,C[s]=0;var d=new r("",t,t),l=Math.floor(t/4),u=new Array(4),B=new Array(4);for(s=0;s<4;s++)u[s]=(s+1)*l-2,B[s]=e[u[s]+1];for(B[3]=e[t-1],a=t-2;a>4*l-2;a--)f[3]=c(f[3],d,i[e[a]][B[3]],o[e[a]][B[3]],12),B[3]=e[a];for(;u[0]>=0;)for(s=3;s>=0;s--){var Q=e[u[s]];f[s]=c(f[s],d,i[Q][B[s]],o[Q][B[s]],12),B[s]=Q,u[s]--}for(s=3;s>=0;s--)f[s]=c(f[s],d,i[0][B[s]],o[0][B[s]],12);for(a=3;a>=0;a--)g(f[a],d);var E=A.pos;return A.buf.writeInt32LE(E-9+(d.length-d.pos),1),A.buf.writeInt32LE(t,5),Buffer.concat([A.buf.slice(0,A.pos),d.buf.slice(d.pos,d.length)],A.pos+d.length-d.pos)}(e)}}},57379:(e,t,A)=>{const r=A(76526);function n(e,t){return e&(1<<t)-1}function o(e,t){for(var A=0;t>=e[A+1];)A++;return A}function i(e,t){for(var A=1<<t,r=new Array(A),n=0,o=0;o<A;o++){for(;o>=e[n+1];)n++;r[o]=n}return r}function a(e,t,A,r){return A*(e>>r)+(e&(1<<r)-1)-t}function s(e,t){return t<32768&&(t=(t<<16)+e.ReadUint16()),t}function g(e,t){t.WriteByteNeg(e>>24&255),t.WriteByteNeg(e>>16&255),t.WriteByteNeg(e>>8&255),t.WriteByteNeg(255&e)}function c(e,t,A,r,n){return e=function(e,t,A,r){for(var n=(1<<31-r)*A;e>=n;)t.WriteByteNeg(e>>8&255),t.WriteByteNeg(255&e),e>>=16;return e}(e,t,r,n),(Math.floor(e/r)<<n)+e%r+A}function f(e,t,A){0==A&&(A=4);for(var n=new Array(A),o=new Array(A),i=0;i<A;i++)o[i]=Math.floor(t.length/A)+(t.length%A>i),n[i]=new Array(o[i]);for(var a=0,s=0;s<t.length;s+=A,a++)for(var g=0;g<A;g++)a<n[g].length&&(n[g][a]=t[s+g]);var c=new Array(A),f=0;for(i=0;i<A;i++){var I=h(n[i],0),C=h(n[i],1);c[i]=C.length<I.length?C:I,f+=c[i].length}var d=new r("",0,f+5*A+1);for(d.WriteByte(A),i=0;i<A;i++)d.WriteUint7(c[i].length);for(i=0;i<A;i++)d.WriteData(c[i],c[i].length);return d.buf.slice(0,d.buf.pos)}function I(e,t){var A=e.ReadByte(),g=1&A,c=8&A,f=32&A,h=64&A,l=128&A;if(16&A||(t=e.ReadUint7()),c)return function(e,t){for(var A=e.ReadByte(),r=new Array(A),n=new Array(A),o=0;o<A;o++)r[o]=e.ReadUint7();var i=new Array(A);for(o=0;o<A;o++)n[o]=Math.floor(t/A)+(t%A>o),i[o]=I(e,n[o]);var a=new Buffer.allocUnsafe(t);for(o=0;o<A;o++)for(var s=0;s<n[o];s++)a[s*A+o]=i[o][s];return a}(e,t);if(l)var B=t,[Q,E,t]=function(e){for(var t=e.ReadByte(),A=new Array(t),r=0;r<t;r++)A[r]=e.ReadByte();return[A,t,e.ReadUint7()]}(e);if(h)var w=t,[m,y,t]=function(e){var t=e.ReadUint7(),A=e.ReadUint7();if(1&t)var n=e.ReadData((t-1)/2);else{var o=e.ReadUint7();n=e.ReadData(o),n=d(new r(n),t/2)}n=new r(n);var i=new Array(256),a=n.ReadByte();0==a&&(a=256);for(var s=0;s<a;s++)i[n.ReadByte()]=1;return[i,n,A]}(e);if(f)var p=e.ReadData(t);else p=0==g?d(e,t):function(e,t){var A=(I=e.ReadByte())>>4,g=e;if(1&I){var c=e.ReadUint7(),f=e.ReadUint7(),I=new r(e.ReadData(f));g=new r(d(I,c))}var h=new Array(256),l=new Array(256);!function(e,t,A,r){for(var n=0;n<256;n++){t[n]=new Array(256),A[n]=new Array(256);for(var o=0;o<256;o++)t[n][o]=0}var i=C(e);for(n=0;n<256;n++)if(i[n]){var a=0;for(o=0;o<256;o++)i[o]&&(a>0?a--:(t[n][o]=e.ReadUint7(),0==t[n][o]&&(a=e.ReadByte())));for(u(t[n],r),A[n][0]=0,o=0;o<256;o++)A[n][o+1]=A[n][o]+t[n][o]}}(g,h,l,A);for(var B=new Array(256),Q=0;Q<256;Q++)B[Q]=i(l[Q],A);for(var E=new Array(4),w=new Array(4),m=0;m<4;m++)E[m]=e.ReadUint32(),w[m]=0;var y=new Buffer.allocUnsafe(t),p=Math.floor(t/4);for(Q=0;Q<p;Q++)for(m=0;m<4;m++){var v=n(E[m],A),D=B[w[m]][v];y[Q+m*p]=D,E[m]=a(E[m],l[w[m]][D],h[w[m]][D],A),E[m]=s(e,E[m]),w[m]=D}for(Q*=4;Q<t;)v=n(E[3],A),D=o(l[w[3]],v),y[Q++]=D,E[3]=a(E[3],l[w[3]][D],h[w[3]][D],A),E[3]=s(e,E[3]),w[3]=D;return y}(e,t);return h&&(p=function(e,t,A,n){new r(e);for(var o=new Buffer.allocUnsafe(n),i=0,a=0;i<n;a++){var s=e[a];if(t[s])for(var g=A.ReadUint7(),c=0;c<=g;c++)o[i++]=s;else o[i++]=s}return o}(p,m,y,w)),l&&(p=function(e,t,A,r){var n=new Buffer.allocUnsafe(r),o=0;if(A<=1)for(var i=0;i<r;i++)n[i]=t[0];else if(A<=2)for(i=0;i<r;i++){if(i%8==0)var a=e[o++];n[i]=t[1&a],a>>=1}else if(A<=4)for(i=0;i<r;i++)i%4==0&&(a=e[o++]),n[i]=t[3&a],a>>=2;else if(A<=16)for(i=0;i<r;i++)i%2==0&&(a=e[o++]),n[i]=t[15&a],a>>=4;return n}(p,Q,E,B)),p}function h(e,t){var A=new r("",0,10);A.WriteByte(t);var n=1&t,o=8&t,i=32&t,a=64&t,s=128&t,I=t>>8;if(16&t||A.WriteUint7(e.length),o)return Buffer.concat([A.buf.slice(0,A.pos),f(0,e,I)]);var h=new Buffer.alloc(0);s&&([h,e]=function(e){for(var t=new Array(256),A=0;A<256;A++)t[A]=0;for(A=0;A<e.length;A++)t[e[A]]++;var n=new Array(256),o=0;for(A=0;A<256;A++)t[A]>0&&(n[A]=o++);if(!(o>16)){if(o<=1)var i=new Buffer.allocUnsafe(0);else if(o<=2){i=new Buffer.allocUnsafe(Math.ceil(e.length/8));var a=-1;for(A=0;A<e.length;A++)A%8==0&&(i[++a]=0),i[a]+=n[e[A]]<<A%8}else if(o<=4)for(i=new Buffer.allocUnsafe(Math.ceil(e.length/4)),a=-1,A=0;A<e.length;A++)A%4==0&&(i[++a]=0),i[a]+=n[e[A]]<<A%4*2;else for(i=new Buffer.allocUnsafe(Math.ceil(e.length/2)),a=-1,A=0;A<e.length;A++)A%2==0&&(i[++a]=0),i[a]+=n[e[A]]<<A%2*4;var s=new r("",0,o+5);for(s.WriteByte(o),a=0,A=0;A<256;A++)t[A]>0&&(t[A]=a++,s.WriteByte(A));return s.WriteUint7(i.length),[s.buf.slice(0,s.pos),i]}}(e));var C=new Buffer.alloc(0);if(a&&([C,e]=function(e){for(var t=new Array(256),A=0;A<256;A++)t[A]=0;var n=-1;for(A=0;A<e.length;A++)t[e[A]]+=e[A]==n?1:-1,n=e[A];var o=0;for(A=0;A<256;A++)t[A]>0&&o++;for(o||(o=1,t[0]=1),(g=new r("",0,o+1+e.length)).WriteByte(o),A=0;A<256;A++)t[A]>0&&g.WriteByte(A);var i=new Buffer.allocUnsafe(e.length),a=0;for(A=0;A<e.length;A++)if(i[a++]=e[A],t[e[A]]>0){n=e[A];for(var s=0;A+s+1<e.length&&e[A+s+1]==n;)s++;g.WriteUint7(s),A+=s}var g,c=Q(g.buf.slice(0,g.pos)),f=new r("",0,16);return f.WriteUint7(2*g.pos),f.WriteUint7(a),f.WriteUint7(c.length),[g=Buffer.concat([f.buf.slice(0,f.pos),c]),i.slice(0,a)]}(e)),e.length<4&&1==n&&(n=0,A.buf[0]&=-2),i)var d=e;else d=0==n?Q(e):function(e){const t=e.length;for(var A=new r("",0,198156),n=new Array(256),o=new Array(256),i=new Array(256),a=0;a<256;a++)o[a]=new Array(256),i[a]=new Array(256);var s=12;(function(e,t,A){for(var r=0;r<256;r++){A[r]=0;for(var n=0;n<256;n++)t[r][n]=0}var o=0;for(r=0;r<e.length;r++)A[o]++,t[o][e[r]]++,o=e[r];A[o]++,t[0][e[1*(e.length>>2)]]++,t[0][e[2*(e.length>>2)]]++,t[0][e[3*(e.length>>2)]]++,A[0]+=3})(e,o,n),function(e,t){for(var A=0;A<256;A++)if(t[A]){var r=Math.ceil(Math.log2(t[A]));r>12&&(r=12),l(e[A],r)}}(o,n);var f=new r("",0,198156);!function(e,t,A){B(e,A);for(var r=0;r<256;r++)if(A[r])for(var n=0,o=0;o<256;o++)if(A[o])if(n)n--;else if(e.WriteUint7(t[r][o]),!t[r][o]){for(var i=o+1;i<256;i++)if(A[i]){if(0!=t[r][i])break;n++}e.WriteByte(n)}}(f,o,n);var I=Q(f.buf.slice(0,f.pos));for(I.length<f.pos?(A.WriteByte(193),A.WriteUint7(f.pos),A.WriteUint7(I.length),A.WriteData(I,I.length)):(A.WriteByte(192),A.WriteData(f.buf,f.pos)),function(e,t){for(var A=0;A<256;A++)t[A]&&u(e[A],12)}(o,n),a=0;a<256;a++)if(n[a]){i[a][0]=0;for(var h=1;h<256;h++)i[a][h]=i[a][h-1]+o[a][h-1]}var C=new Array(4),d=new Array(4);for(h=0;h<4;h++)C[h]=32768,d[h]=0;var E=new r("",1.05*t+100|0,1.05*t+100|0),w=Math.floor(t/4),m=new Array(4),y=new Array(4);for(h=0;h<4;h++)m[h]=(h+1)*w-2,y[h]=e[m[h]+1];for(y[3]=e[t-1],a=t-2;a>4*w-2;a--)C[3]=c(C[3],E,i[e[a]][y[3]],o[e[a]][y[3]],s),y[3]=e[a];for(;m[0]>=0;)for(h=3;h>=0;h--){var p=e[m[h]];C[h]=c(C[h],E,i[p][y[h]],o[p][y[h]],s),y[h]=p,m[h]--}for(h=3;h>=0;h--)C[h]=c(C[h],E,i[0][y[h]],o[0][y[h]],s);for(a=3;a>=0;a--)g(C[a],E);return Buffer.concat([A.buf.slice(0,A.pos),E.buf.slice(E.pos,E.length)],A.pos+E.length-E.pos)}(e);return Buffer.concat([A.buf.slice(0,A.pos),h,C,d])}function C(e){for(var t=new Array(256),A=0;A<256;A++)t[A]=0;var r=0,n=e.ReadByte(),o=n;do{t[n]=1,r>0?(r--,n++):(n=e.ReadByte())==o+1&&(r=e.ReadByte()),o=n}while(0!=n);return t}function d(e,t){var A=new Array(256),r=new Array(256);!function(e,t,A){for(var r=0;r<256;r++)t[r]=0;var n=C(e);for(r=0;r<256;r++)n[r]>0&&(t[r]=e.ReadUint7());for(u(t,12),A[0]=0,r=0;r<=255;r++)A[r+1]=A[r]+t[r]}(e,A,r);for(var o=i(r,12),g=new Array(4),c=0;c<4;c++)g[c]=e.ReadUint32();var f=new Buffer.allocUnsafe(t);for(c=0;c<t;c++){var I=c%4,h=o[n(g[I],12)];f[c]=h,g[I]=a(g[I],r[h],A[h],12),g[I]=s(e,g[I])}return f}function l(e,t){for(var A=0,r=0;r<256;r++)A+=e[r];const n=1<<t;var o=n/A;do{var i=0,a=0,s=0;for(A=0,r=0;r<256;r++)0!=e[r]&&(i<e[r]&&(i=e[r],a=r),e[r]=Math.floor(e[r]*o),0==e[r]&&(e[r]=1),A+=e[r]);A<n?e[a]+=n-A:A-n<e[a]/2&&e[a]>2?e[a]-=A-n:A!=n&&(o=n/A,s=1)}while(s)}function u(e,t){for(var A=0,r=0;r<256;r++)A+=e[r];if(0!=A&&A!=1<<t){for(var n=0;A<1<<t;)A*=2,n++;for(r=0;r<256;r++)e[r]<<=n}}function B(e,t){for(var A=0,r=0;r<256;r++)if(t[r])if(A>0)A--;else if(e.WriteByte(r),r>0&&t[r-1]>0){for(A=r+1;A<256&&t[A];A++);A-=r+1,e.WriteByte(A)}e.WriteByte(0)}function Q(e){const t=e.length;var A=new r("",0,780),n=new Array(256);!function(e,t){for(var A=0;A<256;A++)t[A]=0;for(A=0;A<e.length;A++)t[e[A]]++}(e,n);var o=Math.ceil(Math.log2(t));o>12&&(o=12),l(n,o),function(e,t){B(e,t);for(var A=0;A<256;A++)t[A]&&e.WriteUint7(t[A])}(A,n),l(n,12);var i=new Array(256);i[0]=0;for(var a=1;a<256;a++)i[a]=i[a-1]+n[a-1];var s=new Array(4);for(a=0;a<4;a++)s[a]=32768;var f=new r("",1.05*t+100|0,1.05*t+100|0);for(a=t-1;a>=0;a--)s[a%4]=c(s[a%4],f,i[e[a]],n[e[a]],12);for(a=3;a>=0;a--)g(s[a],f);return Buffer.concat([A.buf.slice(0,A.pos),f.buf.slice(f.pos,f.length)],A.pos+f.length-f.pos)}e.exports={decode:function(e){return I(new r(e),0)},encode:h}},57561:(e,t,A)=>{const r=A(76526),n=A(57379);var o=new(A(85911));function i(e,t){for(var A=e+"";A.length<t;)A="0"+A;return A}function a(e,t,A,r){var n=e[0][0].ReadByte(),o=r-e[0][n].ReadUint32();if(5==n)return t[r]=t[o],A[r]=A[o],t[r];var a=1;t[r]="",A[r]=new Array(256);do{switch(n=e[a][0].ReadByte()){case 2:A[r][a]=e[a][2].ReadChar();break;case 1:A[r][a]=e[a][1].ReadString();break;case 7:A[r][a]=e[a][7].ReadUint32();break;case 3:var s=e[a][3].ReadUint32(),g=e[a][4].ReadByte();A[r][a]=i(s,g);break;case 8:A[r][a]=(0|A[o][a])+e[a][8].ReadByte();break;case 9:s=(0|A[o][a])+e[a][9].ReadByte(),g=A[o][a].length,A[r][a]=i(s,g);break;case 10:A[r][a]=A[o][a];break;default:A[r][a]=""}t[r]+=A[r][a++]}while(12!=n);return t[r]}function s(e,t,A,r,n,o){for(var i=0;i<r.length;i++)if(!(A>0&&5==t[i][0].type)&&t[i][A])switch(e[0].WriteByte(t[i][A].type),t[i][A].type){case 6:e[6].WriteUint32(t[i][A].val);break;case 5:e[5].WriteUint32(t[i][A].val);break;case 1:e[1].WriteString(t[i][A].val);break;case 2:e[2].WriteChar(t[i][A].val);break;case 7:e[7].WriteUint32(t[i][A].val);break;case 3:e[3].WriteUint32(t[i][A].val),e[4].WriteByte(t[i][A].val.length);break;case 8:case 9:e[t[i][A].type].WriteByte(t[i][A].val)}}function g(e,t,A,r){for(var n=0;n<=12;n++)if(!(e[n].pos<=0)){r.WriteByte(n+(0==n?128:0)),e[n]=e[n].buf.slice(0,e[n].pos);var o=c(e[n],A);r.WriteUint7(o.length),r.WriteData(o,o.length)}}function c(e,t){var A,r=1<<30,i=[0,1,64,65,128,129,201];for(var a in i){var s=i[a];if(!(1&s&&e.length<100||8&s&&e.length%4!=0)){try{var g=t?o.encode(e,s):n.encode(e,s)}catch(e){g=0}g&&r>g.length&&(r=g.length,A=g)}}return A}function f(e,t,A,r,n){var o=0,i=n-1;e[n]=new Array(256),t[r]?e[n][0]={type:5,val:n-t[r]}:e[n][0]={type:6,val:0==n?0:1},t[r]=n;for(var a=r.match(/([a-zA-Z0-9]{1,9})|([^a-zA-Z0-9]+)/g),s=0;s<a.length;s++){var g=s+1,c=1,f=a[s];if(a[s].match(/^0+[0-9]*$/g)?c=3:a[s].match(/^[0-9]+$/g)?c=7:1==a[s].length&&(c=2),i>=0&&e[i][g])if(e[i][g].str==a[s])c=10,f="";else if(7==e[i][g].type||8==e[i][g].type){var I=f-e[i][g].str;A[g]++,I>=0&&I<256&&A[g]>n/2&&(c=8,f=I)}else 3!=e[i][g].type&&9!=e[i][g].type||e[i][g].str.length!=f.length||(I=f-e[i][g].str,A[g]++,I>=0&&I<256&&A[g]>n/2&&(c=9,f=I));e[n][g]={str:a[s],val:f,type:c},o<e[n][g].val.length+3&&(o=e[n][g].val.length+3)}return e[n][++g]={type:12},[g+1,o]}e.exports={encode:function(e,t){var A=e.toString();"\n"==A[A.length-1]&&(A=A.substring(0,A.length-1));var n=A.split("\n"),o=new r("",0,2*A.length+1e4);o.WriteUint32(A.length),o.WriteUint32(n.length),o.WriteByte(t);for(var i=new Array(n.length),a={},c=new Array(256).fill(0),I=0,h=0,C=0;C<n.length;C++){var[d,l]=f(i,a,c,n[C],C);I<d&&(I=d),h<l&&(h=l)}for(var u=0;u<I;u++){for(var B=new Array(13),Q=0;Q<=12;Q++)B[Q]=new r("",0,n.length*h);s(B,i,u,n),g(B,0,t,o)}return o.buf.slice(0,o.pos)},decode:function(e,t,A){(e=new r(e)).ReadUint32();var i=e.ReadUint32(),s=e.ReadByte(),g=function(e,t,A,i){for(var a=-1,s=new Array(256);!e.EOF();){var g=e.ReadByte(),c=128&g,f=64&g,I=63&g;if(c&&(s[++a]=new Array(13)),0!=I&&c){var h=new Array(i-1).fill(10);s[a][0]=new r(Buffer.from([I].concat(h)))}if(f){var C=e.ReadByte(),d=e.ReadByte();s[a][I]=new r(s[C][d].buf)}else{var l=e.ReadUint7(),u=e.ReadData(l);s[a][I]=A?o.decode(u):n.decode(u),s[a][I]=new r(s[a][I])}}return s}(e,0,s,i),c=new Array(i),f=new Array(i),I="";void 0===A&&(A="\n");for(var h=0;h<i;h++)I+=a(g,c,f,h)+A;return I}}},22823:e=>{var t={array:function(e){var t=0,A=0,r=[0,1,3,7,15,31,63,127,255];return function(n){for(var o=0;n>0;){var i=8-t;n>=i?(o<<=i,o|=r[i]&e[A++],t=0,n-=i):(o<<=n,o|=(e[A]&r[n]<<8-n-t)>>8-n-t,t+=n,n=0)}return o}},simple:function(e){var A,r,n=t.header(e),o=[],i=0;do{-1!=(r=t.decompress(e,n))&&(o.push(r),i+=r.byteLength)}while(-1!=r);A=new Uint8Array(i),i=0;for(var a=0;a<o.length;++a)r=o[a],A.set(r,i),i+=r.byteLength;return A},header:function(e){if(4348520!=e(24))throw"No magic number found";var t=e(8)-48;if(t<1||t>9)throw"Not a BZIP archive";return t},decompress:function(e,t,A){for(var r=9e5,n="",o=0;o<6;o++)n+=e(8).toString(16);if("177245385090"==n)return-1;if("314159265359"!=n)throw"eek not valid bzip data";if(e(32),e(1))throw"unsupported obsolete version";var i=e(24);if(i>r)throw"Initial position larger than buffer size";var a=e(16),s=new Uint8Array(256),g=0;for(o=0;o<16;o++)if(a&1<<15-o){var c=e(16);for(d=0;d<16;d++)c&1<<15-d&&(s[g++]=16*o+d)}var f=e(3);if(f<2||f>6)throw"another error";var I=e(15);if(0==I)throw"meh";var h=[];for(o=0;o<f;o++)h[o]=o;var C=new Uint8Array(32768);for(o=0;o<I;o++){for(var d=0;e(1);d++)if(d>=f)throw"whoops another error";var l=h[d];h.splice(d,1),h.splice(0,0,l),C[o]=l}var u=g+2,B=[];for(d=0;d<f;d++){var Q,E,w,m=new Uint8Array(258),y=new Uint8Array(21);for(a=e(5),o=0;o<u;o++){for(;;){if(a<1||a>20)throw"I gave up a while ago on writing error messages";if(!e(1))break;e(1)?a--:a++}m[o]=a}for(Q=E=m[0],o=1;o<u;o++)m[o]>E?E=m[o]:m[o]<Q&&(Q=m[o]);(w=B[d]={}).permute=new Uint32Array(258),w.limit=new Uint32Array(21),w.base=new Uint32Array(21),w.minLen=Q,w.maxLen=E;var p=w.base.subarray(1),v=w.limit.subarray(1),D=0;for(o=Q;o<=E;o++)for(a=0;a<u;a++)m[a]==o&&(w.permute[D++]=a);for(o=Q;o<=E;o++)y[o]=v[o]=0;for(o=0;o<u;o++)y[m[o]]++;for(D=a=0,o=Q;o<E;o++)D+=y[o],v[o]=D-1,D<<=1,p[o+1]=D-(a+=y[o]);v[E]=D+y[E]-1,p[Q]=0}var S,b,N,R=new Uint32Array(256);for(o=0;o<256;o++)h[o]=o;S=b=u=N=0;for(var k=new Uint32Array(r);;){if(!u--){if(u=49,N>=I)throw"meow i'm a kitty, that's an error";p=(w=B[C[N++]]).base.subarray(1),v=w.limit.subarray(1)}for(d=e(o=w.minLen);;){if(o>w.maxLen)throw"rawr i'm a dinosaur";if(d<=v[o])break;o++,d=d<<1|e(1)}if((d-=p[o])<0||d>=258)throw"moo i'm a cow";var q=w.permute[d];if(0!=q&&1!=q){if(S){if(S=0,b+a>=r)throw"Boom.";for(R[l=s[h[0]]]+=a;a--;)k[b++]=l}if(q>g)break;if(b>=r)throw"I can't think of anything. Error";l=h[o=q-1],h.splice(o,1),h.splice(0,0,l),R[l=s[l]]++,k[b++]=l}else S||(S=1,a=0),a+=0==q?S:2*S,S<<=1}if(i<0||i>=b)throw"I'm a monkey and I'm throwing something at someone, namely you";for(d=0,o=0;o<256;o++)c=d+R[o],R[o]=d,d=c;for(o=0;o<b;o++)k[R[l=255&k[o]]]|=o<<8,R[l]++;var F=0,L=0,M=0;b&&(L=255&(F=k[i]),F>>=8,M=-1);var U,_,x,J=new Uint8Array(r),H=0;for(A||(A=1/0);b;){for(b--,_=L,L=255&(F=k[F]),F>>=8,3==M++?(U=L,x=_,L=-1):(U=1,x=L);U--;)if(J[H++]=x,! --A)return J;L!=_&&(M=0)}return J.subarray(0,H)}};e.exports=t},14579:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],A=0;A<e.length;A++)t.push(255&e.charCodeAt(A));return t},bytesToString:function(e){for(var t=[],A=0;A<e.length;A++)t.push(String.fromCharCode(e[A]));return t.join("")}}};e.exports=t},93647:e=>{var t,A;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&A.rotl(e,8)|4278255360&A.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=A.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],A=0,r=0;A<e.length;A++,r+=8)t[r>>>5]|=e[A]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],A=0;A<32*e.length;A+=8)t.push(e[A>>>5]>>>24-A%32&255);return t},bytesToHex:function(e){for(var t=[],A=0;A<e.length;A++)t.push((e[A]>>>4).toString(16)),t.push((15&e[A]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],A=0;A<e.length;A+=2)t.push(parseInt(e.substr(A,2),16));return t},bytesToBase64:function(e){for(var A=[],r=0;r<e.length;r+=3)for(var n=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?A.push(t.charAt(n>>>6*(3-o)&63)):A.push("=");return A.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var A=[],r=0,n=0;r<e.length;n=++r%4)0!=n&&A.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*n+8)-1)<<2*n|t.indexOf(e.charAt(r))>>>6-2*n);return A}},e.exports=A},80962:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},12363:(e,t,A)=>{var r,n,o,i,a;r=A(93647),n=A(14579).utf8,o=A(80962),i=A(14579).bin,(a=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?i.stringToBytes(e):n.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var A=r.bytesToWords(e),s=8*e.length,g=1732584193,c=-271733879,f=-1732584194,I=271733878,h=0;h<A.length;h++)A[h]=16711935&(A[h]<<8|A[h]>>>24)|4278255360&(A[h]<<24|A[h]>>>8);A[s>>>5]|=128<<s%32,A[14+(s+64>>>9<<4)]=s;var C=a._ff,d=a._gg,l=a._hh,u=a._ii;for(h=0;h<A.length;h+=16){var B=g,Q=c,E=f,w=I;g=C(g,c,f,I,A[h+0],7,-680876936),I=C(I,g,c,f,A[h+1],12,-389564586),f=C(f,I,g,c,A[h+2],17,606105819),c=C(c,f,I,g,A[h+3],22,-1044525330),g=C(g,c,f,I,A[h+4],7,-176418897),I=C(I,g,c,f,A[h+5],12,1200080426),f=C(f,I,g,c,A[h+6],17,-1473231341),c=C(c,f,I,g,A[h+7],22,-45705983),g=C(g,c,f,I,A[h+8],7,1770035416),I=C(I,g,c,f,A[h+9],12,-1958414417),f=C(f,I,g,c,A[h+10],17,-42063),c=C(c,f,I,g,A[h+11],22,-1990404162),g=C(g,c,f,I,A[h+12],7,1804603682),I=C(I,g,c,f,A[h+13],12,-40341101),f=C(f,I,g,c,A[h+14],17,-1502002290),g=d(g,c=C(c,f,I,g,A[h+15],22,1236535329),f,I,A[h+1],5,-165796510),I=d(I,g,c,f,A[h+6],9,-1069501632),f=d(f,I,g,c,A[h+11],14,643717713),c=d(c,f,I,g,A[h+0],20,-373897302),g=d(g,c,f,I,A[h+5],5,-701558691),I=d(I,g,c,f,A[h+10],9,38016083),f=d(f,I,g,c,A[h+15],14,-660478335),c=d(c,f,I,g,A[h+4],20,-405537848),g=d(g,c,f,I,A[h+9],5,568446438),I=d(I,g,c,f,A[h+14],9,-1019803690),f=d(f,I,g,c,A[h+3],14,-187363961),c=d(c,f,I,g,A[h+8],20,1163531501),g=d(g,c,f,I,A[h+13],5,-1444681467),I=d(I,g,c,f,A[h+2],9,-51403784),f=d(f,I,g,c,A[h+7],14,1735328473),g=l(g,c=d(c,f,I,g,A[h+12],20,-1926607734),f,I,A[h+5],4,-378558),I=l(I,g,c,f,A[h+8],11,-2022574463),f=l(f,I,g,c,A[h+11],16,1839030562),c=l(c,f,I,g,A[h+14],23,-35309556),g=l(g,c,f,I,A[h+1],4,-1530992060),I=l(I,g,c,f,A[h+4],11,1272893353),f=l(f,I,g,c,A[h+7],16,-155497632),c=l(c,f,I,g,A[h+10],23,-1094730640),g=l(g,c,f,I,A[h+13],4,681279174),I=l(I,g,c,f,A[h+0],11,-358537222),f=l(f,I,g,c,A[h+3],16,-722521979),c=l(c,f,I,g,A[h+6],23,76029189),g=l(g,c,f,I,A[h+9],4,-640364487),I=l(I,g,c,f,A[h+12],11,-421815835),f=l(f,I,g,c,A[h+15],16,530742520),g=u(g,c=l(c,f,I,g,A[h+2],23,-995338651),f,I,A[h+0],6,-198630844),I=u(I,g,c,f,A[h+7],10,1126891415),f=u(f,I,g,c,A[h+14],15,-1416354905),c=u(c,f,I,g,A[h+5],21,-57434055),g=u(g,c,f,I,A[h+12],6,1700485571),I=u(I,g,c,f,A[h+3],10,-1894986606),f=u(f,I,g,c,A[h+10],15,-1051523),c=u(c,f,I,g,A[h+1],21,-2054922799),g=u(g,c,f,I,A[h+8],6,1873313359),I=u(I,g,c,f,A[h+15],10,-30611744),f=u(f,I,g,c,A[h+6],15,-1560198380),c=u(c,f,I,g,A[h+13],21,1309151649),g=u(g,c,f,I,A[h+4],6,-145523070),I=u(I,g,c,f,A[h+11],10,-1120210379),f=u(f,I,g,c,A[h+2],15,718787259),c=u(c,f,I,g,A[h+9],21,-343485551),g=g+B>>>0,c=c+Q>>>0,f=f+E>>>0,I=I+w>>>0}return r.endian([g,c,f,I])})._ff=function(e,t,A,r,n,o,i){var a=e+(t&A|~t&r)+(n>>>0)+i;return(a<<o|a>>>32-o)+t},a._gg=function(e,t,A,r,n,o,i){var a=e+(t&r|A&~r)+(n>>>0)+i;return(a<<o|a>>>32-o)+t},a._hh=function(e,t,A,r,n,o,i){var a=e+(t^A^r)+(n>>>0)+i;return(a<<o|a>>>32-o)+t},a._ii=function(e,t,A,r,n,o,i){var a=e+(A^(t|~r))+(n>>>0)+i;return(a<<o|a>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var A=r.wordsToBytes(a(e,t));return t&&t.asBytes?A:t&&t.asString?i.bytesToString(A):r.bytesToHex(A)}},41967:function(e,t,A){var r;r=e=>(()=>{"use strict";var t=[,e=>{e.exports="data:application/wasm;base64,AGFzbQEAAAABOApgAX8Bf2ABfwBgAABgA39/fwF/YAABf2ACf38AYAN/f34BfmACf38Bf2AEf39/fwF/YAN/f38AAyEgAAABAgMDAwMEAQUAAgMCBgcIBwUDAAMHAQcABwcBAwkFAwEAAgYIAX8BQfCgBAsHTgUGbWVtb3J5AgAOY3JlYXRlX2NvbnRleHQACA9kZXN0cm95X2NvbnRleHQACQxzdXBwbHlfaW5wdXQACg9nZXRfbmV4dF9vdXRwdXQACwqNYCDfAgEFf0EAIQECQCAAQQdqIgJBEEkNAEEBIQEgAkEDdiIDQQJGDQBBAiEBIAJBIEkNAEEDIQEgA0EERg0AQQQhASACQTBJDQBBBSEBIANBBkYNAEEGIQEgAkHIAEkNAEEHIQEgAkHYAEkNAEEIIQEgAkGIAUkNAEEJIQEgAkGIAkkNACAAEIGAgIAAIgBBCGpBACAAGw8LAkACQCABQQJ0QcCIgIAAaiIEKAIAIgANAEEAIQACQAJAQQAoAuSIgIAAIgJFDQBBACACKAIANgLkiICAAAwBC0EAEIGAgIAAIgJFDQILIAJBgIB8cSIAIAJBCHZB/wFxIgJyIAE6AAAgAkEIdCAAckGAAmohAEEAIQJBACABQQJ0QYCIgIAAaigCACIDayEFIAMhAQNAIAAgBWoiACACNgIAIAAhAiABIANqIgFBgQJJDQALIAQgADYCAAsgBCAAKAIANgIACyAAC+4HAQd/AkACQAJAAkACQEEALQC0iICAAEUNAEEAQQA6ALSIgIAAQQAoArCIgIAAIgFFDQFBsIiAgAAhAgNAAkACQCABQQhqIgMgASgCBCIEaiIFQQh2Qf8BcSIGDQAgASECDAELAkADQCAFQYCAfHEgBmotAABB/gFHDQFBsIiAgAAhBgNAIAYiBygCACIGIAVHDQALIAcgBSgCADYCACABIAQgBS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gAALVAEDf0EAIQADQEEIIQEgACECA0BBACACQQFxa0GghuLtfnEgAkEBdnMhAiABQX9qIgENAAsgAEECdEHwiICAAGogAjYCACAAQQFqIgBBgAJHDQALC0oAIAJBf3MhAgJAIAFFDQADQCACQf8BcSAALQAAc0ECdEHwiICAAGooAgAgAkEIdnMhAiAAQQFqIQAgAUF/aiIBDQALCyACQX9zC10DAX4BfwF+QgAhAANAQQghASAAIQIDQEIAIAJCAYN9QsKenLzd8pW2SYMgAkIBiIUhAiABQX9qIgENAAsgAKdBA3RB8JCAgABqIAI3AwAgAEIBfCIAQoACUg0ACwtLACACQn+FIQICQCABRQ0AA0AgAkL/AYMgADEAAIWnQQN0QfCQgIAAaikDACACQgiIhSECIABBAWohACABQX9qIgENAAsLIAJCf4UL1RACDH8CfgJAAkAgACgCJEUNACAAKAIAIQIMAQtBACECIABBADoAKCAAQgA3AwAgAEIANwMYIABByABqQQBB5AAQhoCAgAAaIABBrAFqQQw2AgALIAAgASgCBCIDNgIQIABBsAFqIQQgAEHgAGohBSAAQcgAaiEGIABBtgFqIQcgAEGoAWohCCABKAIQIQkCQAJAAkACQANAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIOCgECAAQFBgcICQoPCyABKAIAIQogACgCqAEhAiAAKAKsASELIAEoAgQhDCABKAIIIQ0MAgsgCCAAKAKoASIMakEIaiABKAIAIAEoAgQiAmogASgCCCACayICIAAoAqwBIAxrIgwgAiAMSRsiAhCHgICAABogASABKAIEIAJqNgIEQQAhDCAAQQAgACgCqAEgAmoiAiACIAAoAqwBIgtGGzYCqAEgAiALRw0RIABBATYCAAJAIARBqIiAgABBBhCEgICAAEUNAEEFIQwMEgsgB0ECQQAQjYCAgAAgACgAuAFHDRBBBiEMIActAAANESAAIAAtALcBIgI2AiAgAkEESw0RQQEgAnRBE3FFDRELIAEoAgQiDCABKAIIIg1GDQ4CQCABKAIAIgogDGotAAAiCw0AIAAgDDYCECABIAxBAWo2AgRBBiECDAwLQQA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YCACAKQYAQIAprQQV2aiEKDAELIAAgDiADayIONgIEIAAgCyADayIDNgIAIAogCkEFdmshCkEAIQ0LIA8gCjsBACANIBFzIQ0gBEEBdCASciIEQYACSQ0ACwsgACACQQFqNgIgIAAoAhggAmogBDoAAAJAIAAoAiQgACgCICICTw0AIAAgAjYCJAtBACEDAkAgACgCZCIEQQRJDQACQCAEQQlLDQAgBEF9aiEDDAELIARBemohAwsgACADNgJkDAELIAAgDiADayIONgIEIAAgBCADayIDNgIAIA0gDyAPQQV2azsBACAAIApBAXRqIg9B+ANqIQQCQAJAIANB////B00NACAJIQoMAQsgACADQQh0IgM2AgAgACAJQQFqIgo2AhAgACAOQQh0IAAoAgwgCWotAAByIg42AgQLAkACQCAOIANBC3YgBC8BACINbCIJSQ0AIAAgDiAJayIONgIEIAAgAyAJayIDNgIAIAQgDSANQQV2azsBACAPQZAEaiENAkACQCADQf///wdNDQAgCiEQDAELIAAgA0EIdCIDNgIAIAAgCkEBaiIQNgIQIAAgDkEIdCAAKAIMIApqLQAAciIONgIECwJAAkAgDiADQQt2IA0vAQAiCWwiBE8NACANIAlBgBAgCWtBBXZqOwEAIAxB2ARqIQMCQCAEQf///wdLDQAgACAEQQh0IgQ2AgAgACAQQQFqNgIQIAAgDkEIdCAAKAIMIBBqLQAAciIONgIECwJAIA4gBEELdiADLwEAIg1sIglJDQAgACAOIAlrNgIEIAAgBCAJazYCACADIA0gDUEFdms7AQAMAgsgAyANQYAQIA1rQQV2ajsBACAAIAk2AgAgAEEBNgJoIABBCUELIAAoAmRBB0kbNgJkDAMLIAAgDiAEayIONgIEIA0gCSAJQQV2azsBACAPQagEaiENAkACQCADIARrIgNB////B00NACAQIQoMAQsgACADQQh0IgM2AgAgACAQQQFqIgo2AhAgACAOQQh0IAAoAgwgEGotAAByIg42AgQLAkACQCAOIANBC3YgDS8BACIEbCIJTw0AIAAgCTYCACANIARBgBAgBGtBBXZqOwEAIAAoAlghAwwBCyAAIA4gCWsiDjYCBCANIAQgB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IFNgIAIAMgBiAGQQV2azsBACABQQFyIQEMAQsgACAFNgIAIAMgBkGAECAGa0EFdmo7AQALIAEgCEkNAAsgAEHoAGogASAIayAJajYCAAsLNQEAQYAICy4IAAAAEAAAABgAAAAgAAAAKAAAADAAAABAAAAAUAAAAIAAAAAAAQAA/Td6WFoA"},t=>{t.exports=e}],A={};function r(e){var n=A[e];if(void 0!==n)return n.exports;var o=A[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.d=(e,t)=>{for(var A in t)r.o(t,A)&&!r.o(e,A)&&Object.defineProperty(e,A,{enumerable:!0,get:t[A]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{XzReadableStream:()=>o});var e=r(1);const t=globalThis.ReadableStream||r(2).ReadableStream;class A{constructor(e){this.exports=e.exports,this.memory=this.exports.memory,this.ptr=this.exports.create_context(),this._refresh(),this.bufSize=this.mem32[0],this.inStart=this.mem32[1]-this.ptr,this.inEnd=this.inStart+this.bufSize,this.outStart=this.mem32[4]-this.ptr}supplyInput(e){this._refresh(),this.mem8.subarray(this.inStart,this.inEnd).set(e,0),this.exports.supply_input(this.ptr,e.byteLength),this._refresh()}getNextOutput(){const e=this.exports.get_next_output(this.ptr);if(this._refresh(),0!==e&&1!==e)throw new Error(`get_next_output failed with error code ${e}`);return{outChunk:this.mem8.slice(this.outStart,this.outStart+this.mem32[5]),finished:1===e}}needsMoreInput(){return this.mem32[2]===this.mem32[3]}outputBufferIsFull(){return this.mem32[5]===this.bufSize}resetOutputBuffer(){this.outPos=this.mem32[5]=0}dispose(){this.exports.destroy_context(this.ptr),this.exports=null}_refresh(){this.memory.buffer!==this.mem8?.buffer&&(this.mem8=new Uint8Array(this.memory.buffer,this.ptr),this.mem32=new Uint32Array(this.memory.buffer,this.ptr))}}class o extends t{static _moduleInstancePromise;static _moduleInstance;static async _getModuleInstance(){const t=e.replace("data:application/wasm;base64,",""),A=Uint8Array.from(atob(t),(e=>e.charCodeAt(0))).buffer,r=await WebAssembly.instantiate(A,{});o._moduleInstance=r.instance}constructor(e){let t,r=null;const n=e.getReader();super({async start(e){o._moduleInstance||await(o._moduleInstancePromise||(o._moduleInstancePromise=o._getModuleInstance())),t=new A(o._moduleInstance)},async pull(e){if(t.needsMoreInput()){if(null===r||0===r.byteLength){const{done:e,value:t}=await n.read();e||(r=t)}const e=Math.min(t.bufSize,r.byteLength);t.supplyInput(r.subarray(0,e)),r=r.subarray(e)}const A=t.getNextOutput();e.enqueue(A.outChunk),t.resetOutputBuffer(),A.finished&&(t.dispose(),e.close())},cancel:()=>(t.dispose(),n.cancel())})}}})(),n})(),e.exports=r(A(81239))},91454:(e,t,A)=>{"use strict";A.d(t,{A:()=>i});let r=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];"undefined"!=typeof Int32Array&&(r=new Int32Array(r));var n=A(35451);const o=(e,t)=>n.hp.from(e,t),i=function(e,t){const A=(e,A)=>t(o(e),A)>>>0;return A.signed=(e,A)=>t(o(e),A),A.unsigned=A,A.model="crc-32",A}(0,((e,t)=>{let A=0===t?0:~t;for(let t=0;t<e.length;t++)A=r[255&(A^e[t])]^A>>>8;return~A}))}}]);
//# sourceMappingURL=5099.14f82444.chunk.js.map