PageSourceSearch

https://x.divo.ai/assets/lib-bson-CGJ-a1Gc.js

js divo.ai collected 2026-10-05 15:33:00 UTC 70,028 bytes, 16 lines download raw bytes

vendor: 4,340 bytes, line 1
1function Sr(r,t){return t={exports:{}},r(t,t.exports),t.exports}var _r=Ir,Or=Tr,Br=Mr,q=[],k=[],Ar=typeof Uint8Array<"u"?Uint8Array:Array,Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var it=0,Ur=Ut.length;it<Ur;++it)q[it]=Ut[it],k[Ut.charCodeAt(it)]=it;k[45]=62;k[95]=63;function ur(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=r.indexOf("=");i===-1&&(i=t);var u=i===t?0:4-i%4;return[i,u]}function Ir(r){var t=ur(r),i=t[0],u=t[1];return(i+u)*3/4-u}function Fr(r,t,i){return(t+i)*3/4-i}function Tr(r){var t,i=ur(r),u=i[0],c=i[1],h=new Ar(Fr(r,u,c)),s=0,l=c>0?u-4:u,g;for(g=0;g<l;g+=4)t=k[r.charCodeAt(g)]<<18|k[r.charCodeAt(g+1)]<<12|k[r.charCodeAt(g+2)]<<6|k[r.charCodeAt(g+3)],h[s++]=t>>16&255,h[s++]=t>>8&255,h[s++]=t&255;return c===2&&(t=k[r.charCodeAt(g)]<<2|k[r.charCodeAt(g+1)]>>4,h[s++]=t&255),c===1&&(t=k[r.charCodeAt(g)]<<10|k[r.charCodeAt(g+1)]<<4|k[r.charCodeAt(g+2)]>>2,h[s++]=t>>8&255,h[s++]=t&255),h}function Lr(r){return q[r>>18&63]+q[r>>12&63]+q[r>>6&63]+q[r&63]}function Rr(r,t,i){for(var u,c=[],h=t;h<i;h+=3)u=(r[h]<<16&16711680)+(r[h+1]<<8&65280)+(r[h+2]&255),c.push(Lr(u));return c.join("")}function Mr(r){for(var t,i=r.length,u=i%3,c=[],h=16383,s=0,l=i-u;s<l;s+=h)c.push(Rr(r,s,s+h>l?l:s+h));return u===1?(t=r[i-1],c.push(q[t>>2]+q[t<<4&63]+"==")):u===2&&(t=(r[i-2]<<8)+r[i-1],c.push(q[t>>10]+q[t>>4&63]+q[t<<2&63]+"=")),c.join("")}var It={byteLength:_r,toByteArray:Or,fromByteArray:Br};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var jr=function(t,i,u,c,h){var s,l,g=h*8-c-1,d=(1<<g)-1,m=d>>1,x=-7,w=u?h-1:0,S=u?-1:1,v=t[i+w];for(w+=S,s=v&(1<<-x)-1,v>>=-x,x+=g;x>0;s=s*256+t[i+w],w+=S,x-=8);for(l=s&(1<<-x)-1,s>>=-x,x+=c;x>0;l=l*256+t[i+w],w+=S,x-=8);if(s===0)s=1-m;else{if(s===d)return l?NaN:(v?-1:1)*(1/0);l=l+Math.pow(2,c),s=s-m}return(v?-1:1)*l*Math.pow(2,s-c)},$r=function(t,i,u,c,h,s){var l,g,d,m=s*8-h-1,x=(1<<m)-1,w=x>>1,S=h===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=c?0:s-1,O=c?1:-1,j=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(g=isNaN(i)?1:0,l=x):(l=Math.floor(Math.log(i)/Math.LN2),i*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+w>=1?i+=S/d:i+=S*Math.pow(2,1-w),i*d>=2&&(l++,d/=2),l+w>=x?(g=0,l=x):l+w>=1?(g=(i*d-1)*Math.pow(2,h),l=l+w):(g=i*Math.pow(2,w-1)*Math.pow(2,h),l=0));h>=8;t[u+v]=g&255,v+=O,g/=256,h-=8);for(l=l<<h|g,m+=h;m>0;t[u+v]=l&255,v+=O,l/=256,m-=8);t[u+v-O]|=j*128},ot={read:jr,write:$r},dt=Sr(function(r,t){var i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=R,t.INSPECT_MAX_BYTES=50;var u=2147483647;t.kMaxLength=u,s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{var o=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(o,e),o.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function h(o){if(o>u)throw new RangeError('The value "'+o+'" is invalid for option "size"');var e=new Uint8Array(o);return Object.setPrototypeOf(e,s.prototype),e}function s(o,e,n){if(typeof o=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(o)}return l(o,e,n)}s.poolSize=8192;function l(o,e,n){if(typeof o=="string")return x(o,e);if(ArrayBuffer.isView(o))return S(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(o));if(Y(o,ArrayBuffer)||o&&Y(o.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Y(o,SharedArrayBuffer)||o&&Y(o.buffer,SharedArrayBuffer)))return v(o,e,n);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var f=o.valueOf&&o.valueOf();if(f!=null&&f!==o)return s.from(f,e,n);var a=O(o);if(a)return a;
vendor: 4,971 bytes, line 1
1if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return s.from(o[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+babelHelpers.typeof(o))}s.from=function(o,e,n){return l(o,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function g(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function d(o,e,n){return g(o),o<=0?h(o):e!==void 0?typeof n=="string"?h(o).fill(e,n):h(o).fill(e):h(o)}s.alloc=function(o,e,n){return d(o,e,n)};function m(o){return g(o),h(o<0?0:j(o)|0)}s.allocUnsafe=function(o){return m(o)},s.allocUnsafeSlow=function(o){return m(o)};function x(o,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=M(o,e)|0,f=h(n),a=f.write(o,e);return a!==n&&(f=f.slice(0,a)),f}function w(o){for(var e=o.length<0?0:j(o.length)|0,n=h(e),f=0;f<e;f+=1)n[f]=o[f]&255;return n}function S(o){if(Y(o,Uint8Array)){var e=new Uint8Array(o);return v(e.buffer,e.byteOffset,e.byteLength)}return w(o)}function v(o,e,n){if(e<0||o.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var f;return e===void 0&&n===void 0?f=new Uint8Array(o):n===void 0?f=new Uint8Array(o,e):f=new Uint8Array(o,e,n),Object.setPrototypeOf(f,s.prototype),f}function O(o){if(s.isBuffer(o)){var e=j(o.length)|0,n=h(e);return n.length===0||o.copy(n,0,0,e),n}if(o.length!==void 0)return typeof o.length!="number"||At(o.length)?h(0):w(o);if(o.type==="Buffer"&&Array.isArray(o.data))return w(o.data)}function j(o){if(o>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return o|0}function R(o){return+o!=o&&(o=0),s.alloc(+o)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,n){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Y(n,Uint8Array)&&(n=s.from(n,n.offset,n.byteLength)),!s.isBuffer(e)||!s.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var f=e.length,a=n.length,p=0,y=Math.min(f,a);p<y;++p)if(e[p]!==n[p]){f=e[p],a=n[p];break}return f<a?-1:a<f?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);var f;if(n===void 0)for(n=0,f=0;f<e.length;++f)n+=e[f].length;var a=s.allocUnsafe(n),p=0;for(f=0;f<e.length;++f){var y=e[f];if(Y(y,Uint8Array))p+y.length>a.length?s.from(y).copy(a,p):Uint8Array.prototype.set.call(a,y,p);else if(s.isBuffer(y))y.copy(a,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=y.length}return a};function M(o,e){if(s.isBuffer(o))return o.length;if(ArrayBuffer.isView(o)||Y(o,ArrayBuffer))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+babelHelpers.typeof(o));var n=o.length,f=arguments.length>2&&arguments[2]===!0;if(!f&&n===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Bt(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Zt(o).length;default:if(a)return f?-1:Bt(o).length;e=(""+e).toLowerCase(),a=!0}}s.byteLength=M;function D(o,e,n){var f=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(o||(o="utf8");;)switch(o){case"hex":return V(this,e,n);case"utf8":case"utf-8":return et(this,e,n);case"ascii":return nt(this,e,n);case"latin1":case"binary":return F(this,e,n);case"base64":return rt(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(f)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),f=!0}}s.prototype._isBuffer=!0;function E(o,e,n){var f=o[e];o[e]=o[n],o[n]=f}s.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)E(this,n,n+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)E(this,n,n+3),E(this,n+1,n+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;
vendor: 12,132 bytes, line 1
1n+=8)E(this,n,n+7),E(this,n+1,n+6),E(this,n+2,n+5),E(this,n+3,n+4);return this},s.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?et(this,0,e):D.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(s.prototype[i]=s.prototype.inspect),s.prototype.compare=function(e,n,f,a,p){if(Y(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+babelHelpers.typeof(e));if(n===void 0&&(n=0),f===void 0&&(f=e?e.length:0),a===void 0&&(a=0),p===void 0&&(p=this.length),n<0||f>e.length||a<0||p>this.length)throw new RangeError("out of range index");if(a>=p&&n>=f)return 0;if(a>=p)return-1;if(n>=f)return 1;if(n>>>=0,f>>>=0,a>>>=0,p>>>=0,this===e)return 0;for(var y=p-a,_=f-n,U=Math.min(y,_),I=this.slice(a,p),$=e.slice(n,f),T=0;T<U;++T)if(I[T]!==$[T]){y=I[T],_=$[T];break}return y<_?-1:_<y?1:0};function C(o,e,n,f,a){if(o.length===0)return-1;if(typeof n=="string"?(f=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,At(n)&&(n=a?0:o.length-1),n<0&&(n=o.length+n),n>=o.length){if(a)return-1;n=o.length-1}else if(n<0)if(a)n=0;else return-1;if(typeof e=="string"&&(e=s.from(e,f)),s.isBuffer(e))return e.length===0?-1:Z(o,e,n,f,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(o,e,n):Uint8Array.prototype.lastIndexOf.call(o,e,n):Z(o,[e],n,f,a);throw new TypeError("val must be string, number or Buffer")}function Z(o,e,n,f,a){var p=1,y=o.length,_=e.length;if(f!==void 0&&(f=String(f).toLowerCase(),f==="ucs2"||f==="ucs-2"||f==="utf16le"||f==="utf-16le")){if(o.length<2||e.length<2)return-1;p=2,y/=2,_/=2,n/=2}function U(Yt,Wt){return p===1?Yt[Wt]:Yt.readUInt16BE(Wt*p)}var I;if(a){var $=-1;for(I=n;I<y;I++)if(U(o,I)===U(e,$===-1?0:I-$)){if($===-1&&($=I),I-$+1===_)return $*p}else $!==-1&&(I-=I-$),$=-1}else for(n+_>y&&(n=y-_),I=n;I>=0;I--){for(var T=!0,xt=0;xt<_;xt++)if(U(o,I+xt)!==U(e,xt)){T=!1;break}if(T)return I}return-1}s.prototype.includes=function(e,n,f){return this.indexOf(e,n,f)!==-1},s.prototype.indexOf=function(e,n,f){return C(this,e,n,f,!0)},s.prototype.lastIndexOf=function(e,n,f){return C(this,e,n,f,!1)};function X(o,e,n,f){n=Number(n)||0;var a=o.length-n;f?(f=Number(f),f>a&&(f=a)):f=a;var p=e.length;f>p/2&&(f=p/2);for(var y=0;y<f;++y){var _=parseInt(e.substr(y*2,2),16);if(At(_))return y;o[n+y]=_}return y}function _t(o,e,n,f){return gt(Bt(e,o.length-n),o,n,f)}function st(o,e,n,f){return gt(Er(e),o,n,f)}function Ot(o,e,n,f){return gt(Zt(e),o,n,f)}function lt(o,e,n,f){return gt(vr(e,o.length-n),o,n,f)}s.prototype.write=function(e,n,f,a){if(n===void 0)a="utf8",f=this.length,n=0;else if(f===void 0&&typeof n=="string")a=n,f=this.length,n=0;else if(isFinite(n))n=n>>>0,isFinite(f)?(f=f>>>0,a===void 0&&(a="utf8")):(a=f,f=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var p=this.length-n;if((f===void 0||f>p)&&(f=p),e.length>0&&(f<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var y=!1;;)switch(a){case"hex":return X(this,e,n,f);case"utf8":case"utf-8":return _t(this,e,n,f);case"ascii":case"latin1":case"binary":return st(this,e,n,f);case"base64":return Ot(this,e,n,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,e,n,f);default:if(y)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),y=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rt(o,e,n){return e===0&&n===o.length?It.fromByteArray(o):It.fromByteArray(o.slice(e,n))}function et(o,e,n){n=Math.min(o.length,n);for(var f=[],a=e;a<n;){var p=o[a],y=null,_=p>239?4:p>223?3:p>191?2:1;if(a+_<=n){var U,I,$,T;switch(_){case 1:p<128&&(y=p);break;case 2:U=o[a+1],(U&192)===128&&(T=(p&31)<<6|U&63,T>127&&(y=T));break;case 3:U=o[a+1],I=o[a+2],(U&192)===128&&(I&192)===128&&(T=(p&15)<<12|(U&63)<<6|I&63,T>2047&&(T<55296||T>57343)&&(y=T));break;case 4:U=o[a+1],I=o[a+2],$=o[a+3],(U&192)===128&&(I&192)===128&&($&192)===128&&(T=(p&15)<<18|(U&63)<<12|(I&63)<<6|$&63,T>65535&&T<1114112&&(y=T))}}y===null?(y=65533,_=1):y>65535&&(y-=65536,f.push(y>>>10&1023|55296),y=56320|y&1023),f.push(y),a+=_}return yt(f)}var G=4096;function yt(o){var e=o.length;if(e<=G)return String.fromCharCode.apply(String,o);for(var n="",f=0;f<e;)n+=String.fromCharCode.apply(String,o.slice(f,f+=G));return n}function nt(o,e,n){var f="";n=Math.min(o.length,n);for(var a=e;a<n;++a)f+=String.fromCharCode(o[a]&127);return f}function F(o,e,n){var f="";n=Math.min(o.length,n);for(var a=e;a<n;++a)f+=String.fromCharCode(o[a]);return f}function V(o,e,n){var f=o.length;(!e||e<0)&&(e=0),(!n||n<0||n>f)&&(n=f);for(var a="",p=e;p<n;++p)a+=Nr[o[p]];return a}function B(o,e,n){for(var f=o.slice(e,n),a="",p=0;p<f.length-1;p+=2)a+=String.fromCharCode(f[p]+f[p+1]*256);return a}s.prototype.slice=function(e,n){var f=this.length;e=~~e,n=n===void 0?f:~~n,e<0?(e+=f,e<0&&(e=0)):e>f&&(e=f),n<0?(n+=f,n<0&&(n=0)):n>f&&(n=f),n<e&&(n=e);var a=this.subarray(e,n);return Object.setPrototypeOf(a,s.prototype),a};function N(o,e,n){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+e>n)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,n,f){e=e>>>0,n=n>>>0,f||N(e,n,this.length);for(var a=this[e],p=1,y=0;++y<n&&(p*=256);)a+=this[e+y]*p;return a},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,n,f){e=e>>>0,n=n>>>0,f||N(e,n,this.length);for(var a=this[e+--n],p=1;n>0&&(p*=256);)a+=this[e+--n]*p;return a},s.prototype.readUint8=s.prototype.readUInt8=function(e,n){return e=e>>>0,n||N(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,n){return e=e>>>0,n||N(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,n){return e=e>>>0,n||N(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,n){return e=e>>>0,n||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,n){return e=e>>>0,n||N(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,n,f){e=e>>>0,n=n>>>0,f||N(e,n,this.length);for(var a=this[e],p=1,y=0;++y<n&&(p*=256);)a+=this[e+y]*p;return p*=128,a>=p&&(a-=Math.pow(2,8*n)),a},s.prototype.readIntBE=function(e,n,f){e=e>>>0,n=n>>>0,f||N(e,n,this.length);for(var a=n,p=1,y=this[e+--a];a>0&&(p*=256);)y+=this[e+--a]*p;return p*=128,y>=p&&(y-=Math.pow(2,8*n)),y},s.prototype.readInt8=function(e,n){return e=e>>>0,n||N(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,n){e=e>>>0,n||N(e,2,this.length);var f=this[e]|this[e+1]<<8;return f&32768?f|4294901760:f},s.prototype.readInt16BE=function(e,n){e=e>>>0,n||N(e,2,this.length);var f=this[e+1]|this[e]<<8;return f&32768?f|4294901760:f},s.prototype.readInt32LE=function(e,n){return e=e>>>0,n||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,n){return e=e>>>0,n||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,n){return e=e>>>0,n||N(e,4,this.length),ot.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,n){return e=e>>>0,n||N(e,4,this.length),ot.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,n){return e=e>>>0,n||N(e,8,this.length),ot.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,n){return e=e>>>0,n||N(e,8,this.length),ot.read(this,e,!1,52,8)};function P(o,e,n,f,a,p){if(!s.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<p)throw new RangeError('"value" argument is out of bounds');if(n+f>o.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,n,f,a){if(e=+e,n=n>>>0,f=f>>>0,!a){var p=Math.pow(2,8*f)-1;P(this,e,n,f,p,0)}var y=1,_=0;for(this[n]=e&255;++_<f&&(y*=256);)this[n+_]=e/y&255;return n+f},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,n,f,a){if(e=+e,n=n>>>0,f=f>>>0,!a){var p=Math.pow(2,8*f)-1;P(this,e,n,f,p,0)}var y=f-1,_=1;for(this[n+y]=e&255;--y>=0&&(_*=256);)this[n+y]=e/_&255;return n+f},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,1,255,0),this[n]=e&255,n+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,2,65535,0),this[n]=e&255,this[n+1]=e>>>8,n+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=e&255,n+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255,n+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4},s.prototype.writeIntLE=function(e,n,f,a){if(e=+e,n=n>>>0,!a){var p=Math.pow(2,8*f-1);P(this,e,n,f,p-1,-p)}var y=0,_=1,U=0;for(this[n]=e&255;++y<f&&(_*=256);)e<0&&U===0&&this[n+y-1]!==0&&(U=1),this[n+y]=(e/_>>0)-U&255;return n+f},s.prototype.writeIntBE=function(e,n,f,a){if(e=+e,n=n>>>0,!a){var p=Math.pow(2,8*f-1);P(this,e,n,f,p-1,-p)}var y=f-1,_=1,U=0;for(this[n+y]=e&255;--y>=0&&(_*=256);)e<0&&U===0&&this[n+y+1]!==0&&(U=1),this[n+y]=(e/_>>0)-U&255;return n+f},s.prototype.writeInt8=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=e&255,n+1},s.prototype.writeInt16LE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,2,32767,-32768),this[n]=e&255,this[n+1]=e>>>8,n+2},s.prototype.writeInt16BE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=e&255,n+2},s.prototype.writeInt32LE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,4,2147483647,-2147483648),this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},s.prototype.writeInt32BE=function(e,n,f){return e=+e,n=n>>>0,f||P(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255,n+4};function kt(o,e,n,f,a,p){if(n+f>o.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ht(o,e,n,f,a){return e=+e,n=n>>>0,a||kt(o,e,n,4),ot.write(o,e,n,f,23,4),n+4}s.prototype.writeFloatLE=function(e,n,f){return Ht(this,e,n,!0,f)},s.prototype.writeFloatBE=function(e,n,f){return Ht(this,e,n,!1,f)};function Vt(o,e,n,f,a){return e=+e,n=n>>>0,a||kt(o,e,n,8),ot.write(o,e,n,f,52,8),n+8}s.prototype.writeDoubleLE=function(e,n,f){return Vt(this,e,n,!0,f)},s.prototype.writeDoubleBE=function(e,n,f){return Vt(this,e,n,!1,f)},s.prototype.copy=function(e,n,f,a){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(f||(f=0),!a&&a!==0&&(a=this.length),n>=e.length&&(n=e.length),n||(n=0),a>0&&a<f&&(a=f),a===f||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(f<0||f>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-n<a-f&&(a=e.length-n+f);var p=a-f;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(n,f,a):Uint8Array.prototype.set.call(e,this.subarray(f,a),n),p},s.prototype.fill=function(e,n,f,a){if(typeof e=="string"){if(typeof n=="string"?(a=n,n=0,f=this.length):typeof f=="string"&&(a=f,f=this.length),a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");
1if(typeof a=="string"&&!s.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(e.length===1){var p=e.charCodeAt(0);(a==="utf8"&&p<128||a==="latin1")&&(e=p)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(n<0||this.length<n||this.length<f)throw new RangeError("Out of range index");if(f<=n)return this;n=n>>>0,f=f===void 0?this.length:f>>>0,e||(e=0);var y;if(typeof e=="number")for(y=n;y<f;++y)this[y]=e;else{var _=s.isBuffer(e)?e:s.from(e,a),U=_.length;if(U===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(y=0;y<f-n;++y)this[y+n]=_[y%U]}return this};var dr=/[^+/0-9A-Za-z-_]/g;function br(o){if(o=o.split("=")[0],o=o.trim().replace(dr,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function Bt(o,e){e=e||1/0;for(var n,f=o.length,a=null,p=[],y=0;y<f;++y){if(n=o.charCodeAt(y),n>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&p.push(239,191,189);continue}else if(y+1===f){(e-=3)>-1&&p.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&p.push(239,191,189),a=n;continue}n=(a-55296<<10|n-56320)+65536}else a&&(e-=3)>-1&&p.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;p.push(n)}else if(n<2048){if((e-=2)<0)break;p.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;p.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;p.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return p}function Er(o){for(var e=[],n=0;n<o.length;++n)e.push(o.charCodeAt(n)&255);return e}function vr(o,e){for(var n,f,a,p=[],y=0;y<o.length&&!((e-=2)<0);++y)n=o.charCodeAt(y),f=n>>8,a=n%256,p.push(a),p.push(f);return p}function Zt(o){return It.toByteArray(br(o))}function gt(o,e,n,f){for(var a=0;a<f&&!(a+n>=e.length||a>=o.length);++a)e[a+n]=o[a];return a}function Y(o,e){return o instanceof e||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===e.name}function At(o){return o!==o}var Nr=function(){for(var o="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var f=n*16,a=0;a<16;++a)e[f+a]=o[n]+o[a];return e}()}),A=dt.Buffer;dt.SlowBuffer;dt.INSPECT_MAX_BYTES;dt.kMaxLength;/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */var Mt=function(t,i){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var h in c)c.hasOwnProperty(h)&&(u[h]=c[h])},Mt(t,i)};function bt(r,t){Mt(r,t);function i(){this.constructor=r}r.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var Q=function(r){bt(t,r);function t(i){var u=r.call(this,i)||this;return Object.setPrototypeOf(u,t.prototype),u}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONError"},enumerable:!1,configurable:!0}),t}(Error),L=function(r){bt(t,r);function t(i){var u=r.call(this,i)||this;return Object.setPrototypeOf(u,t.prototype),u}return Object.defineProperty(t.prototype,"name",{get:function(){return"BSONTypeError"},enumerable:!1,configurable:!0}),t}(TypeError);function mt(r){return r&&r.Math==Math&&r}function sr(){return mt(typeof globalThis=="object"&&globalThis)||mt(typeof window=="object"&&window)||mt(typeof self=="object"&&self)||mt(typeof global=="object"&&global)||Function("return this")()}function Dr(){var r=sr();return typeof r.navigator=="object"&&r.navigator.product==="ReactNative"}var Pr=function(t){var i=Dr()?"BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.":"BSON: No cryptographic implementation for random bytes present, falling back to a less secure implementation.";console.warn(i);for(var u=A.alloc(t),c=0;c<t;++c)u[c]=Math.floor(Math.random()*256);return u},Cr=function(){{if(typeof window<"u"){var r=window.crypto||window.msCrypto;if(r&&r.getRandomValues)return function(t){return r.getRandomValues(A.alloc(t))}}return typeof global<"u"&&global.crypto&&global.crypto.getRandomValues?function(t){return global.crypto.getRandomValues(A.alloc(t))}:Pr}},ar=Cr();function Jr(r){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(r))}function $t(r){return Object.prototype.toString.call(r)==="[object Uint8Array]"}function kr(r){return Object.prototype.toString.call(r)==="[object RegExp]"}function Hr(r){return pt(r)&&Object.prototype.toString.call(r)==="[object Date]"}function pt(r){return typeof r=="object"&&r!==null}function Et(r,t){var i=!1;function u(){for(var c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];
14return i||(console.warn(t),i=!0),r.apply(this,c)}return u}function wt(r){if(ArrayBuffer.isView(r))return A.from(r.buffer,r.byteOffset,r.byteLength);if(Jr(r))return A.from(r);throw new L("Must use either Buffer or TypedArray")}var Vr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|[0-9a-f]{12}4[0-9a-f]{3}[89ab][0-9a-f]{15})$/i,hr=function(r){return typeof r=="string"&&Vr.test(r)},jt=function(r){if(!hr(r))throw new L('UUID string representations must be a 32 or 36 character hex string (dashes excluded/included). Format: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" or "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".');var t=r.replace(/-/g,"");return A.from(t,"hex")},qt=function(r,t){return t===void 0&&(t=!0),t?r.toString("hex",0,4)+"-"+r.toString("hex",4,6)+"-"+r.toString("hex",6,8)+"-"+r.toString("hex",8,10)+"-"+r.toString("hex",10,16):r.toString("hex")},Zr=Math.pow(2,53),Yr=-Math.pow(2,53),cr=4,tt=function(){function r(t,i){if(!(this instanceof r))return new r(t,i);if(t!=null&&typeof t!="string"&&!ArrayBuffer.isView(t)&&!(t instanceof ArrayBuffer)&&!Array.isArray(t))throw new L("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");this.sub_type=i??r.BSON_BINARY_SUBTYPE_DEFAULT,t==null?(this.buffer=A.alloc(r.BUFFER_SIZE),this.position=0):(typeof t=="string"?this.buffer=A.from(t,"binary"):Array.isArray(t)?this.buffer=A.from(t):this.buffer=wt(t),this.position=this.buffer.byteLength)}return r.prototype.put=function(t){if(typeof t=="string"&&t.length!==1)throw new L("only accepts single character String");if(typeof t!="number"&&t.length!==1)throw new L("only accepts single character Uint8Array or Array");var i;if(typeof t=="string"?i=t.charCodeAt(0):typeof t=="number"?i=t:i=t[0],i<0||i>255)throw new L("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.length>this.position)this.buffer[this.position++]=i;else{var u=A.alloc(r.BUFFER_SIZE+this.buffer.length);this.buffer.copy(u,0,0,this.buffer.length),this.buffer=u,this.buffer[this.position++]=i}},r.prototype.write=function(t,i){if(i=typeof i=="number"?i:this.position,this.buffer.length<i+t.length){var u=A.alloc(this.buffer.length+t.length);this.buffer.copy(u,0,0,this.buffer.length),this.buffer=u}ArrayBuffer.isView(t)?(this.buffer.set(wt(t),i),this.position=i+t.byteLength>this.position?i+t.length:this.position):typeof t=="string"&&(this.buffer.write(t,i,t.length,"binary"),this.position=i+t.length>this.position?i+t.length:this.position)},r.prototype.read=function(t,i){return i=i&&i>0?i:this.position,this.buffer.slice(t,t+i)},r.prototype.value=function(t){return t=!!t,t&&this.buffer.length===this.position?this.buffer:t?this.buffer.slice(0,this.position):this.buffer.toString("binary",0,this.position)},r.prototype.length=function(){return this.position},r.prototype.toJSON=function(){return this.buffer.toString("base64")},r.prototype.toString=function(t){return this.buffer.toString(t)},r.prototype.toExtendedJSON=function(t){t=t||{};var i=this.buffer.toString("base64"),u=Number(this.sub_type).toString(16);return t.legacy?{$binary:i,$type:u.length===1?"0"+u:u}:{$binary:{base64:i,subType:u.length===1?"0"+u:u}}},r.prototype.toUUID=function(){if(this.sub_type===r.SUBTYPE_UUID)return new Xt(this.buffer.slice(0,this.position));throw new Q('Binary sub_type "'.concat(this.sub_type,'" is not supported for converting to UUID. Only "').concat(r.SUBTYPE_UUID,'" is currently supported.'))},r.fromExtendedJSON=function(t,i){i=i||{};var u,c;if("$binary"in t?i.legacy&&typeof t.$binary=="string"&&"$type"in t?(c=t.$type?parseInt(t.$type,16):0,u=A.from(t.$binary,"base64")):typeof t.$binary!="string"&&(c=t.$binary.subType?parseInt(t.$binary.subType,16):0,u=A.from(t.$binary.base64,"base64")):"$uuid"in t&&(c=4,u=jt(t.$uuid)),!u)throw new L("Unexpected Binary Extended JSON format ".concat(JSON.stringify(t)));return c===cr?new Xt(u):new r(u,c)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){var t=this.value(!0);return'new Binary(Buffer.from("'.concat(t.toString("hex"),'", "hex"), ').concat(this.sub_type,")")},r.BSON_BINARY_SUBTYPE_DEFAULT=0,r.BUFFER_SIZE=256,r.SUBTYPE_DEFAULT=0,r.SUBTYPE_FUNCTION=1,r.SUBTYPE_BYTE_ARRAY=2,r.SUBTYPE_UUID_OLD=3,r.SUBTYPE_UUID=4,r.SUBTYPE_MD5=5,r.
14SUBTYPE_ENCRYPTED=6,r.SUBTYPE_COLUMN=7,r.SUBTYPE_USER_DEFINED=128,r}();Object.defineProperty(tt.prototype,"_bsontype",{value:"Binary"});var Ft=16,Xt=function(r){bt(t,r);function t(i){var u=this,c,h;if(i==null)c=t.generate();else if(i instanceof t)c=A.from(i.buffer),h=i.__id;else if(ArrayBuffer.isView(i)&&i.byteLength===Ft)c=wt(i);else if(typeof i=="string")c=jt(i);else throw new L("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");return u=r.call(this,c,cr)||this,u.__id=h,u}return Object.defineProperty(t.prototype,"id",{get:function(){return this.buffer},set:function(i){this.buffer=i,t.cacheHexString&&(this.__id=qt(i))},enumerable:!1,configurable:!0}),t.prototype.toHexString=function(i){if(i===void 0&&(i=!0),t.cacheHexString&&this.__id)return this.__id;var u=qt(this.id,i);return t.cacheHexString&&(this.__id=u),u},t.prototype.toString=function(i){return i?this.id.toString(i):this.toHexString()},t.prototype.toJSON=function(){return this.toHexString()},t.prototype.equals=function(i){if(!i)return!1;if(i instanceof t)return i.id.equals(this.id);try{return new t(i).id.equals(this.id)}catch{return!1}},t.prototype.toBinary=function(){return new tt(this.id,tt.SUBTYPE_UUID)},t.generate=function(){var i=ar(Ft);return i[6]=i[6]&15|64,i[8]=i[8]&63|128,A.from(i)},t.isValid=function(i){return i?i instanceof t?!0:typeof i=="string"?hr(i):$t(i)?i.length!==Ft?!1:(i[6]&240)===64&&(i[8]&128)===128:!1:!1},t.createFromHexString=function(i){var u=jt(i);return new t(u)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return'new UUID("'.concat(this.toHexString(),'")')},t}(tt),vt=function(){function r(t,i){if(!(this instanceof r))return new r(t,i);this.code=t,this.scope=i}return r.prototype.toJSON=function(){return{code:this.code,scope:this.scope}},r.prototype.toExtendedJSON=function(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}},r.fromExtendedJSON=function(t){return new r(t.$code,t.$scope)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){var t=this.toJSON();return'new Code("'.concat(String(t.code),'"').concat(t.scope?", ".concat(JSON.stringify(t.scope)):"",")")},r}();Object.defineProperty(vt.prototype,"_bsontype",{value:"Code"});function Wr(r){return pt(r)&&r.$id!=null&&typeof r.$ref=="string"&&(r.$db==null||typeof r.$db=="string")}var ht=function(){function r(t,i,u,c){if(!(this instanceof r))return new r(t,i,u,c);var h=t.split(".");h.length===2&&(u=h.shift(),t=h.shift()),this.collection=t,this.oid=i,this.db=u,this.fields=c||{}}return Object.defineProperty(r.prototype,"namespace",{get:function(){return this.collection},set:function(t){this.collection=t},enumerable:!1,configurable:!0}),r.prototype.toJSON=function(){var t=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return this.db!=null&&(t.$db=this.db),t},r.prototype.toExtendedJSON=function(t){t=t||{};var i={$ref:this.collection,$id:this.oid};return t.legacy||(this.db&&(i.$db=this.db),i=Object.assign(i,this.fields)),i},r.fromExtendedJSON=function(t){var i=Object.assign({},t);return delete i.$ref,delete i.$id,delete i.$db,new r(t.$ref,t.$id,t.$db,i)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){var t=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return'new DBRef("'.concat(this.namespace,'", new ObjectId("').concat(String(t),'")').concat(this.db?', "'.concat(this.db,'"'):"",")")},r}();Object.defineProperty(ht.prototype,"_bsontype",{value:"DBRef"});var J=void 0;try{J=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var Gt=65536,qr=1<<24,ut=Gt*Gt,pr=ut*ut,Xr=pr/2,Kt={},zt={},b=function(){function r(t,i,u){if(t===void 0&&(t=0),!(this instanceof r))return new r(t,i,u);typeof t=="bigint"?Object.assign(this,r.fromBigInt(t,!!i)):typeof t=="string"?Object.assign(this,r.fromString(t,!!i)):(this.low=t|0,this.high=i|0,this.unsigned=!!u),Object.defineProperty(this,"__isLong__",{value:!0,configurable:!1,writable:!1,enumerable:!1})}return r.fromBits=function(t,i,u){return new r(t,i,u)},r.fromInt=function(t,i){var u,c,h;return i?(t>>>=0,(h=0<=t&&t<256)&&(c=zt[t],c)?c:(u=r.fromBits(t,(t|0)<0?-1:0,!0),h&&(zt[t]=u),u)):(t|=0,
vendor: 15,385 bytes, line 14
14(h=-128<=t&&t<128)&&(c=Kt[t],c)?c:(u=r.fromBits(t,t<0?-1:0,!1),h&&(Kt[t]=u),u))},r.fromNumber=function(t,i){if(isNaN(t))return i?r.UZERO:r.ZERO;if(i){if(t<0)return r.UZERO;if(t>=pr)return r.MAX_UNSIGNED_VALUE}else{if(t<=-9223372036854776e3)return r.MIN_VALUE;if(t+1>=Xr)return r.MAX_VALUE}return t<0?r.fromNumber(-t,i).neg():r.fromBits(t%ut|0,t/ut|0,i)},r.fromBigInt=function(t,i){return r.fromString(t.toString(),i)},r.fromString=function(t,i,u){if(t.length===0)throw Error("empty string");if(t==="NaN"||t==="Infinity"||t==="+Infinity"||t==="-Infinity")return r.ZERO;if(typeof i=="number"?(u=i,i=!1):i=!!i,u=u||10,u<2||36<u)throw RangeError("radix");var c;if((c=t.indexOf("-"))>0)throw Error("interior hyphen");if(c===0)return r.fromString(t.substring(1),i,u).neg();for(var h=r.fromNumber(Math.pow(u,8)),s=r.ZERO,l=0;l<t.length;l+=8){var g=Math.min(8,t.length-l),d=parseInt(t.substring(l,l+g),u);if(g<8){var m=r.fromNumber(Math.pow(u,g));s=s.mul(m).add(r.fromNumber(d))}else s=s.mul(h),s=s.add(r.fromNumber(d))}return s.unsigned=i,s},r.fromBytes=function(t,i,u){return u?r.fromBytesLE(t,i):r.fromBytesBE(t,i)},r.fromBytesLE=function(t,i){return new r(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,i)},r.fromBytesBE=function(t,i){return new r(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],i)},r.isLong=function(t){return pt(t)&&t.__isLong__===!0},r.fromValue=function(t,i){return typeof t=="number"?r.fromNumber(t,i):typeof t=="string"?r.fromString(t,i):r.fromBits(t.low,t.high,typeof i=="boolean"?i:t.unsigned)},r.prototype.add=function(t){r.isLong(t)||(t=r.fromValue(t));var i=this.high>>>16,u=this.high&65535,c=this.low>>>16,h=this.low&65535,s=t.high>>>16,l=t.high&65535,g=t.low>>>16,d=t.low&65535,m=0,x=0,w=0,S=0;return S+=h+d,w+=S>>>16,S&=65535,w+=c+g,x+=w>>>16,w&=65535,x+=u+l,m+=x>>>16,x&=65535,m+=i+s,m&=65535,r.fromBits(w<<16|S,m<<16|x,this.unsigned)},r.prototype.and=function(t){return r.isLong(t)||(t=r.fromValue(t)),r.fromBits(this.low&t.low,this.high&t.high,this.unsigned)},r.prototype.compare=function(t){if(r.isLong(t)||(t=r.fromValue(t)),this.eq(t))return 0;var i=this.isNegative(),u=t.isNegative();return i&&!u?-1:!i&&u?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},r.prototype.comp=function(t){return this.compare(t)},r.prototype.divide=function(t){if(r.isLong(t)||(t=r.fromValue(t)),t.isZero())throw Error("division by zero");if(J){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;var i=(this.unsigned?J.div_u:J.div_s)(this.low,this.high,t.low,t.high);return r.fromBits(i,J.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?r.UZERO:r.ZERO;var u,c,h;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return r.UZERO;if(t.gt(this.shru(1)))return r.UONE;h=r.UZERO}else{if(this.eq(r.MIN_VALUE)){if(t.eq(r.ONE)||t.eq(r.NEG_ONE))return r.MIN_VALUE;if(t.eq(r.MIN_VALUE))return r.ONE;var s=this.shr(1);return u=s.div(t).shl(1),u.eq(r.ZERO)?t.isNegative()?r.ONE:r.NEG_ONE:(c=this.sub(t.mul(u)),h=u.add(c.div(t)),h)}else if(t.eq(r.MIN_VALUE))return this.unsigned?r.UZERO:r.ZERO;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();h=r.ZERO}for(c=this;c.gte(t);){u=Math.max(1,Math.floor(c.toNumber()/t.toNumber()));for(var l=Math.ceil(Math.log(u)/Math.LN2),g=l<=48?1:Math.pow(2,l-48),d=r.fromNumber(u),m=d.mul(t);m.isNegative()||m.gt(c);)u-=g,d=r.fromNumber(u,this.unsigned),m=d.mul(t);d.isZero()&&(d=r.ONE),h=h.add(d),c=c.sub(m)}return h},r.prototype.div=function(t){return this.divide(t)},r.prototype.equals=function(t){return r.isLong(t)||(t=r.fromValue(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low},r.prototype.eq=function(t){return this.equals(t)},r.prototype.getHighBits=function(){return this.high},r.prototype.getHighBitsUnsigned=function(){return this.high>>>0},r.prototype.getLowBits=function(){return this.low},r.prototype.getLowBitsUnsigned=function(){return this.low>>>0},r.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.eq(r.MIN_VALUE)?64:this.neg().getNumBitsAbs();var t=this.high!==0?this.high:this.low,i;for(i=31;i>0&&!(t&1<<i);i--);return this.high!==0?i+33:i+1},r.prototype.greaterThan=function(t){return this.comp(t)>0},r.prototype.gt=function(t){return this.greaterThan(t)},r.prototype.greaterThanOrEqual=function(t){return this.comp(t)>=0},r.prototype.gte=function(t){return this.greaterThanOrEqual(t)},r.prototype.ge=function(t){return this.greaterThanOrEqual(t)},r.prototype.isEven=function(){return(this.low&1)===0},r.prototype.isNegative=function(){return!this.unsigned&&this.high<0},r.prototype.isOdd=function(){return(this.low&1)===1},r.prototype.isPositive=function(){return this.unsigned||this.high>=0},r.prototype.isZero=function(){return this.high===0&&this.low===0},r.prototype.lessThan=function(t){return this.comp(t)<0},r.prototype.lt=function(t){return this.lessThan(t)},r.prototype.lessThanOrEqual=function(t){return this.comp(t)<=0},r.prototype.lte=function(t){return this.lessThanOrEqual(t)},r.prototype.modulo=function(t){if(r.isLong(t)||(t=r.fromValue(t)),J){var i=(this.unsigned?J.rem_u:J.rem_s)(this.low,this.high,t.low,t.high);return r.fromBits(i,J.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))},r.prototype.mod=function(t){return this.modulo(t)},r.prototype.rem=function(t){return this.modulo(t)},r.prototype.multiply=function(t){if(this.isZero())return r.ZERO;if(r.isLong(t)||(t=r.fromValue(t)),J){var i=J.mul(this.low,this.high,t.low,t.high);return r.fromBits(i,J.get_high(),this.unsigned)}if(t.isZero())return r.ZERO;if(this.eq(r.MIN_VALUE))return t.isOdd()?r.MIN_VALUE:r.ZERO;if(t.eq(r.MIN_VALUE))return this.isOdd()?r.MIN_VALUE:r.ZERO;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(r.TWO_PWR_24)&&t.lt(r.TWO_PWR_24))return r.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);var u=this.high>>>16,c=this.high&65535,h=this.low>>>16,s=this.low&65535,l=t.high>>>16,g=t.high&65535,d=t.low>>>16,m=t.low&65535,x=0,w=0,S=0,v=0;return v+=s*m,S+=v>>>16,v&=65535,S+=h*m,w+=S>>>16,S&=65535,S+=s*d,w+=S>>>16,S&=65535,w+=c*m,x+=w>>>16,w&=65535,w+=h*d,x+=w>>>16,w&=65535,w+=s*g,x+=w>>>16,w&=65535,x+=u*m+c*d+h*g+s*l,x&=65535,r.fromBits(S<<16|v,x<<16|w,this.unsigned)},r.prototype.mul=function(t){return this.multiply(t)},r.prototype.negate=function(){return!this.unsigned&&this.eq(r.MIN_VALUE)?r.MIN_VALUE:this.not().add(r.ONE)},r.prototype.neg=function(){return this.negate()},r.prototype.not=function(){return r.fromBits(~this.low,~this.high,this.unsigned)},r.prototype.notEquals=function(t){return!this.equals(t)},r.prototype.neq=function(t){return this.notEquals(t)},r.prototype.ne=function(t){return this.notEquals(t)},r.prototype.or=function(t){return r.isLong(t)||(t=r.fromValue(t)),r.fromBits(this.low|t.low,this.high|t.high,this.unsigned)},r.prototype.shiftLeft=function(t){return r.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?r.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):r.fromBits(0,this.low<<t-32,this.unsigned)},r.prototype.shl=function(t){return this.shiftLeft(t)},r.prototype.shiftRight=function(t){return r.isLong(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?r.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):r.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},r.prototype.shr=function(t){return this.shiftRight(t)},r.prototype.shiftRightUnsigned=function(t){if(r.isLong(t)&&(t=t.toInt()),t&=63,t===0)return this;var i=this.high;if(t<32){var u=this.low;return r.fromBits(u>>>t|i<<32-t,i>>>t,this.unsigned)}else return t===32?r.fromBits(i,0,this.unsigned):r.fromBits(i>>>t-32,0,this.unsigned)},r.prototype.shr_u=function(t){return this.shiftRightUnsigned(t)},r.prototype.shru=function(t){return this.shiftRightUnsigned(t)},r.prototype.subtract=function(t){return r.isLong(t)||(t=r.fromValue(t)),this.add(t.neg())},r.prototype.sub=function(t){return this.subtract(t)},r.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},r.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*ut+(this.low>>>0):this.high*ut+(this.low>>>0)},r.prototype.toBigInt=function(){return BigInt(this.toString())},r.prototype.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},r.prototype.toBytesLE=function(){var t=this.high,i=this.low;return[i&255,i>>>8&255,i>>>16&255,i>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]},r.prototype.toBytesBE=function(){var t=this.high,i=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,i>>>24,i>>>16&255,i>>>8&255,i&255]},r.prototype.toSigned=function(){return this.unsigned?r.fromBits(this.low,this.high,!1):this},r.prototype.toString=function(t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(r.MIN_VALUE)){var i=r.fromNumber(t),u=this.div(i),c=u.mul(i).sub(this);return u.toString(t)+c.toInt().toString(t)}else return"-"+this.neg().toString(t);for(var h=r.fromNumber(Math.pow(t,6),this.unsigned),s=this,l="";;){var g=s.div(h),d=s.sub(g.mul(h)).toInt()>>>0,m=d.toString(t);if(s=g,s.isZero())return m+l;for(;m.length<6;)m="0"+m;l=""+m+l}},r.prototype.toUnsigned=function(){return this.unsigned?this:r.fromBits(this.low,this.high,!0)},r.prototype.xor=function(t){return r.isLong(t)||(t=r.fromValue(t)),r.fromBits(this.low^t.low,this.high^t.high,this.unsigned)},r.prototype.eqz=function(){return this.isZero()},r.prototype.le=function(t){return this.lessThanOrEqual(t)},r.prototype.toExtendedJSON=function(t){return t&&t.relaxed?this.toNumber():{$numberLong:this.toString()}},r.fromExtendedJSON=function(t,i){var u=r.fromString(t.$numberLong);return i&&i.relaxed?u.toNumber():u},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){return'new Long("'.concat(this.toString(),'"').concat(this.unsigned?", true":"",")")},r.TWO_PWR_24=r.fromInt(qr),r.MAX_UNSIGNED_VALUE=r.fromBits(-1,-1,!0),r.ZERO=r.fromInt(0),r.UZERO=r.fromInt(0,!0),r.ONE=r.fromInt(1),r.UONE=r.fromInt(1,!0),r.NEG_ONE=r.fromInt(-1),r.MAX_VALUE=r.fromBits(-1,2147483647,!1),r.MIN_VALUE=r.fromBits(0,-2147483648,!1),r}();Object.defineProperty(b.prototype,"__isLong__",{value:!0});Object.defineProperty(b.prototype,"_bsontype",{value:"Long"});var Gr=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,Kr=/^(\+|-)?(Infinity|inf)$/i,zr=/^(\+|-)?NaN$/i,at=6111,Tt=-6176,Qt=6176,Qr=34,Lt=[124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),tr=[248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),rr=[120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse(),te=/^([-+])?(\d+)?$/,re=31,er=16383,ee=30,ne=31;function nr(r){return!isNaN(parseInt(r,10))}function ie(r){var t=b.fromNumber(1e9),i=b.fromNumber(0);if(!r.parts[0]&&!r.parts[1]&&!r.parts[2]&&!r.parts[3])return{quotient:r,rem:i};for(var u=0;u<=3;u++)i=i.shiftLeft(32),i=i.add(new b(r.parts[u],0)),r.parts[u]=i.div(t).low,i=i.modulo(t);return{quotient:r,rem:i}}function oe(r,t){if(!r&&!t)return{high:b.fromNumber(0),low:b.fromNumber(0)};var i=r.shiftRightUnsigned(32),u=new b(r.getLowBits(),0),c=t.shiftRightUnsigned(32),h=new b(t.getLowBits(),0),s=i.multiply(c),l=i.multiply(h),g=u.multiply(c),d=u.multiply(h);return s=s.add(l.shiftRightUnsigned(32)),l=new b(l.getLowBits(),0).add(g).add(d.shiftRightUnsigned(32)),s=s.add(l.shiftRightUnsigned(32)),d=l.shiftLeft(32).add(new b(d.getLowBits(),0)),{high:s,low:d}}function fe(r,t){var i=r.high>>>0,u=t.high>>>0;if(i<u)return!0;if(i===u){var c=r.low>>>0,h=t.low>>>0;if(c<h)return!0}return!1}function ft(r,t){throw new L('"'.concat(r,'" is not a valid Decimal128 string - ').concat(t))}var Dt=function(){function r(t){if(!(this instanceof r))return new r(t);if(typeof t=="string")this.bytes=r.fromString(t).bytes;else if($t(t)){if(t.byteLength!==16)throw new L("Decimal128 must take a Buffer of 16 bytes");this.bytes=t}else throw new L("Decimal128 must take a Buffer or string")}return r.fromString=function(t){var i=!1,u=!1,c=!1,h=0,s=0,l=0,g=0,d=0,m=[0],x=0,w=0,S=0,v=0,O=0,j=0,R=new b(0,0),M=new b(0,0),D=0,E=0;if(t.length>=7e3)throw new L(""+t+" not a valid Decimal128 string");var C=t.match(Gr),Z=t.match(Kr),X=t.match(zr);if(!C&&!Z&&!X||t.length===0)throw new L(""+t+" not a valid Decimal128 string");if(C){var _t=C[2],st=C[4],Ot=C[5],lt=C[6];st&&lt===void 0&&ft(t,"missing exponent power"),st&&_t===void 0&&ft(t,"missing exponent base"),st===void 0&&(Ot||lt)&&ft(t,"missing e before exponent")}if((t[E]==="+"||t[E]==="-")&&(i=t[E++]==="-"),!nr(t[E])&&t[E]!=="."){if(t[E]==="i"||t[E]==="I")return new r(A.from(i?tr:rr));if(t[E]==="N")return new r(A.from(Lt))}for(;nr(t[E])||t[E]===".";){if(t[E]==="."){u&&ft(t,"contains multiple periods"),u=!0,E=E+1;continue}x<34&&(t[E]!=="0"||c)&&(c||(d=s),c=!0,m[w++]=parseInt(t[E],10),x=x+1),c&&(l=l+1),u&&(g=g+1),s=s+1,E=E+1}if(u&&!s)throw new L(""+t+" not a valid Decimal128 string");if(t[E]==="e"||t[E]==="E"){var rt=t.substr(++E).match(te);if(!rt||!rt[2])return new r(A.from(Lt));O=parseInt(rt[0],10),E=E+rt[0].length}if(t[E])return new r(A.from(Lt));if(S=0,!x)S=0,v=0,m[0]=0,l=1,x=1,h=0;else if(v=x-1,h=l,h!==1)for(;m[d+h-1]===0;)h=h-1;for(O<=g&&g-O>16384?O=Tt:O=O-g;O>at;){if(v=v+1,v-S>Qr){var et=m.join("");if(et.match(/^0+$/)){O=at;break}ft(t,"overflow")}O=O-1}for(;O<Tt||x<l;){if(v===0&&h<x){O=Tt,h=0;break}if(x<l?l=l-1:v=v-1,O<at)O=O+1;else{var et=m.join("");if(et.match(/^0+$/)){O=at;break}ft(t,"overflow")}}if(v-S+1<h){var G=s;u&&(d=d+1,G=G+1),i&&(d=d+1,G=G+1);var yt=parseInt(t[d+v+1],10),nt=0;if(yt>=5&&(nt=1,yt===5)){for(nt=m[v]%2===1?1:0,j=d+v+2;j<G;j++)if(parseInt(t[j],10)){nt=1;break}}if(nt){for(var F=v;F>=0;F--)if(++m[F]>9&&(m[F]=0,F===0))if(O<at)O=O+1,m[F]=1;else return new r(A.from(i?tr:rr))}}if(R=b.fromNumber(0),M=b.fromNumber(0),h===0)R=b.fromNumber(0),M=b.fromNumber(0);else if(v-S<17){var F=S;for(M=b.fromNumber(m[F++]),R=new b(0,0);F<=v;F++)M=M.multiply(b.fromNumber(10)),M=M.add(b.fromNumber(m[F]))}else{var F=S;for(R=b.fromNumber(m[F++]);F<=v-17;F++)R=R.multiply(b.fromNumber(10)),R=R.add(b.fromNumber(m[F]));for(M=b.fromNumber(m[F++]);F<=v;F++)M=M.multiply(b.fromNumber(10)),M=M.add(b.fromNumber(m[F]))}var V=oe(R,b.fromString("100000000000000000"));V.low=V.low.add(M),fe(V.low,M)&&(V.high=V.high.add(b.fromNumber(1))),D=O+Qt;var B={low:b.fromNumber(0),high:b.fromNumber(0)};V.high.shiftRightUnsigned(49).and(b.fromNumber(1)).equals(b.fromNumber(1))?(B.high=B.high.or(b.fromNumber(3).shiftLeft(61)),B.high=B.high.or(b.fromNumber(D).and(b.fromNumber(16383).shiftLeft(47))),B.high=B.high.or(V.high.and(b.fromNumber(0x7fffffffffff)))):(B.high=B.high.or(b.fromNumber(D&16383).shiftLeft(49)),B.high=B.high.or(V.high.and(b.fromNumber(562949953421311)))),B.low=V.low,i&&(B.high=B.high.or(b.fromString("9223372036854775808")));var N=A.alloc(16);return E=0,N[E++]=B.low.low&255,N[E++]=B.low.low>>8&255,N[E++]=B.low.low>>16&255,N[E++]=B.low.low>>24&255,N[E++]=B.low.high&255,N[E++]=B.low.high>>8&255,N[E++]=B.low.high>>16&255,N[E++]=B.low.high>>24&255,N[E++]=B.high.low&255,N[E++]=B.high.low>>8&255,N[E++]=B.high.low>>16&255,N[E++]=B.high.low>>24&255,N[E++]=B.high.high&255,N[E++]=B.high.high>>8&255,N[E++]=B.high.high>>16&255,N[E++]=B.high.high>>24&255,new r(N)},r.prototype.toString=function(){for(var t,i=0,u=new Array(36),c=0;c<u.length;c++)u[c]=0;
14var h=0,s=!1,l,g={parts:[0,0,0,0]},d,m,x=[];h=0;var w=this.bytes,S=w[h++]|w[h++]<<8|w[h++]<<16|w[h++]<<24,v=w[h++]|w[h++]<<8|w[h++]<<16|w[h++]<<24,O=w[h++]|w[h++]<<8|w[h++]<<16|w[h++]<<24,j=w[h++]|w[h++]<<8|w[h++]<<16|w[h++]<<24;h=0;var R={low:new b(S,v),high:new b(O,j)};R.high.lessThan(b.ZERO)&&x.push("-");var M=j>>26&re;if(M>>3===3){if(M===ee)return x.join("")+"Infinity";if(M===ne)return"NaN";t=j>>15&er,l=8+(j>>14&1)}else l=j>>14&7,t=j>>17&er;var D=t-Qt;if(g.parts[0]=(j&16383)+((l&15)<<14),g.parts[1]=O,g.parts[2]=v,g.parts[3]=S,g.parts[0]===0&&g.parts[1]===0&&g.parts[2]===0&&g.parts[3]===0)s=!0;else for(m=3;m>=0;m--){var E=0,C=ie(g);if(g=C.quotient,E=C.rem.low,!!E)for(d=8;d>=0;d--)u[m*9+d]=E%10,E=Math.floor(E/10)}if(s)i=1,u[h]=0;else for(i=36;!u[h];)i=i-1,h=h+1;var Z=i-1+D;if(Z>=34||Z<=-7||D>0){if(i>34)return x.push("".concat(0)),D>0?x.push("E+".concat(D)):D<0&&x.push("E".concat(D)),x.join("");x.push("".concat(u[h++])),i=i-1,i&&x.push(".");for(var c=0;c<i;c++)x.push("".concat(u[h++]));x.push("E"),Z>0?x.push("+".concat(Z)):x.push("".concat(Z))}else if(D>=0)for(var c=0;c<i;c++)x.push("".concat(u[h++]));else{var X=i+D;if(X>0)for(var c=0;c<X;c++)x.push("".concat(u[h++]));else x.push("0");for(x.push(".");X++<0;)x.push("0");for(var c=0;c<i-Math.max(X-1,0);c++)x.push("".concat(u[h++]))}return x.join("")},r.prototype.toJSON=function(){return{$numberDecimal:this.toString()}},r.prototype.toExtendedJSON=function(){return{$numberDecimal:this.toString()}},r.fromExtendedJSON=function(t){return r.fromString(t.$numberDecimal)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){return'new Decimal128("'.concat(this.toString(),'")')},r}();Object.defineProperty(Dt.prototype,"_bsontype",{value:"Decimal128"});var Nt=function(){function r(t){if(!(this instanceof r))return new r(t);t instanceof Number&&(t=t.valueOf()),this.value=+t}return r.prototype.valueOf=function(){return this.value},r.prototype.toJSON=function(){return this.value},r.prototype.toString=function(t){return this.value.toString(t)},r.prototype.toExtendedJSON=function(t){return t&&(t.legacy||t.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-".concat(this.value.toFixed(1))}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}},r.fromExtendedJSON=function(t,i){var u=parseFloat(t.$numberDouble);return i&&i.relaxed?u:new r(u)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){var t=this.toExtendedJSON();return"new Double(".concat(t.$numberDouble,")")},r}();Object.defineProperty(Nt.prototype,"_bsontype",{value:"Double"});var St=function(){function r(t){if(!(this instanceof r))return new r(t);t instanceof Number&&(t=t.valueOf()),this.value=+t|0}return r.prototype.valueOf=function(){return this.value},r.prototype.toString=function(t){return this.value.toString(t)},r.prototype.toJSON=function(){return this.value},r.prototype.toExtendedJSON=function(t){return t&&(t.relaxed||t.legacy)?this.value:{$numberInt:this.value.toString()}},r.fromExtendedJSON=function(t,i){return i&&i.relaxed?parseInt(t.$numberInt,10):new r(t.$numberInt)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){return"new Int32(".concat(this.valueOf(),")")},r}();Object.defineProperty(St.prototype,"_bsontype",{value:"Int32"});var Pt=function(){function r(){if(!(this instanceof r))return new r}return r.prototype.toExtendedJSON=function(){return{$maxKey:1}},r.fromExtendedJSON=function(){return new r},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){return"new MaxKey()"},r}();Object.defineProperty(Pt.prototype,"_bsontype",{value:"MaxKey"});
14var Ct=function(){function r(){if(!(this instanceof r))return new r}return r.prototype.toExtendedJSON=function(){return{$minKey:1}},r.fromExtendedJSON=function(){return new r},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){return"new MinKey()"},r}();Object.defineProperty(Ct.prototype,"_bsontype",{value:"MinKey"});var ue=new RegExp("^[0-9a-fA-F]{24}$"),z=null,W=Symbol("id"),H=function(){function r(t){if(!(this instanceof r))return new r(t);var i;if(typeof t=="object"&&t&&"id"in t){if(typeof t.id!="string"&&!ArrayBuffer.isView(t.id))throw new L("Argument passed in must have an id that is of type string or Buffer");"toHexString"in t&&typeof t.toHexString=="function"?i=A.from(t.toHexString(),"hex"):i=t.id}else i=t;if(i==null||typeof i=="number")this[W]=r.generate(typeof i=="number"?i:void 0);else if(ArrayBuffer.isView(i)&&i.byteLength===12)this[W]=i instanceof A?i:wt(i);else if(typeof i=="string")if(i.length===12){var u=A.from(i);if(u.byteLength===12)this[W]=u;else throw new L("Argument passed in must be a string of 12 bytes")}else if(i.length===24&&ue.test(i))this[W]=A.from(i,"hex");else throw new L("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new L("Argument passed in does not match the accepted types");r.cacheHexString&&(this.__id=this.id.toString("hex"))}return Object.defineProperty(r.prototype,"id",{get:function(){return this[W]},set:function(t){this[W]=t,r.cacheHexString&&(this.__id=t.toString("hex"))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"generationTime",{get:function(){return this.id.readInt32BE(0)},set:function(t){this.id.writeUInt32BE(t,0)},enumerable:!1,configurable:!0}),r.prototype.toHexString=function(){if(r.cacheHexString&&this.__id)return this.__id;var t=this.id.toString("hex");return r.cacheHexString&&!this.__id&&(this.__id=t),t},r.getInc=function(){return r.index=(r.index+1)%16777215},r.generate=function(t){typeof t!="number"&&(t=Math.floor(Date.now()/1e3));var i=r.getInc(),u=A.alloc(12);return u.writeUInt32BE(t,0),z===null&&(z=ar(5)),u[4]=z[0],u[5]=z[1],u[6]=z[2],u[7]=z[3],u[8]=z[4],u[11]=i&255,u[10]=i>>8&255,u[9]=i>>16&255,u},r.prototype.toString=function(t){return t?this.id.toString(t):this.toHexString()},r.prototype.toJSON=function(){return this.toHexString()},r.prototype.equals=function(t){if(t==null)return!1;if(t instanceof r)return this[W][11]===t[W][11]&&this[W].equals(t[W]);if(typeof t=="string"&&r.isValid(t)&&t.length===12&&$t(this.id))return t===A.prototype.toString.call(this.id,"latin1");if(typeof t=="string"&&r.isValid(t)&&t.length===24)return t.toLowerCase()===this.toHexString();if(typeof t=="string"&&r.isValid(t)&&t.length===12)return A.from(t).equals(this.id);if(typeof t=="object"&&"toHexString"in t&&typeof t.toHexString=="function"){var i=t.toHexString(),u=this.toHexString().toLowerCase();return typeof i=="string"&&i.toLowerCase()===u}return!1},r.prototype.getTimestamp=function(){var t=new Date,i=this.id.readUInt32BE(0);return t.setTime(Math.floor(i)*1e3),t},r.createPk=function(){return new r},r.createFromTime=function(t){var i=A.from([0,0,0,0,0,0,0,0,0,0,0,0]);return i.writeUInt32BE(t,0),new r(i)},r.createFromHexString=function(t){if(typeof t>"u"||t!=null&&t.length!==24)throw new L("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");return new r(A.from(t,"hex"))},r.isValid=function(t){if(t==null)return!1;try{return new r(t),!0}catch{return!1}},r.prototype.toExtendedJSON=function(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}},r.fromExtendedJSON=function(t){return new r(t.$oid)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r.prototype.inspect=function(){return'new ObjectId("'.concat(this.toHexString(),'")')},r.index=Math.floor(Math.random()*16777215),r}();Object.defineProperty(H.prototype,"generate",{value:Et(function(r){return H.generate(r)},"Please use the static `ObjectId.generate(time)` instead")});Object.defineProperty(H.prototype,"getInc",{value:Et(function(){return H.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(H.prototype,"get_inc",{value:Et(function(){return H.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(H,"get_inc",{value:Et(function(){return H.getInc()},"Please use the static `ObjectId.getInc()` instead")});Object.defineProperty(H.prototype,"_bsontype",{value:"ObjectID"});function se(r){return r.split("").sort().join("")}var ct=function(){function r(t,i){if(!(this instanceof r))return new r(t,i);if(this.pattern=t,this.options=se(i??""),this.pattern.indexOf("\0")!==-1)throw new Q("BSON Regex patterns cannot contain null bytes, found: ".concat(JSON.stringify(this.pattern)));if(this.options.indexOf("\0")!==-1)throw new Q("BSON Regex options cannot contain null bytes, found: ".concat(JSON.stringify(this.options)));for(var u=0;u<this.options.length;u++)if(!(this.options[u]==="i"||this.options[u]==="m"||this.options[u]==="x"||this.options[u]==="l"||this.options[u]==="s"||this.options[u]==="u"))throw new Q("The regular expression o
14ption [".concat(this.options[u],"] is not supported"))}return r.parseOptions=function(t){return t?t.split("").sort().join(""):""},r.prototype.toExtendedJSON=function(t){return t=t||{},t.legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}},r.fromExtendedJSON=function(t){if("$regex"in t)if(typeof t.$regex!="string"){if(t.$regex._bsontype==="BSONRegExp")return t}else return new r(t.$regex,r.parseOptions(t.$options));if("$regularExpression"in t)return new r(t.$regularExpression.pattern,r.parseOptions(t.$regularExpression.options));throw new L("Unexpected BSONRegExp EJSON object form: ".concat(JSON.stringify(t)))},r}();Object.defineProperty(ct.prototype,"_bsontype",{value:"BSONRegExp"});var Jt=function(){function r(t){if(!(this instanceof r))return new r(t);this.value=t}return r.prototype.valueOf=function(){return this.value},r.prototype.toString=function(){return this.value},r.prototype.inspect=function(){return'new BSONSymbol("'.concat(this.value,'")')},r.prototype.toJSON=function(){return this.value},r.prototype.toExtendedJSON=function(){return{$symbol:this.value}},r.fromExtendedJSON=function(t){return new r(t.$symbol)},r.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},r}();Object.defineProperty(Jt.prototype,"_bsontype",{value:"Symbol"});var ae=b,lr=function(r){bt(t,r);function t(i,u){var c=this;return c instanceof t?(b.isLong(i)?c=r.call(this,i.low,i.high,!0)||this:pt(i)&&typeof i.t<"u"&&typeof i.i<"u"?c=r.call(this,i.i,i.t,!0)||this:c=r.call(this,i,u,!0)||this,Object.defineProperty(c,"_bsontype",{value:"Timestamp",writable:!1,configurable:!1,enumerable:!1}),c):new t(i,u)}return t.prototype.toJSON=function(){return{$timestamp:this.toString()}},t.fromInt=function(i){return new t(b.fromInt(i,!0))},t.fromNumber=function(i){return new t(b.fromNumber(i,!0))},t.fromBits=function(i,u){return new t(i,u)},t.fromString=function(i,u){return new t(b.fromString(i,!0,u))},t.prototype.toExtendedJSON=function(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}},t.fromExtendedJSON=function(i){return new t(i.$timestamp)},t.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return this.inspect()},t.prototype.inspect=function(){return"new Timestamp({ t: ".concat(this.getHighBits(),", i: ").concat(this.getLowBits()," })")},t.MAX_VALUE=b.MAX_UNSIGNED_VALUE,t}(ae);function he(r){return pt(r)&&Reflect.has(r,"_bsontype")&&typeof r._bsontype=="string"}var yr=2147483647,gr=-2147483648,xr=9223372036854776e3,mr=-9223372036854776e3,ce={$oid:H,$binary:tt,$uuid:tt,$symbol:Jt,$numberInt:St,$numberDecimal:Dt,$numberDouble:Nt,$numberLong:b,$minKey:Ct,$maxKey:Pt,$regex:ct,$regularExpression:ct,$timestamp:lr};function wr(r,t){if(t===void 0&&(t={}),typeof r=="number"){if(t.relaxed||t.legacy)return r;if(Math.floor(r)===r){if(r>=gr&&r<=yr)return new St(r);if(r>=mr&&r<=xr)return b.fromNumber(r)}return new Nt(r)}if(r==null||typeof r!="object")return r;if(r.$undefined)return null;for(var i=Object.keys(r).filter(function(x){return x.startsWith("$")&&r[x]!=null}),u=0;u<i.length;u++){var c=ce[i[u]];if(c)return c.fromExtendedJSON(r,t)}if(r.$date!=null){var h=r.$date,s=new Date;return t.legacy?typeof h=="number"?s.setTime(h):typeof h=="string"&&s.setTime(Date.parse(h)):typeof h=="string"?s.setTime(Date.parse(h)):b.isLong(h)?s.setTime(h.toNumber()):typeof h=="number"&&t.relaxed&&s.setTime(h),s}if(r.$code!=null){var l=Object.assign({},r);return r.$scope&&(l.$scope=wr(r.$scope)),vt.fromExtendedJSON(r)}if(Wr(r)||r.$dbPointer){var g=r.$ref?r:r.$dbPointer;if(g instanceof ht)return g;var d=Object.keys(g).filter(function(x){return x.startsWith("$")}),m=!0;if(d.forEach(function(x){["$ref","$id","$db"].indexOf(x)===-1&&(m=!1)}),m)return ht.fromExtendedJSON(g)}return r}function pe(r,t){return r.map(function(i,u){t.seenObjects.push({propertyName:"index ".concat(u),obj:null});try{return K(i,t)}finally{t.seenObjects.pop()}})}function ir(r){var t=r.toISOString();return r.getUTCMilliseconds()!==0?t:t.slice(0,-5)+"Z"}function K(r,t){if((typeof r=="object"||typeof r=="function")&&r!==null){var i=t.seenObjects.findIndex(function(R){return R.obj===r});if(i!==-1){var u=t.seenObjects.map(function(R){return R.propertyName}),c=u.slice(0,i).map(function(R){return"".concat(R," -> ")}).join(""),h=u[i],s=" -> "+u.slice(i+1,u.length-1).map(function(R){return"".concat(R," -> ")}).join(""),l=u[u.length-1],g=" ".repeat(c.length+h.length/2),d="-".repeat(s.length+(h.length+l.length)/2-1);
14throw new L(`Converting circular structure to EJSON:
15`+"    ".concat(c).concat(h).concat(s).concat(l,`
16`)+"    ".concat(g,"\\").concat(d,"/"))}t.seenObjects[t.seenObjects.length-1].obj=r}if(Array.isArray(r))return pe(r,t);if(r===void 0)return null;if(r instanceof Date||Hr(r)){var m=r.getTime(),x=m>-1&&m<2534023188e5;return t.legacy?t.relaxed&&x?{$date:r.getTime()}:{$date:ir(r)}:t.relaxed&&x?{$date:ir(r)}:{$date:{$numberLong:r.getTime().toString()}}}if(typeof r=="number"&&(!t.relaxed||!isFinite(r))){if(Math.floor(r)===r){var w=r>=gr&&r<=yr,S=r>=mr&&r<=xr;if(w)return{$numberInt:r.toString()};if(S)return{$numberLong:r.toString()}}return{$numberDouble:r.toString()}}if(r instanceof RegExp||kr(r)){var v=r.flags;if(v===void 0){var O=r.toString().match(/[gimuy]*$/);O&&(v=O[0])}var j=new ct(r.source,v);return j.toExtendedJSON(t)}return r!=null&&typeof r=="object"?ye(r,t):r}var le={Binary:function(r){return new tt(r.value(),r.sub_type)},Code:function(r){return new vt(r.code,r.scope)},DBRef:function(r){return new ht(r.collection||r.namespace,r.oid,r.db,r.fields)},Decimal128:function(r){return new Dt(r.bytes)},Double:function(r){return new Nt(r.value)},Int32:function(r){return new St(r.value)},Long:function(r){return b.fromBits(r.low!=null?r.low:r.low_,r.low!=null?r.high:r.high_,r.low!=null?r.unsigned:r.unsigned_)},MaxKey:function(){return new Pt},MinKey:function(){return new Ct},ObjectID:function(r){return new H(r)},ObjectId:function(r){return new H(r)},BSONRegExp:function(r){return new ct(r.pattern,r.options)},Symbol:function(r){return new Jt(r.value)},Timestamp:function(r){return lr.fromBits(r.low,r.high)}};function ye(r,t){if(r==null||typeof r!="object")throw new Q("not an object instance");var i=r._bsontype;if(typeof i>"u"){var u={};for(var c in r){t.seenObjects.push({propertyName:c,obj:null});try{var h=K(r[c],t);c==="__proto__"?Object.defineProperty(u,c,{value:h,writable:!0,enumerable:!0,configurable:!0}):u[c]=h}finally{t.seenObjects.pop()}}return u}else if(he(r)){var s=r;if(typeof s.toExtendedJSON!="function"){var l=le[r._bsontype];if(!l)throw new L("Unrecognized or invalid _bsontype: "+r._bsontype);s=l(s)}return i==="Code"&&s.scope?s=new vt(s.code,K(s.scope,t)):i==="DBRef"&&s.oid&&(s=new ht(K(s.collection,t),K(s.oid,t),K(s.db,t),K(s.fields,t))),s.toExtendedJSON(t)}else throw new Q("_bsontype must be a string, but was: "+typeof i)}var or;(function(r){function t(h,s){var l=Object.assign({},{relaxed:!0,legacy:!1},s);return typeof l.relaxed=="boolean"&&(l.strict=!l.relaxed),typeof l.strict=="boolean"&&(l.relaxed=!l.strict),JSON.parse(h,function(g,d){if(g.indexOf("\0")!==-1)throw new Q("BSON Document field names cannot contain null bytes, found: ".concat(JSON.stringify(g)));return wr(d,l)})}r.parse=t;function i(h,s,l,g){l!=null&&typeof l=="object"&&(g=l,l=0),s!=null&&typeof s=="object"&&!Array.isArray(s)&&(g=s,s=void 0,l=0);var d=Object.assign({relaxed:!0,legacy:!1},g,{seenObjects:[{propertyName:"(root)",obj:null}]}),m=K(h,d);return JSON.stringify(m,s,l)}r.stringify=i;function u(h,s){return s=s||{},JSON.parse(i(h,s))}r.serialize=u;function c(h,s){return s=s||{},t(JSON.stringify(h),s)}r.deserialize=c})(or||(or={}));var fr=sr();fr.Map?fr.Map:function(){function r(t){t===void 0&&(t=[]),this._keys=[],this._values={};for(var i=0;i<t.length;i++)if(t[i]!=null){var u=t[i],c=u[0],h=u[1];this._keys.push(c),this._values[c]={v:h,i:this._keys.length-1}}}return r.prototype.clear=function(){this._keys=[],this._values={}},r.prototype.delete=function(t){var i=this._values[t];return i==null?!1:(delete this._values[t],this._keys.splice(i.i,1),!0)},r.prototype.entries=function(){var t=this,i=0;return{next:function(){var u=t._keys[i++];return{value:u!==void 0?[u,t._values[u].v]:void 0,done:u===void 0}}}},r.prototype.forEach=function(t,i){i=i||this;for(var u=0;u<this._keys.length;u++){var c=this._keys[u];t.call(i,this._values[c].v,c,i)}},r.prototype.get=function(t){return this._values[t]?this._values[t].v:void 0},r.prototype.has=function(t){return this._values[t]!=null},r.prototype.keys=function(){var t=this,i=0;return{next:function(){var u=t._keys[i++];return{value:u!==void 0?u:void 0,done:u===void 0}}}},r.prototype.set=function(t,i){return this._values[t]?(this._values[t].v=i,this):(this._keys.push(t),this._values[t]={v:i,i:this._keys.length-1},this)},r.prototype.values=function(){var t=this,i=0;return{next:function(){var u=t._keys[i++];return{value:u!==void 0?t._values[u].v:void 0,done:u===void 0}}}},Object.defineProperty(r.prototype,"size",{get:function(){return this._keys.length}
16,enumerable:!1,configurable:!0}),r}();b.fromNumber(Zr);b.fromNumber(Yr);var Rt=new Uint8Array(8);new DataView(Rt.buffer,Rt.byteOffset,Rt.byteLength);var ge=1024*1024*17;A.alloc(ge);export{H as O};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.