var Yt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var Ge=Yt($t=>{"use strict";$t.byteLength=Nr;$t.toByteArray=Or;$t.fromByteArray=Mr;var ht=[],ot=[],Dr=typeof Uint8Array<"u"?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(It=0,je=ae.length;It0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function Nr(r){var t=He(r),e=t[0],n=t[1];return(e+n)*3/4-n}function vr(r,t,e){return(t+e)*3/4-e}function Or(r){var t,e=He(r),n=e[0],i=e[1],o=new Dr(vr(r,n,i)),s=0,f=i>0?n-4:n,h;for(h=0;h>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=ot[r.charCodeAt(h)]<<2|ot[r.charCodeAt(h+1)]>>4,o[s++]=t&255),i===1&&(t=ot[r.charCodeAt(h)]<<10|ot[r.charCodeAt(h+1)]<<4|ot[r.charCodeAt(h+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function Lr(r){return ht[r>>18&63]+ht[r>>12&63]+ht[r>>6&63]+ht[r&63]}function Ur(r,t,e){for(var n,i=[],o=t;of?f:s+o));return n===1?(t=r[e-1],i.push(ht[t>>2]+ht[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],i.push(ht[t>>10]+ht[t>>4&63]+ht[t<<2&63]+"=")),i.join("")}});var Ve=Yt(le=>{le.read=function(r,t,e,n,i){var o,s,f=i*8-n-1,h=(1<>1,p=-7,d=e?i-1:0,C=e?-1:1,v=r[t+d];for(d+=C,o=v&(1<<-p)-1,v>>=-p,p+=f;p>0;o=o*256+r[t+d],d+=C,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+r[t+d],d+=C,p-=8);if(o===0)o=1-_;else{if(o===h)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-_}return(v?-1:1)*s*Math.pow(2,o-n)};le.write=function(r,t,e,n,i,o){var s,f,h,_=o*8-i-1,p=(1<<_)-1,d=p>>1,C=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,j=n?1:-1,K=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+d>=1?t+=C/h:t+=C*Math.pow(2,1-d),t*h>=2&&(s++,h/=2),s+d>=p?(f=0,s=p):s+d>=1?(f=(t*h-1)*Math.pow(2,i),s=s+d):(f=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;r[e+v]=f&255,v+=j,f/=256,i-=8);for(s=s<0;r[e+v]=s&255,v+=j,s/=256,_-=8);r[e+v-j]|=K*128}});var cr=Yt(Nt=>{"use strict";var fe=Ge(),Ft=Ve(),$e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Nt.Buffer=l;Nt.SlowBuffer=$r;Nt.INSPECT_MAX_BYTES=50;var Wt=2147483647;Nt.kMaxLength=Wt;l.TYPED_ARRAY_SUPPORT=Zr();!l.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 Zr(){try{let r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function Tt(r){if(r>Wt)throw new RangeError('The value "'+r+'" is invalid for option "size"');let t=new Uint8Array(r);return Object.setPrototypeOf(t,l.prototype),t}function l(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Ee(r)}return Xe(r,t,e)}l.poolSize=8192;function Xe(r,t,e){if(typeof r=="string")return Hr(r,t);if(ArrayBuffer.isView(r))return Gr(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(pt(r,ArrayBuffer)||r&&pt(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pt(r,SharedArrayBuffer)||r&&pt(r.buffer,SharedArrayBuffer)))return pe(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return l.from(n,t,e);let i=Vr(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return l.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l.from=function(r,t,e){return Xe(r,t,e)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ye(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function jr(r,t,e){return Ye(r),r<=0?Tt(r):t!==void 0?typeof e=="string"?Tt(r).fill(t,e):Tt(r).fill(t):Tt(r)}l.alloc=function(r,t,e){return jr(r,t,e)};function Ee(r){return Ye(r),Tt(r<0?0:ye(r)|0)}l.allocUnsafe=function(r){return Ee(r)};l.allocUnsafeSlow=function(r){return Ee(r)};function Hr(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let e=Je(r,t)|0,n=Tt(e),i=n.write(r,t);return i!==e&&(n=n.slice(0,i)),n}function he(r){let t=r.length<0?0:ye(r.length)|0,e=Tt(t);for(let n=0;n=Wt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Wt.toString(16)+" bytes");return r|0}function $r(r){return+r!=r&&(r=0),l.alloc(+r)}l.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==l.prototype};l.compare=function(t,e){if(pt(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),pt(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let o=0,s=Math.min(n,i);oi.length?(l.isBuffer(s)||(s=l.from(s)),s.copy(i,o)):Uint8Array.prototype.set.call(i,s,o);else if(l.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function Je(r,t){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||pt(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return de(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return sr(r).length;default:if(i)return n?-1:de(r).length;t=(""+t).toLowerCase(),i=!0}}l.byteLength=Je;function Wr(r,t,e){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return rn(this,t,e);case"utf8":case"utf-8":return Qe(this,t,e);case"ascii":return tn(this,t,e);case"latin1":case"binary":return en(this,t,e);case"base64":return Kr(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nn(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function Bt(r,t,e){let n=r[t];r[t]=r[e],r[e]=n}l.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""};$e&&(l.prototype[$e]=l.prototype.inspect);l.prototype.compare=function(t,e,n,i,o){if(pt(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;let s=o-i,f=n-e,h=Math.min(s,f),_=this.slice(i,o),p=t.slice(e,n);for(let d=0;d2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,_e(e)&&(e=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof t=="string"&&(t=l.from(t,n)),l.isBuffer(t))return t.length===0?-1:We(r,t,e,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):We(r,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function We(r,t,e,n,i){let o=1,s=r.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;o=2,s/=2,f/=2,e/=2}function h(p,d){return o===1?p[d]:p.readUInt16BE(d*o)}let _;if(i){let p=-1;for(_=e;_s&&(e=s-f),_=e;_>=0;_--){let p=!0;for(let d=0;di&&(n=i)):n=i;let o=t.length;n>o/2&&(n=o/2);let s;for(s=0;s>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let s=!1;for(;;)switch(i){case"hex":return qr(this,t,e,n);case"utf8":case"utf-8":return zr(this,t,e,n);case"ascii":case"latin1":case"binary":return Xr(this,t,e,n);case"base64":return Yr(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jr(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Kr(r,t,e){return t===0&&e===r.length?fe.fromByteArray(r):fe.fromByteArray(r.slice(t,e))}function Qe(r,t,e){e=Math.min(r.length,e);let n=[],i=t;for(;i239?4:o>223?3:o>191?2:1;if(i+f<=e){let h,_,p,d;switch(f){case 1:o<128&&(s=o);break;case 2:h=r[i+1],(h&192)===128&&(d=(o&31)<<6|h&63,d>127&&(s=d));break;case 3:h=r[i+1],_=r[i+2],(h&192)===128&&(_&192)===128&&(d=(o&15)<<12|(h&63)<<6|_&63,d>2047&&(d<55296||d>57343)&&(s=d));break;case 4:h=r[i+1],_=r[i+2],p=r[i+3],(h&192)===128&&(_&192)===128&&(p&192)===128&&(d=(o&15)<<18|(h&63)<<12|(_&63)<<6|p&63,d>65535&&d<1114112&&(s=d))}}s===null?(s=65533,f=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=f}return Qr(n)}var qe=4096;function Qr(r){let t=r.length;if(t<=qe)return String.fromCharCode.apply(String,r);let e="",n=0;for(;nn)&&(e=n);let i="";for(let o=t;on&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),ee)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||Q(t,e,this.length);let i=this[t],o=1,s=0;for(;++s>>0,e=e>>>0,n||Q(t,e,this.length);let i=this[t+--e],o=1;for(;e>0&&(o*=256);)i+=this[t+--e]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t=t>>>0,e||Q(t,1,this.length),this[t]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||Q(t,2,this.length),this[t]|this[t+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||Q(t,2,this.length),this[t]<<8|this[t+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readBigUInt64LE=xt(function(t){t=t>>>0,Dt(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&Mt(t,this.length-8);let i=e+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,o=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(o)<>>0,Dt(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&Mt(t,this.length-8);let i=e*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],o=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<>>0,e=e>>>0,n||Q(t,e,this.length);let i=this[t],o=1,s=0;for(;++s=o&&(i-=Math.pow(2,8*e)),i};l.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||Q(t,e,this.length);let i=e,o=1,s=this[t+--i];for(;i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*e)),s};l.prototype.readInt8=function(t,e){return t=t>>>0,e||Q(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};l.prototype.readInt16LE=function(t,e){t=t>>>0,e||Q(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(t,e){t=t>>>0,e||Q(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readBigInt64LE=xt(function(t){t=t>>>0,Dt(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&Mt(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,Dt(t,"offset");let e=this[t],n=this[t+7];(e===void 0||n===void 0)&&Mt(t,this.length-8);let i=(e<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,e||Q(t,4,this.length),Ft.read(this,t,!0,23,4)};l.prototype.readFloatBE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),Ft.read(this,t,!1,23,4)};l.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||Q(t,8,this.length),Ft.read(this,t,!0,52,8)};l.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||Q(t,8,this.length),Ft.read(this,t,!1,52,8)};function rt(r,t,e,n,i,o){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;rt(this,t,e,n,f,0)}let o=1,s=0;for(this[e]=t&255;++s>>0,n=n>>>0,!i){let f=Math.pow(2,8*n)-1;rt(this,t,e,n,f,0)}let o=n-1,s=1;for(this[e+o]=t&255;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,1,255,0),this[e]=t&255,e+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function tr(r,t,e,n,i){or(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o,o=o>>8,r[e++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return r[e++]=s,s=s>>8,r[e++]=s,s=s>>8,r[e++]=s,s=s>>8,r[e++]=s,e}function er(r,t,e,n,i){or(t,n,i,r,e,7);let o=Number(t&BigInt(4294967295));r[e+7]=o,o=o>>8,r[e+6]=o,o=o>>8,r[e+5]=o,o=o>>8,r[e+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return r[e+3]=s,s=s>>8,r[e+2]=s,s=s>>8,r[e+1]=s,s=s>>8,r[e]=s,e+8}l.prototype.writeBigUInt64LE=xt(function(t,e=0){return tr(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeBigUInt64BE=xt(function(t,e=0){return er(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let h=Math.pow(2,8*n-1);rt(this,t,e,n,h-1,-h)}let o=0,s=1,f=0;for(this[e]=t&255;++o>0)-f&255;return e+n};l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){let h=Math.pow(2,8*n-1);rt(this,t,e,n,h-1,-h)}let o=n-1,s=1,f=0;for(this[e+o]=t&255;--o>=0&&(s*=256);)t<0&&f===0&&this[e+o+1]!==0&&(f=1),this[e+o]=(t/s>>0)-f&255;return e+n};l.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};l.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};l.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};l.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};l.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};l.prototype.writeBigInt64LE=xt(function(t,e=0){return tr(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});l.prototype.writeBigInt64BE=xt(function(t,e=0){return er(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function rr(r,t,e,n,i,o){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function nr(r,t,e,n,i){return t=+t,e=e>>>0,i||rr(r,t,e,4,34028234663852886e22,-34028234663852886e22),Ft.write(r,t,e,n,23,4),e+4}l.prototype.writeFloatLE=function(t,e,n){return nr(this,t,e,!0,n)};l.prototype.writeFloatBE=function(t,e,n){return nr(this,t,e,!1,n)};function ir(r,t,e,n,i){return t=+t,e=e>>>0,i||rr(r,t,e,8,17976931348623157e292,-17976931348623157e292),Ft.write(r,t,e,n,52,8),e+8}l.prototype.writeDoubleLE=function(t,e,n){return ir(this,t,e,!0,n)};l.prototype.writeDoubleBE=function(t,e,n){return ir(this,t,e,!1,n)};l.prototype.copy=function(t,e,n,i){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let o;if(typeof t=="number")for(o=e;o2**32?i=ze(String(e)):typeof e=="bigint"&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=ze(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function ze(r){let t="",e=r.length,n=r[0]==="-"?1:0;for(;e>=n+4;e-=3)t=`_${r.slice(e-3,e)}${t}`;return`${r.slice(0,e)}${t}`}function on(r,t,e){Dt(t,"offset"),(r[t]===void 0||r[t+e]===void 0)&&Mt(t,r.length-(e+1))}function or(r,t,e,n,i,o){if(r>e||r3?t===0||t===BigInt(0)?f=`>= 0${s} and < 2${s} ** ${(o+1)*8}${s}`:f=`>= -(2${s} ** ${(o+1)*8-1}${s}) and < 2 ** ${(o+1)*8-1}${s}`:f=`>= ${t}${s} and <= ${e}${s}`,new St.ERR_OUT_OF_RANGE("value",f,r)}on(n,i,o)}function Dt(r,t){if(typeof r!="number")throw new St.ERR_INVALID_ARG_TYPE(t,"number",r)}function Mt(r,t,e){throw Math.floor(r)!==r?(Dt(r,e),new St.ERR_OUT_OF_RANGE(e||"offset","an integer",r)):t<0?new St.ERR_BUFFER_OUT_OF_BOUNDS:new St.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,r)}var sn=/[^+/0-9A-Za-z-_]/g;function cn(r){if(r=r.split("=")[0],r=r.trim().replace(sn,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function de(r,t){t=t||1/0;let e,n=r.length,i=null,o=[];for(let s=0;s55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function un(r){let t=[];for(let e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function sr(r){return fe.toByteArray(cn(r))}function qt(r,t,e,n){let i;for(i=0;i=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function pt(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function _e(r){return r!==r}var ln=function(){let r="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){let n=e*16;for(let i=0;i<16;++i)t[n+i]=r[e]+r[i]}return t}();function xt(r){return typeof BigInt>"u"?fn:r}function fn(){throw new Error("BigInt not supported")}});var ft=globalThis;function nt(r){return(ft.__Zone_symbol_prefix||"__zone_symbol__")+r}function ar(){let r=ft.performance;function t(D){r&&r.mark&&r.mark(D)}function e(D,T){r&&r.measure&&r.measure(D,T)}t("Zone");let n=(()=>{class D{static{this.__symbol__=nt}static assertZonePatched(){if(ft.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let c=D.current;for(;c.parent;)c=c.parent;return c}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(c,u,x=!1){if(F.hasOwnProperty(c)){let R=ft[nt("forceDuplicateZoneCheck")]===!0;if(!x&&R)throw Error("Already loaded patch: "+c)}else if(!ft["__Zone_disable_"+c]){let R="Zone:"+c;t(R),F[c]=u(ft,D,A),e(R,R)}}get parent(){return this._parent}get name(){return this._name}constructor(c,u){this._parent=c,this._name=u?u.name||"unnamed":"",this._properties=u&&u.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,u)}get(c){let u=this.getZoneWith(c);if(u)return u._properties[c]}getZoneWith(c){let u=this;for(;u;){if(u._properties.hasOwnProperty(c))return u;u=u._parent}return null}fork(c){if(!c)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,c)}wrap(c,u){if(typeof c!="function")throw new Error("Expecting function got: "+c);let x=this._zoneDelegate.intercept(this,c,u),R=this;return function(){return R.runGuarded(x,this,arguments,u)}}run(c,u,x,R){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,c,u,x,R)}finally{b=b.parent}}runGuarded(c,u=null,x,R){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,c,u,x,R)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{b=b.parent}}runTask(c,u,x){if(c.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(c.zone||tt).name+"; Execution: "+this.name+")");let R=c,{type:z,data:{isPeriodic:U=!1,isRefreshable:wt=!1}={}}=c;if(c.state===X&&(z===W||z===w))return;let dt=c.state!=M;dt&&R._transitionTo(M,m);let Et=S;S=R,b={parent:b,zone:this};try{z==w&&c.data&&!U&&!wt&&(c.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,R,u,x)}catch(st){if(this._zoneDelegate.handleError(this,st))throw st}}finally{let st=c.state;if(st!==X&&st!==Y)if(z==W||U||wt&&st===I)dt&&R._transitionTo(m,M,I);else{let g=R._zoneDelegates;this._updateTaskCount(R,-1),dt&&R._transitionTo(X,M,X),wt&&(R._zoneDelegates=g)}b=b.parent,S=Et}}scheduleTask(c){if(c.zone&&c.zone!==this){let x=this;for(;x;){if(x===c.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${c.zone.name}`);x=x.parent}}c._transitionTo(I,X);let u=[];c._zoneDelegates=u,c._zone=this;try{c=this._zoneDelegate.scheduleTask(this,c)}catch(x){throw c._transitionTo(Y,I,X),this._zoneDelegate.handleError(this,x),x}return c._zoneDelegates===u&&this._updateTaskCount(c,1),c.state==I&&c._transitionTo(m,I),c}scheduleMicroTask(c,u,x,R){return this.scheduleTask(new s(G,c,u,x,R,void 0))}scheduleMacroTask(c,u,x,R,z){return this.scheduleTask(new s(w,c,u,x,R,z))}scheduleEventTask(c,u,x,R,z){return this.scheduleTask(new s(W,c,u,x,R,z))}cancelTask(c){if(c.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(c.zone||tt).name+"; Execution: "+this.name+")");if(!(c.state!==m&&c.state!==M)){c._transitionTo(H,m,M);try{this._zoneDelegate.cancelTask(this,c)}catch(u){throw c._transitionTo(Y,H),this._zoneDelegate.handleError(this,u),u}return this._updateTaskCount(c,-1),c._transitionTo(X,H),c.runCount=-1,c}}_updateTaskCount(c,u){let x=c._zoneDelegates;u==-1&&(c._zoneDelegates=null);for(let R=0;RD.hasTask(c,u),onScheduleTask:(D,T,c,u)=>D.scheduleTask(c,u),onInvokeTask:(D,T,c,u,x,R)=>D.invokeTask(c,u,x,R),onCancelTask:(D,T,c,u)=>D.cancelTask(c,u)};class o{get zone(){return this._zone}constructor(T,c,u){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=T,this._parentDelegate=c,this._forkZS=u&&(u&&u.onFork?u:c._forkZS),this._forkDlgt=u&&(u.onFork?c:c._forkDlgt),this._forkCurrZone=u&&(u.onFork?this._zone:c._forkCurrZone),this._interceptZS=u&&(u.onIntercept?u:c._interceptZS),this._interceptDlgt=u&&(u.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=u&&(u.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=u&&(u.onInvoke?u:c._invokeZS),this._invokeDlgt=u&&(u.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=u&&(u.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=u&&(u.onHandleError?u:c._handleErrorZS),this._handleErrorDlgt=u&&(u.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=u&&(u.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=u&&(u.onScheduleTask?u:c._scheduleTaskZS),this._scheduleTaskDlgt=u&&(u.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=u&&(u.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=u&&(u.onInvokeTask?u:c._invokeTaskZS),this._invokeTaskDlgt=u&&(u.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=u&&(u.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=u&&(u.onCancelTask?u:c._cancelTaskZS),this._cancelTaskDlgt=u&&(u.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=u&&(u.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let x=u&&u.onHasTask,R=c&&c._hasTaskZS;(x||R)&&(this._hasTaskZS=x?u:i,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,u.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),u.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),u.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(T,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,c):new n(T,c)}intercept(T,c,u){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,c,u):c}invoke(T,c,u,x,R){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,c,u,x,R):c.apply(u,x)}handleError(T,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,c):!0}scheduleTask(T,c){let u=c;if(this._scheduleTaskZS)this._hasTaskZS&&u._zoneDelegates.push(this._hasTaskDlgtOwner),u=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,c),u||(u=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==G)j(c);else throw new Error("Task is missing scheduleFn.");return u}invokeTask(T,c,u,x){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,c,u,x):c.callback.apply(u,x)}cancelTask(T,c){let u;if(this._cancelTaskZS)u=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");u=c.cancelFn(c)}return u}hasTask(T,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,c)}catch(u){this.handleError(T,u)}}_updateTaskCount(T,c){let u=this._taskCounts,x=u[T],R=u[T]=x+c;if(R<0)throw new Error("More tasks executed then were scheduled.");if(x==0||R==0){let z={microTask:u.microTask>0,macroTask:u.macroTask>0,eventTask:u.eventTask>0,change:T};this.hasTask(this._zone,z)}}}class s{constructor(T,c,u,x,R,z){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=c,this.data=x,this.scheduleFn=R,this.cancelFn=z,!u)throw new Error("callback is not defined");this.callback=u;let U=this;T===W&&x&&x.useG?this.invoke=s.invokeTask:this.invoke=function(){return s.invokeTask.call(ft,U,this,arguments)}}static invokeTask(T,c,u){T||(T=this),et++;try{return T.runCount++,T.zone.runTask(T,c,u)}finally{et==1&&K(),et--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,I)}_transitionTo(T,c,u){if(this._state===c||this._state===u)this._state=T,T==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${c}'${u?" or '"+u+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let f=nt("setTimeout"),h=nt("Promise"),_=nt("then"),p=[],d=!1,C;function v(D){if(C||ft[h]&&(C=ft[h].resolve(0)),C){let T=C[_];T||(T=C.then),T.call(C,D)}else ft[f](D,0)}function j(D){et===0&&p.length===0&&v(K),D&&p.push(D)}function K(){if(!d){for(d=!0;p.length;){let D=p;p=[];for(let T=0;Tb,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:j,showUncaughtError:()=>!n[nt("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:v},b={parent:null,zone:new n(null,null)},S=null,et=0;function q(){}return e("Zone","Zone"),n}function lr(){let r=globalThis,t=r[nt("forceDuplicateZoneCheck")]===!0;if(r.Zone&&(t||typeof r.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return r.Zone??=ar(),r.Zone}var Lt=Object.getOwnPropertyDescriptor,ee=Object.defineProperty,re=Object.getPrototypeOf,fr=Object.create,hr=Array.prototype.slice,ne="addEventListener",ie="removeEventListener",Jt=nt(ne),Kt=nt(ie),yt="true",gt="false",Ut=nt("");function oe(r,t){return Zone.current.wrap(r,t)}function se(r,t,e,n,i){return Zone.current.scheduleMacroTask(r,t,e,n,i)}var Z=nt,Gt=typeof window<"u",Pt=Gt?window:void 0,J=Gt&&Pt||globalThis,pr="removeAttribute";function ce(r,t){for(let e=r.length-1;e>=0;e--)typeof r[e]=="function"&&(r[e]=oe(r[e],t+"_"+e));return r}function dr(r,t){let e=r.constructor.name;for(let n=0;n{let h=function(){return f.apply(this,ce(arguments,e+"."+i))};return mt(h,f),h})(o)}}}function Pe(r){return r?r.writable===!1?!1:!(typeof r.get=="function"&&typeof r.set>"u"):!0}var Se=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Vt=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",ue=!Vt&&!Se&&!!(Gt&&Pt.HTMLElement),Fe=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!Se&&!!(Gt&&Pt.HTMLElement),Ht={},Er=Z("enable_beforeunload"),Ie=function(r){if(r=r||J.event,!r)return;let t=Ht[r.type];t||(t=Ht[r.type]=Z("ON_PROPERTY"+r.type));let e=this||r.target||J,n=e[t],i;if(ue&&e===Pt&&r.type==="error"){let o=r;i=n&&n.call(this,o.message,o.filename,o.lineno,o.colno,o.error),i===!0&&r.preventDefault()}else i=n&&n.apply(this,arguments),r.type==="beforeunload"&&J[Er]&&typeof i=="string"?r.returnValue=i:i!=null&&!i&&r.preventDefault();return i};function Be(r,t,e){let n=Lt(r,t);if(!n&&e&&Lt(e,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let i=Z("on"+t+"patched");if(r.hasOwnProperty(i)&&r[i])return;delete n.writable,delete n.value;let o=n.get,s=n.set,f=t.slice(2),h=Ht[f];h||(h=Ht[f]=Z("ON_PROPERTY"+f)),n.set=function(_){let p=this;if(!p&&r===J&&(p=J),!p)return;typeof p[h]=="function"&&p.removeEventListener(f,Ie),s&&s.call(p,null),p[h]=_,typeof _=="function"&&p.addEventListener(f,Ie,!1)},n.get=function(){let _=this;if(!_&&r===J&&(_=J),!_)return null;let p=_[h];if(p)return p;if(o){let d=o.call(this);if(d)return n.set.call(this,d),typeof _[pr]=="function"&&_.removeAttribute(t),d}return null},ee(r,t,n),r[i]=!0}function De(r,t,e){if(t)for(let n=0;nfunction(s,f){let h=e(s,f);return h.cbIdx>=0&&typeof f[h.cbIdx]=="function"?se(h.name,f[h.cbIdx],h,i):o.apply(s,f)})}function mt(r,t){r[Z("OriginalDelegate")]=t}var be=!1,Qt=!1;function gr(){try{let r=Pt.navigator.userAgent;if(r.indexOf("MSIE ")!==-1||r.indexOf("Trident/")!==-1)return!0}catch{}return!1}function _r(){if(be)return Qt;be=!0;try{let r=Pt.navigator.userAgent;(r.indexOf("MSIE ")!==-1||r.indexOf("Trident/")!==-1||r.indexOf("Edge/")!==-1)&&(Qt=!0)}catch{}return Qt}function Re(r){return typeof r=="function"}function Ce(r){return typeof r=="number"}var At=!1;if(typeof window<"u")try{let r=Object.defineProperty({},"passive",{get:function(){At=!0}});window.addEventListener("test",r,r),window.removeEventListener("test",r,r)}catch{At=!1}var mr={useG:!0},it={},Ne={},ve=new RegExp("^"+Ut+"(\\w+)(true|false)$"),Oe=Z("propagationStopped");function Le(r,t){let e=(t?t(r):r)+gt,n=(t?t(r):r)+yt,i=Ut+e,o=Ut+n;it[r]={},it[r][gt]=i,it[r][yt]=o}function Tr(r,t,e,n){let i=n&&n.add||ne,o=n&&n.rm||ie,s=n&&n.listeners||"eventListeners",f=n&&n.rmAll||"removeAllListeners",h=Z(i),_="."+i+":",p="prependListener",d="."+p+":",C=function(I,m,M){if(I.isRemoved)return;let H=I.callback;typeof H=="object"&&H.handleEvent&&(I.callback=w=>H.handleEvent(w),I.originalDelegate=H);let Y;try{I.invoke(I,m,[M])}catch(w){Y=w}let G=I.options;if(G&&typeof G=="object"&&G.once){let w=I.originalDelegate?I.originalDelegate:I.callback;m[o].call(m,M.type,w,G)}return Y};function v(I,m,M){if(m=m||r.event,!m)return;let H=I||m.target||r,Y=H[it[m.type][M?yt:gt]];if(Y){let G=[];if(Y.length===1){let w=C(Y[0],H,m);w&&G.push(w)}else{let w=Y.slice();for(let W=0;W{throw W})}}}let j=function(I){return v(this,I,!1)},K=function(I){return v(this,I,!0)};function tt(I,m){if(!I)return!1;let M=!0;m&&m.useG!==void 0&&(M=m.useG);let H=m&&m.vh,Y=!0;m&&m.chkDup!==void 0&&(Y=m.chkDup);let G=!1;m&&m.rt!==void 0&&(G=m.rt);let w=I;for(;w&&!w.hasOwnProperty(i);)w=re(w);if(!w&&I[i]&&(w=I),!w||w[h])return!1;let W=m&&m.eventNameToString,F={},A=w[h]=w[i],b=w[Z(o)]=w[o],S=w[Z(s)]=w[s],et=w[Z(f)]=w[f],q;m&&m.prepend&&(q=w[Z(m.prepend)]=w[m.prepend]);function D(a,y){return!At&&typeof a=="object"&&a?!!a.capture:!At||!y?a:typeof a=="boolean"?{capture:a,passive:!0}:a?typeof a=="object"&&a.passive!==!1?{...a,passive:!0}:a:{passive:!0}}let T=function(a){if(!F.isExisting)return A.call(F.target,F.eventName,F.capture?K:j,F.options)},c=function(a){if(!a.isRemoved){let y=it[a.eventName],B;y&&(B=y[a.capture?yt:gt]);let P=B&&a.target[B];if(P){for(let k=0;kct.zone.cancelTask(ct);a.call(bt,"abort",lt,{once:!0}),ct.removeAbortListener=()=>bt.removeEventListener("abort",lt)}if(F.target=null,vt&&(vt.taskData=null),me&&(F.options.once=!0),!At&&typeof ct.options=="boolean"||(ct.options=at),ct.target=O,ct.capture=zt,ct.eventName=L,$&&(ct.originalDelegate=V),N?Rt.unshift(ct):Rt.push(ct),k)return O}};return w[i]=E(A,_,z,U,G),q&&(w[p]=E(q,d,x,U,G,!0)),w[o]=function(){let a=this||r,y=arguments[0];m&&m.transferEventName&&(y=m.transferEventName(y));let B=arguments[2],P=B?typeof B=="boolean"?!0:B.capture:!1,k=arguments[1];if(!k)return b.apply(this,arguments);if(H&&!H(b,k,a,arguments))return;let N=it[y],O;N&&(O=N[P?yt:gt]);let L=O&&a[O];if(L)for(let V=0;Vfunction(i,o){i[Oe]=!0,n&&n.apply(i,o)})}function kr(r,t){t.patchMethod(r,"queueMicrotask",e=>function(n,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var jt=Z("zoneTask");function Ct(r,t,e,n){let i=null,o=null;t+=n,e+=n;let s={};function f(_){let p=_.data;p.args[0]=function(){return _.invoke.apply(this,arguments)};let d=i.apply(r,p.args);return Ce(d)?p.handleId=d:(p.handle=d,p.isRefreshable=Re(d.refresh)),_}function h(_){let{handle:p,handleId:d}=_.data;return o.call(r,p??d)}i=_t(r,t,_=>function(p,d){if(Re(d[0])){let C={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?d[1]||0:void 0,args:d},v=d[0];d[0]=function(){try{return v.apply(this,arguments)}finally{let{handle:M,handleId:H,isPeriodic:Y,isRefreshable:G}=C;!Y&&!G&&(H?delete s[H]:M&&(M[jt]=null))}};let j=se(t,d[0],C,f,h);if(!j)return j;let{handleId:K,handle:tt,isRefreshable:X,isPeriodic:I}=j.data;if(K)s[K]=j;else if(tt&&(tt[jt]=j,X&&!I)){let m=tt.refresh;tt.refresh=function(){let{zone:M,state:H}=j;return H==="notScheduled"?(j._state="scheduled",M._updateTaskCount(j,1)):H==="running"&&(j._state="scheduling"),m.call(this)}}return tt??K??j}else return _.apply(r,d)}),o=_t(r,e,_=>function(p,d){let C=d[0],v;Ce(C)?(v=s[C],delete s[C]):(v=C?.[jt],v?C[jt]=null:v=C),v?.type?v.cancelFn&&v.zone.cancelTask(v):_.apply(r,d)})}function xr(r,t){let{isBrowser:e,isMix:n}=t.getGlobalObjects();if(!e&&!n||!r.customElements||!("customElements"in r))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];t.patchCallbacks(t,r.customElements,"customElements","define",i)}function Ir(r,t){if(Zone[t.symbol("patchEventTarget")])return;let{eventNames:e,zoneSymbolEventNames:n,TRUE_STR:i,FALSE_STR:o,ZONE_SYMBOL_PREFIX:s}=t.getGlobalObjects();for(let h=0;ho.target===r);if(!n||n.length===0)return t;let i=n[0].ignoreProperties;return t.filter(o=>i.indexOf(o)===-1)}function Ae(r,t,e,n){if(!r)return;let i=Me(r,t,e);De(r,i,n)}function te(r){return Object.getOwnPropertyNames(r).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}function br(r,t){if(Vt&&!Fe||Zone[r.symbol("patchEvents")])return;let e=t.__Zone_ignore_on_properties,n=[];if(ue){let i=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let o=gr()?[{target:i,ignoreProperties:["error"]}]:[];Ae(i,te(i),e&&e.concat(o),re(i))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let e=t[r.__symbol__("legacyPatch")];e&&e()}),r.__load_patch("timers",t=>{let e="set",n="clear";Ct(t,e,n,"Timeout"),Ct(t,e,n,"Interval"),Ct(t,e,n,"Immediate")}),r.__load_patch("requestAnimationFrame",t=>{Ct(t,"request","cancel","AnimationFrame"),Ct(t,"mozRequest","mozCancel","AnimationFrame"),Ct(t,"webkitRequest","webkitCancel","AnimationFrame")}),r.__load_patch("blocking",(t,e)=>{let n=["alert","prompt","confirm"];for(let i=0;ifunction(_,p){return e.current.run(s,t,p,h)})}}),r.__load_patch("EventTarget",(t,e,n)=>{Br(t,n),Ir(t,n);let i=t.XMLHttpRequestEventTarget;i&&i.prototype&&n.patchEventTarget(t,n,[i.prototype])}),r.__load_patch("MutationObserver",(t,e,n)=>{Ot("MutationObserver"),Ot("WebKitMutationObserver")}),r.__load_patch("IntersectionObserver",(t,e,n)=>{Ot("IntersectionObserver")}),r.__load_patch("FileReader",(t,e,n)=>{Ot("FileReader")}),r.__load_patch("on_property",(t,e,n)=>{br(n,t)}),r.__load_patch("customElements",(t,e,n)=>{xr(t,n)}),r.__load_patch("XHR",(t,e)=>{_(t);let n=Z("xhrTask"),i=Z("xhrSync"),o=Z("xhrListener"),s=Z("xhrScheduled"),f=Z("xhrURL"),h=Z("xhrErrorBeforeScheduled");function _(p){let d=p.XMLHttpRequest;if(!d)return;let C=d.prototype;function v(A){return A[n]}let j=C[Jt],K=C[Kt];if(!j){let A=p.XMLHttpRequestEventTarget;if(A){let b=A.prototype;j=b[Jt],K=b[Kt]}}let tt="readystatechange",X="scheduled";function I(A){let b=A.data,S=b.target;S[s]=!1,S[h]=!1;let et=S[o];j||(j=S[Jt],K=S[Kt]),et&&K.call(S,tt,et);let q=S[o]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[s]&&A.state===X){let T=S[e.__symbol__("loadfalse")];if(S.status!==0&&T&&T.length>0){let c=A.invoke;A.invoke=function(){let u=S[e.__symbol__("loadfalse")];for(let x=0;xfunction(A,b){return A[i]=b[2]==!1,A[f]=b[1],H.apply(A,b)}),Y="XMLHttpRequest.send",G=Z("fetchTaskAborting"),w=Z("fetchTaskScheduling"),W=_t(C,"send",()=>function(A,b){if(e.current[w]===!0||A[i])return W.apply(A,b);{let S={target:A,url:A[f],isPeriodic:!1,args:b,aborted:!1},et=se(Y,m,S,I,M);A&&A[h]===!0&&!S.aborted&&et.state===X&&et.invoke()}}),F=_t(C,"abort",()=>function(A,b){let S=v(A);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(e.current[G]===!0)return F.apply(A,b)})}}),r.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&dr(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),r.__load_patch("PromiseRejectionEvent",(t,e)=>{function n(i){return function(o){Ue(t,i).forEach(f=>{let h=t.PromiseRejectionEvent;if(h){let _=new h(i,{promise:o.promise,reason:o.rejection});f.invoke(_)}})}}t.PromiseRejectionEvent&&(e[Z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[Z("rejectionHandledHandler")]=n("rejectionhandled"))}),r.__load_patch("queueMicrotask",(t,e,n)=>{kr(t,n)})}function Cr(r){r.__load_patch("ZoneAwarePromise",(t,e,n)=>{let i=Object.getOwnPropertyDescriptor,o=Object.defineProperty;function s(g){if(g&&g.toString===Object.prototype.toString){let E=g.constructor&&g.constructor.name;return(E||"")+": "+JSON.stringify(g)}return g?g.toString():Object.prototype.toString.call(g)}let f=n.symbol,h=[],_=t[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,p=f("Promise"),d=f("then"),C="__creationTrace__";n.onUnhandledError=g=>{if(n.showUncaughtError()){let E=g&&g.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",g.zone.name,"; Task:",g.task&&g.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(g)}},n.microtaskDrainDone=()=>{for(;h.length;){let g=h.shift();try{g.zone.runGuarded(()=>{throw g.throwOriginal?g.rejection:g})}catch(E){j(E)}}};let v=f("unhandledPromiseRejectionHandler");function j(g){n.onUnhandledError(g);try{let E=e[v];typeof E=="function"&&E.call(this,g)}catch{}}function K(g){return g&&g.then}function tt(g){return g}function X(g){return U.reject(g)}let I=f("state"),m=f("value"),M=f("finally"),H=f("parentPromiseValue"),Y=f("parentPromiseState"),G="Promise.then",w=null,W=!0,F=!1,A=0;function b(g,E){return a=>{try{D(g,E,a)}catch(y){D(g,!1,y)}}}let S=function(){let g=!1;return function(a){return function(){g||(g=!0,a.apply(null,arguments))}}},et="Promise resolved with itself",q=f("currentTaskTrace");function D(g,E,a){let y=S();if(g===a)throw new TypeError(et);if(g[I]===w){let B=null;try{(typeof a=="object"||typeof a=="function")&&(B=a&&a.then)}catch(P){return y(()=>{D(g,!1,P)})(),g}if(E!==F&&a instanceof U&&a.hasOwnProperty(I)&&a.hasOwnProperty(m)&&a[I]!==w)c(a),D(g,a[I],a[m]);else if(E!==F&&typeof B=="function")try{B.call(a,y(b(g,E)),y(b(g,!1)))}catch(P){y(()=>{D(g,!1,P)})()}else{g[I]=E;let P=g[m];if(g[m]=a,g[M]===M&&E===W&&(g[I]=g[Y],g[m]=g[H]),E===F&&a instanceof Error){let k=e.currentTask&&e.currentTask.data&&e.currentTask.data[C];k&&o(a,q,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k{try{let N=g[m],O=!!a&&M===a[M];O&&(a[H]=N,a[Y]=P);let L=E.run(k,void 0,O&&k!==X&&k!==tt?[]:[N]);D(a,!0,L)}catch(N){D(a,!1,N)}},a)}let x="function ZoneAwarePromise() { [native code] }",R=function(){},z=t.AggregateError;class U{static toString(){return x}static resolve(E){return E instanceof U?E:D(new this(null),W,E)}static reject(E){return D(new this(null),F,E)}static withResolvers(){let E={};return E.promise=new U((a,y)=>{E.resolve=a,E.reject=y}),E}static any(E){if(!E||typeof E[Symbol.iterator]!="function")return Promise.reject(new z([],"All promises were rejected"));let a=[],y=0;try{for(let k of E)y++,a.push(U.resolve(k))}catch{return Promise.reject(new z([],"All promises were rejected"))}if(y===0)return Promise.reject(new z([],"All promises were rejected"));let B=!1,P=[];return new U((k,N)=>{for(let O=0;O{B||(B=!0,k(L))},L=>{P.push(L),y--,y===0&&(B=!0,N(new z(P,"All promises were rejected")))})})}static race(E){let a,y,B=new this((N,O)=>{a=N,y=O});function P(N){a(N)}function k(N){y(N)}for(let N of E)K(N)||(N=this.resolve(N)),N.then(P,k);return B}static all(E){return U.allWithCallback(E)}static allSettled(E){return(this&&this.prototype instanceof U?this:U).allWithCallback(E,{thenCallback:y=>({status:"fulfilled",value:y}),errorCallback:y=>({status:"rejected",reason:y})})}static allWithCallback(E,a){let y,B,P=new this((L,V)=>{y=L,B=V}),k=2,N=0,O=[];for(let L of E){K(L)||(L=this.resolve(L));let V=N;try{L.then($=>{O[V]=a?a.thenCallback($):$,k--,k===0&&y(O)},$=>{a?(O[V]=a.errorCallback($),k--,k===0&&y(O)):B($)})}catch($){B($)}k++,N++}return k-=2,k===0&&y(O),P}constructor(E){let a=this;if(!(a instanceof U))throw new Error("Must be an instanceof Promise.");a[I]=w,a[m]=[];try{let y=S();E&&E(y(b(a,W)),y(b(a,F)))}catch(y){D(a,!1,y)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return U}then(E,a){let y=this.constructor?.[Symbol.species];(!y||typeof y!="function")&&(y=this.constructor||U);let B=new y(R),P=e.current;return this[I]==w?this[m].push(P,B,E,a):u(this,P,B,E,a),B}catch(E){return this.then(null,E)}finally(E){let a=this.constructor?.[Symbol.species];(!a||typeof a!="function")&&(a=U);let y=new a(R);y[M]=M;let B=e.current;return this[I]==w?this[m].push(B,y,E,E):u(this,B,y,E,E),y}}U.resolve=U.resolve,U.reject=U.reject,U.race=U.race,U.all=U.all;let wt=t[p]=t.Promise;t.Promise=U;let dt=f("thenPatched");function Et(g){let E=g.prototype,a=i(E,"then");if(a&&(a.writable===!1||!a.configurable))return;let y=E.then;E[d]=y,g.prototype.then=function(B,P){return new U((N,O)=>{y.call(this,N,O)}).then(B,P)},g[dt]=!0}n.patchThen=Et;function st(g){return function(E,a){let y=g.apply(E,a);if(y instanceof U)return y;let B=y.constructor;return B[dt]||Et(B),y}}return wt&&(Et(wt),_t(t,"fetch",g=>st(g))),Promise[e.__symbol__("uncaughtPromiseErrors")]=h,U})}function Ar(r){r.__load_patch("toString",t=>{let e=Function.prototype.toString,n=Z("OriginalDelegate"),i=Z("Promise"),o=Z("Error"),s=function(){if(typeof this=="function"){let p=this[n];if(p)return typeof p=="function"?e.call(p):Object.prototype.toString.call(p);if(this===Promise){let d=t[i];if(d)return e.call(d)}if(this===Error){let d=t[o];if(d)return e.call(d)}}return e.call(this)};s[n]=e,Function.prototype.toString=s;let f=Object.prototype.toString,h="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?h:f.call(this)}})}function Pr(r,t,e,n,i){let o=Zone.__symbol__(n);if(t[o])return;let s=t[o]=t[n];t[n]=function(f,h,_){return h&&h.prototype&&i.forEach(function(p){let d=`${e}.${n}::`+p,C=h.prototype;try{if(C.hasOwnProperty(p)){let v=r.ObjectGetOwnPropertyDescriptor(C,p);v&&v.value?(v.value=r.wrapWithCurrentZone(v.value,d),r._redefineProperty(h.prototype,p,v)):C[p]&&(C[p]=r.wrapWithCurrentZone(C[p],d))}else C[p]&&(C[p]=r.wrapWithCurrentZone(C[p],d))}catch{}}),s.call(t,f,h,_)},r.attachOriginToPatched(t[n],s)}function Sr(r){r.__load_patch("util",(t,e,n)=>{let i=te(t);n.patchOnProperties=De,n.patchMethod=_t,n.bindArguments=ce,n.patchMacroTask=yr;let o=e.__symbol__("BLACK_LISTED_EVENTS"),s=e.__symbol__("UNPATCHED_EVENTS");t[s]&&(t[o]=t[s]),t[o]&&(e[o]=e[s]=t[o]),n.patchEventPrototype=wr,n.patchEventTarget=Tr,n.isIEOrEdge=_r,n.ObjectDefineProperty=ee,n.ObjectGetOwnPropertyDescriptor=Lt,n.ObjectCreate=fr,n.ArraySlice=hr,n.patchClass=Ot,n.wrapWithCurrentZone=oe,n.filterProperties=Me,n.attachOriginToPatched=mt,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Pr,n.getGlobalObjects=()=>({globalSources:Ne,zoneSymbolEventNames:it,eventNames:i,isBrowser:ue,isMix:Fe,isNode:Vt,TRUE_STR:yt,FALSE_STR:gt,ZONE_SYMBOL_PREFIX:Ut,ADD_EVENT_LISTENER_STR:ne,REMOVE_EVENT_LISTENER_STR:ie})})}function Fr(r){Cr(r),Ar(r),Sr(r)}var Ze=lr();Fr(Ze);Rr(Ze);window.global=window;global.Buffer=global.Buffer||cr().Buffer;