@duckdb/duckdb-wasm 1.13.1-dev161.0 → 1.13.1-dev166.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/duckdb-browser-blocking.cjs +2 -2
- package/dist/duckdb-browser-blocking.cjs.map +1 -1
- package/dist/duckdb-browser-blocking.mjs +2 -2
- package/dist/duckdb-browser-blocking.mjs.map +1 -1
- package/dist/duckdb-browser-coi.pthread.worker.js +1 -1
- package/dist/duckdb-browser-coi.pthread.worker.js.map +2 -2
- package/dist/duckdb-browser-coi.worker.js +1 -1
- package/dist/duckdb-browser-coi.worker.js.map +2 -2
- package/dist/duckdb-browser-mvp.worker.js +1 -1
- package/dist/duckdb-browser-mvp.worker.js.map +1 -1
- package/dist/duckdb-browser.cjs +1 -1
- package/dist/duckdb-browser.mjs +1 -1
- package/dist/duckdb-coi.wasm +0 -0
- package/dist/duckdb-eh.wasm +0 -0
- package/dist/duckdb-mvp.wasm +0 -0
- package/dist/duckdb-node-blocking.cjs +2 -2
- package/dist/duckdb-node-blocking.cjs.map +1 -1
- package/dist/duckdb-node-eh.worker.cjs +1 -1
- package/dist/duckdb-node-eh.worker.cjs.map +1 -1
- package/dist/duckdb-node-mvp.worker.cjs +1 -1
- package/dist/duckdb-node-mvp.worker.cjs.map +1 -1
- package/dist/duckdb-node.cjs +1 -1
- package/dist/tests-browser.js +1 -1
- package/dist/tests-browser.js.map +1 -1
- package/dist/tests-node.cjs +25 -1
- package/dist/tests-node.cjs.map +3 -3
- package/package.json +3 -3
|
@@ -15,7 +15,7 @@ return true;`)}na.createIsValidFunction=JA;function XA(i){return typeof i!="bigi
|
|
|
15
15
|
`),this._write(`${PC(this._recordBatches[e])}`),this._recordBatchBlocks.push(new Zn.FileBlock(0,0,0));this._write(`
|
|
16
16
|
]`)}return this._schema&&this._write(`
|
|
17
17
|
}`),this._dictionaries=[],this._recordBatches=[],super.close()}};wi.RecordBatchJSONWriter=Qa;function Gl(i,e){let t=e;e instanceof Wl.Table&&(t=e.chunks,i.reset(void 0,e.schema));for(let r of t)i.write(r);return i.finish()}function $l(i,e){var t,r,n,s;return Eg.__awaiter(this,void 0,void 0,function*(){try{for(t=Eg.__asyncValues(e);r=yield t.next(),!r.done;){let u=r.value;i.write(u)}}catch(u){n={error:u}}finally{try{r&&!r.done&&(s=t.return)&&(yield s.call(t))}finally{if(n)throw n.error}}return i.finish()})}function xg({name:i,type:e,nullable:t}){let r=new RC.JSONTypeAssembler;return{name:i,nullable:t,type:r.visit(e),children:(e.children||[]).map(xg),dictionary:UC.DataType.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:r.visit(e.indices)}:void 0}}function xC(i,e,t=!1){let r=new EC.Field(`${e}`,i.type,i.nullCount>0),n=Vg.JSONVectorAssembler.assemble(new MC.Column(r,[i]));return JSON.stringify({id:e,isDelta:t,data:{count:i.length,columns:n}},null,2)}function PC(i){return JSON.stringify({count:i.length,columns:Vg.JSONVectorAssembler.assemble(i)},null,2)}});var Xl=M(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.distributeVectorsIntoRecordBatches=Sr.distributeColumnsIntoRecordBatches=Sr.ensureSameLengthData=void 0;var Pg=Qt(),Jl=ot(),NC=jr(),LC=Hi(),Kl=new Uint8Array(0),Ng=i=>[Kl,Kl,new Uint8Array(i),Kl];function qC(i,e,t=e.reduce((r,n)=>Math.max(r,n.length),0)){let r,n,s=-1,u=e.length,p=[...i.fields],m=[],j=(t+63&-64)>>3;for(;++s<u;)(r=e[s])&&r.length===t?m[s]=r:((n=p[s]).nullable||(p[s]=p[s].clone({nullable:!0})),m[s]=r?r._changeLengthAndBackfillNullBitmap(t):Pg.Data.new(n.type,0,t,t,Ng(j)));return[new Jl.Schema(p),t,m]}Sr.ensureSameLengthData=qC;function HC(i){return Lg(new Jl.Schema(i.map(({field:e})=>e)),i)}Sr.distributeColumnsIntoRecordBatches=HC;function Lg(i,e){return zC(i,e.map(t=>t instanceof NC.Chunked?t.chunks.map(r=>r.data):[t.data]))}Sr.distributeVectorsIntoRecordBatches=Lg;function zC(i,e){let t=[...i.fields],r=[],n={numBatches:e.reduce((R,P)=>Math.max(R,P.length),0)},s=0,u=0,p=-1,m=e.length,j,A=[];for(;n.numBatches-- >0;){for(u=Number.POSITIVE_INFINITY,p=-1;++p<m;)A[p]=j=e[p].shift(),u=Math.min(u,j?j.length:u);isFinite(u)&&(A=WC(t,u,A,e,n),u>0&&(r[s++]=[u,A.slice()]))}return[i=new Jl.Schema(t,i.metadata),r.map(R=>new LC.RecordBatch(i,...R))]}function WC(i,e,t,r,n){let s,u,p=0,m=-1,j=r.length,A=(e+63&-64)>>3;for(;++m<j;)(s=t[m])&&(p=s.length)>=e?p===e?t[m]=s:(t[m]=s.slice(0,e),s=s.slice(e,p-e),n.numBatches=Math.max(n.numBatches,r[m].unshift(s))):((u=i[m]).nullable||(i[m]=u.clone({nullable:!0})),t[m]=s?s._changeLengthAndBackfillNullBitmap(e):Pg.Data.new(u.type,0,e,e,Ng(A)));return t}});var Ke=M(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.BaseVector=void 0;var YC=De(),GC=jr(),$C=zs(),Zl=Ge(),Ql=class extends Zl.AbstractVector{constructor(e,t){super();this._children=t,this.numChildren=e.childData.length,this._bindDataAccessors(this.data=e)}get type(){return this.data.type}get typeId(){return this.data.typeId}get length(){return this.data.length}get offset(){return this.data.offset}get stride(){return this.data.stride}get nullCount(){return this.data.nullCount}get byteLength(){return this.data.byteLength}get VectorName(){return`${YC.Type[this.typeId]}Vector`}get ArrayType(){return this.type.ArrayType}get values(){return this.data.values}get typeIds(){return this.data.typeIds}get nullBitmap(){return this.data.nullBitmap}get valueOffsets(){return this.data.valueOffsets}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}clone(e,t=this._children){return Zl.Vector.new(e,t)}concat(...e){return GC.Chunked.concat(this,...e)}slice(e,t){return $C.clampRange(this,e,t,this._sliceInternal)}isValid(e){if(this.nullCount>0){let t=this.offset+e;return(this.nullBitmap[t>>3]&1<<t%8)!==0}return!0}getChildAt(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=Zl.Vector.new(this.data.childData[e]))}toJSON(){return[...this]}_sliceInternal(e,t,r){return e.clone(e.data.slice(t,r-t),null)}_bindDataAccessors(e){}};tc.BaseVector=Ql;Ql.prototype[Symbol.isConcatSpreadable]=!0});var ed=M(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.BinaryVector=void 0;var KC=Ge(),JC=Ke(),XC=we(),qg=class extends JC.BaseVector{asUtf8(){return KC.Vector.new(this.data.clone(new XC.Utf8))}};ic.BinaryVector=qg});var td=M(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.BoolVector=void 0;var ZC=we(),QC=Ke(),eM=Bi(),Hg=class extends QC.BaseVector{static from(e){return eM.vectorFromValuesWithType(()=>new ZC.Bool,e)}};rc.BoolVector=Hg});var rd=M(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.DateMillisecondVector=Ar.DateDayVector=Ar.DateVector=void 0;var tM=De(),iM=Ke(),zg=Bi(),id=we(),nc=class extends iM.BaseVector{static from(...e){return e.length===2?zg.vectorFromValuesWithType(()=>e[1]===tM.DateUnit.DAY?new id.DateDay:new id.DateMillisecond,e[0]):zg.vectorFromValuesWithType(()=>new id.DateMillisecond,e[0])}};Ar.DateVector=nc;var Wg=class extends nc{};Ar.DateDayVector=Wg;var Yg=class extends nc{};Ar.DateMillisecondVector=Yg});var nd=M(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.DecimalVector=void 0;var rM=Ke(),Gg=class extends rM.BaseVector{};sc.DecimalVector=Gg});var ac=M(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.DictionaryVector=void 0;var nM=Qt(),$g=Ge(),sM=Ke(),oM=Bi(),aM=we(),sd=class extends sM.BaseVector{constructor(e){super(e);this.indices=$g.Vector.new(e.clone(this.type.indices))}static from(...e){if(e.length===3){let[t,r,n]=e,s=new aM.Dictionary(t.type,r,null,null);return $g.Vector.new(nM.Data.Dictionary(s,0,n.length,0,null,n,t))}return oM.vectorFromValuesWithType(()=>e[0].type,e[0])}get dictionary(){return this.data.dictionary}reverseLookup(e){return this.dictionary.indexOf(e)}getKey(e){return this.indices.get(e)}getValue(e){return this.dictionary.get(e)}setKey(e,t){return this.indices.set(e,t)}setValue(e,t){return this.dictionary.set(e,t)}};oc.DictionaryVector=sd;sd.prototype.indices=null});var od=M(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.FixedSizeBinaryVector=void 0;var cM=Ke(),Kg=class extends cM.BaseVector{};cc.FixedSizeBinaryVector=Kg});var ad=M(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.FixedSizeListVector=void 0;var uM=Ke(),Jg=class extends uM.BaseVector{};uc.FixedSizeListVector=Jg});var dd=M(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.Float64Vector=Ii.Float32Vector=Ii.Float16Vector=Ii.FloatVector=void 0;var lM=Qt(),dM=Ge(),fM=Ke(),hM=Bi(),fn=we(),Qs=class extends fM.BaseVector{static from(e){let t=_M(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){let r=yM(e.constructor)||t;if(t===null&&(t=r),t&&t===r){let n=new t,s=e.byteLength/n.ArrayType.BYTES_PER_ELEMENT;if(!pM(t,e.constructor))return dM.Vector.new(lM.Data.Float(n,0,s,0,null,e))}}if(t)return hM.vectorFromValuesWithType(()=>new t,e);throw e instanceof DataView||e instanceof ArrayBuffer?new TypeError(`Cannot infer float type from instance of ${e.constructor.name}`):new TypeError("Unrecognized FloatVector input")}};Ii.FloatVector=Qs;var cd=class extends Qs{toFloat32Array(){return new Float32Array(this)}toFloat64Array(){return new Float64Array(this)}};Ii.Float16Vector=cd;var ud=class extends Qs{};Ii.Float32Vector=ud;var ld=class extends Qs{};Ii.Float64Vector=ld;var pM=(i,e)=>i===fn.Float16&&e!==Uint16Array,yM=i=>{switch(i){case Uint16Array:return fn.Float16;case Float32Array:return fn.Float32;case Float64Array:return fn.Float64;default:return null}},_M=i=>{switch(i){case cd:return fn.Float16;case ud:return fn.Float32;case ld:return fn.Float64;default:return null}}});var fd=M(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.IntervalYearMonthVector=Fr.IntervalDayTimeVector=Fr.IntervalVector=void 0;var mM=Ke(),lc=class extends mM.BaseVector{};Fr.IntervalVector=lc;var Xg=class extends lc{};Fr.IntervalDayTimeVector=Xg;var Zg=class extends lc{};Fr.IntervalYearMonthVector=Zg});var dc=M(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.Uint64Vector=et.Uint32Vector=et.Uint16Vector=et.Uint8Vector=et.Int64Vector=et.Int32Vector=et.Int16Vector=et.Int8Vector=et.IntVector=void 0;var bM=Qt(),gM=Ge(),vM=Ke(),jM=Bi(),Qg=yt(),ev=tt(),We=we(),Ti=class extends vM.BaseVector{static from(...e){let[t,r=!1]=e,n=IM(this,r);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)){let s=BM(t.constructor,r)||n;if(n===null&&(n=s),n&&n===s){let u=new n,p=t.byteLength/u.ArrayType.BYTES_PER_ELEMENT;return wM(n,t.constructor)&&(p*=.5),gM.Vector.new(bM.Data.Int(u,0,p,0,null,t))}}if(n)return jM.vectorFromValuesWithType(()=>new n,t);throw t instanceof DataView||t instanceof ArrayBuffer?new TypeError(`Cannot infer integer type from instance of ${t.constructor.name}`):new TypeError("Unrecognized IntVector input")}};et.IntVector=Ti;var hd=class extends Ti{};et.Int8Vector=hd;var pd=class extends Ti{};et.Int16Vector=pd;var yd=class extends Ti{};et.Int32Vector=yd;var _d=class extends Ti{toBigInt64Array(){return ev.toBigInt64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigInt64Array())}};et.Int64Vector=_d;var md=class extends Ti{};et.Uint8Vector=md;var bd=class extends Ti{};et.Uint16Vector=bd;var gd=class extends Ti{};et.Uint32Vector=gd;var vd=class extends Ti{toBigUint64Array(){return ev.toBigUint64Array(this.values)}get values64(){return this._values64||(this._values64=this.toBigUint64Array())}};et.Uint64Vector=vd;var wM=(i,e)=>(i===We.Int64||i===We.Uint64)&&(e===Int32Array||e===Uint32Array),BM=(i,e)=>{switch(i){case Int8Array:return We.Int8;case Int16Array:return We.Int16;case Int32Array:return e?We.Int64:We.Int32;case Qg.BigInt64Array:return We.Int64;case Uint8Array:return We.Uint8;case Uint16Array:return We.Uint16;case Uint32Array:return e?We.Uint64:We.Uint32;case Qg.BigUint64Array:return We.Uint64;default:return null}},IM=(i,e)=>{switch(i){case hd:return We.Int8;case pd:return We.Int16;case yd:return e?We.Int64:We.Int32;case _d:return We.Int64;case md:return We.Uint8;case bd:return We.Uint16;case gd:return e?We.Uint64:We.Uint32;case vd:return We.Uint64;default:return null}}});var jd=M(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.ListVector=void 0;var TM=Ke(),tv=class extends TM.BaseVector{};fc.ListVector=tv});var wd=M(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.MapVector=void 0;var SM=qs(),AM=Ge(),FM=Ke(),DM=we(),iv=class extends FM.BaseVector{asList(){let e=this.type.children[0];return AM.Vector.new(this.data.clone(new DM.List(e)))}bind(e){let t=this.getChildAt(0),{[e]:r,[e+1]:n}=this.valueOffsets;return new SM.MapRow(t.slice(r,n))}};hc.MapVector=iv});var Bd=M(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.NullVector=void 0;var OM=Ke(),rv=class extends OM.BaseVector{};pc.NullVector=rv});var Id=M(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.StructVector=void 0;var CM=qs(),MM=Ke(),UM=Symbol.for("rowIndex"),nv=class extends MM.BaseVector{bind(e){let t=this._row||(this._row=new CM.StructRow(this)),r=Object.create(t);return r[UM]=e,r}};yc.StructVector=nv});var Td=M(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.TimestampNanosecondVector=qt.TimestampMicrosecondVector=qt.TimestampMillisecondVector=qt.TimestampSecondVector=qt.TimestampVector=void 0;var EM=Ke(),Qn=class extends EM.BaseVector{};qt.TimestampVector=Qn;var sv=class extends Qn{};qt.TimestampSecondVector=sv;var ov=class extends Qn{};qt.TimestampMillisecondVector=ov;var av=class extends Qn{};qt.TimestampMicrosecondVector=av;var cv=class extends Qn{};qt.TimestampNanosecondVector=cv});var Sd=M(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.TimeNanosecondVector=Ht.TimeMicrosecondVector=Ht.TimeMillisecondVector=Ht.TimeSecondVector=Ht.TimeVector=void 0;var RM=Ke(),es=class extends RM.BaseVector{};Ht.TimeVector=es;var uv=class extends es{};Ht.TimeSecondVector=uv;var lv=class extends es{};Ht.TimeMillisecondVector=lv;var dv=class extends es{};Ht.TimeMicrosecondVector=dv;var fv=class extends es{};Ht.TimeNanosecondVector=fv});var Ad=M(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.SparseUnionVector=Dr.DenseUnionVector=Dr.UnionVector=void 0;var kM=Ke(),_c=class extends kM.BaseVector{get typeIdToChildIndex(){return this.data.type.typeIdToChildIndex}};Dr.UnionVector=_c;var hv=class extends _c{get valueOffsets(){return this.data.valueOffsets}};Dr.DenseUnionVector=hv;var pv=class extends _c{};Dr.SparseUnionVector=pv});var Fd=M(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.Utf8Vector=void 0;var VM=Ge(),xM=Ke(),yv=we(),PM=Bi(),_v=class extends xM.BaseVector{static from(e){return PM.vectorFromValuesWithType(()=>new yv.Utf8,e)}asBinary(){return VM.Vector.new(this.data.clone(new yv.Binary))}};mc.Utf8Vector=_v});var mv=M(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.partial2=Or.partial1=Or.partial0=void 0;function NM(i){return function(){return i(this)}}Or.partial0=NM;function LM(i){return function(e){return i(this,e)}}Or.partial1=LM;function qM(i){return function(e,t){return i(this,e,t)}}Or.partial2=qM});var Cd=M(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.instance=ts.GetVisitor=void 0;var bc=ks(),HM=lt(),zM=zr(),WM=Ms(),zt=De(),Q=class extends HM.Visitor{};ts.GetVisitor=Q;var YM=(i,e)=>864e5*i[e],Dd=(i,e)=>4294967296*i[e+1]+(i[e]>>>0),GM=(i,e)=>4294967296*(i[e+1]/1e3)+(i[e]>>>0)/1e3,$M=(i,e)=>4294967296*(i[e+1]/1e6)+(i[e]>>>0)/1e6,bv=i=>new Date(i),KM=(i,e)=>bv(YM(i,e)),JM=(i,e)=>bv(Dd(i,e)),XM=(i,e)=>null,gv=(i,e,t)=>{let{[t]:r,[t+1]:n}=e;return r!=null&&n!=null?i.subarray(r,n):null},ZM=({offset:i,values:e},t)=>{let r=i+t;return(e[r>>3]&1<<r%8)!==0},vv=({values:i},e)=>KM(i,e),jv=({values:i},e)=>JM(i,e*2),Si=({stride:i,values:e},t)=>e[i*t],wv=({stride:i,values:e},t)=>WM.uint16ToFloat64(e[i*t]),Od=({stride:i,values:e,type:t},r)=>bc.BN.new(e.subarray(i*r,i*(r+1)),t.isSigned),QM=({stride:i,values:e},t)=>e.subarray(i*t,i*(t+1)),eU=({values:i,valueOffsets:e},t)=>gv(i,e,t),tU=({values:i,valueOffsets:e},t)=>{let r=gv(i,e,t);return r!==null?zM.decodeUtf8(r):null},iU=(i,e)=>i.type.bitWidth<64?Si(i,e):Od(i,e),rU=(i,e)=>i.type.precision!==zt.Precision.HALF?Si(i,e):wv(i,e),nU=(i,e)=>i.type.unit===zt.DateUnit.DAY?vv(i,e):jv(i,e),Bv=({values:i},e)=>1e3*Dd(i,e*2),Iv=({values:i},e)=>Dd(i,e*2),Tv=({values:i},e)=>GM(i,e*2),Sv=({values:i},e)=>$M(i,e*2),sU=(i,e)=>{switch(i.type.unit){case zt.TimeUnit.SECOND:return Bv(i,e);case zt.TimeUnit.MILLISECOND:return Iv(i,e);case zt.TimeUnit.MICROSECOND:return Tv(i,e);case zt.TimeUnit.NANOSECOND:return Sv(i,e)}},Av=({values:i,stride:e},t)=>i[e*t],Fv=({values:i,stride:e},t)=>i[e*t],Dv=({values:i},e)=>bc.BN.signed(i.subarray(2*e,2*(e+1))),Ov=({values:i},e)=>bc.BN.signed(i.subarray(2*e,2*(e+1))),oU=(i,e)=>{switch(i.type.unit){case zt.TimeUnit.SECOND:return Av(i,e);case zt.TimeUnit.MILLISECOND:return Fv(i,e);case zt.TimeUnit.MICROSECOND:return Dv(i,e);case zt.TimeUnit.NANOSECOND:return Ov(i,e)}},aU=({values:i},e)=>bc.BN.decimal(i.subarray(4*e,4*(e+1))),cU=(i,e)=>{let t=i.getChildAt(0),{valueOffsets:r,stride:n}=i;return t.slice(r[e*n],r[e*n+1])},uU=(i,e)=>i.bind(e),lU=(i,e)=>i.bind(e),dU=(i,e)=>i.type.mode===zt.UnionMode.Dense?Cv(i,e):Mv(i,e),Cv=(i,e)=>{let t=i.typeIdToChildIndex[i.typeIds[e]],r=i.getChildAt(t);return r?r.get(i.valueOffsets[e]):null},Mv=(i,e)=>{let t=i.typeIdToChildIndex[i.typeIds[e]],r=i.getChildAt(t);return r?r.get(e):null},fU=(i,e)=>i.getValue(i.getKey(e)),hU=(i,e)=>i.type.unit===zt.IntervalUnit.DAY_TIME?Uv(i,e):Ev(i,e),Uv=({values:i},e)=>i.subarray(2*e,2*(e+1)),Ev=({values:i},e)=>{let t=i[e],r=new Int32Array(2);return r[0]=t/12|0,r[1]=t%12|0,r},pU=(i,e)=>{let t=i.getChildAt(0),{stride:r}=i;return t.slice(e*r,(e+1)*r)};Q.prototype.visitNull=XM;Q.prototype.visitBool=ZM;Q.prototype.visitInt=iU;Q.prototype.visitInt8=Si;Q.prototype.visitInt16=Si;Q.prototype.visitInt32=Si;Q.prototype.visitInt64=Od;Q.prototype.visitUint8=Si;Q.prototype.visitUint16=Si;Q.prototype.visitUint32=Si;Q.prototype.visitUint64=Od;Q.prototype.visitFloat=rU;Q.prototype.visitFloat16=wv;Q.prototype.visitFloat32=Si;Q.prototype.visitFloat64=Si;Q.prototype.visitUtf8=tU;Q.prototype.visitBinary=eU;Q.prototype.visitFixedSizeBinary=QM;Q.prototype.visitDate=nU;Q.prototype.visitDateDay=vv;Q.prototype.visitDateMillisecond=jv;Q.prototype.visitTimestamp=sU;Q.prototype.visitTimestampSecond=Bv;Q.prototype.visitTimestampMillisecond=Iv;Q.prototype.visitTimestampMicrosecond=Tv;Q.prototype.visitTimestampNanosecond=Sv;Q.prototype.visitTime=oU;Q.prototype.visitTimeSecond=Av;Q.prototype.visitTimeMillisecond=Fv;Q.prototype.visitTimeMicrosecond=Dv;Q.prototype.visitTimeNanosecond=Ov;Q.prototype.visitDecimal=aU;Q.prototype.visitList=cU;Q.prototype.visitStruct=lU;Q.prototype.visitUnion=dU;Q.prototype.visitDenseUnion=Cv;Q.prototype.visitSparseUnion=Mv;Q.prototype.visitDictionary=fU;Q.prototype.visitInterval=hU;Q.prototype.visitIntervalDayTime=Uv;Q.prototype.visitIntervalYearMonth=Ev;Q.prototype.visitFixedSizeList=pU;Q.prototype.visitMap=uU;ts.instance=new Q});var xv=M(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.instance=is.IndexOfVisitor=void 0;var yU=lt(),Rv=fi(),kv=zs(),ee=class extends yU.Visitor{};is.IndexOfVisitor=ee;function _U(i,e){return e===null&&i.length>0?0:-1}function mU(i,e){let{nullBitmap:t}=i.data;if(!t||i.nullCount<=0)return-1;let r=0;for(let n of new Rv.BitIterator(t,i.data.offset+(e||0),i.length,t,Rv.getBool)){if(!n)return r;++r}return-1}function fe(i,e,t){if(e===void 0)return-1;if(e===null)return mU(i,t);let r=kv.createElementComparator(e);for(let n=(t||0)-1,s=i.length;++n<s;)if(r(i.get(n)))return n;return-1}function Vv(i,e,t){let r=kv.createElementComparator(e);for(let n=(t||0)-1,s=i.length;++n<s;)if(r(i.get(n)))return n;return-1}ee.prototype.visitNull=_U;ee.prototype.visitBool=fe;ee.prototype.visitInt=fe;ee.prototype.visitInt8=fe;ee.prototype.visitInt16=fe;ee.prototype.visitInt32=fe;ee.prototype.visitInt64=fe;ee.prototype.visitUint8=fe;ee.prototype.visitUint16=fe;ee.prototype.visitUint32=fe;ee.prototype.visitUint64=fe;ee.prototype.visitFloat=fe;ee.prototype.visitFloat16=fe;ee.prototype.visitFloat32=fe;ee.prototype.visitFloat64=fe;ee.prototype.visitUtf8=fe;ee.prototype.visitBinary=fe;ee.prototype.visitFixedSizeBinary=fe;ee.prototype.visitDate=fe;ee.prototype.visitDateDay=fe;ee.prototype.visitDateMillisecond=fe;ee.prototype.visitTimestamp=fe;ee.prototype.visitTimestampSecond=fe;ee.prototype.visitTimestampMillisecond=fe;ee.prototype.visitTimestampMicrosecond=fe;ee.prototype.visitTimestampNanosecond=fe;ee.prototype.visitTime=fe;ee.prototype.visitTimeSecond=fe;ee.prototype.visitTimeMillisecond=fe;ee.prototype.visitTimeMicrosecond=fe;ee.prototype.visitTimeNanosecond=fe;ee.prototype.visitDecimal=fe;ee.prototype.visitList=fe;ee.prototype.visitStruct=fe;ee.prototype.visitUnion=fe;ee.prototype.visitDenseUnion=Vv;ee.prototype.visitSparseUnion=Vv;ee.prototype.visitDictionary=fe;ee.prototype.visitInterval=fe;ee.prototype.visitIntervalDayTime=fe;ee.prototype.visitIntervalYearMonth=fe;ee.prototype.visitFixedSizeList=fe;ee.prototype.visitMap=fe;is.instance=new ee});var Md=M(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.instance=rs.IteratorVisitor=void 0;var gc=De(),bU=lt(),gU=fi(),Pv=Cd(),te=class extends bU.Visitor{};rs.IteratorVisitor=te;function vU(i){let e=Pv.instance.getVisitFn(i);return new gU.BitIterator(i.data.nullBitmap,i.data.offset,i.length,i,(t,r,n,s)=>(n&1<<s)!==0?e(t,r):null)}var Nv=class{constructor(e,t){this.vector=e,this.getFn=t,this.index=0}next(){return this.index<this.vector.length?{value:this.getFn(this.vector,this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};function ue(i){if(i.nullCount>0)return vU(i);let{type:e,typeId:t,length:r}=i;return i.stride===1&&(t===gc.Type.Timestamp||t===gc.Type.Int&&e.bitWidth!==64||t===gc.Type.Time&&e.bitWidth!==64||t===gc.Type.Float&&e.precision>0)?i.data.values.subarray(0,r)[Symbol.iterator]():new Nv(i,Pv.instance.getVisitFn(i))}te.prototype.visitNull=ue;te.prototype.visitBool=ue;te.prototype.visitInt=ue;te.prototype.visitInt8=ue;te.prototype.visitInt16=ue;te.prototype.visitInt32=ue;te.prototype.visitInt64=ue;te.prototype.visitUint8=ue;te.prototype.visitUint16=ue;te.prototype.visitUint32=ue;te.prototype.visitUint64=ue;te.prototype.visitFloat=ue;te.prototype.visitFloat16=ue;te.prototype.visitFloat32=ue;te.prototype.visitFloat64=ue;te.prototype.visitUtf8=ue;te.prototype.visitBinary=ue;te.prototype.visitFixedSizeBinary=ue;te.prototype.visitDate=ue;te.prototype.visitDateDay=ue;te.prototype.visitDateMillisecond=ue;te.prototype.visitTimestamp=ue;te.prototype.visitTimestampSecond=ue;te.prototype.visitTimestampMillisecond=ue;te.prototype.visitTimestampMicrosecond=ue;te.prototype.visitTimestampNanosecond=ue;te.prototype.visitTime=ue;te.prototype.visitTimeSecond=ue;te.prototype.visitTimeMillisecond=ue;te.prototype.visitTimeMicrosecond=ue;te.prototype.visitTimeNanosecond=ue;te.prototype.visitDecimal=ue;te.prototype.visitList=ue;te.prototype.visitStruct=ue;te.prototype.visitUnion=ue;te.prototype.visitDenseUnion=ue;te.prototype.visitSparseUnion=ue;te.prototype.visitDictionary=ue;te.prototype.visitInterval=ue;te.prototype.visitIntervalDayTime=ue;te.prototype.visitIntervalYearMonth=ue;te.prototype.visitFixedSizeList=ue;te.prototype.visitMap=ue;rs.instance=new te});var Lv=M(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.instance=ns.ToArrayVisitor=void 0;var eo=De(),jU=lt(),wU=Md(),ie=class extends jU.Visitor{};ns.ToArrayVisitor=ie;function le(i){let{type:e,length:t,stride:r}=i;switch(e.typeId){case eo.Type.Int:case eo.Type.Float:case eo.Type.Decimal:case eo.Type.Time:case eo.Type.Timestamp:return i.data.values.subarray(0,t*r)}return[...wU.instance.visit(i)]}ie.prototype.visitNull=le;ie.prototype.visitBool=le;ie.prototype.visitInt=le;ie.prototype.visitInt8=le;ie.prototype.visitInt16=le;ie.prototype.visitInt32=le;ie.prototype.visitInt64=le;ie.prototype.visitUint8=le;ie.prototype.visitUint16=le;ie.prototype.visitUint32=le;ie.prototype.visitUint64=le;ie.prototype.visitFloat=le;ie.prototype.visitFloat16=le;ie.prototype.visitFloat32=le;ie.prototype.visitFloat64=le;ie.prototype.visitUtf8=le;ie.prototype.visitBinary=le;ie.prototype.visitFixedSizeBinary=le;ie.prototype.visitDate=le;ie.prototype.visitDateDay=le;ie.prototype.visitDateMillisecond=le;ie.prototype.visitTimestamp=le;ie.prototype.visitTimestampSecond=le;ie.prototype.visitTimestampMillisecond=le;ie.prototype.visitTimestampMicrosecond=le;ie.prototype.visitTimestampNanosecond=le;ie.prototype.visitTime=le;ie.prototype.visitTimeSecond=le;ie.prototype.visitTimeMillisecond=le;ie.prototype.visitTimeMicrosecond=le;ie.prototype.visitTimeNanosecond=le;ie.prototype.visitDecimal=le;ie.prototype.visitList=le;ie.prototype.visitStruct=le;ie.prototype.visitUnion=le;ie.prototype.visitDenseUnion=le;ie.prototype.visitSparseUnion=le;ie.prototype.visitDictionary=le;ie.prototype.visitInterval=le;ie.prototype.visitIntervalDayTime=le;ie.prototype.visitIntervalYearMonth=le;ie.prototype.visitFixedSizeList=le;ie.prototype.visitMap=le;ns.instance=new ie});var qv=M(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.instance=ss.ByteWidthVisitor=void 0;var BU=lt(),IU=De(),to=(i,e)=>i+e,Ud=i=>`Cannot compute the byte width of variable-width column ${i}`,Ed=class extends BU.Visitor{visitNull(e){return 0}visitInt(e){return e.bitWidth/8}visitFloat(e){return e.ArrayType.BYTES_PER_ELEMENT}visitBinary(e){throw new Error(Ud(e))}visitUtf8(e){throw new Error(Ud(e))}visitBool(e){return 1/8}visitDecimal(e){return 16}visitDate(e){return(e.unit+1)*4}visitTime(e){return e.bitWidth/8}visitTimestamp(e){return e.unit===IU.TimeUnit.SECOND?4:8}visitInterval(e){return(e.unit+1)*4}visitList(e){throw new Error(Ud(e))}visitStruct(e){return this.visitFields(e.children).reduce(to,0)}visitUnion(e){return this.visitFields(e.children).reduce(to,0)}visitFixedSizeBinary(e){return e.byteWidth}visitFixedSizeList(e){return e.listSize*this.visitFields(e.children).reduce(to,0)}visitMap(e){return this.visitFields(e.children).reduce(to,0)}visitDictionary(e){return this.visit(e.indices)}visitFields(e){return(e||[]).map(t=>this.visit(t.type))}visitSchema(e){return this.visitFields(e.fields).reduce(to,0)}};ss.ByteWidthVisitor=Ed;ss.instance=new Ed});var Hv=M(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.instance=os.GetVectorConstructor=void 0;var TU=lt(),SU=ed(),AU=td(),Rd=rd(),FU=nd(),DU=ac(),OU=od(),CU=ad(),vc=dd(),kd=fd(),zi=dc(),MU=jd(),UU=wd(),EU=Bd(),RU=Id(),io=Td(),ro=Sd(),Vd=Ad(),kU=Fd(),xd=class extends TU.Visitor{visitNull(){return EU.NullVector}visitBool(){return AU.BoolVector}visitInt(){return zi.IntVector}visitInt8(){return zi.Int8Vector}visitInt16(){return zi.Int16Vector}visitInt32(){return zi.Int32Vector}visitInt64(){return zi.Int64Vector}visitUint8(){return zi.Uint8Vector}visitUint16(){return zi.Uint16Vector}visitUint32(){return zi.Uint32Vector}visitUint64(){return zi.Uint64Vector}visitFloat(){return vc.FloatVector}visitFloat16(){return vc.Float16Vector}visitFloat32(){return vc.Float32Vector}visitFloat64(){return vc.Float64Vector}visitUtf8(){return kU.Utf8Vector}visitBinary(){return SU.BinaryVector}visitFixedSizeBinary(){return OU.FixedSizeBinaryVector}visitDate(){return Rd.DateVector}visitDateDay(){return Rd.DateDayVector}visitDateMillisecond(){return Rd.DateMillisecondVector}visitTimestamp(){return io.TimestampVector}visitTimestampSecond(){return io.TimestampSecondVector}visitTimestampMillisecond(){return io.TimestampMillisecondVector}visitTimestampMicrosecond(){return io.TimestampMicrosecondVector}visitTimestampNanosecond(){return io.TimestampNanosecondVector}visitTime(){return ro.TimeVector}visitTimeSecond(){return ro.TimeSecondVector}visitTimeMillisecond(){return ro.TimeMillisecondVector}visitTimeMicrosecond(){return ro.TimeMicrosecondVector}visitTimeNanosecond(){return ro.TimeNanosecondVector}visitDecimal(){return FU.DecimalVector}visitList(){return MU.ListVector}visitStruct(){return RU.StructVector}visitUnion(){return Vd.UnionVector}visitDenseUnion(){return Vd.DenseUnionVector}visitSparseUnion(){return Vd.SparseUnionVector}visitDictionary(){return DU.DictionaryVector}visitInterval(){return kd.IntervalVector}visitIntervalDayTime(){return kd.IntervalDayTimeVector}visitIntervalYearMonth(){return kd.IntervalYearMonthVector}visitFixedSizeList(){return CU.FixedSizeListVector}visitMap(){return UU.MapVector}};os.GetVectorConstructor=xd;os.instance=new xd});var Bi=M(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.vectorFromValuesWithType=E.StructRow=E.MapRow=E.Utf8Vector=E.SparseUnionVector=E.DenseUnionVector=E.UnionVector=E.TimeNanosecondVector=E.TimeMicrosecondVector=E.TimeMillisecondVector=E.TimeSecondVector=E.TimeVector=E.TimestampNanosecondVector=E.TimestampMicrosecondVector=E.TimestampMillisecondVector=E.TimestampSecondVector=E.TimestampVector=E.StructVector=E.NullVector=E.MapVector=E.ListVector=E.Uint64Vector=E.Uint32Vector=E.Uint16Vector=E.Uint8Vector=E.Int64Vector=E.Int32Vector=E.Int16Vector=E.Int8Vector=E.IntVector=E.IntervalYearMonthVector=E.IntervalDayTimeVector=E.IntervalVector=E.Float64Vector=E.Float32Vector=E.Float16Vector=E.FloatVector=E.FixedSizeListVector=E.FixedSizeBinaryVector=E.DictionaryVector=E.DecimalVector=E.DateMillisecondVector=E.DateDayVector=E.DateVector=E.Chunked=E.BoolVector=E.BinaryVector=E.BaseVector=E.Vector=void 0;var Pd=pt(),VU=Ge();Object.defineProperty(E,"Vector",{enumerable:!0,get:function(){return VU.Vector}});var xU=Ke();Object.defineProperty(E,"BaseVector",{enumerable:!0,get:function(){return xU.BaseVector}});var PU=ed();Object.defineProperty(E,"BinaryVector",{enumerable:!0,get:function(){return PU.BinaryVector}});var NU=td();Object.defineProperty(E,"BoolVector",{enumerable:!0,get:function(){return NU.BoolVector}});var LU=jr();Object.defineProperty(E,"Chunked",{enumerable:!0,get:function(){return LU.Chunked}});var Ld=rd();Object.defineProperty(E,"DateVector",{enumerable:!0,get:function(){return Ld.DateVector}});Object.defineProperty(E,"DateDayVector",{enumerable:!0,get:function(){return Ld.DateDayVector}});Object.defineProperty(E,"DateMillisecondVector",{enumerable:!0,get:function(){return Ld.DateMillisecondVector}});var qU=nd();Object.defineProperty(E,"DecimalVector",{enumerable:!0,get:function(){return qU.DecimalVector}});var HU=ac();Object.defineProperty(E,"DictionaryVector",{enumerable:!0,get:function(){return HU.DictionaryVector}});var zU=od();Object.defineProperty(E,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return zU.FixedSizeBinaryVector}});var WU=ad();Object.defineProperty(E,"FixedSizeListVector",{enumerable:!0,get:function(){return WU.FixedSizeListVector}});var wc=dd();Object.defineProperty(E,"FloatVector",{enumerable:!0,get:function(){return wc.FloatVector}});Object.defineProperty(E,"Float16Vector",{enumerable:!0,get:function(){return wc.Float16Vector}});Object.defineProperty(E,"Float32Vector",{enumerable:!0,get:function(){return wc.Float32Vector}});Object.defineProperty(E,"Float64Vector",{enumerable:!0,get:function(){return wc.Float64Vector}});var qd=fd();Object.defineProperty(E,"IntervalVector",{enumerable:!0,get:function(){return qd.IntervalVector}});Object.defineProperty(E,"IntervalDayTimeVector",{enumerable:!0,get:function(){return qd.IntervalDayTimeVector}});Object.defineProperty(E,"IntervalYearMonthVector",{enumerable:!0,get:function(){return qd.IntervalYearMonthVector}});var Wi=dc();Object.defineProperty(E,"IntVector",{enumerable:!0,get:function(){return Wi.IntVector}});Object.defineProperty(E,"Int8Vector",{enumerable:!0,get:function(){return Wi.Int8Vector}});Object.defineProperty(E,"Int16Vector",{enumerable:!0,get:function(){return Wi.Int16Vector}});Object.defineProperty(E,"Int32Vector",{enumerable:!0,get:function(){return Wi.Int32Vector}});Object.defineProperty(E,"Int64Vector",{enumerable:!0,get:function(){return Wi.Int64Vector}});Object.defineProperty(E,"Uint8Vector",{enumerable:!0,get:function(){return Wi.Uint8Vector}});Object.defineProperty(E,"Uint16Vector",{enumerable:!0,get:function(){return Wi.Uint16Vector}});Object.defineProperty(E,"Uint32Vector",{enumerable:!0,get:function(){return Wi.Uint32Vector}});Object.defineProperty(E,"Uint64Vector",{enumerable:!0,get:function(){return Wi.Uint64Vector}});var YU=jd();Object.defineProperty(E,"ListVector",{enumerable:!0,get:function(){return YU.ListVector}});var GU=wd();Object.defineProperty(E,"MapVector",{enumerable:!0,get:function(){return GU.MapVector}});var $U=Bd();Object.defineProperty(E,"NullVector",{enumerable:!0,get:function(){return $U.NullVector}});var KU=Id();Object.defineProperty(E,"StructVector",{enumerable:!0,get:function(){return KU.StructVector}});var so=Td();Object.defineProperty(E,"TimestampVector",{enumerable:!0,get:function(){return so.TimestampVector}});Object.defineProperty(E,"TimestampSecondVector",{enumerable:!0,get:function(){return so.TimestampSecondVector}});Object.defineProperty(E,"TimestampMillisecondVector",{enumerable:!0,get:function(){return so.TimestampMillisecondVector}});Object.defineProperty(E,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return so.TimestampMicrosecondVector}});Object.defineProperty(E,"TimestampNanosecondVector",{enumerable:!0,get:function(){return so.TimestampNanosecondVector}});var oo=Sd();Object.defineProperty(E,"TimeVector",{enumerable:!0,get:function(){return oo.TimeVector}});Object.defineProperty(E,"TimeSecondVector",{enumerable:!0,get:function(){return oo.TimeSecondVector}});Object.defineProperty(E,"TimeMillisecondVector",{enumerable:!0,get:function(){return oo.TimeMillisecondVector}});Object.defineProperty(E,"TimeMicrosecondVector",{enumerable:!0,get:function(){return oo.TimeMicrosecondVector}});Object.defineProperty(E,"TimeNanosecondVector",{enumerable:!0,get:function(){return oo.TimeNanosecondVector}});var Hd=Ad();Object.defineProperty(E,"UnionVector",{enumerable:!0,get:function(){return Hd.UnionVector}});Object.defineProperty(E,"DenseUnionVector",{enumerable:!0,get:function(){return Hd.DenseUnionVector}});Object.defineProperty(E,"SparseUnionVector",{enumerable:!0,get:function(){return Hd.SparseUnionVector}});var JU=Fd();Object.defineProperty(E,"Utf8Vector",{enumerable:!0,get:function(){return JU.Utf8Vector}});var Yv=qs();Object.defineProperty(E,"MapRow",{enumerable:!0,get:function(){return Yv.MapRow}});Object.defineProperty(E,"StructRow",{enumerable:!0,get:function(){return Yv.StructRow}});var no=mv(),Nd=De(),as=Ge(),zv=jr(),hn=Ke(),XU=fi(),jc=yt(),Wv=qe(),Gv=Cd(),$v=il(),Kv=xv(),Jv=Lv(),Xv=Md(),Zv=qv(),Qv=Hv();as.Vector.new=ZU;as.Vector.from=e2;function ZU(i,...e){return new(Qv.instance.getVisitFn(i)())(i,...e)}function QU(i,e){if(jc.isIterable(e))return as.Vector.from({nullValues:[null,void 0],type:i(),values:e});if(jc.isAsyncIterable(e))return as.Vector.from({nullValues:[null,void 0],type:i(),values:e});let{values:t=[],type:r=i(),nullValues:n=[null,void 0]}=Object.assign({},e);return jc.isIterable(t)?as.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:r})):as.Vector.from(Object.assign(Object.assign({nullValues:n},e),{type:r}))}E.vectorFromValuesWithType=QU;function e2(i){let e=Object.assign({nullValues:[null,void 0]},i),{values:t=[]}=e,r=Pd.__rest(e,["values"]);if(jc.isIterable(t)){let n=[...Wv.Builder.throughIterable(r)(t)];return n.length===1?n[0]:zv.Chunked.concat(n)}return(n=>Pd.__awaiter(this,void 0,void 0,function*(){var s,u;let p=Wv.Builder.throughAsyncIterable(r);try{for(var m=Pd.__asyncValues(p(t)),j;j=yield m.next(),!j.done;){let A=j.value;n.push(A)}}catch(A){s={error:A}}finally{try{j&&!j.done&&(u=m.return)&&(yield u.call(m))}finally{if(s)throw s.error}}return n.length===1?n[0]:zv.Chunked.concat(n)}))([])}hn.BaseVector.prototype.get=function(e){return Gv.instance.visit(this,e)};hn.BaseVector.prototype.set=function(e,t){return $v.instance.visit(this,e,t)};hn.BaseVector.prototype.indexOf=function(e,t){return Kv.instance.visit(this,e,t)};hn.BaseVector.prototype.toArray=function(){return Jv.instance.visit(this)};hn.BaseVector.prototype.getByteWidth=function(){return Zv.instance.visit(this.type)};hn.BaseVector.prototype[Symbol.iterator]=function(){return Xv.instance.visit(this)};hn.BaseVector.prototype._bindDataAccessors=n2;Object.keys(Nd.Type).map(i=>Nd.Type[i]).filter(i=>typeof i=="number").filter(i=>i!==Nd.Type.NONE).forEach(i=>{let e=Qv.instance.visit(i);e.prototype.get=no.partial1(Gv.instance.getVisitFn(i)),e.prototype.set=no.partial2($v.instance.getVisitFn(i)),e.prototype.indexOf=no.partial2(Kv.instance.getVisitFn(i)),e.prototype.toArray=no.partial0(Jv.instance.getVisitFn(i)),e.prototype.getByteWidth=t2(Zv.instance.getVisitFn(i)),e.prototype[Symbol.iterator]=no.partial0(Xv.instance.getVisitFn(i))});function t2(i){return function(){return i(this.type)}}function i2(i){return function(e){return this.isValid(e)?i.call(this,e):null}}function r2(i){return function(e,t){XU.setBool(this.nullBitmap,this.offset+e,t!=null)&&i.call(this,e,t)}}function n2(){let i=this.nullBitmap;i&&i.byteLength>0&&(this.get=i2(this.get),this.set=r2(this.set))}});var Zs=M(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.Table=void 0;var Bc=pt(),s2=Gn(),o2=ao(),e0=ec(),zd=Hi(),t0=ot(),Yd=we(),i0=sn(),Wd=yt(),r0=Xl(),Gd=Bi(),nt=class extends Gd.Chunked{constructor(...e){var t;let r=null;e[0]instanceof t0.Schema&&(r=e[0]);let n=e[0]instanceof nt?e[0].chunks:i0.selectArgs(zd.RecordBatch,e);if(!r&&!(r=(t=n[0])===null||t===void 0?void 0:t.schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");n[0]||(n[0]=new zd._InternalEmptyPlaceholderRecordBatch(r));super(new Yd.Struct(r.fields),n);this._schema=r,this._chunks=n}static empty(e=new t0.Schema([])){return new nt(e,[])}static from(e){if(!e)return nt.empty();if(typeof e=="object"){let r=Wd.isIterable(e.values)?a2(e):Wd.isAsyncIterable(e.values)?c2(e):null;if(r!==null)return r}let t=o2.RecordBatchReader.from(e);return Wd.isPromise(t)?(()=>Bc.__awaiter(this,void 0,void 0,function*(){return yield nt.from(yield t)}))():t.isSync()&&(t=t.open())?t.schema?new nt(t.schema,[...t]):nt.empty():(r=>Bc.__awaiter(this,void 0,void 0,function*(){var n,s;let u=yield r,p=u.schema,m=[];if(p){try{for(var j=Bc.__asyncValues(u),A;A=yield j.next(),!A.done;){let R=A.value;m.push(R)}}catch(R){n={error:R}}finally{try{A&&!A.done&&(s=j.return)&&(yield s.call(j))}finally{if(n)throw n.error}}return new nt(p,m)}return nt.empty()}))(t.open())}static fromAsync(e){return Bc.__awaiter(this,void 0,void 0,function*(){return yield nt.from(e)})}static fromStruct(e){return nt.new(e.data.childData,e.type.children)}static new(...e){return new nt(...r0.distributeColumnsIntoRecordBatches(i0.selectColumnArgs(e)))}get schema(){return this._schema}get length(){return this._length}get chunks(){return this._chunks}get numCols(){return this._numChildren}clone(e=this._chunks){return new nt(this._schema,e)}getColumn(e){return this.getColumnAt(this.getColumnIndex(e))}getColumnAt(e){return this.getChildAt(e)}getColumnIndex(e){return this._schema.fields.findIndex(t=>t.name===e)}getChildAt(e){if(e<0||e>=this.numChildren)return null;let t,r,n=this._schema.fields,s=this._children||(this._children=[]);if(r=s[e])return r;if(t=n[e]){let u=this._chunks.map(p=>p.getChildAt(e)).filter(p=>p!=null);if(u.length>0)return s[e]=new s2.Column(t,u)}return null}serialize(e="binary",t=!0){return(t?e0.RecordBatchStreamWriter:e0.RecordBatchFileWriter).writeAll(this).toUint8Array(!0)}count(){return this._length}select(...e){let t=this._schema.fields.reduce((r,n,s)=>r.set(n.name,s),new Map);return this.selectAt(...e.map(r=>t.get(r)).filter(r=>r>-1))}selectAt(...e){let t=this._schema.selectAt(...e);return new nt(t,this._chunks.map(({length:r,data:{childData:n}})=>new zd.RecordBatch(t,r,e.map(s=>n[s]).filter(Boolean))))}assign(e){let t=this._schema.fields,[r,n]=e.schema.fields.reduce((p,m,j)=>{let[A,R]=p,P=t.findIndex(x=>x.name===m.name);return~P?R[P]=j:A.push(j),p},[[],[]]),s=this._schema.assign(e.schema),u=[...t.map((p,m,j,A=n[m])=>A===void 0?this.getColumnAt(m):e.getColumnAt(A)),...r.map(p=>e.getColumnAt(p))].filter(Boolean);return new nt(...r0.distributeVectorsIntoRecordBatches(s,u))}};Ic.Table=nt;function a2(i){let{type:e}=i;return e instanceof Yd.Struct?nt.fromStruct(Gd.StructVector.from(i)):null}function c2(i){let{type:e}=i;return e instanceof Yd.Struct?Gd.StructVector.from(i).then(t=>nt.fromStruct(t)):null}});var Hi=M(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs._InternalEmptyPlaceholderRecordBatch=cs.RecordBatch=void 0;var Kd=Qt(),$d=Zs(),u2=Ge(),l2=lt(),d2=ot(),f2=yt(),h2=jr(),p2=sn(),Jd=we(),y2=Xl(),_2=Bi(),Cr=class extends _2.StructVector{constructor(...e){let t,r=e[0],n;if(e[1]instanceof Kd.Data)[,t,n]=e;else{let s=r.fields,[,u,p]=e;t=Kd.Data.Struct(new Jd.Struct(s),0,u,0,null,p)}super(t,n);this._schema=r}static from(e){return f2.isIterable(e.values),$d.Table.from(e)}static new(...e){let[t,r]=p2.selectFieldArgs(e),n=r.filter(s=>s instanceof u2.Vector);return new Cr(...y2.ensureSameLengthData(new d2.Schema(t),n.map(s=>s.data)))}clone(e,t=this._children){return new Cr(this._schema,e,t)}concat(...e){let t=this._schema,r=h2.Chunked.flatten(this,...e);return new $d.Table(t,r.map(({data:n})=>new Cr(t,n)))}get schema(){return this._schema}get numCols(){return this._schema.fields.length}get dictionaries(){return this._dictionaries||(this._dictionaries=Tc.collect(this))}select(...e){let t=this._schema.fields.reduce((r,n,s)=>r.set(n.name,s),new Map);return this.selectAt(...e.map(r=>t.get(r)).filter(r=>r>-1))}selectAt(...e){let t=this._schema.selectAt(...e),r=e.map(n=>this.data.childData[n]).filter(Boolean);return new Cr(t,this.length,r)}};cs.RecordBatch=Cr;var n0=class extends Cr{constructor(e){super(e,0,e.fields.map(t=>Kd.Data.new(t.type,0,0,0)))}};cs._InternalEmptyPlaceholderRecordBatch=n0;var Tc=class extends l2.Visitor{constructor(){super(...arguments);this.dictionaries=new Map}static collect(e){return new Tc().visit(e.data,new Jd.Struct(e.schema.fields)).dictionaries}visit(e,t){return Jd.DataType.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((r,n)=>this.visit(r,t.children[n].type)),this)}visitDictionary(e,t){let r=e.dictionary;return r&&r.length>0&&this.dictionaries.set(t.id,r),this}}});var ao=M(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.AsyncRecordBatchFileReader=Yt.RecordBatchFileReader=Yt.AsyncRecordBatchStreamReader=Yt.RecordBatchStreamReader=Yt.RecordBatchReader=void 0;var Ee=pt(),s0=Ge(),Sc=De(),l0=hl(),o0=Os(),a0=mr(),co=_l(),d0=Lb(),Xd=Hi(),pn=vn(),Gt=Ha(),Wt=yt(),Ai=class extends pn.ReadableInterop{constructor(e){super();this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let t=this._impl.open(e);return Wt.isPromise(t)?t.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return o0.default.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return o0.default.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof Ai?e:Wt.isArrowJSON(e)?m2(e):Wt.isFileHandle(e)?v2(e):Wt.isPromise(e)?(()=>Ee.__awaiter(this,void 0,void 0,function*(){return yield Ai.from(yield e)}))():Wt.isFetchResponse(e)||Wt.isReadableDOMStream(e)||Wt.isReadableNodeStream(e)||Wt.isAsyncIterable(e)?g2(new a0.AsyncByteStream(e)):b2(new a0.ByteStream(e))}static readAll(e){return e instanceof Ai?e.isSync()?c0(e):u0(e):Wt.isArrowJSON(e)||ArrayBuffer.isView(e)||Wt.isIterable(e)||Wt.isIteratorResult(e)?c0(e):u0(e)}};Yt.RecordBatchReader=Ai;var us=class extends Ai{constructor(e){super(e);this._impl=e}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ee.__asyncGenerator(this,arguments,function*(){yield Ee.__await(yield*Ee.__asyncDelegator(Ee.__asyncValues(this[Symbol.iterator]())))})}};Yt.RecordBatchStreamReader=us;var ls=class extends Ai{constructor(e){super(e);this._impl=e}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}};Yt.AsyncRecordBatchStreamReader=ls;var Ac=class extends us{constructor(e){super(e);this._impl=e}};Yt.RecordBatchFileReader=Ac;var Zd=class extends ls{constructor(e){super(e);this._impl=e}};Yt.AsyncRecordBatchFileReader=Zd;var Qd=class{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){return new Xd.RecordBatch(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}_loadDictionaryBatch(e,t){let{id:r,isDelta:n,data:s}=e,{dictionaries:u,schema:p}=this,m=u.get(r);if(n||!m){let j=p.dictionaries.get(r);return m&&n?m.concat(s0.Vector.new(this._loadVectors(s,t,[j])[0])):s0.Vector.new(this._loadVectors(s,t,[j])[0])}return m}_loadVectors(e,t,r){return new d0.VectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(r)}},uo=class extends Qd{constructor(e,t){super(t);this._reader=Wt.isArrowJSON(e)?new Gt.JSONMessageReader(this._handle=e):new Gt.MessageReader(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=p0(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):pn.ITERATOR_DONE}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):pn.ITERATOR_DONE}next(){if(this.closed)return pn.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(r,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Xd._InternalEmptyPlaceholderRecordBatch(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},lo=class extends Qd{constructor(e,t){super(t);this._reader=new Gt.AsyncMessageReader(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return Ee.__awaiter(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return Ee.__awaiter(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=p0(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return Ee.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):pn.ITERATOR_DONE})}return(e){return Ee.__awaiter(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):pn.ITERATOR_DONE})}next(){return Ee.__awaiter(this,void 0,void 0,function*(){if(this.closed)return pn.ITERATOR_DONE;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength),s=this._loadRecordBatch(r,n);return{done:!1,value:s}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Xd._InternalEmptyPlaceholderRecordBatch(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return Ee.__awaiter(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},ef=class extends uo{constructor(e,t){super(e instanceof co.RandomAccessFile?e:new co.RandomAccessFile(e),t)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){if(this.closed)return null;this._footer||this.open();let t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){let r=this._reader.readMessage(Sc.MessageHeader.RecordBatch);if(r==null?void 0:r.isRecordBatch()){let n=r.header(),s=this._reader.readMessageBody(r.bodyLength);return this._loadRecordBatch(n,s)}}return null}_readDictionaryBatch(e){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){let r=this._reader.readMessage(Sc.MessageHeader.DictionaryBatch);if(r==null?void 0:r.isDictionaryBatch()){let n=r.header(),s=this._reader.readMessageBody(r.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}}_readFooter(){let{_handle:e}=this,t=e.size-Gt.magicAndPadding,r=e.readInt32(t),n=e.readAt(t-r,r);return l0.Footer.decode(n)}_readNextMessageAndValidate(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}},f0=class extends lo{constructor(e,...t){let r=typeof t[0]!="number"?t.shift():void 0,n=t[0]instanceof Map?t.shift():void 0;super(e instanceof co.AsyncRandomAccessFile?e:new co.AsyncRandomAccessFile(e,r),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){let t=Object.create(null,{open:{get:()=>super.open}});return Ee.__awaiter(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)})}readRecordBatch(e){return Ee.__awaiter(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());let t=this._footer&&this._footer.getRecordBatch(e);if(t&&(yield this._handle.seek(t.offset))){let r=yield this._reader.readMessage(Sc.MessageHeader.RecordBatch);if(r==null?void 0:r.isRecordBatch()){let n=r.header(),s=yield this._reader.readMessageBody(r.bodyLength);return this._loadRecordBatch(n,s)}}return null})}_readDictionaryBatch(e){return Ee.__awaiter(this,void 0,void 0,function*(){let t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&(yield this._handle.seek(t.offset))){let r=yield this._reader.readMessage(Sc.MessageHeader.DictionaryBatch);if(r==null?void 0:r.isDictionaryBatch()){let n=r.header(),s=yield this._reader.readMessageBody(r.bodyLength),u=this._loadDictionaryBatch(n,s);this.dictionaries.set(n.id,u)}}})}_readFooter(){return Ee.__awaiter(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-Gt.magicAndPadding,r=yield e.readInt32(t),n=yield e.readAt(t-r,r);return l0.Footer.decode(n)})}_readNextMessageAndValidate(e){return Ee.__awaiter(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let t=this._footer.getRecordBatch(this._recordBatchIndex);if(t&&(yield this._handle.seek(t.offset)))return yield this._reader.readMessage(e)}return null})}},h0=class extends uo{constructor(e,t){super(e,t)}_loadVectors(e,t,r){return new d0.JSONVectorLoader(t,e.nodes,e.buffers,this.dictionaries).visitMany(r)}};function p0(i,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:i.autoDestroy}function*c0(i){let e=Ai.from(i);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function u0(i){return Ee.__asyncGenerator(this,arguments,function*(){let t=yield Ee.__await(Ai.from(i));try{if(!(yield Ee.__await(t.open({autoDestroy:!1}))).closed)do yield yield Ee.__await(t);while(!(yield Ee.__await(t.reset().open())).closed)}finally{yield Ee.__await(t.cancel())}})}function m2(i){return new us(new h0(i))}function b2(i){let e=i.peek(Gt.magicLength+7&-8);return e&&e.byteLength>=4?Gt.checkForMagicArrowString(e)?new Ac(new ef(i.read())):new us(new uo(i)):new us(new uo(function*(){}()))}function g2(i){return Ee.__awaiter(this,void 0,void 0,function*(){let e=yield i.peek(Gt.magicLength+7&-8);return e&&e.byteLength>=4?Gt.checkForMagicArrowString(e)?new Ac(new ef(yield i.read())):new ls(new lo(i)):new ls(new lo(function(){return Ee.__asyncGenerator(this,arguments,function*(){})}()))})}function v2(i){return Ee.__awaiter(this,void 0,void 0,function*(){let{size:e}=yield i.stat(),t=new co.AsyncRandomAccessFile(i,e);return e>=Gt.magicX2AndPadding&&Gt.checkForMagicArrowString(yield t.readAt(0,Gt.magicLength+7&-8))?new Zd(new f0(t)):new ls(new lo(t))})}});var m0=M(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.toDOMStream=void 0;var Fc=pt(),_0=tt(),y0=yt();function j2(i,e){if(y0.isAsyncIterable(i))return B2(i,e);if(y0.isIterable(i))return w2(i,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}Dc.toDOMStream=j2;function w2(i,e){let t=null,r=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){s(u,t||(t=i[Symbol.iterator]()))},pull(u){t?s(u,t):u.close()},cancel(){((t==null?void 0:t.return)&&t.return()||!0)&&(t=null)}}),Object.assign({highWaterMark:r?n:void 0},e));function s(u,p){let m,j=null,A=u.desiredSize||null;for(;!(j=p.next(r?A:null)).done;)if(ArrayBuffer.isView(j.value)&&(m=_0.toUint8Array(j.value))&&(A!=null&&r&&(A=A-m.byteLength+1),j.value=m),u.enqueue(j.value),A!=null&&--A<=0)return;u.close()}}function B2(i,e){let t=null,r=(e==null?void 0:e.type)==="bytes"||!1,n=(e==null?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(u){return Fc.__awaiter(this,void 0,void 0,function*(){yield s(u,t||(t=i[Symbol.asyncIterator]()))})},pull(u){return Fc.__awaiter(this,void 0,void 0,function*(){t?yield s(u,t):u.close()})},cancel(){return Fc.__awaiter(this,void 0,void 0,function*(){((t==null?void 0:t.return)&&(yield t.return())||!0)&&(t=null)})}}),Object.assign({highWaterMark:r?n:void 0},e));function s(u,p){return Fc.__awaiter(this,void 0,void 0,function*(){let m,j=null,A=u.desiredSize||null;for(;!(j=yield p.next(r?A:null)).done;)if(ArrayBuffer.isView(j.value)&&(m=_0.toUint8Array(j.value))&&(A!=null&&r&&(A=A-m.byteLength+1),j.value=m),u.enqueue(j.value),A!=null&&--A<=0)return;u.close()})}}});var v0=M(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.BuilderTransform=ds.builderThroughDOMStream=void 0;var I2=pt(),T2=Da();function S2(i){return new tf(i)}ds.builderThroughDOMStream=S2;var tf=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:t,["writableStrategy"]:r,["queueingStrategy"]:n="count"}=e,s=I2.__rest(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=T2.Builder.new(s),this._getSize=n!=="bytes"?b0:g0;let{["highWaterMark"]:u=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},t),{["highWaterMark"]:p=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:m=>{this._maybeFlush(this._builder,this._controller=m)},start:m=>{this._maybeFlush(this._builder,this._controller=m)}},{highWaterMark:u,size:n!=="bytes"?b0:g0}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:p,size:m=>this._writeValueAndReturnChunkSize(m)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){t!==null&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,t===null?e.close():e.enqueue(t)}};ds.BuilderTransform=tf;var b0=i=>i.length,g0=i=>i.byteLength});var j0=M(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.recordBatchReaderThroughDOMStream=void 0;var fo=pt(),A2=mr(),F2=ao();function D2(i,e){let t=new A2.AsyncByteQueue,r=null,n=new ReadableStream({cancel(){return fo.__awaiter(this,void 0,void 0,function*(){yield t.close()})},start(p){return fo.__awaiter(this,void 0,void 0,function*(){yield u(p,r||(r=yield s()))})},pull(p){return fo.__awaiter(this,void 0,void 0,function*(){r?yield u(p,r):p.close()})}});return{writable:new WritableStream(t,Object.assign({highWaterMark:Math.pow(2,14)},i)),readable:n};function s(){return fo.__awaiter(this,void 0,void 0,function*(){return yield(yield F2.RecordBatchReader.from(t)).open(e)})}function u(p,m){return fo.__awaiter(this,void 0,void 0,function*(){let j=p.desiredSize,A=null;for(;!(A=yield m.next()).done;)if(p.enqueue(A.value),j!=null&&--j<=0)return;p.close()})}}Oc.recordBatchReaderThroughDOMStream=D2});var w0=M(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.recordBatchWriterThroughDOMStream=void 0;var Cc=pt(),O2=mr();function C2(i,e){let t=new this(i),r=new O2.AsyncByteStream(t),n=new ReadableStream({type:"bytes",cancel(){return Cc.__awaiter(this,void 0,void 0,function*(){yield r.cancel()})},pull(u){return Cc.__awaiter(this,void 0,void 0,function*(){yield s(u)})},start(u){return Cc.__awaiter(this,void 0,void 0,function*(){yield s(u)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(t,i),readable:n};function s(u){return Cc.__awaiter(this,void 0,void 0,function*(){let p=null,m=u.desiredSize;for(;p=yield r.read(m||null);)if(u.enqueue(p),m!=null&&(m-=p.byteLength)<=0)return;u.close()})}}Mc.recordBatchWriterThroughDOMStream=C2});var cf=M(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.custom=ye.or=ye.and=ye.col=ye.lit=ye.CustomPredicate=ye.Not=ye.GTeq=ye.LTeq=ye.Equals=ye.Or=ye.And=ye.CombinationPredicate=ye.ComparisonPredicate=ye.Predicate=ye.Col=ye.Literal=ye.Value=void 0;var M2=ac(),Mr=class{eq(e){return e instanceof Mr||(e=new Yi(e)),new nf(this,e)}le(e){return e instanceof Mr||(e=new Yi(e)),new sf(this,e)}ge(e){return e instanceof Mr||(e=new Yi(e)),new of(this,e)}lt(e){return new fs(this.ge(e))}gt(e){return new fs(this.le(e))}ne(e){return new fs(this.eq(e))}};ye.Value=Mr;var Yi=class extends Mr{constructor(e){super();this.v=e}};ye.Literal=Yi;var rf=class extends Mr{constructor(e){super();this.name=e}bind(e){if(!this.colidx){this.colidx=-1;let r=e.schema.fields;for(let n=-1;++n<r.length;)if(r[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error(`Failed to bind Col "${this.name}"`)}let t=this.vector=e.getChildAt(this.colidx);return r=>t.get(r)}};ye.Col=rf;var hs=class{and(...e){return new ps(this,...e)}or(...e){return new ys(this,...e)}not(){return new fs(this)}};ye.Predicate=hs;var ho=class extends hs{constructor(e,t){super();this.left=e,this.right=t}bind(e){return this.left instanceof Yi?this.right instanceof Yi?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Yi?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}};ye.ComparisonPredicate=ho;var po=class extends hs{constructor(...e){super();this.children=e}};ye.CombinationPredicate=po;po.prototype.children=Object.freeze([]);var ps=class extends po{constructor(...e){e=e.reduce((t,r)=>t.concat(r instanceof ps?r.children:r),[]);super(...e)}bind(e){let t=this.children.map(r=>r.bind(e));return(r,n)=>t.every(s=>s(r,n))}};ye.And=ps;var ys=class extends po{constructor(...e){e=e.reduce((t,r)=>t.concat(r instanceof ys?r.children:r),[]);super(...e)}bind(e){let t=this.children.map(r=>r.bind(e));return(r,n)=>t.some(s=>s(r,n))}};ye.Or=ys;var nf=class extends ho{_bindLitLit(e,t,r){let n=t.v==r.v;return()=>n}_bindColCol(e,t,r){let n=t.bind(e),s=r.bind(e);return(u,p)=>n(u,p)==s(u,p)}_bindColLit(e,t,r){let n=t.bind(e);if(t.vector instanceof M2.DictionaryVector){let s,u=t.vector;return u.dictionary!==this.lastDictionary?(s=u.reverseLookup(r.v),this.lastDictionary=u.dictionary,this.lastKey=s):s=this.lastKey,s===-1?()=>!1:p=>u.getKey(p)===s}else return(s,u)=>n(s,u)==r.v}_bindLitCol(e,t,r){return this._bindColLit(e,r,t)}};ye.Equals=nf;var sf=class extends ho{_bindLitLit(e,t,r){let n=t.v<=r.v;return()=>n}_bindColCol(e,t,r){let n=t.bind(e),s=r.bind(e);return(u,p)=>n(u,p)<=s(u,p)}_bindColLit(e,t,r){let n=t.bind(e);return(s,u)=>n(s,u)<=r.v}_bindLitCol(e,t,r){let n=r.bind(e);return(s,u)=>t.v<=n(s,u)}};ye.LTeq=sf;var of=class extends ho{_bindLitLit(e,t,r){let n=t.v>=r.v;return()=>n}_bindColCol(e,t,r){let n=t.bind(e),s=r.bind(e);return(u,p)=>n(u,p)>=s(u,p)}_bindColLit(e,t,r){let n=t.bind(e);return(s,u)=>n(s,u)>=r.v}_bindLitCol(e,t,r){let n=r.bind(e);return(s,u)=>t.v>=n(s,u)}};ye.GTeq=of;var fs=class extends hs{constructor(e){super();this.child=e}bind(e){let t=this.child.bind(e);return(r,n)=>!t(r,n)}};ye.Not=fs;var af=class extends hs{constructor(e,t){super();this.next=e,this.bind_=t}bind(e){return this.bind_(e),this.next}};ye.CustomPredicate=af;function U2(i){return new Yi(i)}ye.lit=U2;function E2(i){return new rf(i)}ye.col=E2;function R2(...i){return new ps(...i)}ye.and=R2;function k2(...i){return new ys(...i)}ye.or=k2;function V2(i,e){return new af(i,e)}ye.custom=V2});var F0=M(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.FilteredDataFrame=Ur.CountByResult=Ur.DataFrame=void 0;var B0=Zs(),I0=dc(),uf=ot(),T0=cf(),x2=Hi(),S0=we(),lf=class extends B0.Table{filter(e){return new yo(this.chunks,e)}scan(e,t){let r=this.chunks,n=r.length;for(let s=-1;++s<n;){let u=r[s];t&&t(u);for(let p=-1,m=u.length;++p<m;)e(p,u)}}scanReverse(e,t){let r=this.chunks,n=r.length;for(let s=n;--s>=0;){let u=r[s];t&&t(u);for(let p=u.length;--p>=0;)e(p,u)}}countBy(e){let t=this.chunks,r=t.length,n=typeof e=="string"?new T0.Col(e):e;n.bind(t[r-1]);let s=n.vector;if(!S0.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),p=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,m=new p(s.dictionary.length);for(let j=-1;++j<r;){let A=t[j];n.bind(A);let R=n.vector.indices;for(let P=-1,x=A.length;++P<x;){let pe=R.get(P);pe!==null&&m[pe]++}}return new Uc(s.dictionary,I0.IntVector.from(m))}};Ur.DataFrame=lf;var Uc=class extends B0.Table{constructor(e,t){let r=new uf.Schema([new uf.Field("values",e.type),new uf.Field("counts",t.type)]);super(new x2.RecordBatch(r,t.length,[e,t]))}toJSON(){let e=this.getColumnAt(0),t=this.getColumnAt(1),r={};for(let n=-1;++n<this.length;)r[e.get(n)]=t.get(n);return r}};Ur.CountByResult=Uc;var A0=class{constructor(e,t){this.batches=e,this.predicate=t,this.batchIndex=0,this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch)}next(){for(;this.batchIndex<this.batches.length;){for(;this.index<this.batch.length;){if(this.predicateFunc(this.index,this.batch))return{value:this.batch.get(this.index++)};this.index++}++this.batchIndex<this.batches.length&&(this.index=0,this.batch=this.batches[this.batchIndex],this.predicateFunc=this.predicate.bind(this.batch))}return{done:!0,value:null}}[Symbol.iterator](){return this}},yo=class extends lf{constructor(e,t){super(e);this._predicate=t}scan(e,t){let r=this._chunks,n=r.length;for(let s=-1;++s<n;){let u=r[s],p=this._predicate.bind(u),m=!1;for(let j=-1,A=u.length;++j<A;)p(j,u)&&(t&&!m&&(t(u),m=!0),e(j,u))}}scanReverse(e,t){let r=this._chunks,n=r.length;for(let s=n;--s>=0;){let u=r[s],p=this._predicate.bind(u),m=!1;for(let j=u.length;--j>=0;)p(j,u)&&(t&&!m&&(t(u),m=!0),e(j,u))}}count(){let e=0,t=this._chunks,r=t.length;for(let n=-1;++n<r;){let s=t[n],u=this._predicate.bind(s);for(let p=-1,m=s.length;++p<m;)u(p,s)&&++e}return e}[Symbol.iterator](){return new A0(this._chunks,this._predicate)}filter(e){return new yo(this._chunks,this._predicate.and(e))}countBy(e){let t=this._chunks,r=t.length,n=typeof e=="string"?new T0.Col(e):e;n.bind(t[r-1]);let s=n.vector;if(!S0.DataType.isDictionary(s.type))throw new Error("countBy currently only supports dictionary-encoded columns");let u=Math.ceil(Math.log(s.length)/Math.log(256)),p=u==4?Uint32Array:u>=2?Uint16Array:Uint8Array,m=new p(s.dictionary.length);for(let j=-1;++j<r;){let A=t[j],R=this._predicate.bind(A);n.bind(A);let P=n.vector.indices;for(let x=-1,pe=A.length;++x<pe;){let de=P.get(x);de!==null&&R(x,A)&&m[de]++}}return new Uc(s.dictionary,I0.IntVector.from(m))}};Ur.FilteredDataFrame=yo});var C0=M(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.isTypedArray=v.util=v.predicate=v.CountByResult=v.FilteredDataFrame=v.DataFrame=v.RecordBatch=v.Message=v.JSONMessageReader=v.AsyncMessageReader=v.MessageReader=v.RecordBatchJSONWriter=v.RecordBatchStreamWriter=v.RecordBatchFileWriter=v.RecordBatchWriter=v.AsyncRecordBatchStreamReader=v.AsyncRecordBatchFileReader=v.RecordBatchStreamReader=v.RecordBatchFileReader=v.RecordBatchReader=v.AsyncByteQueue=v.AsyncByteStream=v.ByteStream=v.Utf8Builder=v.SparseUnionBuilder=v.DenseUnionBuilder=v.UnionBuilder=v.TimeNanosecondBuilder=v.TimeMicrosecondBuilder=v.TimeMillisecondBuilder=v.TimeSecondBuilder=v.TimeBuilder=v.TimestampNanosecondBuilder=v.TimestampMicrosecondBuilder=v.TimestampMillisecondBuilder=v.TimestampSecondBuilder=v.TimestampBuilder=v.StructBuilder=v.NullBuilder=v.MapBuilder=v.ListBuilder=v.Uint64Builder=v.Uint32Builder=v.Uint16Builder=v.Uint8Builder=v.Int64Builder=v.Int32Builder=v.Int16Builder=v.Int8Builder=v.IntBuilder=v.IntervalYearMonthBuilder=v.IntervalDayTimeBuilder=v.IntervalBuilder=v.Float64Builder=v.Float32Builder=v.Float16Builder=v.FloatBuilder=v.FixedSizeListBuilder=v.FixedSizeBinaryBuilder=v.DictionaryBuilder=v.DecimalBuilder=v.DateMillisecondBuilder=v.DateDayBuilder=v.DateBuilder=v.BoolBuilder=v.BinaryBuilder=v.Builder=v.Utf8Vector=v.SparseUnionVector=v.DenseUnionVector=v.UnionVector=v.TimeNanosecondVector=v.TimeMicrosecondVector=v.TimeMillisecondVector=v.TimeSecondVector=v.TimeVector=v.TimestampNanosecondVector=v.TimestampMicrosecondVector=v.TimestampMillisecondVector=v.TimestampSecondVector=v.TimestampVector=v.StructVector=v.NullVector=v.MapVector=v.ListVector=v.Uint64Vector=v.Uint32Vector=v.Uint16Vector=v.Uint8Vector=v.Int64Vector=v.Int32Vector=v.Int16Vector=v.Int8Vector=v.IntVector=v.IntervalYearMonthVector=v.IntervalDayTimeVector=v.IntervalVector=v.Float64Vector=v.Float32Vector=v.Float16Vector=v.FloatVector=v.FixedSizeListVector=v.FixedSizeBinaryVector=v.DictionaryVector=v.DecimalVector=v.DateMillisecondVector=v.DateDayVector=v.DateVector=v.Chunked=v.BoolVector=v.BinaryVector=v.BaseVector=v.Vector=v.Field=v.Schema=v.Visitor=v.Column=v.Table=v.Map_=v.FixedSizeList=v.IntervalYearMonth=v.IntervalDayTime=v.Interval=v.Dictionary=v.SparseUnion=v.DenseUnion=v.Union=v.Struct=v.List=v.Decimal=v.TimeNanosecond=v.TimeMicrosecond=v.TimeMillisecond=v.TimeSecond=v.Time=v.TimestampNanosecond=v.TimestampMicrosecond=v.TimestampMillisecond=v.TimestampSecond=v.Timestamp=v.DateMillisecond=v.DateDay=v.Date_=v.FixedSizeBinary=v.Binary=v.Utf8=v.Float64=v.Float32=v.Float16=v.Float=v.Uint64=v.Uint32=v.Uint16=v.Uint8=v.Int64=v.Int32=v.Int16=v.Int8=v.Int=v.Bool=v.Null=v.DataType=v.Data=v.BufferType=v.Type=v.MessageHeader=v.MetadataVersion=v.IntervalUnit=v.UnionMode=v.Precision=v.TimeUnit=v.DateUnit=void 0;var _s=nr();Object.defineProperty(v,"DateUnit",{enumerable:!0,get:function(){return _s.DateUnit}});Object.defineProperty(v,"TimeUnit",{enumerable:!0,get:function(){return _s.TimeUnit}});Object.defineProperty(v,"Precision",{enumerable:!0,get:function(){return _s.Precision}});Object.defineProperty(v,"UnionMode",{enumerable:!0,get:function(){return _s.UnionMode}});Object.defineProperty(v,"IntervalUnit",{enumerable:!0,get:function(){return _s.IntervalUnit}});Object.defineProperty(v,"MetadataVersion",{enumerable:!0,get:function(){return _s.MetadataVersion}});var P2=Ho();Object.defineProperty(v,"MessageHeader",{enumerable:!0,get:function(){return P2.MessageHeader}});var D0=De();Object.defineProperty(v,"Type",{enumerable:!0,get:function(){return D0.Type}});Object.defineProperty(v,"BufferType",{enumerable:!0,get:function(){return D0.BufferType}});var N2=Qt();Object.defineProperty(v,"Data",{enumerable:!0,get:function(){return N2.Data}});var ae=we();Object.defineProperty(v,"DataType",{enumerable:!0,get:function(){return ae.DataType}});Object.defineProperty(v,"Null",{enumerable:!0,get:function(){return ae.Null}});Object.defineProperty(v,"Bool",{enumerable:!0,get:function(){return ae.Bool}});Object.defineProperty(v,"Int",{enumerable:!0,get:function(){return ae.Int}});Object.defineProperty(v,"Int8",{enumerable:!0,get:function(){return ae.Int8}});Object.defineProperty(v,"Int16",{enumerable:!0,get:function(){return ae.Int16}});Object.defineProperty(v,"Int32",{enumerable:!0,get:function(){return ae.Int32}});Object.defineProperty(v,"Int64",{enumerable:!0,get:function(){return ae.Int64}});Object.defineProperty(v,"Uint8",{enumerable:!0,get:function(){return ae.Uint8}});Object.defineProperty(v,"Uint16",{enumerable:!0,get:function(){return ae.Uint16}});Object.defineProperty(v,"Uint32",{enumerable:!0,get:function(){return ae.Uint32}});Object.defineProperty(v,"Uint64",{enumerable:!0,get:function(){return ae.Uint64}});Object.defineProperty(v,"Float",{enumerable:!0,get:function(){return ae.Float}});Object.defineProperty(v,"Float16",{enumerable:!0,get:function(){return ae.Float16}});Object.defineProperty(v,"Float32",{enumerable:!0,get:function(){return ae.Float32}});Object.defineProperty(v,"Float64",{enumerable:!0,get:function(){return ae.Float64}});Object.defineProperty(v,"Utf8",{enumerable:!0,get:function(){return ae.Utf8}});Object.defineProperty(v,"Binary",{enumerable:!0,get:function(){return ae.Binary}});Object.defineProperty(v,"FixedSizeBinary",{enumerable:!0,get:function(){return ae.FixedSizeBinary}});Object.defineProperty(v,"Date_",{enumerable:!0,get:function(){return ae.Date_}});Object.defineProperty(v,"DateDay",{enumerable:!0,get:function(){return ae.DateDay}});Object.defineProperty(v,"DateMillisecond",{enumerable:!0,get:function(){return ae.DateMillisecond}});Object.defineProperty(v,"Timestamp",{enumerable:!0,get:function(){return ae.Timestamp}});Object.defineProperty(v,"TimestampSecond",{enumerable:!0,get:function(){return ae.TimestampSecond}});Object.defineProperty(v,"TimestampMillisecond",{enumerable:!0,get:function(){return ae.TimestampMillisecond}});Object.defineProperty(v,"TimestampMicrosecond",{enumerable:!0,get:function(){return ae.TimestampMicrosecond}});Object.defineProperty(v,"TimestampNanosecond",{enumerable:!0,get:function(){return ae.TimestampNanosecond}});Object.defineProperty(v,"Time",{enumerable:!0,get:function(){return ae.Time}});Object.defineProperty(v,"TimeSecond",{enumerable:!0,get:function(){return ae.TimeSecond}});Object.defineProperty(v,"TimeMillisecond",{enumerable:!0,get:function(){return ae.TimeMillisecond}});Object.defineProperty(v,"TimeMicrosecond",{enumerable:!0,get:function(){return ae.TimeMicrosecond}});Object.defineProperty(v,"TimeNanosecond",{enumerable:!0,get:function(){return ae.TimeNanosecond}});Object.defineProperty(v,"Decimal",{enumerable:!0,get:function(){return ae.Decimal}});Object.defineProperty(v,"List",{enumerable:!0,get:function(){return ae.List}});Object.defineProperty(v,"Struct",{enumerable:!0,get:function(){return ae.Struct}});Object.defineProperty(v,"Union",{enumerable:!0,get:function(){return ae.Union}});Object.defineProperty(v,"DenseUnion",{enumerable:!0,get:function(){return ae.DenseUnion}});Object.defineProperty(v,"SparseUnion",{enumerable:!0,get:function(){return ae.SparseUnion}});Object.defineProperty(v,"Dictionary",{enumerable:!0,get:function(){return ae.Dictionary}});Object.defineProperty(v,"Interval",{enumerable:!0,get:function(){return ae.Interval}});Object.defineProperty(v,"IntervalDayTime",{enumerable:!0,get:function(){return ae.IntervalDayTime}});Object.defineProperty(v,"IntervalYearMonth",{enumerable:!0,get:function(){return ae.IntervalYearMonth}});Object.defineProperty(v,"FixedSizeList",{enumerable:!0,get:function(){return ae.FixedSizeList}});Object.defineProperty(v,"Map_",{enumerable:!0,get:function(){return ae.Map_}});var L2=Zs();Object.defineProperty(v,"Table",{enumerable:!0,get:function(){return L2.Table}});var q2=Gn();Object.defineProperty(v,"Column",{enumerable:!0,get:function(){return q2.Column}});var H2=lt();Object.defineProperty(v,"Visitor",{enumerable:!0,get:function(){return H2.Visitor}});var O0=ot();Object.defineProperty(v,"Schema",{enumerable:!0,get:function(){return O0.Schema}});Object.defineProperty(v,"Field",{enumerable:!0,get:function(){return O0.Field}});var re=Bi();Object.defineProperty(v,"Vector",{enumerable:!0,get:function(){return re.Vector}});Object.defineProperty(v,"BaseVector",{enumerable:!0,get:function(){return re.BaseVector}});Object.defineProperty(v,"BinaryVector",{enumerable:!0,get:function(){return re.BinaryVector}});Object.defineProperty(v,"BoolVector",{enumerable:!0,get:function(){return re.BoolVector}});Object.defineProperty(v,"Chunked",{enumerable:!0,get:function(){return re.Chunked}});Object.defineProperty(v,"DateVector",{enumerable:!0,get:function(){return re.DateVector}});Object.defineProperty(v,"DateDayVector",{enumerable:!0,get:function(){return re.DateDayVector}});Object.defineProperty(v,"DateMillisecondVector",{enumerable:!0,get:function(){return re.DateMillisecondVector}});Object.defineProperty(v,"DecimalVector",{enumerable:!0,get:function(){return re.DecimalVector}});Object.defineProperty(v,"DictionaryVector",{enumerable:!0,get:function(){return re.DictionaryVector}});Object.defineProperty(v,"FixedSizeBinaryVector",{enumerable:!0,get:function(){return re.FixedSizeBinaryVector}});Object.defineProperty(v,"FixedSizeListVector",{enumerable:!0,get:function(){return re.FixedSizeListVector}});Object.defineProperty(v,"FloatVector",{enumerable:!0,get:function(){return re.FloatVector}});Object.defineProperty(v,"Float16Vector",{enumerable:!0,get:function(){return re.Float16Vector}});Object.defineProperty(v,"Float32Vector",{enumerable:!0,get:function(){return re.Float32Vector}});Object.defineProperty(v,"Float64Vector",{enumerable:!0,get:function(){return re.Float64Vector}});Object.defineProperty(v,"IntervalVector",{enumerable:!0,get:function(){return re.IntervalVector}});Object.defineProperty(v,"IntervalDayTimeVector",{enumerable:!0,get:function(){return re.IntervalDayTimeVector}});Object.defineProperty(v,"IntervalYearMonthVector",{enumerable:!0,get:function(){return re.IntervalYearMonthVector}});Object.defineProperty(v,"IntVector",{enumerable:!0,get:function(){return re.IntVector}});Object.defineProperty(v,"Int8Vector",{enumerable:!0,get:function(){return re.Int8Vector}});Object.defineProperty(v,"Int16Vector",{enumerable:!0,get:function(){return re.Int16Vector}});Object.defineProperty(v,"Int32Vector",{enumerable:!0,get:function(){return re.Int32Vector}});Object.defineProperty(v,"Int64Vector",{enumerable:!0,get:function(){return re.Int64Vector}});Object.defineProperty(v,"Uint8Vector",{enumerable:!0,get:function(){return re.Uint8Vector}});Object.defineProperty(v,"Uint16Vector",{enumerable:!0,get:function(){return re.Uint16Vector}});Object.defineProperty(v,"Uint32Vector",{enumerable:!0,get:function(){return re.Uint32Vector}});Object.defineProperty(v,"Uint64Vector",{enumerable:!0,get:function(){return re.Uint64Vector}});Object.defineProperty(v,"ListVector",{enumerable:!0,get:function(){return re.ListVector}});Object.defineProperty(v,"MapVector",{enumerable:!0,get:function(){return re.MapVector}});Object.defineProperty(v,"NullVector",{enumerable:!0,get:function(){return re.NullVector}});Object.defineProperty(v,"StructVector",{enumerable:!0,get:function(){return re.StructVector}});Object.defineProperty(v,"TimestampVector",{enumerable:!0,get:function(){return re.TimestampVector}});Object.defineProperty(v,"TimestampSecondVector",{enumerable:!0,get:function(){return re.TimestampSecondVector}});Object.defineProperty(v,"TimestampMillisecondVector",{enumerable:!0,get:function(){return re.TimestampMillisecondVector}});Object.defineProperty(v,"TimestampMicrosecondVector",{enumerable:!0,get:function(){return re.TimestampMicrosecondVector}});Object.defineProperty(v,"TimestampNanosecondVector",{enumerable:!0,get:function(){return re.TimestampNanosecondVector}});Object.defineProperty(v,"TimeVector",{enumerable:!0,get:function(){return re.TimeVector}});Object.defineProperty(v,"TimeSecondVector",{enumerable:!0,get:function(){return re.TimeSecondVector}});Object.defineProperty(v,"TimeMillisecondVector",{enumerable:!0,get:function(){return re.TimeMillisecondVector}});Object.defineProperty(v,"TimeMicrosecondVector",{enumerable:!0,get:function(){return re.TimeMicrosecondVector}});Object.defineProperty(v,"TimeNanosecondVector",{enumerable:!0,get:function(){return re.TimeNanosecondVector}});Object.defineProperty(v,"UnionVector",{enumerable:!0,get:function(){return re.UnionVector}});Object.defineProperty(v,"DenseUnionVector",{enumerable:!0,get:function(){return re.DenseUnionVector}});Object.defineProperty(v,"SparseUnionVector",{enumerable:!0,get:function(){return re.SparseUnionVector}});Object.defineProperty(v,"Utf8Vector",{enumerable:!0,get:function(){return re.Utf8Vector}});var ce=Da();Object.defineProperty(v,"Builder",{enumerable:!0,get:function(){return ce.Builder}});Object.defineProperty(v,"BinaryBuilder",{enumerable:!0,get:function(){return ce.BinaryBuilder}});Object.defineProperty(v,"BoolBuilder",{enumerable:!0,get:function(){return ce.BoolBuilder}});Object.defineProperty(v,"DateBuilder",{enumerable:!0,get:function(){return ce.DateBuilder}});Object.defineProperty(v,"DateDayBuilder",{enumerable:!0,get:function(){return ce.DateDayBuilder}});Object.defineProperty(v,"DateMillisecondBuilder",{enumerable:!0,get:function(){return ce.DateMillisecondBuilder}});Object.defineProperty(v,"DecimalBuilder",{enumerable:!0,get:function(){return ce.DecimalBuilder}});Object.defineProperty(v,"DictionaryBuilder",{enumerable:!0,get:function(){return ce.DictionaryBuilder}});Object.defineProperty(v,"FixedSizeBinaryBuilder",{enumerable:!0,get:function(){return ce.FixedSizeBinaryBuilder}});Object.defineProperty(v,"FixedSizeListBuilder",{enumerable:!0,get:function(){return ce.FixedSizeListBuilder}});Object.defineProperty(v,"FloatBuilder",{enumerable:!0,get:function(){return ce.FloatBuilder}});Object.defineProperty(v,"Float16Builder",{enumerable:!0,get:function(){return ce.Float16Builder}});Object.defineProperty(v,"Float32Builder",{enumerable:!0,get:function(){return ce.Float32Builder}});Object.defineProperty(v,"Float64Builder",{enumerable:!0,get:function(){return ce.Float64Builder}});Object.defineProperty(v,"IntervalBuilder",{enumerable:!0,get:function(){return ce.IntervalBuilder}});Object.defineProperty(v,"IntervalDayTimeBuilder",{enumerable:!0,get:function(){return ce.IntervalDayTimeBuilder}});Object.defineProperty(v,"IntervalYearMonthBuilder",{enumerable:!0,get:function(){return ce.IntervalYearMonthBuilder}});Object.defineProperty(v,"IntBuilder",{enumerable:!0,get:function(){return ce.IntBuilder}});Object.defineProperty(v,"Int8Builder",{enumerable:!0,get:function(){return ce.Int8Builder}});Object.defineProperty(v,"Int16Builder",{enumerable:!0,get:function(){return ce.Int16Builder}});Object.defineProperty(v,"Int32Builder",{enumerable:!0,get:function(){return ce.Int32Builder}});Object.defineProperty(v,"Int64Builder",{enumerable:!0,get:function(){return ce.Int64Builder}});Object.defineProperty(v,"Uint8Builder",{enumerable:!0,get:function(){return ce.Uint8Builder}});Object.defineProperty(v,"Uint16Builder",{enumerable:!0,get:function(){return ce.Uint16Builder}});Object.defineProperty(v,"Uint32Builder",{enumerable:!0,get:function(){return ce.Uint32Builder}});Object.defineProperty(v,"Uint64Builder",{enumerable:!0,get:function(){return ce.Uint64Builder}});Object.defineProperty(v,"ListBuilder",{enumerable:!0,get:function(){return ce.ListBuilder}});Object.defineProperty(v,"MapBuilder",{enumerable:!0,get:function(){return ce.MapBuilder}});Object.defineProperty(v,"NullBuilder",{enumerable:!0,get:function(){return ce.NullBuilder}});Object.defineProperty(v,"StructBuilder",{enumerable:!0,get:function(){return ce.StructBuilder}});Object.defineProperty(v,"TimestampBuilder",{enumerable:!0,get:function(){return ce.TimestampBuilder}});Object.defineProperty(v,"TimestampSecondBuilder",{enumerable:!0,get:function(){return ce.TimestampSecondBuilder}});Object.defineProperty(v,"TimestampMillisecondBuilder",{enumerable:!0,get:function(){return ce.TimestampMillisecondBuilder}});Object.defineProperty(v,"TimestampMicrosecondBuilder",{enumerable:!0,get:function(){return ce.TimestampMicrosecondBuilder}});Object.defineProperty(v,"TimestampNanosecondBuilder",{enumerable:!0,get:function(){return ce.TimestampNanosecondBuilder}});Object.defineProperty(v,"TimeBuilder",{enumerable:!0,get:function(){return ce.TimeBuilder}});Object.defineProperty(v,"TimeSecondBuilder",{enumerable:!0,get:function(){return ce.TimeSecondBuilder}});Object.defineProperty(v,"TimeMillisecondBuilder",{enumerable:!0,get:function(){return ce.TimeMillisecondBuilder}});Object.defineProperty(v,"TimeMicrosecondBuilder",{enumerable:!0,get:function(){return ce.TimeMicrosecondBuilder}});Object.defineProperty(v,"TimeNanosecondBuilder",{enumerable:!0,get:function(){return ce.TimeNanosecondBuilder}});Object.defineProperty(v,"UnionBuilder",{enumerable:!0,get:function(){return ce.UnionBuilder}});Object.defineProperty(v,"DenseUnionBuilder",{enumerable:!0,get:function(){return ce.DenseUnionBuilder}});Object.defineProperty(v,"SparseUnionBuilder",{enumerable:!0,get:function(){return ce.SparseUnionBuilder}});Object.defineProperty(v,"Utf8Builder",{enumerable:!0,get:function(){return ce.Utf8Builder}});var ff=mr();Object.defineProperty(v,"ByteStream",{enumerable:!0,get:function(){return ff.ByteStream}});Object.defineProperty(v,"AsyncByteStream",{enumerable:!0,get:function(){return ff.AsyncByteStream}});Object.defineProperty(v,"AsyncByteQueue",{enumerable:!0,get:function(){return ff.AsyncByteQueue}});var _o=ao();Object.defineProperty(v,"RecordBatchReader",{enumerable:!0,get:function(){return _o.RecordBatchReader}});Object.defineProperty(v,"RecordBatchFileReader",{enumerable:!0,get:function(){return _o.RecordBatchFileReader}});Object.defineProperty(v,"RecordBatchStreamReader",{enumerable:!0,get:function(){return _o.RecordBatchStreamReader}});Object.defineProperty(v,"AsyncRecordBatchFileReader",{enumerable:!0,get:function(){return _o.AsyncRecordBatchFileReader}});Object.defineProperty(v,"AsyncRecordBatchStreamReader",{enumerable:!0,get:function(){return _o.AsyncRecordBatchStreamReader}});var Ec=ec();Object.defineProperty(v,"RecordBatchWriter",{enumerable:!0,get:function(){return Ec.RecordBatchWriter}});Object.defineProperty(v,"RecordBatchFileWriter",{enumerable:!0,get:function(){return Ec.RecordBatchFileWriter}});Object.defineProperty(v,"RecordBatchStreamWriter",{enumerable:!0,get:function(){return Ec.RecordBatchStreamWriter}});Object.defineProperty(v,"RecordBatchJSONWriter",{enumerable:!0,get:function(){return Ec.RecordBatchJSONWriter}});var hf=Ha();Object.defineProperty(v,"MessageReader",{enumerable:!0,get:function(){return hf.MessageReader}});Object.defineProperty(v,"AsyncMessageReader",{enumerable:!0,get:function(){return hf.AsyncMessageReader}});Object.defineProperty(v,"JSONMessageReader",{enumerable:!0,get:function(){return hf.JSONMessageReader}});var z2=cn();Object.defineProperty(v,"Message",{enumerable:!0,get:function(){return z2.Message}});var W2=Hi();Object.defineProperty(v,"RecordBatch",{enumerable:!0,get:function(){return W2.RecordBatch}});var pf=F0();Object.defineProperty(v,"DataFrame",{enumerable:!0,get:function(){return pf.DataFrame}});Object.defineProperty(v,"FilteredDataFrame",{enumerable:!0,get:function(){return pf.FilteredDataFrame}});Object.defineProperty(v,"CountByResult",{enumerable:!0,get:function(){return pf.CountByResult}});var Y2=ks(),G2=bl(),$2=fi(),K2=Ms(),J2=tt(),X2=zs(),Z2=cf();v.predicate=Z2;var df=kl();v.util=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Y2),G2),$2),K2),J2),X2),{compareSchemas:df.compareSchemas,compareFields:df.compareFields,compareTypes:df.compareTypes});var Q2=sn();Object.defineProperty(v,"isTypedArray",{enumerable:!0,get:function(){return Q2.isTypedArray}})});var mf=M(()=>{});var V0=M(()=>{});var q0=M((exports,module)=>{(function(){"use strict";var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&typeof module=="object"&&module.exports,AMD=typeof define=="function"&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(i){return typeof i=="object"&&i.buffer&&i.buffer.constructor===ArrayBuffer});var createOutputMethod=function(i,e){return function(t){return new Sha256(e,!0).update(t)[i]()}},createMethod=function(i){var e=createOutputMethod("hex",i);NODE_JS&&(e=nodeWrap(e,i)),e.create=function(){return new Sha256(i)},e.update=function(n){return e.create().update(n)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createOutputMethod(r,i)}return e},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(i){if(typeof i=="string")return crypto.createHash(algorithm).update(i,"utf8").digest("hex");if(i==null)throw new Error(ERROR);return i.constructor===ArrayBuffer&&(i=new Uint8Array(i)),Array.isArray(i)||ArrayBuffer.isView(i)||i.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(i)).digest("hex"):method(i)};return nodeMethod},createHmacOutputMethod=function(i,e){return function(t,r){return new HmacSha256(t,e,!0).update(r)[i]()}},createHmacMethod=function(i){var e=createHmacOutputMethod("hex",i);e.create=function(n){return new HmacSha256(n,i)},e.update=function(n,s){return e.create(n).update(s)};for(var t=0;t<OUTPUT_TYPES.length;++t){var r=OUTPUT_TYPES[t];e[r]=createHmacOutputMethod(r,i)}return e};function Sha256(i,e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=i}Sha256.prototype.update=function(i){if(!this.finalized){var e,t=typeof i;if(t!=="string"){if(t==="object"){if(i===null)throw new Error(ERROR);if(ARRAY_BUFFER&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!Array.isArray(i)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(i)))throw new Error(ERROR)}else throw new Error(ERROR);e=!0}for(var r,n=0,s,u=i.length,p=this.blocks;n<u;){if(this.hashed&&(this.hashed=!1,p[0]=this.block,p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0),e)for(s=this.start;n<u&&s<64;++n)p[s>>2]|=i[n]<<SHIFT[s++&3];else for(s=this.start;n<u&&s<64;++n)r=i.charCodeAt(n),r<128?p[s>>2]|=r<<SHIFT[s++&3]:r<2048?(p[s>>2]|=(192|r>>6)<<SHIFT[s++&3],p[s>>2]|=(128|r&63)<<SHIFT[s++&3]):r<55296||r>=57344?(p[s>>2]|=(224|r>>12)<<SHIFT[s++&3],p[s>>2]|=(128|r>>6&63)<<SHIFT[s++&3],p[s>>2]|=(128|r&63)<<SHIFT[s++&3]):(r=65536+((r&1023)<<10|i.charCodeAt(++n)&1023),p[s>>2]|=(240|r>>18)<<SHIFT[s++&3],p[s>>2]|=(128|r>>12&63)<<SHIFT[s++&3],p[s>>2]|=(128|r>>6&63)<<SHIFT[s++&3],p[s>>2]|=(128|r&63)<<SHIFT[s++&3]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=p[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var i=this.blocks,e=this.lastByteIndex;i[16]=this.block,i[e>>2]|=EXTRA[e&3],this.block=i[16],e>=56&&(this.hashed||this.hash(),i[0]=this.block,i[16]=i[1]=i[2]=i[3]=i[4]=i[5]=i[6]=i[7]=i[8]=i[9]=i[10]=i[11]=i[12]=i[13]=i[14]=i[15]=0),i[14]=this.hBytes<<3|this.bytes>>>29,i[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var i=this.h0,e=this.h1,t=this.h2,r=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=this.blocks,j,A,R,P,x,pe,de,Ie,Oe,ht,Gi;for(j=16;j<64;++j)x=m[j-15],A=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3,x=m[j-2],R=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10,m[j]=m[j-16]+A+m[j-7]+R<<0;for(Gi=e&t,j=0;j<64;j+=4)this.first?(this.is224?(Ie=300032,x=m[0]-1413257819,p=x-150054599<<0,r=x+24177077<<0):(Ie=704751109,x=m[0]-210244248,p=x-1521486534<<0,r=x+143694565<<0),this.first=!1):(A=(i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10),R=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7),Ie=i&e,P=Ie^i&t^Gi,de=n&s^~n&u,x=p+R+de+K[j]+m[j],pe=A+P,p=r+x<<0,r=x+pe<<0),A=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),R=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7),Oe=r&i,P=Oe^r&e^Ie,de=p&n^~p&s,x=u+R+de+K[j+1]+m[j+1],pe=A+P,u=t+x<<0,t=x+pe<<0,A=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),R=(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7),ht=t&r,P=ht^t&i^Oe,de=u&p^~u&n,x=s+R+de+K[j+2]+m[j+2],pe=A+P,s=e+x<<0,e=x+pe<<0,A=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),R=(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7),Gi=e&t,P=Gi^e&r^ht,de=s&u^~s&p,x=n+R+de+K[j+3]+m[j+3],pe=A+P,n=i+x<<0,i=x+pe<<0;this.h0=this.h0+i<<0,this.h1=this.h1+e<<0,this.h2=this.h2+t<<0,this.h3=this.h3+r<<0,this.h4=this.h4+n<<0,this.h5=this.h5+s<<0,this.h6=this.h6+u<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var i=this.h0,e=this.h1,t=this.h2,r=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[i&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[e&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[t&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[r&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[n&15]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[s&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15];return this.is224||(m+=HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[p&15]),m},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var i=this.h0,e=this.h1,t=this.h2,r=this.h3,n=this.h4,s=this.h5,u=this.h6,p=this.h7,m=[i>>24&255,i>>16&255,i>>8&255,i&255,e>>24&255,e>>16&255,e>>8&255,e&255,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24&255,r>>16&255,r>>8&255,r&255,n>>24&255,n>>16&255,n>>8&255,n&255,s>>24&255,s>>16&255,s>>8&255,s&255,u>>24&255,u>>16&255,u>>8&255,u&255];return this.is224||m.push(p>>24&255,p>>16&255,p>>8&255,p&255),m},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var i=new ArrayBuffer(this.is224?28:32),e=new DataView(i);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),i};function HmacSha256(i,e,t){var r,n=typeof i;if(n==="string"){var s=[],u=i.length,p=0,m;for(r=0;r<u;++r)m=i.charCodeAt(r),m<128?s[p++]=m:m<2048?(s[p++]=192|m>>6,s[p++]=128|m&63):m<55296||m>=57344?(s[p++]=224|m>>12,s[p++]=128|m>>6&63,s[p++]=128|m&63):(m=65536+((m&1023)<<10|i.charCodeAt(++r)&1023),s[p++]=240|m>>18,s[p++]=128|m>>12&63,s[p++]=128|m>>6&63,s[p++]=128|m&63);i=s}else if(n==="object"){if(i===null)throw new Error(ERROR);if(ARRAY_BUFFER&&i.constructor===ArrayBuffer)i=new Uint8Array(i);else if(!Array.isArray(i)&&(!ARRAY_BUFFER||!ArrayBuffer.isView(i)))throw new Error(ERROR)}else throw new Error(ERROR);i.length>64&&(i=new Sha256(e,!0).update(i).array());var j=[],A=[];for(r=0;r<64;++r){var R=i[r]||0;j[r]=92^R,A[r]=54^R}Sha256.call(this,e,t),this.update(A),this.oKeyPad=j,this.inner=!0,this.sharedMemory=t}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var i=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(i),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define(function(){return exports}))})()});var lE={};pA(lE,{registerWorker:()=>Y0});var M0=oi(Os(),1),U0=oi(Da(),1),ms=oi(ao(),1),bs=oi(ec(),1),E0=oi(m0(),1),R0=oi(v0(),1),Rc=oi(j0(),1),kc=oi(w0(),1),S=oi(C0(),1);M0.default.toDOMStream=E0.toDOMStream;U0.Builder.throughDOM=R0.builderThroughDOMStream;ms.RecordBatchReader.throughDOM=Rc.recordBatchReaderThroughDOMStream;ms.RecordBatchFileReader.throughDOM=Rc.recordBatchReaderThroughDOMStream;ms.RecordBatchStreamReader.throughDOM=Rc.recordBatchReaderThroughDOMStream;bs.RecordBatchWriter.throughDOM=kc.recordBatchWriterThroughDOMStream;bs.RecordBatchFileWriter.throughDOM=kc.recordBatchWriterThroughDOMStream;bs.RecordBatchStreamWriter.throughDOM=kc.recordBatchWriterThroughDOMStream;function yf(i){switch(i.typeId){case S.Type.Binary:return{type:"binary"};case S.Type.Bool:return{type:"bool"};case S.Type.Date:return{type:"date"};case S.Type.DateDay:return{type:"date32[d]"};case S.Type.DateMillisecond:return{type:"date64[ms]"};case S.Type.Decimal:{let e=i;return{type:"decimal",precision:e.precision,scale:e.scale}}case S.Type.Float:return{type:"float"};case S.Type.Float16:return{type:"float16"};case S.Type.Float32:return{type:"float32"};case S.Type.Float64:return{type:"float64"};case S.Type.Int:return{type:"int32"};case S.Type.Int16:return{type:"int16"};case S.Type.Int32:return{type:"int32"};case S.Type.Int64:return{type:"int64"};case S.Type.Uint16:return{type:"uint16"};case S.Type.Uint32:return{type:"uint32"};case S.Type.Uint64:return{type:"uint64"};case S.Type.Uint8:return{type:"uint8"};case S.Type.IntervalDayTime:return{type:"interval[dt]"};case S.Type.IntervalYearMonth:return{type:"interval[m]"};case S.Type.List:{let e=i;return{type:"list",children:[mo(e.valueField.name,e.valueField.type)]}}case S.Type.FixedSizeBinary:return{type:"fixedsizebinary",byteWidth:i.byteWidth};case S.Type.Null:return{type:"null"};case S.Type.Utf8:return{type:"utf8"};case S.Type.Struct:return{type:"struct",children:i.children.map(t=>mo(t.name,t.type))};case S.Type.Time:return{type:"time[s]"};case S.Type.TimeMicrosecond:return{type:"time[us]"};case S.Type.TimeMillisecond:return{type:"time[ms]"};case S.Type.TimeNanosecond:return{type:"time[ns]"};case S.Type.TimeSecond:return{type:"time[s]"};case S.Type.Timestamp:return{type:"timestamp",timezone:i.timezone||void 0};case S.Type.TimestampSecond:return{type:"timestamp[s]",timezone:i.timezone||void 0};case S.Type.TimestampMicrosecond:return{type:"timestamp[us]",timezone:i.timezone||void 0};case S.Type.TimestampNanosecond:return{type:"timestamp[ns]",timezone:i.timezone||void 0};case S.Type.TimestampMillisecond:return{type:"timestamp[ms]",timezone:i.timezone||void 0}}throw new Error(`unsupported arrow type: ${i.toString()}`)}function mo(i,e){let t=yf(e);return t.name=i,t}var _f=class{constructor(){this._bindings=null;this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"OK",data:null},[])}failWith(e,t){let r={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"ERROR",data:r},[])}async onMessage(e){switch(e.type){case"PING":this.sendOK(e);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1],t=>{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"INSTANTIATE_PROGRESS",data:t},[])}),this.sendOK(e)}catch(t){this._bindings=null,this.failWith(e,t)}return;default:break}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(e);break;case"OPEN":this._bindings.open(e.data),this.sendOK(e);break;case"DROP_FILE":this._bindings.dropFile(e.data),this.sendOK(e);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(e);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(e);break;case"CONNECT":{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"CONNECTION_INFO",data:t.useUnsafe((r,n)=>n)},[]);break}case"DISCONNECT":this._bindings.disconnect(e.data),this.sendOK(e);break;case"CREATE_PREPARED":{let t=this._bindings.createPrepared(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"PREPARED_STATEMENT_ID",data:t},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(e.data[0],e.data[1]),this.sendOK(e);break}case"RUN_PREPARED":{let t=this._bindings.runPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"RUN_QUERY":{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"SEND_PREPARED":{let t=this._bindings.sendPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_START",data:t},[t.buffer]);break}case"SEND_QUERY":{let t=this._bindings.sendQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_START",data:t},[t.buffer]);break}case"FETCH_QUERY_RESULTS":{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_CHUNK",data:t},[t.buffer]);break}case"GET_TABLE_NAMES":{let t=this._bindings.getTableNames(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"TABLE_NAMES",data:t},[]);break}case"GLOB_FILE_INFOS":{let t=this._bindings.globFiles(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_INFOS",data:t},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(e.data[0],e.data[1]),this.sendOK(e);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(e.data[0],e.data[1]),this.sendOK(e);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case"COPY_FILE_TO_BUFFER":{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_BUFFER",data:t},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(e.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case"TOKENIZE":{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SCRIPT_TOKENS",data:t},[]);break}}}catch(t){return this.failWith(e,t)}}};var x0={},eE=(()=>{var i=x0.url;return function(e){e=e||{};var t=typeof e<"u"?e:{},r=Object.assign,n,s;t.ready=new Promise(function(o,a){n=o,s=a});var u=r({},t),p=[],m="./this.program",j=(o,a)=>{throw a},A=typeof window=="object",R=typeof importScripts=="function",P=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",x="";function pe(o){return t.locateFile?t.locateFile(o,x):x+o}var de,Ie,Oe,ht;function Gi(o){if(o instanceof Eo)return;ve("exiting due to exception: "+o)}var xr,yn,_n;P?(R?x=mf().dirname(x)+"/":x=__dirname+"/",_n=function(){yn||(xr=V0(),yn=mf())},de=function(a,c){return _n(),a=yn.normalize(a),xr.readFileSync(a,c?null:"utf8")},Oe=function(a){var c=de(a,!0);return c.buffer||(c=new Uint8Array(c)),c},Ie=function(a,c,l){_n(),a=yn.normalize(a),xr.readFile(a,function(d,f){d?l(d):c(f.buffer)})},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),process.on("uncaughtException",function(o){if(!(o instanceof Eo))throw o}),process.on("unhandledRejection",function(o){throw o}),j=(o,a)=>{if(xc())throw process.exitCode=o,a;Gi(a),process.exit(o)},t.inspect=function(){return"[Emscripten Module object]"}):(A||R)&&(R?x=self.location.href:typeof document<"u"&&document.currentScript&&(x=document.currentScript.src),i&&(x=i),x.indexOf("blob:")!==0?x=x.substr(0,x.replace(/[?#].*/,"").lastIndexOf("/")+1):x="",de=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.send(null),a.responseText},R&&(Oe=function(o){var a=new XMLHttpRequest;return a.open("GET",o,!1),a.responseType="arraybuffer",a.send(null),new Uint8Array(a.response)}),Ie=function(o,a,c){var l=new XMLHttpRequest;l.open("GET",o,!0),l.responseType="arraybuffer",l.onload=function(){if(l.status==200||l.status==0&&l.response){a(l.response);return}c()},l.onerror=c,l.send(null)},ht=o=>document.title=o);var vs=t.print||console.log.bind(console),ve=t.printErr||console.warn.bind(console);r(t,u),u=null,t.arguments&&(p=t.arguments),t.thisProgram&&(m=t.thisProgram),t.quit&&(j=t.quit);var Ce=0,Fe=function(o){Ce=o},Pr=function(){return Ce},$t;t.wasmBinary&&($t=t.wasmBinary);var Nr=t.noExitRuntime||!0;typeof WebAssembly!="object"&&Tt("no native wasm support detected");var si,Me=!1,Kt;function go(o,a){o||Tt(a)}function G0(o){var a=t["_"+o];return a}function $0(o,a,c,l,d){var f={string:function(N){var oe=0;if(N!=null&&N!==0){var _e=(N.length<<2)+1;oe=Gc(_e),Vc(N,oe,_e)}return oe},array:function(N){var oe=Gc(N.length);return Ff(N,oe),oe}};function h(N){return a==="string"?Di(N):a==="boolean"?Boolean(N):N}var y=G0(o),_=[],b=0;if(l)for(var g=0;g<l.length;g++){var w=f[c[g]];w?(b===0&&(b=I()),_[g]=w(l[g])):_[g]=l[g]}var F=y.apply(null,_);function C(N){return b!==0&&T(b),h(N)}return F=C(F),F}var Tf=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function Sf(o,a,c){for(var l=a+c,d=a;o[d]&&!(d>=l);)++d;if(d-a>16&&o.subarray&&Tf)return Tf.decode(o.subarray(a,d));for(var f="";a<d;){var h=o[a++];if(!(h&128)){f+=String.fromCharCode(h);continue}var y=o[a++]&63;if((h&224)==192){f+=String.fromCharCode((h&31)<<6|y);continue}var _=o[a++]&63;if((h&240)==224?h=(h&15)<<12|y<<6|_:h=(h&7)<<18|y<<12|_<<6|o[a++]&63,h<65536)f+=String.fromCharCode(h);else{var b=h-65536;f+=String.fromCharCode(55296|b>>10,56320|b&1023)}}return f}function Di(o,a){return o?Sf($i,o,a):""}function Af(o,a,c,l){if(!(l>0))return 0;for(var d=c,f=c+l-1,h=0;h<o.length;++h){var y=o.charCodeAt(h);if(y>=55296&&y<=57343){var _=o.charCodeAt(++h);y=65536+((y&1023)<<10)|_&1023}if(y<=127){if(c>=f)break;a[c++]=y}else if(y<=2047){if(c+1>=f)break;a[c++]=192|y>>6,a[c++]=128|y&63}else if(y<=65535){if(c+2>=f)break;a[c++]=224|y>>12,a[c++]=128|y>>6&63,a[c++]=128|y&63}else{if(c+3>=f)break;a[c++]=240|y>>18,a[c++]=128|y>>12&63,a[c++]=128|y>>6&63,a[c++]=128|y&63}}return a[c]=0,c-d}function Vc(o,a,c){return Af(o,$i,a,c)}function K0(o){for(var a=0,c=0;c<o.length;++c){var l=o.charCodeAt(c);l>=55296&&l<=57343&&(l=65536+((l&1023)<<10)|o.charCodeAt(++c)&1023),l<=127?++a:l<=2047?a+=2:l<=65535?a+=3:a+=4}return a}function Ff(o,a){Oi.set(o,a)}function J0(o,a,c){for(var l=0;l<o.length;++l)Oi[a++>>0]=o.charCodeAt(l);c||(Oi[a>>0]=0)}function X0(o,a){return o%a>0&&(o+=a-o%a),o}var Df,Oi,$i,js,Of,H,Z0,Q0,ej;function Cf(o){Df=o,t.HEAP8=Oi=new Int8Array(o),t.HEAP16=js=new Int16Array(o),t.HEAP32=H=new Int32Array(o),t.HEAPU8=$i=new Uint8Array(o),t.HEAPU16=Of=new Uint16Array(o),t.HEAPU32=Z0=new Uint32Array(o),t.HEAPF32=Q0=new Float32Array(o),t.HEAPF64=ej=new Float64Array(o)}var dE=t.INITIAL_MEMORY||16777216,Mf,Uf=[],Ef=[],tj=[],Rf=[],ij=!1,rj=!1,nj=0;function xc(){return Nr||nj>0}function sj(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)lj(t.preRun.shift());vo(Uf)}function oj(){ij=!0,vo(Ef)}function aj(){vo(tj)}function cj(){rj=!0}function uj(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)fj(t.postRun.shift());vo(Rf)}function lj(o){Uf.unshift(o)}function dj(o){Ef.unshift(o)}function fj(o){Rf.unshift(o)}var Lr=0,Pc=null,ws=null;function hj(o){Lr++,t.monitorRunDependencies&&t.monitorRunDependencies(Lr)}function pj(o){if(Lr--,t.monitorRunDependencies&&t.monitorRunDependencies(Lr),Lr==0&&(Pc!==null&&(clearInterval(Pc),Pc=null),ws)){var a=ws;ws=null,a()}}t.preloadedImages={},t.preloadedAudios={};function Tt(o){t.onAbort&&t.onAbort(o),o="Aborted("+o+")",ve(o),Me=!0,Kt=1,o+=". Build with -s ASSERTIONS=1 for more info.";var a=new WebAssembly.RuntimeError(o);throw s(a),a}var yj="data:application/octet-stream;base64,";function kf(o){return o.startsWith(yj)}var St;t.locateFile?(St="./duckdb-mvp.wasm",kf(St)||(St=pe(St))):St=new URL("./duckdb-mvp.wasm",x0.url).toString();function Vf(o){try{if(o==St&&$t)return new Uint8Array($t);if(Oe)return Oe(o);throw"both async and sync fetching of the wasm failed"}catch(a){Tt(a)}}function _j(){return!$t&&(A||R)&&typeof fetch=="function"?fetch(St,{credentials:"same-origin"}).then(function(o){if(!o.ok)throw"failed to load wasm binary file at '"+St+"'";return o.arrayBuffer()}).catch(function(){return Vf(St)}):Promise.resolve().then(function(){return Vf(St)})}function mj(){var o={a:Yw};function a(h,y){var _=h.exports;t.asm=_,si=t.asm.Re,Cf(si.buffer),Mf=t.asm.Ue,dj(t.asm.Se),pj("wasm-instantiate")}hj("wasm-instantiate");function c(h){a(h.instance)}function l(h){return _j().then(function(y){return WebAssembly.instantiate(y,o)}).then(function(y){return y}).then(h,function(y){ve("failed to asynchronously prepare wasm: "+y),Tt(y)})}function d(){return!$t&&typeof WebAssembly.instantiateStreaming=="function"&&!kf(St)&&typeof fetch=="function"?fetch(St,{credentials:"same-origin"}).then(function(h){var y=WebAssembly.instantiateStreaming(h,o);return y.then(c,function(_){return ve("wasm streaming compile failed: "+_),ve("falling back to ArrayBuffer instantiation"),l(c)})}):l(c)}if(t.instantiateWasm)try{var f=t.instantiateWasm(o,a);return f}catch(h){return ve("Module.instantiateWasm callback failed with error: "+h),!1}return d().catch(s),{}}function vo(o){for(;o.length>0;){var a=o.shift();if(typeof a=="function"){a(t);continue}var c=a.func;typeof c=="number"?a.arg===void 0?J(c)():J(c)(a.arg):c(a.arg===void 0?null:a.arg)}}var jo=[];function J(o){var a=jo[o];return a||(o>=jo.length&&(jo.length=o+1),jo[o]=a=Mf.get(o)),a}function bj(o){if(o instanceof Eo||o=="unwind")return Kt;j(1,o)}function gj(o,a,c,l){Tt("Assertion failed: "+Di(o)+", at: "+[a?Di(a):"unknown filename",c,l?Di(l):"unknown function"])}function vj(o){return Ss(o+16)+16}function qr(o){this.excPtr=o,this.ptr=o-16,this.set_type=function(a){H[this.ptr+4>>2]=a},this.get_type=function(){return H[this.ptr+4>>2]},this.set_destructor=function(a){H[this.ptr+8>>2]=a},this.get_destructor=function(){return H[this.ptr+8>>2]},this.set_refcount=function(a){H[this.ptr>>2]=a},this.set_caught=function(a){a=a?1:0,Oi[this.ptr+12>>0]=a},this.get_caught=function(){return Oi[this.ptr+12>>0]!=0},this.set_rethrown=function(a){a=a?1:0,Oi[this.ptr+13>>0]=a},this.get_rethrown=function(){return Oi[this.ptr+13>>0]!=0},this.init=function(a,c){this.set_type(a),this.set_destructor(c),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var a=H[this.ptr>>2];H[this.ptr>>2]=a+1},this.release_ref=function(){var a=H[this.ptr>>2];return H[this.ptr>>2]=a-1,a===1}}function mn(o){this.free=function(){$c(this.ptr),this.ptr=0},this.set_base_ptr=function(a){H[this.ptr>>2]=a},this.get_base_ptr=function(){return H[this.ptr>>2]},this.set_adjusted_ptr=function(a){H[this.ptr+4>>2]=a},this.get_adjusted_ptr_addr=function(){return this.ptr+4},this.get_adjusted_ptr=function(){return H[this.ptr+4>>2]},this.get_exception_ptr=function(){var a=Wf(this.get_exception_info().get_type());if(a)return H[this.get_base_ptr()>>2];var c=this.get_adjusted_ptr();return c!==0?c:this.get_base_ptr()},this.get_exception_info=function(){return new qr(this.get_base_ptr())},o===void 0?(this.ptr=Ss(8),this.set_adjusted_ptr(0)):this.ptr=o}var wo=[];function jj(o){o.add_ref()}var Bo=0;function wj(o){var a=new mn(o),c=a.get_exception_info();return c.get_caught()||(c.set_caught(!0),Bo--),c.set_rethrown(!1),wo.push(a),jj(c),a.get_exception_ptr()}var Ci=0;function xf(o){return $c(new qr(o).ptr)}function Bj(o){if(o.release_ref()&&!o.get_rethrown()){var a=o.get_destructor();a&&J(a)(o.excPtr),xf(o.excPtr)}}function Ij(){B(0);var o=wo.pop();Bj(o.get_exception_info()),o.free(),Ci=0}function Tj(o){var a=new mn(o),c=a.get_base_ptr();throw Ci||(Ci=c),a.free(),c}function Sj(){var o=Ci;if(!o)return Fe(0),0;var a=new qr(o),c=a.get_type(),l=new mn;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return Fe(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(Ts(h,c,l.get_adjusted_ptr_addr()))return Fe(h),l.ptr|0}return Fe(c),l.ptr|0}function Aj(){var o=Ci;if(!o)return Fe(0),0;var a=new qr(o),c=a.get_type(),l=new mn;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return Fe(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(Ts(h,c,l.get_adjusted_ptr_addr()))return Fe(h),l.ptr|0}return Fe(c),l.ptr|0}function Fj(){var o=Ci;if(!o)return Fe(0),0;var a=new qr(o),c=a.get_type(),l=new mn;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return Fe(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(Ts(h,c,l.get_adjusted_ptr_addr()))return Fe(h),l.ptr|0}return Fe(c),l.ptr|0}function Dj(){var o=Ci;if(!o)return Fe(0),0;var a=new qr(o),c=a.get_type(),l=new mn;if(l.set_base_ptr(o),l.set_adjusted_ptr(o),!c)return Fe(0),l.ptr|0;for(var d=Array.prototype.slice.call(arguments),f=0;f<d.length;f++){var h=d[f];if(h===0||h===c)break;if(Ts(h,c,l.get_adjusted_ptr_addr()))return Fe(h),l.ptr|0}return Fe(c),l.ptr|0}function Oj(){var o=wo.pop();o||Tt("no exception to throw");var a=o.get_exception_info(),c=o.get_base_ptr();throw a.get_rethrown()?o.free():(wo.push(o),a.set_rethrown(!0),a.set_caught(!1),Bo++),Ci=c,c}function Cj(o,a,c){var l=new qr(o);throw l.init(a,c),Ci=o,Bo++,o}function Mj(){return Bo}var st={mappings:{},buffers:[null,[],[]],printChar:function(o,a){var c=st.buffers[o];a===0||a===10?((o===1?vs:ve)(Sf(c,0)),c.length=0):c.push(a)},varargs:void 0,get:function(){st.varargs+=4;var o=H[st.varargs-4>>2];return o},getStr:function(o){var a=Di(o);return a},get64:function(o,a){return o}};function Uj(o,a,c,l,d){}function Ej(o,a){return o=st.getStr(o),st.doAccess(o,a)}function Rj(){ve("missing function: $SOCKFS"),Tt(-1)}function Pf(){ve("missing function: $FS"),Tt(-1)}function Bs(o){var a=Rj.getSocket(o);if(!a)throw new Pf.ErrnoError(8);return a}function kj(o){return H[zf()>>2]=o,o}function Nc(o){return(o&255)+"."+(o>>8&255)+"."+(o>>16&255)+"."+(o>>24&255)}function Nf(o){var a="",c=0,l=0,d=0,f=0,h=0,y=0,_=[o[0]&65535,o[0]>>16,o[1]&65535,o[1]>>16,o[2]&65535,o[2]>>16,o[3]&65535,o[3]>>16],b=!0,g="";for(y=0;y<5;y++)if(_[y]!==0){b=!1;break}if(b){if(g=Nc(_[6]|_[7]<<16),_[5]===-1)return a="::ffff:",a+=g,a;if(_[5]===0)return a="::",g==="0.0.0.0"&&(g=""),g==="0.0.0.1"&&(g="1"),a+=g,a}for(c=0;c<8;c++)_[c]===0&&(c-d>1&&(h=0),d=c,h++),h>l&&(l=h,f=c-l+1);for(c=0;c<8;c++){if(l>1&&_[c]===0&&c>=f&&c<f+l){c===f&&(a+=":",f===0&&(a+=":"));continue}a+=Number(Yc(_[c]&65535)).toString(16),a+=c<7?":":""}return a}function Lf(o,a){var c=js[o>>1],l=Yc(Of[o+2>>1]),d;switch(c){case 2:if(a!==16)return{errno:28};d=H[o+4>>2],d=Nc(d);break;case 10:if(a!==28)return{errno:28};d=[H[o+8>>2],H[o+12>>2],H[o+16>>2],H[o+20>>2]],d=Nf(d);break;default:return{errno:5}}return{family:c,addr:d,port:l}}function Io(o){for(var a=o.split("."),c=0;c<4;c++){var l=Number(a[c]);if(isNaN(l))return null;a[c]=l}return(a[0]|a[1]<<8|a[2]<<16|a[3]<<24)>>>0}function To(o){return parseInt(o)}function Lc(o){var a,c,l,d,f=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,h=[];if(!f.test(o))return null;if(o==="::")return[0,0,0,0,0,0,0,0];for(o.startsWith("::")?o=o.replace("::","Z:"):o=o.replace("::",":Z:"),o.indexOf(".")>0?(o=o.replace(new RegExp("[.]","g"),":"),a=o.split(":"),a[a.length-4]=To(a[a.length-4])+To(a[a.length-3])*256,a[a.length-3]=To(a[a.length-2])+To(a[a.length-1])*256,a=a.slice(0,a.length-2)):a=o.split(":"),l=0,d=0,c=0;c<a.length;c++)if(typeof a[c]=="string")if(a[c]==="Z"){for(d=0;d<8-a.length+1;d++)h[c+d]=0;l=d-1}else h[c+l]=Mo(parseInt(a[c],16));else h[c+l]=a[c];return[h[1]<<16|h[0],h[3]<<16|h[2],h[5]<<16|h[4],h[7]<<16|h[6]]}var At={address_map:{id:1,addrs:{},names:{}},lookup_name:function(o){var a=Io(o);if(a!==null||(a=Lc(o),a!==null))return o;var c;if(At.address_map.addrs[o])c=At.address_map.addrs[o];else{var l=At.address_map.id++;go(l<65535,"exceeded max address mappings of 65535"),c="172.29."+(l&255)+"."+(l&65280),At.address_map.names[c]=o,At.address_map.addrs[o]=c}return c},lookup_addr:function(o){return At.address_map.names[o]?At.address_map.names[o]:null}};function qf(o,a,c){if(c&&o===0)return null;var l=Lf(o,a);if(l.errno)throw new Pf.ErrnoError(l.errno);return l.addr=At.lookup_addr(l.addr)||l.addr,l}function Vj(o,a,c){var l=Bs(o),d=qf(a,c);return l.sock_ops.bind(l,d.addr,d.port),0}function xj(o,a,c){var l=Bs(o),d=qf(a,c);return l.sock_ops.connect(l,d.addr,d.port),0}function Pj(o,a,c){return st.varargs=c,0}function Nj(o,a){}function Lj(o,a,c,l){}function qj(o,a,c){}function Hj(o,a,c){}function Hf(o,a){$i.fill(0,o,o+a)}function qc(o,a,c,l,d){switch(a){case 2:c=Io(c),Hf(o,16),d&&(H[d>>2]=16),js[o>>1]=a,H[o+4>>2]=c,js[o+2>>1]=Mo(l);break;case 10:c=Lc(c),Hf(o,28),d&&(H[d>>2]=28),H[o>>2]=a,H[o+8>>2]=c[0],H[o+12>>2]=c[1],H[o+16>>2]=c[2],H[o+20>>2]=c[3],js[o+2>>1]=Mo(l);break;default:return 5}return 0}function zj(o,a,c){var l=Bs(o);if(!l.daddr)return-53;var d=qc(a,l.family,At.lookup_name(l.daddr),l.dport,c);return 0}function Wj(o,a,c,l,d){var f=Bs(o);return a===1&&c===4?(H[l>>2]=f.error,H[d>>2]=4,f.error=null,0):-50}function Yj(o,a,c){return st.varargs=c,0}function Gj(o,a){}function $j(o,a){return o=st.getStr(o),st.doMkdir(o,a)}function Kj(o,a,c){st.varargs=c}function Jj(o,a,c,l,d,f){var h=Bs(o),y=h.sock_ops.recvmsg(h,c);if(!y)return 0;if(d)var _=qc(d,h.family,At.lookup_name(y.addr),y.port,f);return $i.set(y.buffer,a),y.buffer.byteLength}function Xj(o,a){}function Zj(o){}function Qj(o,a,c,l,d,f){}function ew(o,a,c){}function tw(o,a){}function iw(o){}function rw(o,a){Tt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function nw(o,a){Tt("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function sw(){Tt("")}var Hc;P?Hc=()=>{var o=process.hrtime();return o[0]*1e3+o[1]/1e6}:Hc=()=>performance.now();var ow=!0;function aw(o,a){var c;if(o===0)c=Date.now();else if((o===1||o===4)&&ow)c=Hc();else return kj(28),-1;return H[a>>2]=c/1e3|0,H[a+4>>2]=c%1e3*1e3*1e3|0,0}function cw(o,a){return globalThis.DUCKDB_RUNTIME.createDirectory(t,o,a)}function uw(o,a){return globalThis.DUCKDB_RUNTIME.checkDirectory(t,o,a)}function lw(o,a){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(t,o,a)}function dw(o,a){return globalThis.DUCKDB_RUNTIME.removeDirectory(t,o,a)}function fw(o){return globalThis.DUCKDB_RUNTIME.closeFile(t,o)}function hw(o,a){return globalThis.DUCKDB_RUNTIME.checkFile(t,o,a)}function pw(o){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(t,o)}function yw(o,a,c,l){return globalThis.DUCKDB_RUNTIME.moveFile(t,o,a,c,l)}function _w(o,a){return globalThis.DUCKDB_RUNTIME.openFile(t,o,a)}function mw(o,a,c,l){return globalThis.DUCKDB_RUNTIME.readFile(t,o,a,c,l)}function bw(o,a){return globalThis.DUCKDB_RUNTIME.truncateFile(t,o,a)}function gw(o,a,c,l){return globalThis.DUCKDB_RUNTIME.writeFile(t,o,a,c,l)}function vw(o,a){return globalThis.DUCKDB_RUNTIME.glob(t,o,a)}function jw(o){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(t,o)}function ww(o,a,c,l,d,f){return globalThis.DUCKDB_RUNTIME.callScalarUDF(t,o,a,c,l,d,f)}function Bw(){return 2147483648}function Iw(o,a,c){$i.copyWithin(o,a,a+c)}function Tw(o){try{return si.grow(o-Df.byteLength+65535>>>16),Cf(si.buffer),1}catch(a){}}function Sw(o){var a=$i.length;o=o>>>0;var c=2147483648;if(o>c)return!1;for(var l=1;l<=4;l*=2){var d=a*(1+.2/l);d=Math.min(d,o+100663296);var f=Math.min(c,X0(Math.max(o,d),65536)),h=Tw(f);if(h)return!0}return!1}var zc={};function Aw(){return m||"./this.program"}function Is(){if(!Is.strings){var o=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:o,_:Aw()};for(var c in zc)zc[c]===void 0?delete a[c]:a[c]=zc[c];var l=[];for(var c in a)l.push(c+"="+a[c]);Is.strings=l}return Is.strings}function Fw(o,a){var c=0;return Is().forEach(function(l,d){var f=a+c;H[o+d*4>>2]=f,J0(l,f),c+=l.length+1}),0}function Dw(o,a){var c=Is();H[o>>2]=c.length;var l=0;return c.forEach(function(d){l+=d.length+1}),H[a>>2]=l,0}function Ow(o){return 0}function Cw(o,a,c,l,d,f){var h=st.getStreamFromFD(o),y=st.doReadv(h,a,c,l);return H[f>>2]=y,0}function Mw(o,a,c,l,d,f){var h=st.getStreamFromFD(o),y=st.doWritev(h,a,c,l);return H[f>>2]=y,0}function Uw(o,a,c,l){var d=st.getStreamFromFD(o),f=st.doReadv(d,a,c);return H[l>>2]=f,0}function Ew(o,a,c,l,d){}function Rw(o){var a=st.getStreamFromFD(o);return a.stream_ops&&a.stream_ops.fsync?-a.stream_ops.fsync(a):0}function kw(o,a,c,l){for(var d=0,f=0;f<c;f++){var h=H[a>>2],y=H[a+4>>2];a+=8;for(var _=0;_<y;_++)st.printChar(o,$i[h+_]);d+=y}return H[l>>2]=d,0}function Vw(){return Pr()}function xw(o,a,c,l){var d=0,f=0,h=0,y=0,_=0,b=0,g;function w(F,C,N,oe,_e,xe){var U,$,je,me;return $=F===10?28:16,_e=F===10?Nf(_e):Nc(_e),U=Ss($),me=qc(U,F,_e,xe),go(!me),je=Ss(32),H[je+4>>2]=F,H[je+8>>2]=C,H[je+12>>2]=N,H[je+24>>2]=oe,H[je+20>>2]=U,F===10?H[je+16>>2]=28:H[je+16>>2]=16,H[je+28>>2]=0,je}if(c&&(h=H[c>>2],y=H[c+4>>2],_=H[c+8>>2],b=H[c+12>>2]),_&&!b&&(b=_===2?17:6),!_&&b&&(_=b===17?2:1),b===0&&(b=6),_===0&&(_=1),!o&&!a)return-2;if(h&-1088||c!==0&&H[c>>2]&2&&!o)return-1;if(h&32)return-2;if(_!==0&&_!==1&&_!==2)return-7;if(y!==0&&y!==2&&y!==10)return-6;if(a&&(a=Di(a),f=parseInt(a,10),isNaN(f)))return h&1024?-2:-8;if(!o)return y===0&&(y=2),(h&1)===0&&(y===2?d=Co(2130706433):d=[0,0,0,1]),g=w(y,_,b,null,d,f),H[l>>2]=g,0;if(o=Di(o),d=Io(o),d!==null)if(y===0||y===2)y=2;else if(y===10&&h&8)d=[0,0,Co(65535),d],y=10;else return-2;else if(d=Lc(o),d!==null)if(y===0||y===10)y=10;else return-2;return d!=null?(g=w(y,_,b,o,d,f),H[l>>2]=g,0):h&4?-2:(o=At.lookup_name(o),d=Io(o),y===0?y=2:y===10&&(d=[0,0,Co(65535),d]),g=w(y,_,b,null,d,f),H[l>>2]=g,0)}function Pw(){if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function"){var o=new Uint8Array(1);return function(){return crypto.getRandomValues(o),o[0]}}else if(P)try{var a=hA("crypto");return function(){return a.randomBytes(1)[0]}}catch(c){}return function(){Tt("randomDevice")}}function So(o,a){So.randomDevice||(So.randomDevice=Pw());for(var c=0;c<a;c++)Oi[o+c>>0]=So.randomDevice();return 0}function Nw(o,a,c,l,d,f,h){var y=Lf(o,a);if(y.errno)return-6;var _=y.port,b=y.addr,g=!1;if(c&&l){var w;if(h&1||!(w=At.lookup_addr(b))){if(h&8)return-2}else b=w;var F=Vc(b,c,l);F+1>=l&&(g=!0)}if(d&&f){_=""+_;var F=Vc(_,d,f);F+1>=f&&(g=!0)}return g?-12:0}function Lw(o){return o}function qw(o){Fe(o)}function Ao(o){return o%4===0&&(o%100!==0||o%400===0)}function Wc(o,a){for(var c=0,l=0;l<=a;c+=o[l++]);return c}var Fo=[31,29,31,30,31,30,31,31,30,31,30,31],Do=[31,28,31,30,31,30,31,31,30,31,30,31];function Oo(o,a){for(var c=new Date(o.getTime());a>0;){var l=Ao(c.getFullYear()),d=c.getMonth(),f=(l?Fo:Do)[d];if(a>f-c.getDate())a-=f-c.getDate()+1,c.setDate(1),d<11?c.setMonth(d+1):(c.setMonth(0),c.setFullYear(c.getFullYear()+1));else return c.setDate(c.getDate()+a),c}return c}function Hw(o,a,c,l){var d=H[l+40>>2],f={tm_sec:H[l>>2],tm_min:H[l+4>>2],tm_hour:H[l+8>>2],tm_mday:H[l+12>>2],tm_mon:H[l+16>>2],tm_year:H[l+20>>2],tm_wday:H[l+24>>2],tm_yday:H[l+28>>2],tm_isdst:H[l+32>>2],tm_gmtoff:H[l+36>>2],tm_zone:d?Di(d):""},h=Di(c),y={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var _ in y)h=h.replace(new RegExp(_,"g"),y[_]);var b=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],g=["January","February","March","April","May","June","July","August","September","October","November","December"];function w(U,$,je){for(var me=typeof U=="number"?U.toString():U||"";me.length<$;)me=je[0]+me;return me}function F(U,$){return w(U,$,"0")}function C(U,$){function je(mt){return mt<0?-1:mt>0?1:0}var me;return(me=je(U.getFullYear()-$.getFullYear()))===0&&(me=je(U.getMonth()-$.getMonth()))===0&&(me=je(U.getDate()-$.getDate())),me}function N(U){switch(U.getDay()){case 0:return new Date(U.getFullYear()-1,11,29);case 1:return U;case 2:return new Date(U.getFullYear(),0,3);case 3:return new Date(U.getFullYear(),0,2);case 4:return new Date(U.getFullYear(),0,1);case 5:return new Date(U.getFullYear()-1,11,31);case 6:return new Date(U.getFullYear()-1,11,30)}}function oe(U){var $=Oo(new Date(U.tm_year+1900,0,1),U.tm_yday),je=new Date($.getFullYear(),0,4),me=new Date($.getFullYear()+1,0,4),mt=N(je),Ki=N(me);return C(mt,$)<=0?C(Ki,$)<=0?$.getFullYear()+1:$.getFullYear():$.getFullYear()-1}var _e={"%a":function(U){return b[U.tm_wday].substring(0,3)},"%A":function(U){return b[U.tm_wday]},"%b":function(U){return g[U.tm_mon].substring(0,3)},"%B":function(U){return g[U.tm_mon]},"%C":function(U){var $=U.tm_year+1900;return F($/100|0,2)},"%d":function(U){return F(U.tm_mday,2)},"%e":function(U){return w(U.tm_mday,2," ")},"%g":function(U){return oe(U).toString().substring(2)},"%G":function(U){return oe(U)},"%H":function(U){return F(U.tm_hour,2)},"%I":function(U){var $=U.tm_hour;return $==0?$=12:$>12&&($-=12),F($,2)},"%j":function(U){return F(U.tm_mday+Wc(Ao(U.tm_year+1900)?Fo:Do,U.tm_mon-1),3)},"%m":function(U){return F(U.tm_mon+1,2)},"%M":function(U){return F(U.tm_min,2)},"%n":function(){return`
|
|
18
|
-
`},"%p":function(U){return U.tm_hour>=0&&U.tm_hour<12?"AM":"PM"},"%S":function(U){return F(U.tm_sec,2)},"%t":function(){return" "},"%u":function(U){return U.tm_wday||7},"%U":function(U){var $=new Date(U.tm_year+1900,0,1),je=$.getDay()===0?$:Oo($,7-$.getDay()),me=new Date(U.tm_year+1900,U.tm_mon,U.tm_mday);if(C(je,me)<0){var mt=Wc(Ao(me.getFullYear())?Fo:Do,me.getMonth()-1)-31,Ki=31-je.getDate(),Hr=Ki+mt+me.getDate();return F(Math.ceil(Hr/7),2)}return C(je,$)===0?"01":"00"},"%V":function(U){var $=new Date(U.tm_year+1900,0,4),je=new Date(U.tm_year+1901,0,4),me=N($),mt=N(je),Ki=Oo(new Date(U.tm_year+1900,0,1),U.tm_yday);if(C(Ki,me)<0)return"53";if(C(mt,Ki)<=0)return"01";var Hr;return me.getFullYear()<U.tm_year+1900?Hr=U.tm_yday+32-me.getDate():Hr=U.tm_yday+1-me.getDate(),F(Math.ceil(Hr/7),2)},"%w":function(U){return U.tm_wday},"%W":function(U){var $=new Date(U.tm_year,0,1),je=$.getDay()===1?$:Oo($,$.getDay()===0?1:7-$.getDay()+1),me=new Date(U.tm_year+1900,U.tm_mon,U.tm_mday);if(C(je,me)<0){var mt=Wc(Ao(me.getFullYear())?Fo:Do,me.getMonth()-1)-31,Ki=31-je.getDate(),Hr=Ki+mt+me.getDate();return F(Math.ceil(Hr/7),2)}return C(je,$)===0?"01":"00"},"%y":function(U){return(U.tm_year+1900).toString().substring(2)},"%Y":function(U){return U.tm_year+1900},"%z":function(U){var $=U.tm_gmtoff,je=$>=0;return $=Math.abs($)/60,$=$/60*100+$%60,(je?"+":"-")+String("0000"+$).slice(-4)},"%Z":function(U){return U.tm_zone},"%%":function(){return"%"}};for(var _ in _e)h.includes(_)&&(h=h.replace(new RegExp(_,"g"),_e[_](f)));var xe=Ww(h,!1);return xe.length>a?0:(Ff(xe,o),xe.length-1)}function zw(o,a,c,l){return Hw(o,a,c,l)}function Ww(o,a,c){var l=c>0?c:K0(o)+1,d=new Array(l),f=Af(o,d,0,d.length);return a&&(d.length=f),d}var Yw={p:gj,j:vj,A:wj,F:Ij,b:Sj,n:Aj,H:Fj,W:Dj,i:xf,da:Oj,v:Cj,E:Mj,e:Tj,Ca:Uj,Qe:Ej,Ea:Vj,Da:xj,Q:Pj,Sa:Nj,Qa:Lj,Na:qj,Oa:Hj,ya:zj,Ba:Wj,Ua:Yj,Pa:Gj,Ta:$j,oa:Kj,za:Jj,Oe:Xj,ma:Zj,Aa:Qj,ga:ew,Ra:tw,na:iw,ha:rw,Ga:nw,_:sw,la:aw,Ge:cw,He:uw,Ee:lw,Fe:dw,ta:fw,Ce:hw,Je:pw,De:yw,Ke:_w,fa:mw,Ie:bw,ua:gw,Be:vw,sa:jw,Le:ww,Va:Bw,kb:Iw,ed:Sw,Xa:Fw,Ya:Dw,U:Ow,pe:Cw,qb:Mw,qa:Uw,ye:Ew,Pe:Rw,ea:kw,a:Vw,Fa:xw,Ma:So,xa:Nw,ia:w1,N:f1,Ja:b1,T:qB,yc:OT,ja:j1,X:p1,ra:LB,zc:DT,u:$B,Ha:I1,Ka:n1,Z:a1,Ia:B1,La:r1,d:EB,aa:A1,D:c1,Ib:vS,c:RB,Y:h1,va:D1,h:VB,Gb:wS,m:NB,pa:t1,o:xB,w:JB,z:YB,S:o1,y:GB,x:XB,q:m1,O:S1,J:T1,cc:ZT,fc:KT,ic:YT,oc:NT,dc:XT,Hb:jS,xc:CT,gc:$T,pc:PT,Pb:hS,ue:V1,Qd:pI,Jd:jI,te:x1,Ub:cS,jd:GI,Lb:mS,Kb:bS,Xd:aI,Pd:yI,yb:OS,Xc:oT,Wd:cI,Ec:TT,Vb:aS,Jb:gS,ke:Y1,Td:dI,Ac:FT,Kd:vI,vd:RI,Hd:BI,mb:LS,Ud:lI,me:z1,Rd:hI,id:$I,gb:YS,Ob:pS,se:P1,Yd:oI,xd:UI,wb:MS,Ld:gI,hb:WS,Fb:BS,Sd:fI,Dd:AI,Gd:II,Fd:TI,Ed:SI,Ad:OI,mc:qT,$b:tS,ee:Z1,qc:xT,ae:iI,qe:L1,tc:RT,sc:kT,xe:E1,we:R1,Od:_I,Ae:M1,qd:NI,rc:VT,ec:JT,Fc:IT,vc:UT,Uc:uT,vb:US,Cc:AT,sd:xI,md:zI,Mc:mT,wc:MT,zb:DS,ac:eS,od:qI,dd:ZI,Pc:pT,Oc:yT,Lc:bT,Nc:_T,td:VI,ad:tT,Mb:_S,kc:zT,ob:PS,_c:rT,uc:ET,Cb:SS,Yb:nS,Db:TS,Wb:oS,t:MB,k:kB,C:d1,ba:_1,sb:kS,K:l1,ca:y1,tb:RS,f:UB,V:zB,R:u1,Bc:HB,g:WB,l:PB,Ne:O1,r:s1,s:e1,wa:F1,B:KB,L:i1,P:v1,M:ZB,Me:C1,ka:g1,$:QB,Cd:FI,rb:VS,kd:YI,bc:QT,Dc:ST,nc:LT,Qb:fS,Za:tA,jb:HS,ie:$1,Vd:uI,xb:CS,eb:$S,yd:MI,zd:CI,Zb:rS,Yc:sT,Sb:lS,Rb:dS,_a:eA,Qc:hT,he:K1,_d:nI,Bd:DI,Wc:aT,Ic:jT,Ab:FS,Nb:yS,Bb:AS,ib:zS,ce:eI,ud:kI,Tb:uS,Gc:BT,Tc:lT,ge:J1,fb:GS,oe:q1,re:N1,ve:k1,Id:wI,db:KS,cd:QI,Kc:gT,Jc:vT,bd:eT,Zc:nT,nd:HI,lb:qS,hd:KI,cb:JS,Hc:wT,nb:NS,ze:U1,le:W1,fd:XI,Rc:fT,be:tI,hc:GT,je:G1,de:Q1,gd:JI,Nd:mI,Md:bI,$c:iT,ub:ES,ld:WI,lc:HT,fe:X1,bb:XS,Sc:dT,pb:xS,$d:rI,Vc:cT,$a:QS,ab:ZS,jc:WT,ne:H1,rd:PI,Zd:sI,Xb:sS,_b:iS,Eb:IS,wd:EI,pd:LI,G:Lw,I:qw,Wa:zw},fE=mj(),Gw=t.___wasm_call_ctors=function(){return(Gw=t.___wasm_call_ctors=t.asm.Se).apply(null,arguments)},$w=t._main=function(){return($w=t._main=t.asm.Te).apply(null,arguments)},Kw=t._duckdb_web_fs_glob_add_path=function(){return(Kw=t._duckdb_web_fs_glob_add_path=t.asm.Ve).apply(null,arguments)},Jw=t._duckdb_web_clear_response=function(){return(Jw=t._duckdb_web_clear_response=t.asm.We).apply(null,arguments)},Xw=t._duckdb_web_fail_with=function(){return(Xw=t._duckdb_web_fail_with=t.asm.Xe).apply(null,arguments)},Zw=t._duckdb_web_reset=function(){return(Zw=t._duckdb_web_reset=t.asm.Ye).apply(null,arguments)},Qw=t._duckdb_web_connect=function(){return(Qw=t._duckdb_web_connect=t.asm.Ze).apply(null,arguments)},eB=t._duckdb_web_disconnect=function(){return(eB=t._duckdb_web_disconnect=t.asm._e).apply(null,arguments)},tB=t._duckdb_web_flush_files=function(){return(tB=t._duckdb_web_flush_files=t.asm.$e).apply(null,arguments)},iB=t._duckdb_web_flush_file=function(){return(iB=t._duckdb_web_flush_file=t.asm.af).apply(null,arguments)},rB=t._duckdb_web_open=function(){return(rB=t._duckdb_web_open=t.asm.bf).apply(null,arguments)},nB=t._duckdb_web_get_global_file_info=function(){return(nB=t._duckdb_web_get_global_file_info=t.asm.cf).apply(null,arguments)},sB=t._duckdb_web_collect_file_stats=function(){return(sB=t._duckdb_web_collect_file_stats=t.asm.df).apply(null,arguments)},oB=t._duckdb_web_export_file_stats=function(){return(oB=t._duckdb_web_export_file_stats=t.asm.ef).apply(null,arguments)},aB=t._duckdb_web_fs_drop_file=function(){return(aB=t._duckdb_web_fs_drop_file=t.asm.ff).apply(null,arguments)},cB=t._duckdb_web_fs_drop_files=function(){return(cB=t._duckdb_web_fs_drop_files=t.asm.gf).apply(null,arguments)},uB=t._duckdb_web_fs_glob_file_infos=function(){return(uB=t._duckdb_web_fs_glob_file_infos=t.asm.hf).apply(null,arguments)},lB=t._duckdb_web_fs_get_file_info_by_id=function(){return(lB=t._duckdb_web_fs_get_file_info_by_id=t.asm.jf).apply(null,arguments)},dB=t._duckdb_web_fs_get_file_info_by_name=function(){return(dB=t._duckdb_web_fs_get_file_info_by_name=t.asm.kf).apply(null,arguments)},fB=t._duckdb_web_fs_set_file_descriptor=function(){return(fB=t._duckdb_web_fs_set_file_descriptor=t.asm.lf).apply(null,arguments)},hB=t._duckdb_web_fs_register_file_url=function(){return(hB=t._duckdb_web_fs_register_file_url=t.asm.mf).apply(null,arguments)},pB=t._duckdb_web_fs_register_file_buffer=function(){return(pB=t._duckdb_web_fs_register_file_buffer=t.asm.nf).apply(null,arguments)},yB=t._duckdb_web_copy_file_to_buffer=function(){return(yB=t._duckdb_web_copy_file_to_buffer=t.asm.of).apply(null,arguments)},_B=t._duckdb_web_copy_file_to_path=function(){return(_B=t._duckdb_web_copy_file_to_path=t.asm.pf).apply(null,arguments)},mB=t._duckdb_web_get_version=function(){return(mB=t._duckdb_web_get_version=t.asm.qf).apply(null,arguments)},bB=t._duckdb_web_get_feature_flags=function(){return(bB=t._duckdb_web_get_feature_flags=t.asm.rf).apply(null,arguments)},gB=t._duckdb_web_tokenize=function(){return(gB=t._duckdb_web_tokenize=t.asm.sf).apply(null,arguments)},vB=t._duckdb_web_udf_scalar_create=function(){return(vB=t._duckdb_web_udf_scalar_create=t.asm.tf).apply(null,arguments)},jB=t._duckdb_web_prepared_create=function(){return(jB=t._duckdb_web_prepared_create=t.asm.uf).apply(null,arguments)},wB=t._duckdb_web_prepared_close=function(){return(wB=t._duckdb_web_prepared_close=t.asm.vf).apply(null,arguments)},BB=t._duckdb_web_prepared_run=function(){return(BB=t._duckdb_web_prepared_run=t.asm.wf).apply(null,arguments)},IB=t._duckdb_web_prepared_send=function(){return(IB=t._duckdb_web_prepared_send=t.asm.xf).apply(null,arguments)},TB=t._duckdb_web_query_run=function(){return(TB=t._duckdb_web_query_run=t.asm.yf).apply(null,arguments)},SB=t._duckdb_web_query_send=function(){return(SB=t._duckdb_web_query_send=t.asm.zf).apply(null,arguments)},AB=t._duckdb_web_query_fetch_results=function(){return(AB=t._duckdb_web_query_fetch_results=t.asm.Af).apply(null,arguments)},FB=t._duckdb_web_get_tablenames=function(){return(FB=t._duckdb_web_get_tablenames=t.asm.Bf).apply(null,arguments)},DB=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(DB=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.Cf).apply(null,arguments)},OB=t._duckdb_web_insert_csv_from_path=function(){return(OB=t._duckdb_web_insert_csv_from_path=t.asm.Df).apply(null,arguments)},CB=t._duckdb_web_insert_json_from_path=function(){return(CB=t._duckdb_web_insert_json_from_path=t.asm.Ef).apply(null,arguments)},zf=t.___errno_location=function(){return(zf=t.___errno_location=t.asm.Ff).apply(null,arguments)},Co=t._htonl=function(){return(Co=t._htonl=t.asm.Gf).apply(null,arguments)},Mo=t._htons=function(){return(Mo=t._htons=t.asm.Hf).apply(null,arguments)},Yc=t._ntohs=function(){return(Yc=t._ntohs=t.asm.If).apply(null,arguments)},B=t._setThrew=function(){return(B=t._setThrew=t.asm.Jf).apply(null,arguments)},I=t.stackSave=function(){return(I=t.stackSave=t.asm.Kf).apply(null,arguments)},T=t.stackRestore=function(){return(T=t.stackRestore=t.asm.Lf).apply(null,arguments)},Gc=t.stackAlloc=function(){return(Gc=t.stackAlloc=t.asm.Mf).apply(null,arguments)},Ts=t.___cxa_can_catch=function(){return(Ts=t.___cxa_can_catch=t.asm.Nf).apply(null,arguments)},Wf=t.___cxa_is_pointer_type=function(){return(Wf=t.___cxa_is_pointer_type=t.asm.Of).apply(null,arguments)},Ss=t._malloc=function(){return(Ss=t._malloc=t.asm.Pf).apply(null,arguments)},$c=t._free=function(){return($c=t._free=t.asm.Qf).apply(null,arguments)},Yf=t.dynCall_jiiii=function(){return(Yf=t.dynCall_jiiii=t.asm.Rf).apply(null,arguments)},Gf=t.dynCall_iiiiij=function(){return(Gf=t.dynCall_iiiiij=t.asm.Sf).apply(null,arguments)},$f=t.dynCall_iiiiijj=function(){return($f=t.dynCall_iiiiijj=t.asm.Tf).apply(null,arguments)},Kf=t.dynCall_viijii=function(){return(Kf=t.dynCall_viijii=t.asm.Uf).apply(null,arguments)},Jf=t.dynCall_j=function(){return(Jf=t.dynCall_j=t.asm.Vf).apply(null,arguments)},Xf=t.dynCall_ji=function(){return(Xf=t.dynCall_ji=t.asm.Wf).apply(null,arguments)},Zf=t.dynCall_iij=function(){return(Zf=t.dynCall_iij=t.asm.Xf).apply(null,arguments)},Qf=t.dynCall_viij=function(){return(Qf=t.dynCall_viij=t.asm.Yf).apply(null,arguments)},eh=t.dynCall_viijji=function(){return(eh=t.dynCall_viijji=t.asm.Zf).apply(null,arguments)},th=t.dynCall_viijj=function(){return(th=t.dynCall_viijj=t.asm._f).apply(null,arguments)},ih=t.dynCall_viiijj=function(){return(ih=t.dynCall_viiijj=t.asm.$f).apply(null,arguments)},rh=t.dynCall_viiji=function(){return(rh=t.dynCall_viiji=t.asm.ag).apply(null,arguments)},nh=t.dynCall_vijjj=function(){return(nh=t.dynCall_vijjj=t.asm.bg).apply(null,arguments)},sh=t.dynCall_iiijj=function(){return(sh=t.dynCall_iiijj=t.asm.cg).apply(null,arguments)},oh=t.dynCall_viiij=function(){return(oh=t.dynCall_viiij=t.asm.dg).apply(null,arguments)},ah=t.dynCall_viijij=function(){return(ah=t.dynCall_viijij=t.asm.eg).apply(null,arguments)},ch=t.dynCall_viiijjj=function(){return(ch=t.dynCall_viiijjj=t.asm.fg).apply(null,arguments)},uh=t.dynCall_iiij=function(){return(uh=t.dynCall_iiij=t.asm.gg).apply(null,arguments)},lh=t.dynCall_vijijj=function(){return(lh=t.dynCall_vijijj=t.asm.hg).apply(null,arguments)},dh=t.dynCall_iji=function(){return(dh=t.dynCall_iji=t.asm.ig).apply(null,arguments)},fh=t.dynCall_viji=function(){return(fh=t.dynCall_viji=t.asm.jg).apply(null,arguments)},hh=t.dynCall_vij=function(){return(hh=t.dynCall_vij=t.asm.kg).apply(null,arguments)},ph=t.dynCall_viiiij=function(){return(ph=t.dynCall_viiiij=t.asm.lg).apply(null,arguments)},yh=t.dynCall_jii=function(){return(yh=t.dynCall_jii=t.asm.mg).apply(null,arguments)},_h=t.dynCall_viiiji=function(){return(_h=t.dynCall_viiiji=t.asm.ng).apply(null,arguments)},mh=t.dynCall_vijj=function(){return(mh=t.dynCall_vijj=t.asm.og).apply(null,arguments)},bh=t.dynCall_vj=function(){return(bh=t.dynCall_vj=t.asm.pg).apply(null,arguments)},gh=t.dynCall_iiji=function(){return(gh=t.dynCall_iiji=t.asm.qg).apply(null,arguments)},vh=t.dynCall_iiiij=function(){return(vh=t.dynCall_iiiij=t.asm.rg).apply(null,arguments)},jh=t.dynCall_iiiiiji=function(){return(jh=t.dynCall_iiiiiji=t.asm.sg).apply(null,arguments)},wh=t.dynCall_iiiji=function(){return(wh=t.dynCall_iiiji=t.asm.tg).apply(null,arguments)},Bh=t.dynCall_iiiiji=function(){return(Bh=t.dynCall_iiiiji=t.asm.ug).apply(null,arguments)},Ih=t.dynCall_jiii=function(){return(Ih=t.dynCall_jiii=t.asm.vg).apply(null,arguments)},Th=t.dynCall_jij=function(){return(Th=t.dynCall_jij=t.asm.wg).apply(null,arguments)},Sh=t.dynCall_iijjijj=function(){return(Sh=t.dynCall_iijjijj=t.asm.xg).apply(null,arguments)},Ah=t.dynCall_viiiijiiiii=function(){return(Ah=t.dynCall_viiiijiiiii=t.asm.yg).apply(null,arguments)},Fh=t.dynCall_viiiijiiii=function(){return(Fh=t.dynCall_viiiijiiii=t.asm.zg).apply(null,arguments)},Dh=t.dynCall_viiijii=function(){return(Dh=t.dynCall_viiijii=t.asm.Ag).apply(null,arguments)},Oh=t.dynCall_viiiiiij=function(){return(Oh=t.dynCall_viiiiiij=t.asm.Bg).apply(null,arguments)},Ch=t.dynCall_iiijiii=function(){return(Ch=t.dynCall_iiijiii=t.asm.Cg).apply(null,arguments)},Mh=t.dynCall_iiiiijii=function(){return(Mh=t.dynCall_iiiiijii=t.asm.Dg).apply(null,arguments)},Uh=t.dynCall_viijiii=function(){return(Uh=t.dynCall_viijiii=t.asm.Eg).apply(null,arguments)},Eh=t.dynCall_iiijiij=function(){return(Eh=t.dynCall_iiijiij=t.asm.Fg).apply(null,arguments)},Rh=t.dynCall_vijiii=function(){return(Rh=t.dynCall_vijiii=t.asm.Gg).apply(null,arguments)},kh=t.dynCall_iijjii=function(){return(kh=t.dynCall_iijjii=t.asm.Hg).apply(null,arguments)},Vh=t.dynCall_iijjiii=function(){return(Vh=t.dynCall_iijjiii=t.asm.Ig).apply(null,arguments)},xh=t.dynCall_iijjiiii=function(){return(xh=t.dynCall_iijjiiii=t.asm.Jg).apply(null,arguments)},Ph=t.dynCall_iijji=function(){return(Ph=t.dynCall_iijji=t.asm.Kg).apply(null,arguments)},Nh=t.dynCall_vijiiii=function(){return(Nh=t.dynCall_vijiiii=t.asm.Lg).apply(null,arguments)},Lh=t.dynCall_iijiiii=function(){return(Lh=t.dynCall_iijiiii=t.asm.Mg).apply(null,arguments)},qh=t.dynCall_iijii=function(){return(qh=t.dynCall_iijii=t.asm.Ng).apply(null,arguments)},Hh=t.dynCall_vijij=function(){return(Hh=t.dynCall_vijij=t.asm.Og).apply(null,arguments)},zh=t.dynCall_iiijiiii=function(){return(zh=t.dynCall_iiijiiii=t.asm.Pg).apply(null,arguments)},Wh=t.dynCall_jiiij=function(){return(Wh=t.dynCall_jiiij=t.asm.Qg).apply(null,arguments)},Yh=t.dynCall_jiiiii=function(){return(Yh=t.dynCall_jiiiii=t.asm.Rg).apply(null,arguments)},Gh=t.dynCall_iiiiijjiijj=function(){return(Gh=t.dynCall_iiiiijjiijj=t.asm.Sg).apply(null,arguments)},$h=t.dynCall_viijiiji=function(){return($h=t.dynCall_viijiiji=t.asm.Tg).apply(null,arguments)},Kh=t.dynCall_vjjijij=function(){return(Kh=t.dynCall_vjjijij=t.asm.Ug).apply(null,arguments)},Jh=t.dynCall_vijjji=function(){return(Jh=t.dynCall_vijjji=t.asm.Vg).apply(null,arguments)},Xh=t.dynCall_vjjii=function(){return(Xh=t.dynCall_vjjii=t.asm.Wg).apply(null,arguments)},Zh=t.dynCall_viiiiiji=function(){return(Zh=t.dynCall_viiiiiji=t.asm.Xg).apply(null,arguments)},Qh=t.dynCall_jiiiji=function(){return(Qh=t.dynCall_jiiiji=t.asm.Yg).apply(null,arguments)},ep=t.dynCall_iijj=function(){return(ep=t.dynCall_iijj=t.asm.Zg).apply(null,arguments)},tp=t.dynCall_iiijjii=function(){return(tp=t.dynCall_iiijjii=t.asm._g).apply(null,arguments)},ip=t.dynCall_vijii=function(){return(ip=t.dynCall_vijii=t.asm.$g).apply(null,arguments)},rp=t.dynCall_viijjii=function(){return(rp=t.dynCall_viijjii=t.asm.ah).apply(null,arguments)},np=t.dynCall_viiiijj=function(){return(np=t.dynCall_viiiijj=t.asm.bh).apply(null,arguments)},sp=t.dynCall_jijjij=function(){return(sp=t.dynCall_jijjij=t.asm.ch).apply(null,arguments)},op=t.dynCall_jiijii=function(){return(op=t.dynCall_jiijii=t.asm.dh).apply(null,arguments)},ap=t.dynCall_jijiii=function(){return(ap=t.dynCall_jijiii=t.asm.eh).apply(null,arguments)},cp=t.dynCall_viijiiiii=function(){return(cp=t.dynCall_viijiiiii=t.asm.fh).apply(null,arguments)},up=t.dynCall_viijiiij=function(){return(up=t.dynCall_viijiiij=t.asm.gh).apply(null,arguments)},lp=t.dynCall_vijiiiji=function(){return(lp=t.dynCall_vijiiiji=t.asm.hh).apply(null,arguments)},dp=t.dynCall_jiiji=function(){return(dp=t.dynCall_jiiji=t.asm.ih).apply(null,arguments)},fp=t.dynCall_viiijij=function(){return(fp=t.dynCall_viiijij=t.asm.jh).apply(null,arguments)},hp=t.dynCall_viijiij=function(){return(hp=t.dynCall_viijiij=t.asm.kh).apply(null,arguments)},pp=t.dynCall_viiiiijj=function(){return(pp=t.dynCall_viiiiijj=t.asm.lh).apply(null,arguments)},yp=t.dynCall_viiijji=function(){return(yp=t.dynCall_viiijji=t.asm.mh).apply(null,arguments)},_p=t.dynCall_iiiijiii=function(){return(_p=t.dynCall_iiiijiii=t.asm.nh).apply(null,arguments)},mp=t.dynCall_iiijij=function(){return(mp=t.dynCall_iiijij=t.asm.oh).apply(null,arguments)},bp=t.dynCall_iiijji=function(){return(bp=t.dynCall_iiijji=t.asm.ph).apply(null,arguments)},gp=t.dynCall_iiiijj=function(){return(gp=t.dynCall_iiiijj=t.asm.qh).apply(null,arguments)},vp=t.dynCall_viiijiii=function(){return(vp=t.dynCall_viiijiii=t.asm.rh).apply(null,arguments)},jp=t.dynCall_vijji=function(){return(jp=t.dynCall_vijji=t.asm.sh).apply(null,arguments)},wp=t.dynCall_jiiiij=function(){return(wp=t.dynCall_jiiiij=t.asm.th).apply(null,arguments)},Bp=t.dynCall_jiijiiiii=function(){return(Bp=t.dynCall_jiijiiiii=t.asm.uh).apply(null,arguments)},Ip=t.dynCall_jiijiijiii=function(){return(Ip=t.dynCall_jiijiijiii=t.asm.vh).apply(null,arguments)},Tp=t.dynCall_jiijjiii=function(){return(Tp=t.dynCall_jiijjiii=t.asm.wh).apply(null,arguments)},Sp=t.dynCall_jiiijii=function(){return(Sp=t.dynCall_jiiijii=t.asm.xh).apply(null,arguments)},Ap=t.dynCall_jiijijii=function(){return(Ap=t.dynCall_jiijijii=t.asm.yh).apply(null,arguments)},Fp=t.dynCall_viiijjij=function(){return(Fp=t.dynCall_viiijjij=t.asm.zh).apply(null,arguments)},Dp=t.dynCall_vijijjiij=function(){return(Dp=t.dynCall_vijijjiij=t.asm.Ah).apply(null,arguments)},Op=t.dynCall_viijjij=function(){return(Op=t.dynCall_viijjij=t.asm.Bh).apply(null,arguments)},Cp=t.dynCall_viiijjiij=function(){return(Cp=t.dynCall_viiijjiij=t.asm.Ch).apply(null,arguments)},Mp=t.dynCall_viiiijjjj=function(){return(Mp=t.dynCall_viiiijjjj=t.asm.Dh).apply(null,arguments)},Up=t.dynCall_viijiiiiij=function(){return(Up=t.dynCall_viijiiiiij=t.asm.Eh).apply(null,arguments)},Ep=t.dynCall_viijiiiijj=function(){return(Ep=t.dynCall_viijiiiijj=t.asm.Fh).apply(null,arguments)},Rp=t.dynCall_viiijiiiijjj=function(){return(Rp=t.dynCall_viiijiiiijjj=t.asm.Gh).apply(null,arguments)},kp=t.dynCall_viijijiiiijjj=function(){return(kp=t.dynCall_viijijiiiijjj=t.asm.Hh).apply(null,arguments)},Vp=t.dynCall_viiiiijiiii=function(){return(Vp=t.dynCall_viiiiijiiii=t.asm.Ih).apply(null,arguments)},xp=t.dynCall_iiijii=function(){return(xp=t.dynCall_iiijii=t.asm.Jh).apply(null,arguments)},Pp=t.dynCall_fiijii=function(){return(Pp=t.dynCall_fiijii=t.asm.Kh).apply(null,arguments)},Np=t.dynCall_diijii=function(){return(Np=t.dynCall_diijii=t.asm.Lh).apply(null,arguments)},Lp=t.dynCall_iiiiiiijii=function(){return(Lp=t.dynCall_iiiiiiijii=t.asm.Mh).apply(null,arguments)},qp=t.dynCall_viiiiji=function(){return(qp=t.dynCall_viiiiji=t.asm.Nh).apply(null,arguments)},Hp=t.dynCall_jiiiijii=function(){return(Hp=t.dynCall_jiiiijii=t.asm.Oh).apply(null,arguments)},zp=t.dynCall_jiiijiii=function(){return(zp=t.dynCall_jiiijiii=t.asm.Ph).apply(null,arguments)},Wp=t.dynCall_jiiiiijiiii=function(){return(Wp=t.dynCall_jiiiiijiiii=t.asm.Qh).apply(null,arguments)},Yp=t.dynCall_jj=function(){return(Yp=t.dynCall_jj=t.asm.Rh).apply(null,arguments)},Gp=t.dynCall_jd=function(){return(Gp=t.dynCall_jd=t.asm.Sh).apply(null,arguments)},$p=t.dynCall_jf=function(){return($p=t.dynCall_jf=t.asm.Th).apply(null,arguments)},Kp=t.dynCall_iijjj=function(){return(Kp=t.dynCall_iijjj=t.asm.Uh).apply(null,arguments)},Jp=t.dynCall_vijijiiiijjj=function(){return(Jp=t.dynCall_vijijiiiijjj=t.asm.Vh).apply(null,arguments)},Xp=t.dynCall_iiiiiiji=function(){return(Xp=t.dynCall_iiiiiiji=t.asm.Wh).apply(null,arguments)},Zp=t.dynCall_iiiiiiiiji=function(){return(Zp=t.dynCall_iiiiiiiiji=t.asm.Xh).apply(null,arguments)},Qp=t.dynCall_jijijjij=function(){return(Qp=t.dynCall_jijijjij=t.asm.Yh).apply(null,arguments)},ey=t.dynCall_viijjj=function(){return(ey=t.dynCall_viijjj=t.asm.Zh).apply(null,arguments)},ty=t.dynCall_vijjij=function(){return(ty=t.dynCall_vijjij=t.asm._h).apply(null,arguments)},iy=t.dynCall_viijjji=function(){return(iy=t.dynCall_viijjji=t.asm.$h).apply(null,arguments)},ry=t.dynCall_iiiiiij=function(){return(ry=t.dynCall_iiiiiij=t.asm.ai).apply(null,arguments)},ny=t.dynCall_iiiiiiiiiiji=function(){return(ny=t.dynCall_iiiiiiiiiiji=t.asm.bi).apply(null,arguments)},sy=t.dynCall_jiiiiiii=function(){return(sy=t.dynCall_jiiiiiii=t.asm.ci).apply(null,arguments)},oy=t.dynCall_jijj=function(){return(oy=t.dynCall_jijj=t.asm.di).apply(null,arguments)},ay=t.dynCall_viiiijiiiiiiii=function(){return(ay=t.dynCall_viiiijiiiiiiii=t.asm.ei).apply(null,arguments)},cy=t.dynCall_ij=function(){return(cy=t.dynCall_ij=t.asm.fi).apply(null,arguments)},uy=t.dynCall_jjj=function(){return(uy=t.dynCall_jjj=t.asm.gi).apply(null,arguments)},ly=t.dynCall_vjii=function(){return(ly=t.dynCall_vjii=t.asm.hi).apply(null,arguments)},dy=t.dynCall_jjjjjjd=function(){return(dy=t.dynCall_jjjjjjd=t.asm.ii).apply(null,arguments)},fy=t.dynCall_vjiiii=function(){return(fy=t.dynCall_vjiiii=t.asm.ji).apply(null,arguments)},hy=t.dynCall_viiiiijiii=function(){return(hy=t.dynCall_viiiiijiii=t.asm.ki).apply(null,arguments)},py=t.dynCall_jiij=function(){return(py=t.dynCall_jiij=t.asm.li).apply(null,arguments)},yy=t.dynCall_iiiijjii=function(){return(yy=t.dynCall_iiiijjii=t.asm.mi).apply(null,arguments)},_y=t.dynCall_iiiiijji=function(){return(_y=t.dynCall_iiiiijji=t.asm.ni).apply(null,arguments)},my=t.dynCall_viiijjii=function(){return(my=t.dynCall_viiijjii=t.asm.oi).apply(null,arguments)},by=t.dynCall_viiiijji=function(){return(by=t.dynCall_viiiijji=t.asm.pi).apply(null,arguments)},gy=t.dynCall_viiiijjii=function(){return(gy=t.dynCall_viiiijjii=t.asm.qi).apply(null,arguments)},vy=t.dynCall_viiiiijji=function(){return(vy=t.dynCall_viiiiijji=t.asm.ri).apply(null,arguments)},jy=t.dynCall_iiiiiijji=function(){return(jy=t.dynCall_iiiiiijji=t.asm.si).apply(null,arguments)},wy=t.dynCall_iiiiijjj=function(){return(wy=t.dynCall_iiiiijjj=t.asm.ti).apply(null,arguments)},By=t.dynCall_jijiiii=function(){return(By=t.dynCall_jijiiii=t.asm.ui).apply(null,arguments)},Iy=t.dynCall_viiijiji=function(){return(Iy=t.dynCall_viiijiji=t.asm.vi).apply(null,arguments)},Ty=t.dynCall_iiijjjii=function(){return(Ty=t.dynCall_iiijjjii=t.asm.wi).apply(null,arguments)},Sy=t.dynCall_iiiiijjji=function(){return(Sy=t.dynCall_iiiiijjji=t.asm.xi).apply(null,arguments)},Ay=t.dynCall_iiiijjj=function(){return(Ay=t.dynCall_iiiijjj=t.asm.yi).apply(null,arguments)},Fy=t.dynCall_iidj=function(){return(Fy=t.dynCall_iidj=t.asm.zi).apply(null,arguments)},Dy=t.dynCall_ijji=function(){return(Dy=t.dynCall_ijji=t.asm.Ai).apply(null,arguments)},Oy=t.dynCall_iiiiiiiij=function(){return(Oy=t.dynCall_iiiiiiiij=t.asm.Bi).apply(null,arguments)},Cy=t.dynCall_iiiiiiij=function(){return(Cy=t.dynCall_iiiiiiij=t.asm.Ci).apply(null,arguments)},My=t.dynCall_iiiiiiiiiiiij=function(){return(My=t.dynCall_iiiiiiiiiiiij=t.asm.Di).apply(null,arguments)},Uy=t.dynCall_iiiiiiiji=function(){return(Uy=t.dynCall_iiiiiiiji=t.asm.Ei).apply(null,arguments)},Ey=t.dynCall_iiiidjj=function(){return(Ey=t.dynCall_iiiidjj=t.asm.Fi).apply(null,arguments)},Ry=t.dynCall_jiiiiiijii=function(){return(Ry=t.dynCall_jiiiiiijii=t.asm.Gi).apply(null,arguments)},ky=t.dynCall_iiiijji=function(){return(ky=t.dynCall_iiiijji=t.asm.Hi).apply(null,arguments)},Vy=t.dynCall_jiiiiii=function(){return(Vy=t.dynCall_jiiiiii=t.asm.Ii).apply(null,arguments)},xy=t.dynCall_iijiji=function(){return(xy=t.dynCall_iijiji=t.asm.Ji).apply(null,arguments)},Py=t.dynCall_vjiiiji=function(){return(Py=t.dynCall_vjiiiji=t.asm.Ki).apply(null,arguments)},Ny=t.dynCall_jjjii=function(){return(Ny=t.dynCall_jjjii=t.asm.Li).apply(null,arguments)},Ly=t.dynCall_jji=function(){return(Ly=t.dynCall_jji=t.asm.Mi).apply(null,arguments)},qy=t.dynCall_viiijijiji=function(){return(qy=t.dynCall_viiijijiji=t.asm.Ni).apply(null,arguments)},Hy=t.dynCall_jiiijj=function(){return(Hy=t.dynCall_jiiijj=t.asm.Oi).apply(null,arguments)},zy=t.dynCall_iiiijii=function(){return(zy=t.dynCall_iiiijii=t.asm.Pi).apply(null,arguments)},Wy=t.dynCall_viiiijii=function(){return(Wy=t.dynCall_viiiijii=t.asm.Qi).apply(null,arguments)},Yy=t.dynCall_iijiii=function(){return(Yy=t.dynCall_iijiii=t.asm.Ri).apply(null,arguments)},Gy=t.dynCall_jiiiiji=function(){return(Gy=t.dynCall_jiiiiji=t.asm.Si).apply(null,arguments)},$y=t.dynCall_vijiijj=function(){return($y=t.dynCall_vijiijj=t.asm.Ti).apply(null,arguments)},Ky=t.dynCall_vifiijj=function(){return(Ky=t.dynCall_vifiijj=t.asm.Ui).apply(null,arguments)},Jy=t.dynCall_vidiijj=function(){return(Jy=t.dynCall_vidiijj=t.asm.Vi).apply(null,arguments)},Xy=t.dynCall_viiiiij=function(){return(Xy=t.dynCall_viiiiij=t.asm.Wi).apply(null,arguments)},Zy=t.dynCall_ijjiii=function(){return(Zy=t.dynCall_ijjiii=t.asm.Xi).apply(null,arguments)},Qy=t.dynCall_vijijjji=function(){return(Qy=t.dynCall_vijijjji=t.asm.Yi).apply(null,arguments)},e_=t.dynCall_viijiijj=function(){return(e_=t.dynCall_viijiijj=t.asm.Zi).apply(null,arguments)},t_=t.dynCall_viijijj=function(){return(t_=t.dynCall_viijijj=t.asm._i).apply(null,arguments)},i_=t.dynCall_viiiiijjji=function(){return(i_=t.dynCall_viiiiijjji=t.asm.$i).apply(null,arguments)},r_=t.dynCall_iiijiijj=function(){return(r_=t.dynCall_iiijiijj=t.asm.aj).apply(null,arguments)},n_=t.dynCall_viiijijjj=function(){return(n_=t.dynCall_viiijijjj=t.asm.bj).apply(null,arguments)},s_=t.dynCall_iijiijj=function(){return(s_=t.dynCall_iijiijj=t.asm.cj).apply(null,arguments)},o_=t.dynCall_viiijjjji=function(){return(o_=t.dynCall_viiijjjji=t.asm.dj).apply(null,arguments)},a_=t.dynCall_viiiijiii=function(){return(a_=t.dynCall_viiiijiii=t.asm.ej).apply(null,arguments)},c_=t.dynCall_viijiiii=function(){return(c_=t.dynCall_viijiiii=t.asm.fj).apply(null,arguments)},u_=t.dynCall_vijjiiii=function(){return(u_=t.dynCall_vijjiiii=t.asm.gj).apply(null,arguments)},l_=t.dynCall_vijijjiiiii=function(){return(l_=t.dynCall_vijijjiiiii=t.asm.hj).apply(null,arguments)},d_=t.dynCall_vijjiiiii=function(){return(d_=t.dynCall_vijjiiiii=t.asm.ij).apply(null,arguments)},f_=t.dynCall_iiijjji=function(){return(f_=t.dynCall_iiijjji=t.asm.jj).apply(null,arguments)},h_=t.dynCall_viiiijjj=function(){return(h_=t.dynCall_viiiijjj=t.asm.kj).apply(null,arguments)},p_=t.dynCall_viiiiijjj=function(){return(p_=t.dynCall_viiiiijjj=t.asm.lj).apply(null,arguments)},y_=t.dynCall_viijiji=function(){return(y_=t.dynCall_viijiji=t.asm.mj).apply(null,arguments)};function MB(o){var a=I();try{J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function UB(o,a,c){var l=I();try{J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function EB(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function RB(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function kB(o,a){var c=I();try{J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function VB(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function xB(o,a,c,l,d,f){var h=I();try{return J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function PB(o,a,c,l,d){var f=I();try{J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function NB(o,a,c,l,d){var f=I();try{return J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function LB(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function qB(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function HB(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function zB(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function WB(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function YB(o,a,c,l,d,f,h,y){var _=I();try{return J(o)(a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function GB(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function $B(o){var a=I();try{return J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function KB(o,a,c,l,d,f,h,y){var _=I();try{J(o)(a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function JB(o,a,c,l,d,f,h){var y=I();try{return J(o)(a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function XB(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function ZB(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{J(o)(a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function QB(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe){var _e=I();try{J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe)}catch(xe){if(T(_e),xe!==xe+0&&xe!=="longjmp")throw xe;B(1,0)}}function e1(o,a,c,l,d,f,h){var y=I();try{J(o)(a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function t1(o,a,c,l,d,f){var h=I();try{return J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function i1(o,a,c,l,d,f,h,y,_){var b=I();try{J(o)(a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function r1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function n1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function s1(o,a,c,l,d,f){var h=I();try{J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function o1(o,a,c,l,d,f,h,y,_){var b=I();try{return J(o)(a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function a1(o,a,c,l,d){var f=I();try{return J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function c1(o,a,c,l,d){var f=I();try{return J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function u1(o,a,c,l,d,f){var h=I();try{J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function l1(o,a,c){var l=I();try{J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function d1(o,a,c){var l=I();try{J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function f1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function h1(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function p1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function y1(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function _1(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function m1(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N){var oe=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N)}catch(_e){if(T(oe),_e!==_e+0&&_e!=="longjmp")throw _e;B(1,0)}}function b1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function g1(o,a,c,l,d,f,h,y,_,b,g,w,F,C){var N=I();try{J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C)}catch(oe){if(T(N),oe!==oe+0&&oe!=="longjmp")throw oe;B(1,0)}}function v1(o,a,c,l,d,f,h,y,_,b){var g=I();try{J(o)(a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function j1(o){var a=I();try{return J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function w1(o){var a=I();try{return J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function B1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function I1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function T1(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$,je){var me=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$,je)}catch(mt){if(T(me),mt!==mt+0&&mt!=="longjmp")throw mt;B(1,0)}}function S1(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$){var je=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$)}catch(me){if(T(je),me!==me+0&&me!=="longjmp")throw me;B(1,0)}}function A1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function F1(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{J(o)(a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function D1(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function O1(o,a,c,l,d,f,h,y,_,b){var g=I();try{J(o)(a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function C1(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{J(o)(a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function M1(o,a,c,l,d){var f=I();try{return Yf(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function U1(o,a,c,l,d,f,h){var y=I();try{th(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function E1(o,a){var c=I();try{return Xf(o,a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function R1(o,a,c){var l=I();try{return yh(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function k1(o,a,c,l,d,f,h){var y=I();try{Kf(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function V1(o,a,c,l,d,f,h){var y=I();try{return Gf(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function x1(o,a,c,l,d,f,h,y,_){var b=I();try{return $f(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function P1(o,a,c,l){var d=I();try{return Zf(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function N1(o,a,c,l,d,f){var h=I();try{rh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function L1(o){var a=I();try{return Jf(o)}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function q1(o,a,c,l,d){var f=I();try{Qf(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function H1(o,a,c,l,d,f,h,y){var _=I();try{nh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function z1(o,a,c,l,d,f,h){var y=I();try{return sh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function W1(o,a,c,l,d,f,h,y){var _=I();try{eh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function Y1(o,a,c,l,d){var f=I();try{return uh(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function G1(o,a,c,l){var d=I();try{hh(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function $1(o,a,c,l,d,f,h){var y=I();try{ph(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function K1(o,a,c,l,d,f){var h=I();try{oh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function J1(o,a,c,l,d,f,h,y,_,b){var g=I();try{ch(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function X1(o,a,c,l,d,f,h,y,_){var b=I();try{lh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function Z1(o,a,c,l){var d=I();try{return dh(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function Q1(o,a,c,l,d){var f=I();try{fh(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function eI(o,a,c,l,d,f,h,y){var _=I();try{ih(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function tI(o,a,c,l,d,f,h,y,_){var b=I();try{ey(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function iI(o,a,c,l,d,f,h,y){var _=I();try{return Zy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function rI(o,a,c,l,d,f){var h=I();try{mh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function nI(o,a,c,l,d,f,h){var y=I();try{_h(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function sI(o,a,c){var l=I();try{bh(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function oI(o,a,c,l,d){var f=I();try{return gh(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function aI(o,a,c,l,d,f){var h=I();try{return vh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function cI(o,a,c,l,d,f,h,y){var _=I();try{return gp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function uI(o,a,c,l,d,f,h,y){var _=I();try{qp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function lI(o,a,c,l,d,f,h,y){var _=I();try{return mp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function dI(o,a,c,l,d,f){var h=I();try{return wh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function fI(o,a,c,l,d,f){var h=I();try{return ep(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function hI(o,a,c,l,d,f,h,y){var _=I();try{return bp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function pI(o,a,c,l,d,f,h,y){var _=I();try{return jh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function yI(o,a,c,l,d,f,h){var y=I();try{return Bh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function _I(o,a,c,l){var d=I();try{return Ih(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function mI(o,a,c,l,d,f,h){var y=I();try{Rh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function bI(o,a,c,l,d,f,h,y){var _=I();try{Nh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function gI(o,a,c,l,d,f,h,y){var _=I();try{return Lh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function vI(o,a,c,l,d,f,h,y){var _=I();try{return Ch(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function jI(o,a,c,l,d,f,h,y,_){var b=I();try{return Mh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function wI(o,a,c,l,d,f,h,y){var _=I();try{Uh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function BI(o,a,c,l,d,f,h,y,_){var b=I();try{return Eh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function II(o,a,c,l,d,f,h,y){var _=I();try{return kh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function TI(o,a,c,l,d,f,h,y,_){var b=I();try{return Vh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function SI(o,a,c,l,d,f,h,y,_,b){var g=I();try{return xh(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function AI(o,a,c,l,d,f,h){var y=I();try{return Ph(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function FI(o,a,c,l,d,f,h,y,_){var b=I();try{Oh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function DI(o,a,c,l,d,f,h,y){var _=I();try{Dh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function OI(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Sh(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function CI(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Ah(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function MI(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{Fh(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function UI(o,a,c,l,d,f){var h=I();try{return qh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function EI(o,a,c,l,d,f,h){var y=I();try{Xh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function RI(o,a,c,l,d,f,h,y,_){var b=I();try{return zh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function kI(o,a,c,l,d,f,h,y,_){var b=I();try{yp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function VI(o,a,c,l){var d=I();try{return Th(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function xI(o,a,c,l,d,f){var h=I();try{return Wh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function PI(o,a,c,l,d,f,h,y,_){var b=I();try{Jh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function NI(o,a,c,l,d,f){var h=I();try{return Yh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function LI(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{Kh(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function qI(o,a,c,l,d,f){var h=I();try{return dp(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function HI(o,a,c,l,d,f,h,y,_,b){var g=I();try{$h(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function zI(o,a,c,l,d,f,h){var y=I();try{return Qh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function WI(o,a,c,l,d,f,h){var y=I();try{Hh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function YI(o,a,c,l,d,f,h,y,_){var b=I();try{Zh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function GI(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N){var oe=I();try{return Gh(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N)}catch(_e){if(T(oe),_e!==_e+0&&_e!=="longjmp")throw _e;B(1,0)}}function $I(o,a,c,l,d,f,h,y,_){var b=I();try{return tp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function KI(o,a,c,l,d,f,h,y){var _=I();try{ah(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function JI(o,a,c,l,d,f){var h=I();try{ip(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function XI(o,a,c,l,d,f,h,y,_){var b=I();try{rp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function ZI(o,a,c,l,d,f,h){var y=I();try{return op(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function QI(o,a,c,l,d,f,h,y,_,b){var g=I();try{cp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function eT(o,a,c,l,d,f,h,y,_,b){var g=I();try{up(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function tT(o,a,c,l,d,f,h){var y=I();try{return ap(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function iT(o,a,c,l,d,f,h,y,_,b){var g=I();try{lp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function rT(o,a,c,l,d,f,h,y,_){var b=I();try{return sp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function nT(o,a,c,l,d,f,h,y,_){var b=I();try{hp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function sT(o,a,c,l,d,f,h,y,_){var b=I();try{np(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function oT(o,a,c,l,d,f,h,y,_){var b=I();try{return _p(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function aT(o,a,c,l,d,f,h,y,_){var b=I();try{vp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function cT(o,a,c,l,d,f,h){var y=I();try{jp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function uT(o,a,c,l,d,f,h){var y=I();try{return wp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function lT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{Fp(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function dT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{Dp(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function fT(o,a,c,l,d,f,h,y,_,b){var g=I();try{Op(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function hT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{Mp(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function pT(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Bp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function yT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Ip(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function _T(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Tp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function mT(o,a,c,l,d,f,h,y){var _=I();try{return Sp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function bT(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Ap(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function gT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Up(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function vT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{Ep(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function jT(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe){var _e=I();try{Rp(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe)}catch(xe){if(T(_e),xe!==xe+0&&xe!=="longjmp")throw xe;B(1,0)}}function wT(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe){var U=I();try{kp(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe)}catch($){if(T(U),$!==$+0&&$!=="longjmp")throw $;B(1,0)}}function BT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Cp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function IT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Ry(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function TT(o,a,c,l,d,f,h,y,_){var b=I();try{return ky(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function ST(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Vp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function AT(o,a,c,l,d,f,h,y,_){var b=I();try{return Hp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function FT(o,a,c,l,d,f,h){var y=I();try{return xp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function DT(o,a,c,l,d,f,h){var y=I();try{return Pp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function OT(o,a,c,l,d,f,h){var y=I();try{return Np(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function CT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Lp(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function MT(o,a,c,l,d,f,h,y,_){var b=I();try{return zp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function UT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Wp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function ET(o,a,c){var l=I();try{return Yp(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function RT(o,a){var c=I();try{return Gp(o,a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function kT(o,a){var c=I();try{return $p(o,a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function VT(o,a,c,l,d,f,h){var y=I();try{return Vy(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function xT(o,a,c,l,d,f){var h=I();try{return Dy(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function PT(o,a,c,l,d,f,h,y,_){var b=I();try{return Xp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function NT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Zp(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function LT(o,a,c,l,d,f,h,y,_,b){var g=I();try{pp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function qT(o,a,c,l,d,f,h,y){var _=I();try{return Kp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function HT(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e){var xe=I();try{Jp(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e)}catch(U){if(T(xe),U!==U+0&&U!=="longjmp")throw U;B(1,0)}}function zT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Qp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function WT(o,a,c,l,d,f,h,y,_){var b=I();try{ty(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function YT(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Oy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function GT(o,a,c,l,d,f,h,y,_,b){var g=I();try{iy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function $T(o,a,c,l,d,f,h,y){var _=I();try{return ry(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function KT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{return ny(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function JT(o,a,c,l,d,f,h,y){var _=I();try{return sy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function XT(o,a,c,l,d,f,h,y,_){var b=I();try{return Cy(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function ZT(o,a,c,l,d,f,h,y,_,b,g,w,F,C){var N=I();try{return My(o,a,c,l,d,f,h,y,_,b,g,w,F,C)}catch(oe){if(T(N),oe!==oe+0&&oe!=="longjmp")throw oe;B(1,0)}}function QT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{hy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function eS(o,a,c,l,d){var f=I();try{return py(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function tS(o,a,c){var l=I();try{return cy(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function iS(o,a,c,l,d,f,h){var y=I();try{fy(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function rS(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N){var oe=I();try{ay(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N)}catch(_e){if(T(oe),_e!==_e+0&&_e!=="longjmp")throw _e;B(1,0)}}function nS(o,a,c,l,d){var f=I();try{return uy(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function sS(o,a,c,l,d){var f=I();try{ly(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function oS(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return dy(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function aS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return yy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function cS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return _y(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function uS(o,a,c,l,d,f,h,y,_,b){var g=I();try{my(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function lS(o,a,c,l,d,f,h,y,_,b){var g=I();try{by(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function dS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{gy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function fS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{vy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function hS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return jy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function pS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Ty(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function yS(o,a,c,l,d,f,h,y,_,b){var g=I();try{Iy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function _S(o,a,c,l,d,f,h,y){var _=I();try{return By(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function mS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return wy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function bS(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Sy(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function gS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Ay(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function vS(o,a,c,l,d){var f=I();try{return Fy(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function jS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Uy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function wS(o,a,c,l,d,f,h,y,_){var b=I();try{return Ey(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function BS(o,a,c,l,d,f,h,y){var _=I();try{return xy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function IS(o,a,c,l,d,f,h,y,_){var b=I();try{Py(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function TS(o,a,c,l,d,f,h){var y=I();try{return Ny(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function SS(o,a,c,l){var d=I();try{return Ly(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function AS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{qy(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function FS(o,a,c,l,d,f,h,y,_){var b=I();try{fp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function DS(o,a,c,l,d,f,h,y){var _=I();try{return Hy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function OS(o,a,c,l,d,f,h,y){var _=I();try{return zy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function CS(o,a,c,l,d,f,h,y,_){var b=I();try{Wy(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function MS(o,a,c,l,d,f,h){var y=I();try{return Yy(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function US(o,a,c,l,d,f,h,y){var _=I();try{return Gy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function ES(o,a,c,l,d,f,h,y,_,b){var g=I();try{$y(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function RS(o,a,c,l,d,f,h,y,_){var b=I();try{Ky(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function kS(o,a,c,l,d,f,h,y,_){var b=I();try{Jy(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function VS(o,a,c,l,d,f,h,y){var _=I();try{Xy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function xS(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Qy(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function PS(o,a,c,l,d,f){var h=I();try{return oy(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function NS(o,a,c,l,d,f,h,y,_,b){var g=I();try{t_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function LS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return r_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function qS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{e_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function HS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{i_(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function zS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{n_(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function WS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return s_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function YS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return f_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function GS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{o_(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function $S(o,a,c,l,d,f,h,y,_,b){var g=I();try{a_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function KS(o,a,c,l,d,f,h,y,_){var b=I();try{c_(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function JS(o,a,c,l,d,f,h,y,_){var b=I();try{y_(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function XS(o,a,c,l,d,f,h,y,_,b,g,w,F,C){var N=I();try{l_(o,a,c,l,d,f,h,y,_,b,g,w,F,C)}catch(oe){if(T(N),oe!==oe+0&&oe!=="longjmp")throw oe;B(1,0)}}function ZS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{d_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function QS(o,a,c,l,d,f,h,y,_,b){var g=I();try{u_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function eA(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{h_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function tA(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{p_(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}t.ccall=$0;var Uo;function Eo(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var iA=!1;ws=function o(){Uo||Kc(),Uo||(ws=o)};function rA(o){var a=t._main,c=0,l=0;try{var d=a(c,l);return nA(d,!0),d}catch(f){return bj(f)}finally{iA=!0}}function Kc(o){if(o=o||p,Lr>0||(sj(),Lr>0))return;function a(){Uo||(Uo=!0,t.calledRun=!0,!Me&&(oj(),aj(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),__&&rA(o),uj()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=Kc;function nA(o,a){Kt=o,xc()||cj(),sA(o)}function sA(o){Kt=o,xc()||(t.onExit&&t.onExit(o),Me=!0),j(o,new Eo(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var __=!0;return t.noInitialRun&&(__=!1),Kc(),e.ready}})(),P0=eE;var bf=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),r=S.RecordBatchReader.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),S.Table.from(r)}send(e){let t=this._bindings.sendQuery(this._conn,e),r=new gf(this._bindings,this._conn,t),n=S.RecordBatchReader.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new N0(this._bindings,this._conn,t)}createScalarFunction(e,t,r){this._bindings.createScalarFunction(this._conn,e,t,r)}insertArrowTable(e,t){let r=e.serialize("binary",!0);this.insertArrowFromIPCStream(r,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},gf=class{constructor(e,t,r){this.bindings=e;this.conn=t;this.header=r;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},N0=class{constructor(e,t,r){this.bindings=e,this.connectionId=t,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),r=S.RecordBatchReader.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),S.Table.from(r)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new gf(this.bindings,this.connectionId,t),n=S.RecordBatchReader.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}};var tE=new TextEncoder;function bo(i,e,t){let r=tE.encode(t),n=i._malloc(r.byteLength),s=i.HEAPU8.subarray(n,n+r.byteLength);s.set(r),i.HEAPF64[(e>>3)+0]=1,i.HEAPF64[(e>>3)+1]=n,i.HEAPF64[(e>>3)+2]=s.byteLength}function vf(i){switch(i){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Er(i,e,t,r){let n=i.HEAPU8.subarray(e,e+r*vf(t));switch(t){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,r);case"INT8":return new Int8Array(n.buffer,n.byteOffset,r);case"INT32":return new Int32Array(n.buffer,n.byteOffset,r);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,r);case"DOUBLE":return new Float64Array(n.buffer,n.byteOffset,r);case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,r);default:return new Array(0)}}function L0(i,e,t,r,n,s,u,p){try{let m=i._udfFunctions.get(r);if(!m){bo(e,t,"Unknown UDF with id: "+r);return}let j=new TextDecoder().decode(e.HEAPU8.subarray(n,n+s)),A=JSON.parse(j),R=Er(e,u,"DOUBLE",p/8),P=[],x=[];for(let ve in A.args){let Ce=A.args[ve],Fe=Er(e,R[Ce.data_buffer],Ce.physical_type,A.rows),Pr=Er(e,R[Ce.validity_buffer],"UINT8",A.rows);if(Fe.length==0||Pr.length==0){bo(e,t,"Can't create physical arrays for argument "+Ce.physical_type);return}if(P.push(Pr),Ce.physical_type=="VARCHAR"){let $t=Er(e,R[Ce.length_buffer],"DOUBLE",A.rows),Nr=[],si=new TextDecoder;for(let Me=0;Me<A.rows;++Me){if(!Pr[Me]){Nr.push(void 0);continue}let Kt=e.HEAPU8.subarray(Fe[Me],Fe[Me]+$t[Me]),go=si.decode(Kt);Nr.push(go)}x.push(Nr)}else x.push(Fe)}let pe=A.rows*vf(A.ret.physical_type),de=e._malloc(pe),Ie=Er(e,de,A.ret.physical_type,A.rows),Oe=e._malloc(A.rows),ht=Er(e,Oe,"UINT8",A.rows);if(Ie.length==0||ht.length==0){bo(e,t,"Can't create physical arrays for result");return}let Gi=Ie;switch(A.ret.physical_type=="VARCHAR"&&(Ie=new Array(A.rows)),A.args.length){case 0:for(let ve=0;ve<A.rows;++ve){let Ce=m.func();Ie[ve]=Ce,ht[ve]=Ce==null?0:1}break;case 1:for(let ve=0;ve<A.rows;++ve){let Ce=m.func(P[0][ve]?x[0][ve]:void 0);Ie[ve]=Ce,ht[ve]=Ce==null?0:1}break;case 2:for(let ve=0;ve<A.rows;++ve){let Ce=m.func(P[0][ve]?x[0][ve]:void 0,P[1][ve]?x[1][ve]:void 0);Ie[ve]=Ce,ht[ve]=Ce==null?0:1}break;default:bo(e,t,"Can't deal with argument count: "+A.args.length);return}let xr=0;if(A.ret.physical_type=="VARCHAR"){let ve=new TextEncoder,Ce=new Array(0),Fe=0;xr=e._malloc(A.rows*vf("DOUBLE"));let Pr=Er(e,xr,"DOUBLE",A.rows);for(let Me=0;Me<A.rows;++Me)Ce[Me]=ve.encode(Ie[Me]),Fe+=Ce[Me].length,Pr[Me]=Ce[Me].length;let $t=e._malloc(Fe),Nr=e.HEAPU8.subarray($t,$t+Fe),si=0;Ie=Gi;for(let Me=0;Me<A.rows;++Me){Ie[Me]=$t+si;for(let Kt=0;Kt<Ce[Me].length;Kt++)Nr[si+Kt]=Ce[Me][Kt];si+=Ce[Me].length}}let yn=3*8,_n=e._malloc(yn),vs=Er(e,_n,"DOUBLE",3);vs[0]=de,vs[1]=Oe,vs[2]=xr,e.HEAPF64[(t>>3)+0]=0,e.HEAPF64[(t>>3)+1]=_n,e.HEAPF64[(t>>3)+2]=0}catch(m){bo(e,t,m.toString())}}function rE(){let i=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),i.decode(e))}var nE=rE();function Fi(i,e){i.ccall("duckdb_web_fail_with",null,["string"],[e])}function gs(i,e,t){let r=i.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(r.byteLength));return n.set(r),n}function he(i,e,t){return nE(i.HEAPU8.subarray(e,e+t))}function Te(i,e,t,r){let n=i.stackSave(),s=i.stackAlloc(3*8);t.unshift("number"),r.unshift(s),i.ccall(e,null,t,r);let u=i.HEAPF64[(s>>3)+0],p=i.HEAPF64[(s>>3)+1],m=i.HEAPF64[(s>>3)+2];return i.stackRestore(n),[u,p,m]}function Re(i){i.ccall("duckdb_web_clear_response",null,[],[])}var jf=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),r=new Uint8Array(new ArrayBuffer(e.byteLength));r.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=r}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var sE=new TextEncoder;var wf=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=t=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise(t=>{this._initPromiseResolver=t}),this.onInstantiationProgress=[e],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(t=>t!=e),this)}open(e){let[t,r,n]=Te(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==0)throw new Error(he(this.mod,r,n));Re(this.mod)}reset(){let[e,t,r]=Te(this.mod,"duckdb_web_reset",[],[]);if(e!==0)throw new Error(he(this.mod,t,r));Re(this.mod)}getVersion(){let[e,t,r]=Te(this.mod,"duckdb_web_get_version",[],[]);if(e!==0)throw new Error(he(this.mod,t,r));let n=he(this.mod,t,r);return Re(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,r,n]=Te(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=he(this.mod,r,n);return Re(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new bf(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));let u=gs(this.mod,n,s);return Re(this.mod),u}sendQuery(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));let u=gs(this.mod,n,s);return Re(this.mod),u}fetchQueryResults(e){let[t,r,n]=Te(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=gs(this.mod,r,n);return Re(this.mod),s}getTableNames(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_get_tablenames",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));let u=he(this.mod,n,s);return Re(this.mod),JSON.parse(u)}createScalarFunction(e,t,r,n){let s={functionId:this._nextUDFId,name:t,returnType:yf(r)},u={functionId:s.functionId,connectionId:e,name:t,returnType:r,func:n};this._nextUDFId+=1;let[p,m,j]=Te(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(s)]);if(p!==0)throw new Error(he(this.mod,m,j));if(Re(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(u.functionId,u),this.pthread)for(let A of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])A.postMessage({cmd:"registerUDFFunction",udf:u})}createPrepared(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));return Re(this.mod),n}closePrepared(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));Re(this.mod)}runPrepared(e,t,r){let[n,s,u]=Te(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(r)]);if(n!==0)throw new Error(he(this.mod,s,u));let p=gs(this.mod,s,u);return Re(this.mod),p}sendPrepared(e,t,r){let[n,s,u]=Te(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(r)]);if(n!==0)throw new Error(he(this.mod,s,u));let p=gs(this.mod,s,u);return Re(this.mod),p}insertArrowFromIPCStream(e,t,r){if(t.length==0)return;let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let u=r?JSON.stringify(r):"",[p,m,j]=Te(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,u]);if(p!==0)throw new Error(he(this.mod,m,j))}insertCSVFromPath(e,t,r){if(r.columns!==void 0){r.columnsFlat=[];for(let j in r.columns)r.columnsFlat.push(mo(j,r.columns[j]))}let n=Ji({},r);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=Te(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(he(this.mod,p,m))}insertJSONFromPath(e,t,r){if(r.columns!==void 0){r.columnsFlat=[];for(let j in r.columns)r.columnsFlat.push(mo(j,r.columns[j]))}let n=Ji({},r);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=Te(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(he(this.mod,p,m))}globFiles(e){let[t,r,n]=Te(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=he(this.mod,r,n);Re(this.mod);let u=JSON.parse(s);return u==null?[]:u}registerFileURL(e,t){t===void 0&&(t=e);let[r,n,s]=Te(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,t,-1]);if(r!==0)throw new Error(he(this.mod,n,s));Re(this.mod)}registerFileText(e,t){let r=sE.encode(t);this.registerFileBuffer(e,r)}registerFileBuffer(e,t){let r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[s,u,p]=Te(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,r,t.length]);if(s!==0)throw new Error(he(this.mod,u,p));Re(this.mod)}registerFileHandle(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,e,-1]);if(r!==0)throw new Error(he(this.mod,n,s));if(Re(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let u of this.pthread.runningWorkers)u.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let u of this.pthread.unusedWorkers)u.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,r,n]=Te(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));Re(this.mod)}dropFiles(){let[e,t,r]=Te(this.mod,"duckdb_web_fs_drop_files",[],[]);if(e!==0)throw new Error(he(this.mod,t,r));Re(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));Re(this.mod)}copyFileToBuffer(e){let[t,r,n]=Te(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=this.mod.HEAPU8.subarray(r,r+n),u=new Uint8Array(s.length);return u.set(s),Re(this.mod),u}collectFileStatistics(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s))}exportFileStatistics(e){let[t,r,n]=Te(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));return new jf(this.mod.HEAPU8.subarray(r,r+n))}};var Bf=class extends wf{constructor(e,t,r,n){super(e,t);this.mainModuleURL=r,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(typeof TransformStream=="function"&&ReadableStream.prototype.pipeThrough&&WebAssembly.instantiateStreaming){let s=(async()=>{var pe;let u=new Request(this.mainModuleURL),p=await fetch(u),m=p.headers.get("content-length"),j=m&&parseInt(m,10)||0,A=new Date,R={startedAt:A,updatedAt:A,bytesTotal:j||0,bytesLoaded:0},P={transform(de,Ie){R.bytesLoaded+=de.byteLength;let Oe=new Date;if(Oe.getTime()-R.updatedAt.getTime()<20){R.updatedAt=Oe,Ie.enqueue(de);return}for(let ht of r)ht(R);Ie.enqueue(de)}},x=new TransformStream(P);return new Response((pe=p.body)==null?void 0:pe.pipeThrough(x),p)})();WebAssembly.instantiateStreaming(s,e).then(u=>{t(u.instance,u.module)})}else{let n=new XMLHttpRequest,s=this.mainModuleURL,u=new Date,p={startedAt:u,updatedAt:u,bytesTotal:0,bytesLoaded:0};n.open("GET",s),n.responseType="arraybuffer",n.onerror=m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+m}),new Error(m.toString())},n.onprogress=m=>{p.bytesTotal=m.total,p.bytesLoaded=m.loaded;let j=new Date;if(j.getTime()-p.updatedAt.getTime()<20){p.updatedAt=j;return}for(let A of r)A(p)},n.onload=()=>{WebAssembly.instantiate(n.response,e).then(m=>{t(m.instance,m.module)}).catch(m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+m}),new Error(m)})},n.send()}return[]}};var If=class extends Bf{constructor(e,t,r,n=null){super(e,t,r,n)}instantiateImpl(e){return P0(Fs(Ji({},e),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};var Rr=oi(q0()),H0=function(i,e,t){var r;if((r=i==null?void 0:i.endpoint)==null?void 0:r.startsWith("http")){let n=`${i==null?void 0:i.endpoint}`,s=n.indexOf("://")+3;return n.substring(s)}else return(i==null?void 0:i.endpoint)?`${t}.${i==null?void 0:i.endpoint}`:`${t}.s3.amazonaws.com`};function oE(i,e,t){var n,s,u,p;let r=z0(e);return{url:r.path,query:"",host:H0(i,e,r.bucket),region:(n=i==null?void 0:i.region)!=null?n:"",service:"s3",method:t,accessKeyId:(s=i==null?void 0:i.accessKeyId)!=null?s:"",secretAccessKey:(u=i==null?void 0:i.secretAccessKey)!=null?u:"",sessionToken:(p=i==null?void 0:i.sessionToken)!=null?p:"",dateNow:new Date().toISOString().replace(/-/g,"").split("T")[0],datetimeNow:new Date().toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function aE(i,e=!1){let t="0123456789ABCDEF",r="";for(let n=0;n<i.length;n++){let s=i[n];s>="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||s=="_"||s=="-"||s=="~"||s=="."?r+=s:s=="/"?e?r+="%2F":r+=s:(r+="%",r+=t[s.charCodeAt(0)>>4],r+=t[s.charCodeAt(0)&15])}return r}function cE(i,e=null){var pe;let t=(pe=e==null?void 0:e.contentHash)!=null?pe:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",r=new Map;r.set("x-amz-date",i.datetimeNow),r.set("x-amz-content-sha256",t),i.sessionToken&&r.set("x-amz-security-token",i.sessionToken);let n="";(e==null?void 0:e.contentType)&&(n+="content-type;"),n+="host;x-amz-content-sha256;x-amz-date",i.sessionToken&&(n+=";x-amz-security-token");let s=i.method+`
|
|
18
|
+
`},"%p":function(U){return U.tm_hour>=0&&U.tm_hour<12?"AM":"PM"},"%S":function(U){return F(U.tm_sec,2)},"%t":function(){return" "},"%u":function(U){return U.tm_wday||7},"%U":function(U){var $=new Date(U.tm_year+1900,0,1),je=$.getDay()===0?$:Oo($,7-$.getDay()),me=new Date(U.tm_year+1900,U.tm_mon,U.tm_mday);if(C(je,me)<0){var mt=Wc(Ao(me.getFullYear())?Fo:Do,me.getMonth()-1)-31,Ki=31-je.getDate(),Hr=Ki+mt+me.getDate();return F(Math.ceil(Hr/7),2)}return C(je,$)===0?"01":"00"},"%V":function(U){var $=new Date(U.tm_year+1900,0,4),je=new Date(U.tm_year+1901,0,4),me=N($),mt=N(je),Ki=Oo(new Date(U.tm_year+1900,0,1),U.tm_yday);if(C(Ki,me)<0)return"53";if(C(mt,Ki)<=0)return"01";var Hr;return me.getFullYear()<U.tm_year+1900?Hr=U.tm_yday+32-me.getDate():Hr=U.tm_yday+1-me.getDate(),F(Math.ceil(Hr/7),2)},"%w":function(U){return U.tm_wday},"%W":function(U){var $=new Date(U.tm_year,0,1),je=$.getDay()===1?$:Oo($,$.getDay()===0?1:7-$.getDay()+1),me=new Date(U.tm_year+1900,U.tm_mon,U.tm_mday);if(C(je,me)<0){var mt=Wc(Ao(me.getFullYear())?Fo:Do,me.getMonth()-1)-31,Ki=31-je.getDate(),Hr=Ki+mt+me.getDate();return F(Math.ceil(Hr/7),2)}return C(je,$)===0?"01":"00"},"%y":function(U){return(U.tm_year+1900).toString().substring(2)},"%Y":function(U){return U.tm_year+1900},"%z":function(U){var $=U.tm_gmtoff,je=$>=0;return $=Math.abs($)/60,$=$/60*100+$%60,(je?"+":"-")+String("0000"+$).slice(-4)},"%Z":function(U){return U.tm_zone},"%%":function(){return"%"}};for(var _ in _e)h.includes(_)&&(h=h.replace(new RegExp(_,"g"),_e[_](f)));var xe=Ww(h,!1);return xe.length>a?0:(Ff(xe,o),xe.length-1)}function zw(o,a,c,l){return Hw(o,a,c,l)}function Ww(o,a,c){var l=c>0?c:K0(o)+1,d=new Array(l),f=Af(o,d,0,d.length);return a&&(d.length=f),d}var Yw={p:gj,j:vj,A:wj,F:Ij,b:Sj,n:Aj,H:Fj,W:Dj,i:xf,da:Oj,v:Cj,E:Mj,e:Tj,Ca:Uj,Qe:Ej,Ea:Vj,Da:xj,Q:Pj,Sa:Nj,Qa:Lj,Na:qj,Oa:Hj,ya:zj,Ba:Wj,Ua:Yj,Pa:Gj,Ta:$j,oa:Kj,za:Jj,Oe:Xj,ma:Zj,Aa:Qj,ga:ew,Ra:tw,na:iw,ha:rw,Ga:nw,_:sw,la:aw,Ge:cw,He:uw,Ee:lw,Fe:dw,ta:fw,Ce:hw,Je:pw,De:yw,Ke:_w,fa:mw,Ie:bw,ua:gw,Be:vw,sa:jw,Le:ww,Va:Bw,kb:Iw,ed:Sw,Xa:Fw,Ya:Dw,U:Ow,pe:Cw,qb:Mw,qa:Uw,ye:Ew,Pe:Rw,ea:kw,a:Vw,Fa:xw,Ma:So,xa:Nw,ia:w1,N:f1,Ja:b1,T:qB,yc:OT,ja:j1,X:p1,ra:LB,zc:DT,u:$B,Ha:I1,Ka:n1,Z:a1,Ia:B1,La:r1,d:EB,aa:A1,D:c1,Ib:vS,c:RB,Y:h1,va:D1,h:VB,Gb:wS,m:NB,pa:t1,o:xB,w:JB,z:YB,S:o1,y:GB,x:XB,q:m1,O:S1,J:T1,cc:ZT,fc:KT,ic:YT,oc:NT,dc:XT,Hb:jS,xc:CT,gc:$T,pc:PT,Pb:hS,ue:V1,Qd:pI,Jd:jI,te:x1,Ub:cS,jd:GI,Lb:mS,Kb:bS,Xd:aI,Pd:yI,yb:OS,Xc:oT,Wd:cI,Ec:TT,Vb:aS,Jb:gS,ke:Y1,Td:dI,Ac:FT,Kd:vI,vd:RI,Hd:BI,mb:LS,Ud:lI,me:z1,Rd:hI,id:$I,gb:YS,Ob:pS,se:P1,Yd:oI,xd:UI,wb:MS,Ld:gI,hb:WS,Fb:BS,Sd:fI,Dd:AI,Gd:II,Fd:TI,Ed:SI,Ad:OI,mc:qT,$b:tS,ee:Z1,qc:xT,ae:iI,qe:L1,tc:RT,sc:kT,xe:E1,we:R1,Od:_I,Ae:M1,qd:NI,rc:VT,ec:JT,Fc:IT,vc:UT,Uc:uT,vb:US,Cc:AT,sd:xI,md:zI,Mc:mT,wc:MT,zb:DS,ac:eS,od:qI,dd:ZI,Pc:pT,Oc:yT,Lc:bT,Nc:_T,td:VI,ad:tT,Mb:_S,kc:zT,ob:PS,_c:rT,uc:ET,Cb:SS,Yb:nS,Db:TS,Wb:oS,t:MB,k:kB,C:d1,ba:_1,sb:kS,K:l1,ca:y1,tb:RS,f:UB,V:zB,R:u1,Bc:HB,g:WB,l:PB,Ne:O1,s:s1,r:e1,wa:F1,B:KB,L:i1,P:v1,M:ZB,Me:C1,ka:g1,$:QB,Cd:FI,rb:VS,kd:YI,bc:QT,Dc:ST,nc:LT,Qb:fS,Za:tA,jb:HS,ie:$1,Vd:uI,xb:CS,eb:$S,yd:MI,zd:CI,Zb:rS,Yc:sT,Sb:lS,Rb:dS,_a:eA,Qc:hT,he:K1,_d:nI,Bd:DI,Wc:aT,Ic:jT,Ab:FS,Nb:yS,Bb:AS,ib:zS,ce:eI,ud:kI,Tb:uS,Gc:BT,Tc:lT,ge:J1,fb:GS,oe:q1,re:N1,ve:k1,Id:wI,db:KS,cd:QI,Kc:gT,Jc:vT,bd:eT,Zc:nT,nd:HI,lb:qS,hd:KI,cb:JS,Hc:wT,nb:NS,ze:U1,le:W1,fd:XI,Rc:fT,be:tI,hc:GT,je:G1,de:Q1,gd:JI,Nd:mI,Md:bI,$c:iT,ub:ES,ld:WI,lc:HT,fe:X1,bb:XS,Sc:dT,pb:xS,$d:rI,Vc:cT,$a:QS,ab:ZS,jc:WT,ne:H1,rd:PI,Zd:sI,Xb:sS,_b:iS,Eb:IS,wd:EI,pd:LI,G:Lw,I:qw,Wa:zw},fE=mj(),Gw=t.___wasm_call_ctors=function(){return(Gw=t.___wasm_call_ctors=t.asm.Se).apply(null,arguments)},$w=t._main=function(){return($w=t._main=t.asm.Te).apply(null,arguments)},Kw=t._duckdb_web_fs_glob_add_path=function(){return(Kw=t._duckdb_web_fs_glob_add_path=t.asm.Ve).apply(null,arguments)},Jw=t._duckdb_web_clear_response=function(){return(Jw=t._duckdb_web_clear_response=t.asm.We).apply(null,arguments)},Xw=t._duckdb_web_fail_with=function(){return(Xw=t._duckdb_web_fail_with=t.asm.Xe).apply(null,arguments)},Zw=t._duckdb_web_reset=function(){return(Zw=t._duckdb_web_reset=t.asm.Ye).apply(null,arguments)},Qw=t._duckdb_web_connect=function(){return(Qw=t._duckdb_web_connect=t.asm.Ze).apply(null,arguments)},eB=t._duckdb_web_disconnect=function(){return(eB=t._duckdb_web_disconnect=t.asm._e).apply(null,arguments)},tB=t._duckdb_web_flush_files=function(){return(tB=t._duckdb_web_flush_files=t.asm.$e).apply(null,arguments)},iB=t._duckdb_web_flush_file=function(){return(iB=t._duckdb_web_flush_file=t.asm.af).apply(null,arguments)},rB=t._duckdb_web_open=function(){return(rB=t._duckdb_web_open=t.asm.bf).apply(null,arguments)},nB=t._duckdb_web_get_global_file_info=function(){return(nB=t._duckdb_web_get_global_file_info=t.asm.cf).apply(null,arguments)},sB=t._duckdb_web_collect_file_stats=function(){return(sB=t._duckdb_web_collect_file_stats=t.asm.df).apply(null,arguments)},oB=t._duckdb_web_export_file_stats=function(){return(oB=t._duckdb_web_export_file_stats=t.asm.ef).apply(null,arguments)},aB=t._duckdb_web_fs_drop_file=function(){return(aB=t._duckdb_web_fs_drop_file=t.asm.ff).apply(null,arguments)},cB=t._duckdb_web_fs_drop_files=function(){return(cB=t._duckdb_web_fs_drop_files=t.asm.gf).apply(null,arguments)},uB=t._duckdb_web_fs_glob_file_infos=function(){return(uB=t._duckdb_web_fs_glob_file_infos=t.asm.hf).apply(null,arguments)},lB=t._duckdb_web_fs_get_file_info_by_id=function(){return(lB=t._duckdb_web_fs_get_file_info_by_id=t.asm.jf).apply(null,arguments)},dB=t._duckdb_web_fs_get_file_info_by_name=function(){return(dB=t._duckdb_web_fs_get_file_info_by_name=t.asm.kf).apply(null,arguments)},fB=t._duckdb_web_fs_set_file_descriptor=function(){return(fB=t._duckdb_web_fs_set_file_descriptor=t.asm.lf).apply(null,arguments)},hB=t._duckdb_web_fs_register_file_url=function(){return(hB=t._duckdb_web_fs_register_file_url=t.asm.mf).apply(null,arguments)},pB=t._duckdb_web_fs_register_file_buffer=function(){return(pB=t._duckdb_web_fs_register_file_buffer=t.asm.nf).apply(null,arguments)},yB=t._duckdb_web_copy_file_to_buffer=function(){return(yB=t._duckdb_web_copy_file_to_buffer=t.asm.of).apply(null,arguments)},_B=t._duckdb_web_copy_file_to_path=function(){return(_B=t._duckdb_web_copy_file_to_path=t.asm.pf).apply(null,arguments)},mB=t._duckdb_web_get_version=function(){return(mB=t._duckdb_web_get_version=t.asm.qf).apply(null,arguments)},bB=t._duckdb_web_get_feature_flags=function(){return(bB=t._duckdb_web_get_feature_flags=t.asm.rf).apply(null,arguments)},gB=t._duckdb_web_tokenize=function(){return(gB=t._duckdb_web_tokenize=t.asm.sf).apply(null,arguments)},vB=t._duckdb_web_udf_scalar_create=function(){return(vB=t._duckdb_web_udf_scalar_create=t.asm.tf).apply(null,arguments)},jB=t._duckdb_web_prepared_create=function(){return(jB=t._duckdb_web_prepared_create=t.asm.uf).apply(null,arguments)},wB=t._duckdb_web_prepared_close=function(){return(wB=t._duckdb_web_prepared_close=t.asm.vf).apply(null,arguments)},BB=t._duckdb_web_prepared_run=function(){return(BB=t._duckdb_web_prepared_run=t.asm.wf).apply(null,arguments)},IB=t._duckdb_web_prepared_send=function(){return(IB=t._duckdb_web_prepared_send=t.asm.xf).apply(null,arguments)},TB=t._duckdb_web_query_run=function(){return(TB=t._duckdb_web_query_run=t.asm.yf).apply(null,arguments)},SB=t._duckdb_web_query_send=function(){return(SB=t._duckdb_web_query_send=t.asm.zf).apply(null,arguments)},AB=t._duckdb_web_query_fetch_results=function(){return(AB=t._duckdb_web_query_fetch_results=t.asm.Af).apply(null,arguments)},FB=t._duckdb_web_get_tablenames=function(){return(FB=t._duckdb_web_get_tablenames=t.asm.Bf).apply(null,arguments)},DB=t._duckdb_web_insert_arrow_from_ipc_stream=function(){return(DB=t._duckdb_web_insert_arrow_from_ipc_stream=t.asm.Cf).apply(null,arguments)},OB=t._duckdb_web_insert_csv_from_path=function(){return(OB=t._duckdb_web_insert_csv_from_path=t.asm.Df).apply(null,arguments)},CB=t._duckdb_web_insert_json_from_path=function(){return(CB=t._duckdb_web_insert_json_from_path=t.asm.Ef).apply(null,arguments)},zf=t.___errno_location=function(){return(zf=t.___errno_location=t.asm.Ff).apply(null,arguments)},Co=t._htonl=function(){return(Co=t._htonl=t.asm.Gf).apply(null,arguments)},Mo=t._htons=function(){return(Mo=t._htons=t.asm.Hf).apply(null,arguments)},Yc=t._ntohs=function(){return(Yc=t._ntohs=t.asm.If).apply(null,arguments)},B=t._setThrew=function(){return(B=t._setThrew=t.asm.Jf).apply(null,arguments)},I=t.stackSave=function(){return(I=t.stackSave=t.asm.Kf).apply(null,arguments)},T=t.stackRestore=function(){return(T=t.stackRestore=t.asm.Lf).apply(null,arguments)},Gc=t.stackAlloc=function(){return(Gc=t.stackAlloc=t.asm.Mf).apply(null,arguments)},Ts=t.___cxa_can_catch=function(){return(Ts=t.___cxa_can_catch=t.asm.Nf).apply(null,arguments)},Wf=t.___cxa_is_pointer_type=function(){return(Wf=t.___cxa_is_pointer_type=t.asm.Of).apply(null,arguments)},Ss=t._malloc=function(){return(Ss=t._malloc=t.asm.Pf).apply(null,arguments)},$c=t._free=function(){return($c=t._free=t.asm.Qf).apply(null,arguments)},Yf=t.dynCall_jiiii=function(){return(Yf=t.dynCall_jiiii=t.asm.Rf).apply(null,arguments)},Gf=t.dynCall_iiiiij=function(){return(Gf=t.dynCall_iiiiij=t.asm.Sf).apply(null,arguments)},$f=t.dynCall_iiiiijj=function(){return($f=t.dynCall_iiiiijj=t.asm.Tf).apply(null,arguments)},Kf=t.dynCall_viijii=function(){return(Kf=t.dynCall_viijii=t.asm.Uf).apply(null,arguments)},Jf=t.dynCall_j=function(){return(Jf=t.dynCall_j=t.asm.Vf).apply(null,arguments)},Xf=t.dynCall_ji=function(){return(Xf=t.dynCall_ji=t.asm.Wf).apply(null,arguments)},Zf=t.dynCall_iij=function(){return(Zf=t.dynCall_iij=t.asm.Xf).apply(null,arguments)},Qf=t.dynCall_viij=function(){return(Qf=t.dynCall_viij=t.asm.Yf).apply(null,arguments)},eh=t.dynCall_viijji=function(){return(eh=t.dynCall_viijji=t.asm.Zf).apply(null,arguments)},th=t.dynCall_viijj=function(){return(th=t.dynCall_viijj=t.asm._f).apply(null,arguments)},ih=t.dynCall_viiijj=function(){return(ih=t.dynCall_viiijj=t.asm.$f).apply(null,arguments)},rh=t.dynCall_viiji=function(){return(rh=t.dynCall_viiji=t.asm.ag).apply(null,arguments)},nh=t.dynCall_vijjj=function(){return(nh=t.dynCall_vijjj=t.asm.bg).apply(null,arguments)},sh=t.dynCall_iiijj=function(){return(sh=t.dynCall_iiijj=t.asm.cg).apply(null,arguments)},oh=t.dynCall_viiij=function(){return(oh=t.dynCall_viiij=t.asm.dg).apply(null,arguments)},ah=t.dynCall_viijij=function(){return(ah=t.dynCall_viijij=t.asm.eg).apply(null,arguments)},ch=t.dynCall_viiijjj=function(){return(ch=t.dynCall_viiijjj=t.asm.fg).apply(null,arguments)},uh=t.dynCall_iiij=function(){return(uh=t.dynCall_iiij=t.asm.gg).apply(null,arguments)},lh=t.dynCall_vijijj=function(){return(lh=t.dynCall_vijijj=t.asm.hg).apply(null,arguments)},dh=t.dynCall_iji=function(){return(dh=t.dynCall_iji=t.asm.ig).apply(null,arguments)},fh=t.dynCall_viji=function(){return(fh=t.dynCall_viji=t.asm.jg).apply(null,arguments)},hh=t.dynCall_vij=function(){return(hh=t.dynCall_vij=t.asm.kg).apply(null,arguments)},ph=t.dynCall_viiiij=function(){return(ph=t.dynCall_viiiij=t.asm.lg).apply(null,arguments)},yh=t.dynCall_jii=function(){return(yh=t.dynCall_jii=t.asm.mg).apply(null,arguments)},_h=t.dynCall_viiiji=function(){return(_h=t.dynCall_viiiji=t.asm.ng).apply(null,arguments)},mh=t.dynCall_vijj=function(){return(mh=t.dynCall_vijj=t.asm.og).apply(null,arguments)},bh=t.dynCall_vj=function(){return(bh=t.dynCall_vj=t.asm.pg).apply(null,arguments)},gh=t.dynCall_iiji=function(){return(gh=t.dynCall_iiji=t.asm.qg).apply(null,arguments)},vh=t.dynCall_iiiij=function(){return(vh=t.dynCall_iiiij=t.asm.rg).apply(null,arguments)},jh=t.dynCall_iiiiiji=function(){return(jh=t.dynCall_iiiiiji=t.asm.sg).apply(null,arguments)},wh=t.dynCall_iiiji=function(){return(wh=t.dynCall_iiiji=t.asm.tg).apply(null,arguments)},Bh=t.dynCall_iiiiji=function(){return(Bh=t.dynCall_iiiiji=t.asm.ug).apply(null,arguments)},Ih=t.dynCall_jiii=function(){return(Ih=t.dynCall_jiii=t.asm.vg).apply(null,arguments)},Th=t.dynCall_jij=function(){return(Th=t.dynCall_jij=t.asm.wg).apply(null,arguments)},Sh=t.dynCall_iijjijj=function(){return(Sh=t.dynCall_iijjijj=t.asm.xg).apply(null,arguments)},Ah=t.dynCall_viiiijiiiii=function(){return(Ah=t.dynCall_viiiijiiiii=t.asm.yg).apply(null,arguments)},Fh=t.dynCall_viiiijiiii=function(){return(Fh=t.dynCall_viiiijiiii=t.asm.zg).apply(null,arguments)},Dh=t.dynCall_viiijii=function(){return(Dh=t.dynCall_viiijii=t.asm.Ag).apply(null,arguments)},Oh=t.dynCall_viiiiiij=function(){return(Oh=t.dynCall_viiiiiij=t.asm.Bg).apply(null,arguments)},Ch=t.dynCall_iiijiii=function(){return(Ch=t.dynCall_iiijiii=t.asm.Cg).apply(null,arguments)},Mh=t.dynCall_iiiiijii=function(){return(Mh=t.dynCall_iiiiijii=t.asm.Dg).apply(null,arguments)},Uh=t.dynCall_viijiii=function(){return(Uh=t.dynCall_viijiii=t.asm.Eg).apply(null,arguments)},Eh=t.dynCall_iiijiij=function(){return(Eh=t.dynCall_iiijiij=t.asm.Fg).apply(null,arguments)},Rh=t.dynCall_vijiii=function(){return(Rh=t.dynCall_vijiii=t.asm.Gg).apply(null,arguments)},kh=t.dynCall_iijjii=function(){return(kh=t.dynCall_iijjii=t.asm.Hg).apply(null,arguments)},Vh=t.dynCall_iijjiii=function(){return(Vh=t.dynCall_iijjiii=t.asm.Ig).apply(null,arguments)},xh=t.dynCall_iijjiiii=function(){return(xh=t.dynCall_iijjiiii=t.asm.Jg).apply(null,arguments)},Ph=t.dynCall_iijji=function(){return(Ph=t.dynCall_iijji=t.asm.Kg).apply(null,arguments)},Nh=t.dynCall_vijiiii=function(){return(Nh=t.dynCall_vijiiii=t.asm.Lg).apply(null,arguments)},Lh=t.dynCall_iijiiii=function(){return(Lh=t.dynCall_iijiiii=t.asm.Mg).apply(null,arguments)},qh=t.dynCall_iijii=function(){return(qh=t.dynCall_iijii=t.asm.Ng).apply(null,arguments)},Hh=t.dynCall_vijij=function(){return(Hh=t.dynCall_vijij=t.asm.Og).apply(null,arguments)},zh=t.dynCall_iiijiiii=function(){return(zh=t.dynCall_iiijiiii=t.asm.Pg).apply(null,arguments)},Wh=t.dynCall_jiiij=function(){return(Wh=t.dynCall_jiiij=t.asm.Qg).apply(null,arguments)},Yh=t.dynCall_jiiiii=function(){return(Yh=t.dynCall_jiiiii=t.asm.Rg).apply(null,arguments)},Gh=t.dynCall_iiiiijjiijj=function(){return(Gh=t.dynCall_iiiiijjiijj=t.asm.Sg).apply(null,arguments)},$h=t.dynCall_viijiiji=function(){return($h=t.dynCall_viijiiji=t.asm.Tg).apply(null,arguments)},Kh=t.dynCall_vjjijij=function(){return(Kh=t.dynCall_vjjijij=t.asm.Ug).apply(null,arguments)},Jh=t.dynCall_vijjji=function(){return(Jh=t.dynCall_vijjji=t.asm.Vg).apply(null,arguments)},Xh=t.dynCall_vjjii=function(){return(Xh=t.dynCall_vjjii=t.asm.Wg).apply(null,arguments)},Zh=t.dynCall_viiiiiji=function(){return(Zh=t.dynCall_viiiiiji=t.asm.Xg).apply(null,arguments)},Qh=t.dynCall_jiiiji=function(){return(Qh=t.dynCall_jiiiji=t.asm.Yg).apply(null,arguments)},ep=t.dynCall_iijj=function(){return(ep=t.dynCall_iijj=t.asm.Zg).apply(null,arguments)},tp=t.dynCall_iiijjii=function(){return(tp=t.dynCall_iiijjii=t.asm._g).apply(null,arguments)},ip=t.dynCall_vijii=function(){return(ip=t.dynCall_vijii=t.asm.$g).apply(null,arguments)},rp=t.dynCall_viijjii=function(){return(rp=t.dynCall_viijjii=t.asm.ah).apply(null,arguments)},np=t.dynCall_viiiijj=function(){return(np=t.dynCall_viiiijj=t.asm.bh).apply(null,arguments)},sp=t.dynCall_jijjij=function(){return(sp=t.dynCall_jijjij=t.asm.ch).apply(null,arguments)},op=t.dynCall_jiijii=function(){return(op=t.dynCall_jiijii=t.asm.dh).apply(null,arguments)},ap=t.dynCall_jijiii=function(){return(ap=t.dynCall_jijiii=t.asm.eh).apply(null,arguments)},cp=t.dynCall_viijiiiii=function(){return(cp=t.dynCall_viijiiiii=t.asm.fh).apply(null,arguments)},up=t.dynCall_viijiiij=function(){return(up=t.dynCall_viijiiij=t.asm.gh).apply(null,arguments)},lp=t.dynCall_vijiiiji=function(){return(lp=t.dynCall_vijiiiji=t.asm.hh).apply(null,arguments)},dp=t.dynCall_jiiji=function(){return(dp=t.dynCall_jiiji=t.asm.ih).apply(null,arguments)},fp=t.dynCall_viiijij=function(){return(fp=t.dynCall_viiijij=t.asm.jh).apply(null,arguments)},hp=t.dynCall_viijiij=function(){return(hp=t.dynCall_viijiij=t.asm.kh).apply(null,arguments)},pp=t.dynCall_viiiiijj=function(){return(pp=t.dynCall_viiiiijj=t.asm.lh).apply(null,arguments)},yp=t.dynCall_viiijji=function(){return(yp=t.dynCall_viiijji=t.asm.mh).apply(null,arguments)},_p=t.dynCall_iiiijiii=function(){return(_p=t.dynCall_iiiijiii=t.asm.nh).apply(null,arguments)},mp=t.dynCall_iiijij=function(){return(mp=t.dynCall_iiijij=t.asm.oh).apply(null,arguments)},bp=t.dynCall_iiijji=function(){return(bp=t.dynCall_iiijji=t.asm.ph).apply(null,arguments)},gp=t.dynCall_iiiijj=function(){return(gp=t.dynCall_iiiijj=t.asm.qh).apply(null,arguments)},vp=t.dynCall_viiijiii=function(){return(vp=t.dynCall_viiijiii=t.asm.rh).apply(null,arguments)},jp=t.dynCall_vijji=function(){return(jp=t.dynCall_vijji=t.asm.sh).apply(null,arguments)},wp=t.dynCall_jiiiij=function(){return(wp=t.dynCall_jiiiij=t.asm.th).apply(null,arguments)},Bp=t.dynCall_jiijiiiii=function(){return(Bp=t.dynCall_jiijiiiii=t.asm.uh).apply(null,arguments)},Ip=t.dynCall_jiijiijiii=function(){return(Ip=t.dynCall_jiijiijiii=t.asm.vh).apply(null,arguments)},Tp=t.dynCall_jiijjiii=function(){return(Tp=t.dynCall_jiijjiii=t.asm.wh).apply(null,arguments)},Sp=t.dynCall_jiiijii=function(){return(Sp=t.dynCall_jiiijii=t.asm.xh).apply(null,arguments)},Ap=t.dynCall_jiijijii=function(){return(Ap=t.dynCall_jiijijii=t.asm.yh).apply(null,arguments)},Fp=t.dynCall_viiijjij=function(){return(Fp=t.dynCall_viiijjij=t.asm.zh).apply(null,arguments)},Dp=t.dynCall_vijijjiij=function(){return(Dp=t.dynCall_vijijjiij=t.asm.Ah).apply(null,arguments)},Op=t.dynCall_viijjij=function(){return(Op=t.dynCall_viijjij=t.asm.Bh).apply(null,arguments)},Cp=t.dynCall_viiijjiij=function(){return(Cp=t.dynCall_viiijjiij=t.asm.Ch).apply(null,arguments)},Mp=t.dynCall_viiiijjjj=function(){return(Mp=t.dynCall_viiiijjjj=t.asm.Dh).apply(null,arguments)},Up=t.dynCall_viijiiiiij=function(){return(Up=t.dynCall_viijiiiiij=t.asm.Eh).apply(null,arguments)},Ep=t.dynCall_viijiiiijj=function(){return(Ep=t.dynCall_viijiiiijj=t.asm.Fh).apply(null,arguments)},Rp=t.dynCall_viiijiiiijjj=function(){return(Rp=t.dynCall_viiijiiiijjj=t.asm.Gh).apply(null,arguments)},kp=t.dynCall_viijijiiiijjj=function(){return(kp=t.dynCall_viijijiiiijjj=t.asm.Hh).apply(null,arguments)},Vp=t.dynCall_viiiiijiiii=function(){return(Vp=t.dynCall_viiiiijiiii=t.asm.Ih).apply(null,arguments)},xp=t.dynCall_iiijii=function(){return(xp=t.dynCall_iiijii=t.asm.Jh).apply(null,arguments)},Pp=t.dynCall_fiijii=function(){return(Pp=t.dynCall_fiijii=t.asm.Kh).apply(null,arguments)},Np=t.dynCall_diijii=function(){return(Np=t.dynCall_diijii=t.asm.Lh).apply(null,arguments)},Lp=t.dynCall_iiiiiiijii=function(){return(Lp=t.dynCall_iiiiiiijii=t.asm.Mh).apply(null,arguments)},qp=t.dynCall_viiiiji=function(){return(qp=t.dynCall_viiiiji=t.asm.Nh).apply(null,arguments)},Hp=t.dynCall_jiiiijii=function(){return(Hp=t.dynCall_jiiiijii=t.asm.Oh).apply(null,arguments)},zp=t.dynCall_jiiijiii=function(){return(zp=t.dynCall_jiiijiii=t.asm.Ph).apply(null,arguments)},Wp=t.dynCall_jiiiiijiiii=function(){return(Wp=t.dynCall_jiiiiijiiii=t.asm.Qh).apply(null,arguments)},Yp=t.dynCall_jj=function(){return(Yp=t.dynCall_jj=t.asm.Rh).apply(null,arguments)},Gp=t.dynCall_jd=function(){return(Gp=t.dynCall_jd=t.asm.Sh).apply(null,arguments)},$p=t.dynCall_jf=function(){return($p=t.dynCall_jf=t.asm.Th).apply(null,arguments)},Kp=t.dynCall_iijjj=function(){return(Kp=t.dynCall_iijjj=t.asm.Uh).apply(null,arguments)},Jp=t.dynCall_vijijiiiijjj=function(){return(Jp=t.dynCall_vijijiiiijjj=t.asm.Vh).apply(null,arguments)},Xp=t.dynCall_iiiiiiji=function(){return(Xp=t.dynCall_iiiiiiji=t.asm.Wh).apply(null,arguments)},Zp=t.dynCall_iiiiiiiiji=function(){return(Zp=t.dynCall_iiiiiiiiji=t.asm.Xh).apply(null,arguments)},Qp=t.dynCall_jijijjij=function(){return(Qp=t.dynCall_jijijjij=t.asm.Yh).apply(null,arguments)},ey=t.dynCall_viijjj=function(){return(ey=t.dynCall_viijjj=t.asm.Zh).apply(null,arguments)},ty=t.dynCall_vijjij=function(){return(ty=t.dynCall_vijjij=t.asm._h).apply(null,arguments)},iy=t.dynCall_viijjji=function(){return(iy=t.dynCall_viijjji=t.asm.$h).apply(null,arguments)},ry=t.dynCall_iiiiiij=function(){return(ry=t.dynCall_iiiiiij=t.asm.ai).apply(null,arguments)},ny=t.dynCall_iiiiiiiiiiji=function(){return(ny=t.dynCall_iiiiiiiiiiji=t.asm.bi).apply(null,arguments)},sy=t.dynCall_jiiiiiii=function(){return(sy=t.dynCall_jiiiiiii=t.asm.ci).apply(null,arguments)},oy=t.dynCall_jijj=function(){return(oy=t.dynCall_jijj=t.asm.di).apply(null,arguments)},ay=t.dynCall_viiiijiiiiiiii=function(){return(ay=t.dynCall_viiiijiiiiiiii=t.asm.ei).apply(null,arguments)},cy=t.dynCall_ij=function(){return(cy=t.dynCall_ij=t.asm.fi).apply(null,arguments)},uy=t.dynCall_jjj=function(){return(uy=t.dynCall_jjj=t.asm.gi).apply(null,arguments)},ly=t.dynCall_vjii=function(){return(ly=t.dynCall_vjii=t.asm.hi).apply(null,arguments)},dy=t.dynCall_jjjjjjd=function(){return(dy=t.dynCall_jjjjjjd=t.asm.ii).apply(null,arguments)},fy=t.dynCall_vjiiii=function(){return(fy=t.dynCall_vjiiii=t.asm.ji).apply(null,arguments)},hy=t.dynCall_viiiiijiii=function(){return(hy=t.dynCall_viiiiijiii=t.asm.ki).apply(null,arguments)},py=t.dynCall_jiij=function(){return(py=t.dynCall_jiij=t.asm.li).apply(null,arguments)},yy=t.dynCall_iiiijjii=function(){return(yy=t.dynCall_iiiijjii=t.asm.mi).apply(null,arguments)},_y=t.dynCall_iiiiijji=function(){return(_y=t.dynCall_iiiiijji=t.asm.ni).apply(null,arguments)},my=t.dynCall_viiijjii=function(){return(my=t.dynCall_viiijjii=t.asm.oi).apply(null,arguments)},by=t.dynCall_viiiijji=function(){return(by=t.dynCall_viiiijji=t.asm.pi).apply(null,arguments)},gy=t.dynCall_viiiijjii=function(){return(gy=t.dynCall_viiiijjii=t.asm.qi).apply(null,arguments)},vy=t.dynCall_viiiiijji=function(){return(vy=t.dynCall_viiiiijji=t.asm.ri).apply(null,arguments)},jy=t.dynCall_iiiiiijji=function(){return(jy=t.dynCall_iiiiiijji=t.asm.si).apply(null,arguments)},wy=t.dynCall_iiiiijjj=function(){return(wy=t.dynCall_iiiiijjj=t.asm.ti).apply(null,arguments)},By=t.dynCall_jijiiii=function(){return(By=t.dynCall_jijiiii=t.asm.ui).apply(null,arguments)},Iy=t.dynCall_viiijiji=function(){return(Iy=t.dynCall_viiijiji=t.asm.vi).apply(null,arguments)},Ty=t.dynCall_iiijjjii=function(){return(Ty=t.dynCall_iiijjjii=t.asm.wi).apply(null,arguments)},Sy=t.dynCall_iiiiijjji=function(){return(Sy=t.dynCall_iiiiijjji=t.asm.xi).apply(null,arguments)},Ay=t.dynCall_iiiijjj=function(){return(Ay=t.dynCall_iiiijjj=t.asm.yi).apply(null,arguments)},Fy=t.dynCall_iidj=function(){return(Fy=t.dynCall_iidj=t.asm.zi).apply(null,arguments)},Dy=t.dynCall_ijji=function(){return(Dy=t.dynCall_ijji=t.asm.Ai).apply(null,arguments)},Oy=t.dynCall_iiiiiiiij=function(){return(Oy=t.dynCall_iiiiiiiij=t.asm.Bi).apply(null,arguments)},Cy=t.dynCall_iiiiiiij=function(){return(Cy=t.dynCall_iiiiiiij=t.asm.Ci).apply(null,arguments)},My=t.dynCall_iiiiiiiiiiiij=function(){return(My=t.dynCall_iiiiiiiiiiiij=t.asm.Di).apply(null,arguments)},Uy=t.dynCall_iiiiiiiji=function(){return(Uy=t.dynCall_iiiiiiiji=t.asm.Ei).apply(null,arguments)},Ey=t.dynCall_iiiidjj=function(){return(Ey=t.dynCall_iiiidjj=t.asm.Fi).apply(null,arguments)},Ry=t.dynCall_jiiiiiijii=function(){return(Ry=t.dynCall_jiiiiiijii=t.asm.Gi).apply(null,arguments)},ky=t.dynCall_iiiijji=function(){return(ky=t.dynCall_iiiijji=t.asm.Hi).apply(null,arguments)},Vy=t.dynCall_jiiiiii=function(){return(Vy=t.dynCall_jiiiiii=t.asm.Ii).apply(null,arguments)},xy=t.dynCall_iijiji=function(){return(xy=t.dynCall_iijiji=t.asm.Ji).apply(null,arguments)},Py=t.dynCall_vjiiiji=function(){return(Py=t.dynCall_vjiiiji=t.asm.Ki).apply(null,arguments)},Ny=t.dynCall_jjjii=function(){return(Ny=t.dynCall_jjjii=t.asm.Li).apply(null,arguments)},Ly=t.dynCall_jji=function(){return(Ly=t.dynCall_jji=t.asm.Mi).apply(null,arguments)},qy=t.dynCall_viiijijiji=function(){return(qy=t.dynCall_viiijijiji=t.asm.Ni).apply(null,arguments)},Hy=t.dynCall_jiiijj=function(){return(Hy=t.dynCall_jiiijj=t.asm.Oi).apply(null,arguments)},zy=t.dynCall_iiiijii=function(){return(zy=t.dynCall_iiiijii=t.asm.Pi).apply(null,arguments)},Wy=t.dynCall_viiiijii=function(){return(Wy=t.dynCall_viiiijii=t.asm.Qi).apply(null,arguments)},Yy=t.dynCall_iijiii=function(){return(Yy=t.dynCall_iijiii=t.asm.Ri).apply(null,arguments)},Gy=t.dynCall_jiiiiji=function(){return(Gy=t.dynCall_jiiiiji=t.asm.Si).apply(null,arguments)},$y=t.dynCall_vijiijj=function(){return($y=t.dynCall_vijiijj=t.asm.Ti).apply(null,arguments)},Ky=t.dynCall_vifiijj=function(){return(Ky=t.dynCall_vifiijj=t.asm.Ui).apply(null,arguments)},Jy=t.dynCall_vidiijj=function(){return(Jy=t.dynCall_vidiijj=t.asm.Vi).apply(null,arguments)},Xy=t.dynCall_viiiiij=function(){return(Xy=t.dynCall_viiiiij=t.asm.Wi).apply(null,arguments)},Zy=t.dynCall_ijjiii=function(){return(Zy=t.dynCall_ijjiii=t.asm.Xi).apply(null,arguments)},Qy=t.dynCall_vijijjji=function(){return(Qy=t.dynCall_vijijjji=t.asm.Yi).apply(null,arguments)},e_=t.dynCall_viijiijj=function(){return(e_=t.dynCall_viijiijj=t.asm.Zi).apply(null,arguments)},t_=t.dynCall_viijijj=function(){return(t_=t.dynCall_viijijj=t.asm._i).apply(null,arguments)},i_=t.dynCall_viiiiijjji=function(){return(i_=t.dynCall_viiiiijjji=t.asm.$i).apply(null,arguments)},r_=t.dynCall_iiijiijj=function(){return(r_=t.dynCall_iiijiijj=t.asm.aj).apply(null,arguments)},n_=t.dynCall_viiijijjj=function(){return(n_=t.dynCall_viiijijjj=t.asm.bj).apply(null,arguments)},s_=t.dynCall_iijiijj=function(){return(s_=t.dynCall_iijiijj=t.asm.cj).apply(null,arguments)},o_=t.dynCall_viiijjjji=function(){return(o_=t.dynCall_viiijjjji=t.asm.dj).apply(null,arguments)},a_=t.dynCall_viiiijiii=function(){return(a_=t.dynCall_viiiijiii=t.asm.ej).apply(null,arguments)},c_=t.dynCall_viijiiii=function(){return(c_=t.dynCall_viijiiii=t.asm.fj).apply(null,arguments)},u_=t.dynCall_vijjiiii=function(){return(u_=t.dynCall_vijjiiii=t.asm.gj).apply(null,arguments)},l_=t.dynCall_vijijjiiiii=function(){return(l_=t.dynCall_vijijjiiiii=t.asm.hj).apply(null,arguments)},d_=t.dynCall_vijjiiiii=function(){return(d_=t.dynCall_vijjiiiii=t.asm.ij).apply(null,arguments)},f_=t.dynCall_iiijjji=function(){return(f_=t.dynCall_iiijjji=t.asm.jj).apply(null,arguments)},h_=t.dynCall_viiiijjj=function(){return(h_=t.dynCall_viiiijjj=t.asm.kj).apply(null,arguments)},p_=t.dynCall_viiiiijjj=function(){return(p_=t.dynCall_viiiiijjj=t.asm.lj).apply(null,arguments)},y_=t.dynCall_viijiji=function(){return(y_=t.dynCall_viijiji=t.asm.mj).apply(null,arguments)};function MB(o){var a=I();try{J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function UB(o,a,c){var l=I();try{J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function EB(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function RB(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function kB(o,a){var c=I();try{J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function VB(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function xB(o,a,c,l,d,f){var h=I();try{return J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function PB(o,a,c,l,d){var f=I();try{J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function NB(o,a,c,l,d){var f=I();try{return J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function LB(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function qB(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function HB(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function zB(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function WB(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function YB(o,a,c,l,d,f,h,y){var _=I();try{return J(o)(a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function GB(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function $B(o){var a=I();try{return J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function KB(o,a,c,l,d,f,h,y){var _=I();try{J(o)(a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function JB(o,a,c,l,d,f,h){var y=I();try{return J(o)(a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function XB(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function ZB(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{J(o)(a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function QB(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe){var _e=I();try{J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe)}catch(xe){if(T(_e),xe!==xe+0&&xe!=="longjmp")throw xe;B(1,0)}}function e1(o,a,c,l,d,f,h){var y=I();try{J(o)(a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function t1(o,a,c,l,d,f){var h=I();try{return J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function i1(o,a,c,l,d,f,h,y,_){var b=I();try{J(o)(a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function r1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function n1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function s1(o,a,c,l,d,f){var h=I();try{J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function o1(o,a,c,l,d,f,h,y,_){var b=I();try{return J(o)(a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function a1(o,a,c,l,d){var f=I();try{return J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function c1(o,a,c,l,d){var f=I();try{return J(o)(a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function u1(o,a,c,l,d,f){var h=I();try{J(o)(a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function l1(o,a,c){var l=I();try{J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function d1(o,a,c){var l=I();try{J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function f1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function h1(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function p1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function y1(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function _1(o,a,c,l){var d=I();try{J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function m1(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N){var oe=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N)}catch(_e){if(T(oe),_e!==_e+0&&_e!=="longjmp")throw _e;B(1,0)}}function b1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function g1(o,a,c,l,d,f,h,y,_,b,g,w,F,C){var N=I();try{J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C)}catch(oe){if(T(N),oe!==oe+0&&oe!=="longjmp")throw oe;B(1,0)}}function v1(o,a,c,l,d,f,h,y,_,b){var g=I();try{J(o)(a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function j1(o){var a=I();try{return J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function w1(o){var a=I();try{return J(o)()}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function B1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function I1(o,a){var c=I();try{return J(o)(a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function T1(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$,je){var me=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$,je)}catch(mt){if(T(me),mt!==mt+0&&mt!=="longjmp")throw mt;B(1,0)}}function S1(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$){var je=I();try{return J(o)(a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe,U,$)}catch(me){if(T(je),me!==me+0&&me!=="longjmp")throw me;B(1,0)}}function A1(o,a,c){var l=I();try{return J(o)(a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function F1(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{J(o)(a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function D1(o,a,c,l){var d=I();try{return J(o)(a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function O1(o,a,c,l,d,f,h,y,_,b){var g=I();try{J(o)(a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function C1(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{J(o)(a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function M1(o,a,c,l,d){var f=I();try{return Yf(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function U1(o,a,c,l,d,f,h){var y=I();try{th(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function E1(o,a){var c=I();try{return Xf(o,a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function R1(o,a,c){var l=I();try{return yh(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function k1(o,a,c,l,d,f,h){var y=I();try{Kf(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function V1(o,a,c,l,d,f,h){var y=I();try{return Gf(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function x1(o,a,c,l,d,f,h,y,_){var b=I();try{return $f(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function P1(o,a,c,l){var d=I();try{return Zf(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function N1(o,a,c,l,d,f){var h=I();try{rh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function L1(o){var a=I();try{return Jf(o)}catch(c){if(T(a),c!==c+0&&c!=="longjmp")throw c;B(1,0)}}function q1(o,a,c,l,d){var f=I();try{Qf(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function H1(o,a,c,l,d,f,h,y){var _=I();try{nh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function z1(o,a,c,l,d,f,h){var y=I();try{return sh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function W1(o,a,c,l,d,f,h,y){var _=I();try{eh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function Y1(o,a,c,l,d){var f=I();try{return uh(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function G1(o,a,c,l){var d=I();try{hh(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function $1(o,a,c,l,d,f,h){var y=I();try{ph(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function K1(o,a,c,l,d,f){var h=I();try{oh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function J1(o,a,c,l,d,f,h,y,_,b){var g=I();try{ch(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function X1(o,a,c,l,d,f,h,y,_){var b=I();try{lh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function Z1(o,a,c,l){var d=I();try{return dh(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function Q1(o,a,c,l,d){var f=I();try{fh(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function eI(o,a,c,l,d,f,h,y){var _=I();try{ih(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function tI(o,a,c,l,d,f,h,y,_){var b=I();try{ey(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function iI(o,a,c,l,d,f,h,y){var _=I();try{return Zy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function rI(o,a,c,l,d,f){var h=I();try{mh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function nI(o,a,c,l,d,f,h){var y=I();try{_h(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function sI(o,a,c){var l=I();try{bh(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function oI(o,a,c,l,d){var f=I();try{return gh(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function aI(o,a,c,l,d,f){var h=I();try{return vh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function cI(o,a,c,l,d,f,h,y){var _=I();try{return gp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function uI(o,a,c,l,d,f,h,y){var _=I();try{qp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function lI(o,a,c,l,d,f,h,y){var _=I();try{return mp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function dI(o,a,c,l,d,f){var h=I();try{return wh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function fI(o,a,c,l,d,f){var h=I();try{return ep(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function hI(o,a,c,l,d,f,h,y){var _=I();try{return bp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function pI(o,a,c,l,d,f,h,y){var _=I();try{return jh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function yI(o,a,c,l,d,f,h){var y=I();try{return Bh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function _I(o,a,c,l){var d=I();try{return Ih(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function mI(o,a,c,l,d,f,h){var y=I();try{Rh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function bI(o,a,c,l,d,f,h,y){var _=I();try{Nh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function gI(o,a,c,l,d,f,h,y){var _=I();try{return Lh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function vI(o,a,c,l,d,f,h,y){var _=I();try{return Ch(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function jI(o,a,c,l,d,f,h,y,_){var b=I();try{return Mh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function wI(o,a,c,l,d,f,h,y){var _=I();try{Uh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function BI(o,a,c,l,d,f,h,y,_){var b=I();try{return Eh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function II(o,a,c,l,d,f,h,y){var _=I();try{return kh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function TI(o,a,c,l,d,f,h,y,_){var b=I();try{return Vh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function SI(o,a,c,l,d,f,h,y,_,b){var g=I();try{return xh(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function AI(o,a,c,l,d,f,h){var y=I();try{return Ph(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function FI(o,a,c,l,d,f,h,y,_){var b=I();try{Oh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function DI(o,a,c,l,d,f,h,y){var _=I();try{Dh(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function OI(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Sh(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function CI(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Ah(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function MI(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{Fh(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function UI(o,a,c,l,d,f){var h=I();try{return qh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function EI(o,a,c,l,d,f,h){var y=I();try{Xh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function RI(o,a,c,l,d,f,h,y,_){var b=I();try{return zh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function kI(o,a,c,l,d,f,h,y,_){var b=I();try{yp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function VI(o,a,c,l){var d=I();try{return Th(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function xI(o,a,c,l,d,f){var h=I();try{return Wh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function PI(o,a,c,l,d,f,h,y,_){var b=I();try{Jh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function NI(o,a,c,l,d,f){var h=I();try{return Yh(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function LI(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{Kh(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function qI(o,a,c,l,d,f){var h=I();try{return dp(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function HI(o,a,c,l,d,f,h,y,_,b){var g=I();try{$h(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function zI(o,a,c,l,d,f,h){var y=I();try{return Qh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function WI(o,a,c,l,d,f,h){var y=I();try{Hh(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function YI(o,a,c,l,d,f,h,y,_){var b=I();try{Zh(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function GI(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N){var oe=I();try{return Gh(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N)}catch(_e){if(T(oe),_e!==_e+0&&_e!=="longjmp")throw _e;B(1,0)}}function $I(o,a,c,l,d,f,h,y,_){var b=I();try{return tp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function KI(o,a,c,l,d,f,h,y){var _=I();try{ah(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function JI(o,a,c,l,d,f){var h=I();try{ip(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function XI(o,a,c,l,d,f,h,y,_){var b=I();try{rp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function ZI(o,a,c,l,d,f,h){var y=I();try{return op(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function QI(o,a,c,l,d,f,h,y,_,b){var g=I();try{cp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function eT(o,a,c,l,d,f,h,y,_,b){var g=I();try{up(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function tT(o,a,c,l,d,f,h){var y=I();try{return ap(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function iT(o,a,c,l,d,f,h,y,_,b){var g=I();try{lp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function rT(o,a,c,l,d,f,h,y,_){var b=I();try{return sp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function nT(o,a,c,l,d,f,h,y,_){var b=I();try{hp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function sT(o,a,c,l,d,f,h,y,_){var b=I();try{np(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function oT(o,a,c,l,d,f,h,y,_){var b=I();try{return _p(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function aT(o,a,c,l,d,f,h,y,_){var b=I();try{vp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function cT(o,a,c,l,d,f,h){var y=I();try{jp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function uT(o,a,c,l,d,f,h){var y=I();try{return wp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function lT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{Fp(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function dT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{Dp(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function fT(o,a,c,l,d,f,h,y,_,b){var g=I();try{Op(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function hT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{Mp(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function pT(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Bp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function yT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Ip(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function _T(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Tp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function mT(o,a,c,l,d,f,h,y){var _=I();try{return Sp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function bT(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Ap(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function gT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Up(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function vT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{Ep(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function jT(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe){var _e=I();try{Rp(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe)}catch(xe){if(T(_e),xe!==xe+0&&xe!=="longjmp")throw xe;B(1,0)}}function wT(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe){var U=I();try{kp(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e,xe)}catch($){if(T(U),$!==$+0&&$!=="longjmp")throw $;B(1,0)}}function BT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Cp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function IT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Ry(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function TT(o,a,c,l,d,f,h,y,_){var b=I();try{return ky(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function ST(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Vp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function AT(o,a,c,l,d,f,h,y,_){var b=I();try{return Hp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function FT(o,a,c,l,d,f,h){var y=I();try{return xp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function DT(o,a,c,l,d,f,h){var y=I();try{return Pp(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function OT(o,a,c,l,d,f,h){var y=I();try{return Np(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function CT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Lp(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function MT(o,a,c,l,d,f,h,y,_){var b=I();try{return zp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function UT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Wp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function ET(o,a,c){var l=I();try{return Yp(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function RT(o,a){var c=I();try{return Gp(o,a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function kT(o,a){var c=I();try{return $p(o,a)}catch(l){if(T(c),l!==l+0&&l!=="longjmp")throw l;B(1,0)}}function VT(o,a,c,l,d,f,h){var y=I();try{return Vy(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function xT(o,a,c,l,d,f){var h=I();try{return Dy(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function PT(o,a,c,l,d,f,h,y,_){var b=I();try{return Xp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function NT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Zp(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function LT(o,a,c,l,d,f,h,y,_,b){var g=I();try{pp(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function qT(o,a,c,l,d,f,h,y){var _=I();try{return Kp(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function HT(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e){var xe=I();try{Jp(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N,oe,_e)}catch(U){if(T(xe),U!==U+0&&U!=="longjmp")throw U;B(1,0)}}function zT(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Qp(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function WT(o,a,c,l,d,f,h,y,_){var b=I();try{ty(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function YT(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Oy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function GT(o,a,c,l,d,f,h,y,_,b){var g=I();try{iy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function $T(o,a,c,l,d,f,h,y){var _=I();try{return ry(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function KT(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{return ny(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function JT(o,a,c,l,d,f,h,y){var _=I();try{return sy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function XT(o,a,c,l,d,f,h,y,_){var b=I();try{return Cy(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function ZT(o,a,c,l,d,f,h,y,_,b,g,w,F,C){var N=I();try{return My(o,a,c,l,d,f,h,y,_,b,g,w,F,C)}catch(oe){if(T(N),oe!==oe+0&&oe!=="longjmp")throw oe;B(1,0)}}function QT(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{hy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function eS(o,a,c,l,d){var f=I();try{return py(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function tS(o,a,c){var l=I();try{return cy(o,a,c)}catch(d){if(T(l),d!==d+0&&d!=="longjmp")throw d;B(1,0)}}function iS(o,a,c,l,d,f,h){var y=I();try{fy(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function rS(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N){var oe=I();try{ay(o,a,c,l,d,f,h,y,_,b,g,w,F,C,N)}catch(_e){if(T(oe),_e!==_e+0&&_e!=="longjmp")throw _e;B(1,0)}}function nS(o,a,c,l,d){var f=I();try{return uy(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function sS(o,a,c,l,d){var f=I();try{ly(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function oS(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return dy(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function aS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return yy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function cS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return _y(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function uS(o,a,c,l,d,f,h,y,_,b){var g=I();try{my(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function lS(o,a,c,l,d,f,h,y,_,b){var g=I();try{by(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function dS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{gy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function fS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{vy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function hS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return jy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function pS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return Ty(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function yS(o,a,c,l,d,f,h,y,_,b){var g=I();try{Iy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function _S(o,a,c,l,d,f,h,y){var _=I();try{return By(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function mS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return wy(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function bS(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{return Sy(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function gS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Ay(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function vS(o,a,c,l,d){var f=I();try{return Fy(o,a,c,l,d)}catch(h){if(T(f),h!==h+0&&h!=="longjmp")throw h;B(1,0)}}function jS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return Uy(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function wS(o,a,c,l,d,f,h,y,_){var b=I();try{return Ey(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function BS(o,a,c,l,d,f,h,y){var _=I();try{return xy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function IS(o,a,c,l,d,f,h,y,_){var b=I();try{Py(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function TS(o,a,c,l,d,f,h){var y=I();try{return Ny(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function SS(o,a,c,l){var d=I();try{return Ly(o,a,c,l)}catch(f){if(T(d),f!==f+0&&f!=="longjmp")throw f;B(1,0)}}function AS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{qy(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function FS(o,a,c,l,d,f,h,y,_){var b=I();try{fp(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function DS(o,a,c,l,d,f,h,y){var _=I();try{return Hy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function OS(o,a,c,l,d,f,h,y){var _=I();try{return zy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function CS(o,a,c,l,d,f,h,y,_){var b=I();try{Wy(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function MS(o,a,c,l,d,f,h){var y=I();try{return Yy(o,a,c,l,d,f,h)}catch(_){if(T(y),_!==_+0&&_!=="longjmp")throw _;B(1,0)}}function US(o,a,c,l,d,f,h,y){var _=I();try{return Gy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function ES(o,a,c,l,d,f,h,y,_,b){var g=I();try{$y(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function RS(o,a,c,l,d,f,h,y,_){var b=I();try{Ky(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function kS(o,a,c,l,d,f,h,y,_){var b=I();try{Jy(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function VS(o,a,c,l,d,f,h,y){var _=I();try{Xy(o,a,c,l,d,f,h,y)}catch(b){if(T(_),b!==b+0&&b!=="longjmp")throw b;B(1,0)}}function xS(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{Qy(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}function PS(o,a,c,l,d,f){var h=I();try{return oy(o,a,c,l,d,f)}catch(y){if(T(h),y!==y+0&&y!=="longjmp")throw y;B(1,0)}}function NS(o,a,c,l,d,f,h,y,_,b){var g=I();try{t_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function LS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{return r_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function qS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{e_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function HS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{i_(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function zS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{n_(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function WS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return s_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function YS(o,a,c,l,d,f,h,y,_,b){var g=I();try{return f_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function GS(o,a,c,l,d,f,h,y,_,b,g,w,F){var C=I();try{o_(o,a,c,l,d,f,h,y,_,b,g,w,F)}catch(N){if(T(C),N!==N+0&&N!=="longjmp")throw N;B(1,0)}}function $S(o,a,c,l,d,f,h,y,_,b){var g=I();try{a_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function KS(o,a,c,l,d,f,h,y,_){var b=I();try{c_(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function JS(o,a,c,l,d,f,h,y,_){var b=I();try{y_(o,a,c,l,d,f,h,y,_)}catch(g){if(T(b),g!==g+0&&g!=="longjmp")throw g;B(1,0)}}function XS(o,a,c,l,d,f,h,y,_,b,g,w,F,C){var N=I();try{l_(o,a,c,l,d,f,h,y,_,b,g,w,F,C)}catch(oe){if(T(N),oe!==oe+0&&oe!=="longjmp")throw oe;B(1,0)}}function ZS(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{d_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function QS(o,a,c,l,d,f,h,y,_,b){var g=I();try{u_(o,a,c,l,d,f,h,y,_,b)}catch(w){if(T(g),w!==w+0&&w!=="longjmp")throw w;B(1,0)}}function eA(o,a,c,l,d,f,h,y,_,b,g){var w=I();try{h_(o,a,c,l,d,f,h,y,_,b,g)}catch(F){if(T(w),F!==F+0&&F!=="longjmp")throw F;B(1,0)}}function tA(o,a,c,l,d,f,h,y,_,b,g,w){var F=I();try{p_(o,a,c,l,d,f,h,y,_,b,g,w)}catch(C){if(T(F),C!==C+0&&C!=="longjmp")throw C;B(1,0)}}t.ccall=$0;var Uo;function Eo(o){this.name="ExitStatus",this.message="Program terminated with exit("+o+")",this.status=o}var iA=!1;ws=function o(){Uo||Kc(),Uo||(ws=o)};function rA(o){var a=t._main,c=0,l=0;try{var d=a(c,l);return nA(d,!0),d}catch(f){return bj(f)}finally{iA=!0}}function Kc(o){if(o=o||p,Lr>0||(sj(),Lr>0))return;function a(){Uo||(Uo=!0,t.calledRun=!0,!Me&&(oj(),aj(),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),__&&rA(o),uj()))}t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),a()},1)):a()}t.run=Kc;function nA(o,a){Kt=o,xc()||cj(),sA(o)}function sA(o){Kt=o,xc()||(t.onExit&&t.onExit(o),Me=!0),j(o,new Eo(o))}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();var __=!0;return t.noInitialRun&&(__=!1),Kc(),e.ready}})(),P0=eE;var bf=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),r=S.RecordBatchReader.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),S.Table.from(r)}send(e){let t=this._bindings.sendQuery(this._conn,e),r=new gf(this._bindings,this._conn,t),n=S.RecordBatchReader.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new N0(this._bindings,this._conn,t)}createScalarFunction(e,t,r){this._bindings.createScalarFunction(this._conn,e,t,r)}insertArrowTable(e,t){let r=e.serialize("binary",!0);this.insertArrowFromIPCStream(r,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},gf=class{constructor(e,t,r){this.bindings=e;this.conn=t;this.header=r;this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=e.length==0,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},N0=class{constructor(e,t,r){this.bindings=e,this.connectionId=t,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),r=S.RecordBatchReader.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),S.Table.from(r)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new gf(this.bindings,this.connectionId,t),n=S.RecordBatchReader.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}};var tE=new TextEncoder;function bo(i,e,t){let r=tE.encode(t),n=i._malloc(r.byteLength),s=i.HEAPU8.subarray(n,n+r.byteLength);s.set(r),i.HEAPF64[(e>>3)+0]=1,i.HEAPF64[(e>>3)+1]=n,i.HEAPF64[(e>>3)+2]=s.byteLength}function vf(i){switch(i){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Er(i,e,t,r){let n=i.HEAPU8.subarray(e,e+r*vf(t));switch(t){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,r);case"INT8":return new Int8Array(n.buffer,n.byteOffset,r);case"INT32":return new Int32Array(n.buffer,n.byteOffset,r);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,r);case"DOUBLE":return new Float64Array(n.buffer,n.byteOffset,r);case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,r);default:return new Array(0)}}function L0(i,e,t,r,n,s,u,p){try{let m=i._udfFunctions.get(r);if(!m){bo(e,t,"Unknown UDF with id: "+r);return}let j=new TextDecoder().decode(e.HEAPU8.subarray(n,n+s)),A=JSON.parse(j),R=Er(e,u,"DOUBLE",p/8),P=[],x=[];for(let ve in A.args){let Ce=A.args[ve],Fe=Er(e,R[Ce.data_buffer],Ce.physical_type,A.rows),Pr=Er(e,R[Ce.validity_buffer],"UINT8",A.rows);if(Fe.length==0||Pr.length==0){bo(e,t,"Can't create physical arrays for argument "+Ce.physical_type);return}if(P.push(Pr),Ce.physical_type=="VARCHAR"){let $t=Er(e,R[Ce.length_buffer],"DOUBLE",A.rows),Nr=[],si=new TextDecoder;for(let Me=0;Me<A.rows;++Me){if(!Pr[Me]){Nr.push(void 0);continue}let Kt=e.HEAPU8.subarray(Fe[Me],Fe[Me]+$t[Me]),go=si.decode(Kt);Nr.push(go)}x.push(Nr)}else x.push(Fe)}let pe=A.rows*vf(A.ret.physical_type),de=e._malloc(pe),Ie=Er(e,de,A.ret.physical_type,A.rows),Oe=e._malloc(A.rows),ht=Er(e,Oe,"UINT8",A.rows);if(Ie.length==0||ht.length==0){bo(e,t,"Can't create physical arrays for result");return}let Gi=Ie;switch(A.ret.physical_type=="VARCHAR"&&(Ie=new Array(A.rows)),A.args.length){case 0:for(let ve=0;ve<A.rows;++ve){let Ce=m.func();Ie[ve]=Ce,ht[ve]=Ce==null?0:1}break;case 1:for(let ve=0;ve<A.rows;++ve){let Ce=m.func(P[0][ve]?x[0][ve]:void 0);Ie[ve]=Ce,ht[ve]=Ce==null?0:1}break;case 2:for(let ve=0;ve<A.rows;++ve){let Ce=m.func(P[0][ve]?x[0][ve]:void 0,P[1][ve]?x[1][ve]:void 0);Ie[ve]=Ce,ht[ve]=Ce==null?0:1}break;default:bo(e,t,"Can't deal with argument count: "+A.args.length);return}let xr=0;if(A.ret.physical_type=="VARCHAR"){let ve=new TextEncoder,Ce=new Array(0),Fe=0;xr=e._malloc(A.rows*vf("DOUBLE"));let Pr=Er(e,xr,"DOUBLE",A.rows);for(let Me=0;Me<A.rows;++Me)Ce[Me]=ve.encode(Ie[Me]),Fe+=Ce[Me].length,Pr[Me]=Ce[Me].length;let $t=e._malloc(Fe),Nr=e.HEAPU8.subarray($t,$t+Fe),si=0;Ie=Gi;for(let Me=0;Me<A.rows;++Me){Ie[Me]=$t+si;for(let Kt=0;Kt<Ce[Me].length;Kt++)Nr[si+Kt]=Ce[Me][Kt];si+=Ce[Me].length}}let yn=3*8,_n=e._malloc(yn),vs=Er(e,_n,"DOUBLE",3);vs[0]=de,vs[1]=Oe,vs[2]=xr,e.HEAPF64[(t>>3)+0]=0,e.HEAPF64[(t>>3)+1]=_n,e.HEAPF64[(t>>3)+2]=0}catch(m){bo(e,t,m.toString())}}function rE(){let i=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),i.decode(e))}var nE=rE();function Fi(i,e){i.ccall("duckdb_web_fail_with",null,["string"],[e])}function gs(i,e,t){let r=i.HEAPU8.subarray(e,e+t),n=new Uint8Array(new ArrayBuffer(r.byteLength));return n.set(r),n}function he(i,e,t){return nE(i.HEAPU8.subarray(e,e+t))}function Te(i,e,t,r){let n=i.stackSave(),s=i.stackAlloc(3*8);t.unshift("number"),r.unshift(s),i.ccall(e,null,t,r);let u=i.HEAPF64[(s>>3)+0],p=i.HEAPF64[(s>>3)+1],m=i.HEAPF64[(s>>3)+2];return i.stackRestore(n),[u,p,m]}function Re(i){i.ccall("duckdb_web_clear_response",null,[],[])}var jf=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),r=new Uint8Array(new ArrayBuffer(e.byteLength));r.set(e.subarray(7*8)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=r}getBlockStats(e,t){return t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0},t.file_writes=this.blockStats[e*3+0]&15,t.file_reads_cold=this.blockStats[e*3+0]>>4,t.file_reads_ahead=this.blockStats[e*3+1]&15,t.file_reads_cached=this.blockStats[e*3+1]>>4,t.page_accesses=this.blockStats[e*3+1]&15,t.page_loads=this.blockStats[e*3+1]>>4,t}};var sE=new TextEncoder;var wf=class{constructor(e,t){this._instance=null;this._initPromise=null;this._initPromiseResolver=()=>{};this.onInstantiationProgress=[];this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=t=>{}){return this._instance!=null?this:(this._initPromise!=null&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise(t=>{this._initPromiseResolver=t}),this.onInstantiationProgress=[e],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter(t=>t!=e),this)}open(e){let[t,r,n]=Te(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(t!==0)throw new Error(he(this.mod,r,n));Re(this.mod)}reset(){let[e,t,r]=Te(this.mod,"duckdb_web_reset",[],[]);if(e!==0)throw new Error(he(this.mod,t,r));Re(this.mod)}getVersion(){let[e,t,r]=Te(this.mod,"duckdb_web_get_version",[],[]);if(e!==0)throw new Error(he(this.mod,t,r));let n=he(this.mod,t,r);return Re(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let[t,r,n]=Te(this.mod,"duckdb_web_tokenize",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=he(this.mod,r,n);return Re(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new bf(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_query_run",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));let u=gs(this.mod,n,s);return Re(this.mod),u}sendQuery(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_query_send",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));let u=gs(this.mod,n,s);return Re(this.mod),u}fetchQueryResults(e){let[t,r,n]=Te(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=gs(this.mod,r,n);return Re(this.mod),s}getTableNames(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_get_tablenames",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));let u=he(this.mod,n,s);return Re(this.mod),JSON.parse(u)}createScalarFunction(e,t,r,n){let s={functionId:this._nextUDFId,name:t,returnType:yf(r)},u={functionId:s.functionId,connectionId:e,name:t,returnType:r,func:n};this._nextUDFId+=1;let[p,m,j]=Te(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(s)]);if(p!==0)throw new Error(he(this.mod,m,j));if(Re(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(u.functionId,u),this.pthread)for(let A of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])A.postMessage({cmd:"registerUDFFunction",udf:u})}createPrepared(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_prepared_create",["number","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));return Re(this.mod),n}closePrepared(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));Re(this.mod)}runPrepared(e,t,r){let[n,s,u]=Te(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(r)]);if(n!==0)throw new Error(he(this.mod,s,u));let p=gs(this.mod,s,u);return Re(this.mod),p}sendPrepared(e,t,r){let[n,s,u]=Te(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(r)]);if(n!==0)throw new Error(he(this.mod,s,u));let p=gs(this.mod,s,u);return Re(this.mod),p}insertArrowFromIPCStream(e,t,r){if(t.length==0)return;let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let u=r?JSON.stringify(r):"",[p,m,j]=Te(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,u]);if(p!==0)throw new Error(he(this.mod,m,j))}insertCSVFromPath(e,t,r){if(r.columns!==void 0){r.columnsFlat=[];for(let j in r.columns)r.columnsFlat.push(mo(j,r.columns[j]))}let n=Ji({},r);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=Te(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(he(this.mod,p,m))}insertJSONFromPath(e,t,r){if(r.columns!==void 0){r.columnsFlat=[];for(let j in r.columns)r.columnsFlat.push(mo(j,r.columns[j]))}let n=Ji({},r);n.columns=n.columnsFlat,delete n.columnsFlat;let s=JSON.stringify(n),[u,p,m]=Te(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,s]);if(u!==0)throw new Error(he(this.mod,p,m))}globFiles(e){let[t,r,n]=Te(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=he(this.mod,r,n);Re(this.mod);let u=JSON.parse(s);return u==null?[]:u}registerFileURL(e,t){t===void 0&&(t=e);let[r,n,s]=Te(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,t,-1]);if(r!==0)throw new Error(he(this.mod,n,s));Re(this.mod)}registerFileText(e,t){let r=sE.encode(t);this.registerFileBuffer(e,r)}registerFileBuffer(e,t){let r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[s,u,p]=Te(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,r,t.length]);if(s!==0)throw new Error(he(this.mod,u,p));Re(this.mod)}registerFileHandle(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_fs_register_file_url",["string","string","number"],[e,e,-1]);if(r!==0)throw new Error(he(this.mod,n,s));if(Re(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let u of this.pthread.runningWorkers)u.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let u of this.pthread.unusedWorkers)u.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,r,n]=Te(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));Re(this.mod)}dropFiles(){let[e,t,r]=Te(this.mod,"duckdb_web_fs_drop_files",[],[]);if(e!==0)throw new Error(he(this.mod,t,r));Re(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s));Re(this.mod)}copyFileToBuffer(e){let[t,r,n]=Te(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));let s=this.mod.HEAPU8.subarray(r,r+n),u=new Uint8Array(s.length);return u.set(s),Re(this.mod),u}collectFileStatistics(e,t){let[r,n,s]=Te(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(r!==0)throw new Error(he(this.mod,n,s))}exportFileStatistics(e){let[t,r,n]=Te(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(t!==0)throw new Error(he(this.mod,r,n));return new jf(this.mod.HEAPU8.subarray(r,r+n))}};var Bf=class extends wf{constructor(e,t,r,n){super(e,t);this.mainModuleURL=r,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${t} path=${e}`)}instantiateWasm(e,t){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(typeof TransformStream=="function"&&ReadableStream.prototype.pipeThrough&&WebAssembly.instantiateStreaming){let s=(async()=>{var pe;let u=new Request(this.mainModuleURL),p=await fetch(u),m=p.headers.get("content-length"),j=m&&parseInt(m,10)||0,A=new Date,R={startedAt:A,updatedAt:A,bytesTotal:j||0,bytesLoaded:0},P={transform(de,Ie){R.bytesLoaded+=de.byteLength;let Oe=new Date;if(Oe.getTime()-R.updatedAt.getTime()<20){R.updatedAt=Oe,Ie.enqueue(de);return}for(let ht of r)ht(R);Ie.enqueue(de)}},x=new TransformStream(P);return new Response((pe=p.body)==null?void 0:pe.pipeThrough(x),p)})();WebAssembly.instantiateStreaming(s,e).then(u=>{t(u.instance,u.module)})}else{let n=new XMLHttpRequest,s=this.mainModuleURL,u=new Date,p={startedAt:u,updatedAt:u,bytesTotal:0,bytesLoaded:0};n.open("GET",s),n.responseType="arraybuffer",n.onerror=m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+m}),new Error(m.toString())},n.onprogress=m=>{p.bytesTotal=m.total,p.bytesLoaded=m.loaded;let j=new Date;if(j.getTime()-p.updatedAt.getTime()<20){p.updatedAt=j;return}for(let A of r)A(p)},n.onload=()=>{WebAssembly.instantiate(n.response,e).then(m=>{t(m.instance,m.module)}).catch(m=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+m}),new Error(m)})},n.send()}return[]}};var If=class extends Bf{constructor(e,t,r,n=null){super(e,t,r,n)}instantiateImpl(e){return P0(Fs(Ji({},e),{instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)}))}};var Rr=oi(q0()),H0=function(i,e,t){var r;if((r=i==null?void 0:i.endpoint)==null?void 0:r.startsWith("http")){let n=`${i==null?void 0:i.endpoint}`,s=n.indexOf("://")+3;return n.substring(s)}else return(i==null?void 0:i.endpoint)?`${t}.${i==null?void 0:i.endpoint}`:`${t}.s3.amazonaws.com`};function oE(i,e,t){var n,s,u,p;let r=z0(e);return{url:r.path,query:"",host:H0(i,e,r.bucket),region:(n=i==null?void 0:i.region)!=null?n:"",service:"s3",method:t,accessKeyId:(s=i==null?void 0:i.accessKeyId)!=null?s:"",secretAccessKey:(u=i==null?void 0:i.secretAccessKey)!=null?u:"",sessionToken:(p=i==null?void 0:i.sessionToken)!=null?p:"",dateNow:new Date().toISOString().replace(/-/g,"").split("T")[0],datetimeNow:new Date().toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function aE(i,e=!1){let t="0123456789ABCDEF",r="";for(let n=0;n<i.length;n++){let s=i[n];s>="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||s=="_"||s=="-"||s=="~"||s=="."?r+=s:s=="/"?e?r+="%2F":r+=s:(r+="%",r+=t[s.charCodeAt(0)>>4],r+=t[s.charCodeAt(0)&15])}return r}function cE(i,e=null){var pe;let t=(pe=e==null?void 0:e.contentHash)!=null?pe:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",r=new Map;r.set("x-amz-date",i.datetimeNow),r.set("x-amz-content-sha256",t),i.sessionToken&&r.set("x-amz-security-token",i.sessionToken);let n="";(e==null?void 0:e.contentType)&&(n+="content-type;"),n+="host;x-amz-content-sha256;x-amz-date",i.sessionToken&&(n+=";x-amz-security-token");let s=i.method+`
|
|
19
19
|
`+aE(i.url)+`
|
|
20
20
|
`+i.query;(e==null?void 0:e.contentType)&&(s+=`
|
|
21
21
|
content-type:`+(e==null?void 0:e.contentType)),s+=`
|