blockcore-notes/polyfills.2c9700809478787f.js
2022-12-21 18:15:45 +00:00

1 line
61 KiB
JavaScript

(self.webpackChunkblockcore_notes=self.webpackChunkblockcore_notes||[]).push([[429],{7435:(xt,nt,X)=>{"use strict";var R=X(3172);window.global=window,global.Buffer=R.Buffer,global.process={env:{DEBUG:void 0},version:"",nextTick:X(9426)}},5343:(xt,nt)=>{"use strict";nt.byteLength=function l(P){var U=A(P),yt=U[1];return 3*(U[0]+yt)/4-yt},nt.toByteArray=function Et(P){var U,rt,N=A(P),yt=N[0],ht=N[1],ft=new lt(function ot(P,U,N){return 3*(U+N)/4-N}(0,yt,ht)),_t=0,Pt=ht>0?yt-4:yt;for(rt=0;rt<Pt;rt+=4)U=R[P.charCodeAt(rt)]<<18|R[P.charCodeAt(rt+1)]<<12|R[P.charCodeAt(rt+2)]<<6|R[P.charCodeAt(rt+3)],ft[_t++]=U>>16&255,ft[_t++]=U>>8&255,ft[_t++]=255&U;return 2===ht&&(U=R[P.charCodeAt(rt)]<<2|R[P.charCodeAt(rt+1)]>>4,ft[_t++]=255&U),1===ht&&(U=R[P.charCodeAt(rt)]<<10|R[P.charCodeAt(rt+1)]<<4|R[P.charCodeAt(rt+2)]>>2,ft[_t++]=U>>8&255,ft[_t++]=255&U),ft},nt.fromByteArray=function j(P){for(var U,N=P.length,yt=N%3,ht=[],_t=0,Pt=N-yt;_t<Pt;_t+=16383)ht.push(ct(P,_t,_t+16383>Pt?Pt:_t+16383));return 1===yt?ht.push(X[(U=P[N-1])>>2]+X[U<<4&63]+"=="):2===yt&&ht.push(X[(U=(P[N-2]<<8)+P[N-1])>>10]+X[U>>4&63]+X[U<<2&63]+"="),ht.join("")};for(var X=[],R=[],lt=typeof Uint8Array<"u"?Uint8Array:Array,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z=0,J=Y.length;Z<J;++Z)X[Z]=Y[Z],R[Y.charCodeAt(Z)]=Z;function A(P){var U=P.length;if(U%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var N=P.indexOf("=");return-1===N&&(N=U),[N,N===U?0:4-N%4]}function st(P){return X[P>>18&63]+X[P>>12&63]+X[P>>6&63]+X[63&P]}function ct(P,U,N){for(var ht=[],ft=U;ft<N;ft+=3)ht.push(st((P[ft]<<16&16711680)+(P[ft+1]<<8&65280)+(255&P[ft+2])));return ht.join("")}R["-".charCodeAt(0)]=62,R["_".charCodeAt(0)]=63},3172:(xt,nt,X)=>{"use strict";const R=X(5343),lt=X(8461),Y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;nt.Buffer=l,nt.SlowBuffer=function ft(n){return+n!=n&&(n=0),l.alloc(+n)},nt.INSPECT_MAX_BYTES=50;const Z=2147483647;function A(n){if(n>Z)throw new RangeError('The value "'+n+'" is invalid for option "size"');const t=new Uint8Array(n);return Object.setPrototypeOf(t,l.prototype),t}function l(n,t,e){if("number"==typeof n){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return ct(n)}return ot(n,t,e)}function ot(n,t,e){if("string"==typeof n)return function j(n,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=0|_t(n,t);let r=A(e);const i=r.write(n,t);return i!==e&&(r=r.slice(0,i)),r}(n,t);if(ArrayBuffer.isView(n))return function U(n){if(u(n,Uint8Array)){const t=new Uint8Array(n);return N(t.buffer,t.byteOffset,t.byteLength)}return P(n)}(n);if(null==n)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(u(n,ArrayBuffer)||n&&u(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(u(n,SharedArrayBuffer)||n&&u(n.buffer,SharedArrayBuffer)))return N(n,t,e);if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=n.valueOf&&n.valueOf();if(null!=r&&r!==n)return l.from(r,t,e);const i=function yt(n){if(l.isBuffer(n)){const t=0|ht(n.length),e=A(t);return 0===e.length||n.copy(e,0,0,t),e}return void 0!==n.length?"number"!=typeof n.length||p(n.length)?A(0):P(n):"Buffer"===n.type&&Array.isArray(n.data)?P(n.data):void 0}(n);if(i)return i;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return l.from(n[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 n)}function Et(n){if("number"!=typeof n)throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function ct(n){return Et(n),A(n<0?0:0|ht(n))}function P(n){const t=n.length<0?0:0|ht(n.length),e=A(t);for(let r=0;r<t;r+=1)e[r]=255&n[r];return e}function N(n,t,e){if(t<0||n.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<t+(e||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===e?new Uint8Array(n):void 0===e?new Uint8Array(n,t):new Uint8Array(n,t,e),Object.setPrototypeOf(r,l.prototype),r}function ht(n){if(n>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return 0|n}function _t(n,t){if(l.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||u(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const e=n.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===e)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return At(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return oe(n).length;default:if(i)return r?-1:At(n).length;t=(""+t).toLowerCase(),i=!0}}function Pt(n,t,e){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0)||(e>>>=0)<=(t>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return ce(this,t,e);case"utf8":case"utf-8":return bt(this,t,e);case"ascii":return re(this,t,e);case"latin1":case"binary":return Wt(this,t,e);case"base64":return Ut(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ue(this,t,e);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),r=!0}}function rt(n,t,e){const r=n[t];n[t]=n[e],n[e]=r}function Zt(n,t,e,r,i){if(0===n.length)return-1;if("string"==typeof e?(r=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),p(e=+e)&&(e=i?0:n.length-1),e<0&&(e=n.length+e),e>=n.length){if(i)return-1;e=n.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:$t(n,t,e,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(n,t,e):Uint8Array.prototype.lastIndexOf.call(n,t,e):$t(n,[t],e,r,i);throw new TypeError("val must be string, number or Buffer")}function $t(n,t,e,r,i){let C,c=1,a=n.length,T=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(n.length<2||t.length<2)return-1;c=2,a/=2,T/=2,e/=2}function D(G,S){return 1===c?G[S]:G.readUInt16BE(S*c)}if(i){let G=-1;for(C=e;C<a;C++)if(D(n,C)===D(t,-1===G?0:C-G)){if(-1===G&&(G=C),C-G+1===T)return G*c}else-1!==G&&(C-=C-G),G=-1}else for(e+T>a&&(e=a-T),C=e;C>=0;C--){let G=!0;for(let S=0;S<T;S++)if(D(n,C+S)!==D(t,S)){G=!1;break}if(G)return C}return-1}function jt(n,t,e,r){e=Number(e)||0;const i=n.length-e;r?(r=Number(r))>i&&(r=i):r=i;const c=t.length;let a;for(r>c/2&&(r=c/2),a=0;a<r;++a){const T=parseInt(t.substr(2*a,2),16);if(p(T))return a;n[e+a]=T}return a}function Qt(n,t,e,r){return o(At(t,n.length-e),n,e,r)}function te(n,t,e,r){return o(function fe(n){const t=[];for(let e=0;e<n.length;++e)t.push(255&n.charCodeAt(e));return t}(t),n,e,r)}function ee(n,t,e,r){return o(oe(t),n,e,r)}function Bt(n,t,e,r){return o(function he(n,t){let e,r,i;const c=[];for(let a=0;a<n.length&&!((t-=2)<0);++a)e=n.charCodeAt(a),r=e>>8,i=e%256,c.push(i),c.push(r);return c}(t,n.length-e),n,e,r)}function Ut(n,t,e){return R.fromByteArray(0===t&&e===n.length?n:n.slice(t,e))}function bt(n,t,e){e=Math.min(n.length,e);const r=[];let i=t;for(;i<e;){const c=n[i];let a=null,T=c>239?4:c>223?3:c>191?2:1;if(i+T<=e){let D,C,G,S;switch(T){case 1:c<128&&(a=c);break;case 2:D=n[i+1],128==(192&D)&&(S=(31&c)<<6|63&D,S>127&&(a=S));break;case 3:D=n[i+1],C=n[i+2],128==(192&D)&&128==(192&C)&&(S=(15&c)<<12|(63&D)<<6|63&C,S>2047&&(S<55296||S>57343)&&(a=S));break;case 4:D=n[i+1],C=n[i+2],G=n[i+3],128==(192&D)&&128==(192&C)&&128==(192&G)&&(S=(15&c)<<18|(63&D)<<12|(63&C)<<6|63&G,S>65535&&S<1114112&&(a=S))}}null===a?(a=65533,T=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=T}return function Rt(n){const t=n.length;if(t<=4096)return String.fromCharCode.apply(String,n);let e="",r=0;for(;r<t;)e+=String.fromCharCode.apply(String,n.slice(r,r+=4096));return e}(r)}function re(n,t,e){let r="";e=Math.min(n.length,e);for(let i=t;i<e;++i)r+=String.fromCharCode(127&n[i]);return r}function Wt(n,t,e){let r="";e=Math.min(n.length,e);for(let i=t;i<e;++i)r+=String.fromCharCode(n[i]);return r}function ce(n,t,e){const r=n.length;(!t||t<0)&&(t=0),(!e||e<0||e>r)&&(e=r);let i="";for(let c=t;c<e;++c)i+=h[n[c]];return i}function ue(n,t,e){const r=n.slice(t,e);let i="";for(let c=0;c<r.length-1;c+=2)i+=String.fromCharCode(r[c]+256*r[c+1]);return i}function it(n,t,e){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+t>e)throw new RangeError("Trying to access beyond buffer length")}function Tt(n,t,e,r,i,c){if(!l.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<c)throw new RangeError('"value" argument is out of bounds');if(e+r>n.length)throw new RangeError("Index out of range")}function wt(n,t,e,r,i){Kt(t,r,i,n,e,7);let c=Number(t&BigInt(4294967295));n[e++]=c,c>>=8,n[e++]=c,c>>=8,n[e++]=c,c>>=8,n[e++]=c;let a=Number(t>>BigInt(32)&BigInt(4294967295));return n[e++]=a,a>>=8,n[e++]=a,a>>=8,n[e++]=a,a>>=8,n[e++]=a,e}function qt(n,t,e,r,i){Kt(t,r,i,n,e,7);let c=Number(t&BigInt(4294967295));n[e+7]=c,c>>=8,n[e+6]=c,c>>=8,n[e+5]=c,c>>=8,n[e+4]=c;let a=Number(t>>BigInt(32)&BigInt(4294967295));return n[e+3]=a,a>>=8,n[e+2]=a,a>>=8,n[e+1]=a,a>>=8,n[e]=a,e+8}function Xt(n,t,e,r,i,c){if(e+r>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Yt(n,t,e,r,i){return t=+t,e>>>=0,i||Xt(n,0,e,4),lt.write(n,t,e,r,23,4),e+4}function zt(n,t,e,r,i){return t=+t,e>>>=0,i||Xt(n,0,e,8),lt.write(n,t,e,r,52,8),e+8}nt.kMaxLength=Z,!(l.TYPED_ARRAY_SUPPORT=function J(){try{const n=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(n,t),42===n.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&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."),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}}),l.poolSize=8192,l.from=function(n,t,e){return ot(n,t,e)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(n,t,e){return function st(n,t,e){return Et(n),n<=0?A(n):void 0!==t?"string"==typeof e?A(n).fill(t,e):A(n).fill(t):A(n)}(n,t,e)},l.allocUnsafe=function(n){return ct(n)},l.allocUnsafeSlow=function(n){return ct(n)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(u(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),u(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 r=t.length,i=e.length;for(let c=0,a=Math.min(r,i);c<a;++c)if(t[c]!==e[c]){r=t[c],i=e[c];break}return r<i?-1:i<r?1:0},l.isEncoding=function(t){switch(String(t).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}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const i=l.allocUnsafe(e);let c=0;for(r=0;r<t.length;++r){let a=t[r];if(u(a,Uint8Array))c+a.length>i.length?(l.isBuffer(a)||(a=l.from(a)),a.copy(i,c)):Uint8Array.prototype.set.call(i,a,c);else{if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,c)}c+=a.length}return i},l.byteLength=_t,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)rt(this,e,e+1);return this},l.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)rt(this,e,e+3),rt(this,e+1,e+2);return this},l.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)rt(this,e,e+7),rt(this,e+1,e+6),rt(this,e+2,e+5),rt(this,e+3,e+4);return this},l.prototype.toLocaleString=l.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?bt(this,0,t):Pt.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){let t="";const e=nt.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),"<Buffer "+t+">"},Y&&(l.prototype[Y]=l.prototype.inspect),l.prototype.compare=function(t,e,r,i,c){if(u(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(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===c&&(c=this.length),e<0||r>t.length||i<0||c>this.length)throw new RangeError("out of range index");if(i>=c&&e>=r)return 0;if(i>=c)return-1;if(e>=r)return 1;if(this===t)return 0;let a=(c>>>=0)-(i>>>=0),T=(r>>>=0)-(e>>>=0);const D=Math.min(a,T),C=this.slice(i,c),G=t.slice(e,r);for(let S=0;S<D;++S)if(C[S]!==G[S]){a=C[S],T=G[S];break}return a<T?-1:T<a?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return Zt(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return Zt(this,t,e,r,!1)},l.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0)}const c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let a=!1;for(;;)switch(i){case"hex":return jt(this,t,e,r);case"utf8":case"utf-8":return Qt(this,t,e,r);case"ascii":case"latin1":case"binary":return te(this,t,e,r);case"base64":return ee(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const i=this.subarray(t,e);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||it(t,e,this.length);let i=this[t],c=1,a=0;for(;++a<e&&(c*=256);)i+=this[t+a]*c;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||it(t,e,this.length);let i=this[t+--e],c=1;for(;e>0&&(c*=256);)i+=this[t+--e]*c;return i},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||it(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||it(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||it(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||it(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||it(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=y(function(t){vt(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Dt(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,c=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(i)+(BigInt(c)<<BigInt(32))}),l.prototype.readBigUInt64BE=y(function(t){vt(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Dt(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],c=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(i)<<BigInt(32))+BigInt(c)}),l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||it(t,e,this.length);let i=this[t],c=1,a=0;for(;++a<e&&(c*=256);)i+=this[t+a]*c;return c*=128,i>=c&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||it(t,e,this.length);let i=e,c=1,a=this[t+--i];for(;i>0&&(c*=256);)a+=this[t+--i]*c;return c*=128,a>=c&&(a-=Math.pow(2,8*e)),a},l.prototype.readInt8=function(t,e){return t>>>=0,e||it(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||it(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||it(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||it(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>>>=0,e||it(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=y(function(t){vt(t>>>=0,"offset");const e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&Dt(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),l.prototype.readBigInt64BE=y(function(t){vt(t>>>=0,"offset");const e=this[t],r=this[t+7];(void 0===e||void 0===r)&&Dt(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)}),l.prototype.readFloatLE=function(t,e){return t>>>=0,e||it(t,4,this.length),lt.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||it(t,4,this.length),lt.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||it(t,8,this.length),lt.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||it(t,8,this.length),lt.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||Tt(this,t,e,r,Math.pow(2,8*r)-1,0);let c=1,a=0;for(this[e]=255&t;++a<r&&(c*=256);)this[e+a]=t/c&255;return e+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,r,i){t=+t,e>>>=0,r>>>=0,i||Tt(this,t,e,r,Math.pow(2,8*r)-1,0);let c=r-1,a=1;for(this[e+c]=255&t;--c>=0&&(a*=256);)this[e+c]=t/a&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=y(function(t,e=0){return wt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=y(function(t,e=0){return qt(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const D=Math.pow(2,8*r-1);Tt(this,t,e,r,D-1,-D)}let c=0,a=1,T=0;for(this[e]=255&t;++c<r&&(a*=256);)t<0&&0===T&&0!==this[e+c-1]&&(T=1),this[e+c]=(t/a>>0)-T&255;return e+r},l.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e>>>=0,!i){const D=Math.pow(2,8*r-1);Tt(this,t,e,r,D-1,-D)}let c=r-1,a=1,T=0;for(this[e+c]=255&t;--c>=0&&(a*=256);)t<0&&0===T&&0!==this[e+c+1]&&(T=1),this[e+c]=(t/a>>0)-T&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||Tt(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||Tt(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]=255&t,e+4},l.prototype.writeBigInt64LE=y(function(t,e=0){return wt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=y(function(t,e=0){return qt(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(t,e,r){return Yt(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return Yt(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return zt(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return zt(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,i){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),!i&&0!==i&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r||0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<i-r&&(i=t.length-e+r);const c=i-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,i):Uint8Array.prototype.set.call(t,this.subarray(r,i),e),c},l.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){const a=t.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(t=a)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let c;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(c=e;c<r;++c)this[c]=t;else{const a=l.isBuffer(t)?t:l.from(t,i),T=a.length;if(0===T)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(c=0;c<r-e;++c)this[c+e]=a[c%T]}return this};const Nt={};function Ht(n,t,e){Nt[n]=class extends e{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${n}]`,delete this.name}get code(){return n}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${n}]: ${this.message}`}}}function ie(n){let t="",e=n.length;const r="-"===n[0]?1:0;for(;e>=r+4;e-=3)t=`_${n.slice(e-3,e)}${t}`;return`${n.slice(0,e)}${t}`}function Kt(n,t,e,r,i,c){if(n>e||n<t){const a="bigint"==typeof t?"n":"";let T;throw T=c>3?0===t||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${8*(c+1)}${a}`:`>= -(2${a} ** ${8*(c+1)-1}${a}) and < 2 ** ${8*(c+1)-1}${a}`:`>= ${t}${a} and <= ${e}${a}`,new Nt.ERR_OUT_OF_RANGE("value",T,n)}!function ae(n,t,e){vt(t,"offset"),(void 0===n[t]||void 0===n[t+e])&&Dt(t,n.length-(e+1))}(r,i,c)}function vt(n,t){if("number"!=typeof n)throw new Nt.ERR_INVALID_ARG_TYPE(t,"number",n)}function Dt(n,t,e){throw Math.floor(n)!==n?(vt(n,e),new Nt.ERR_OUT_OF_RANGE(e||"offset","an integer",n)):t<0?new Nt.ERR_BUFFER_OUT_OF_BOUNDS:new Nt.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,n)}Ht("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ht("ERR_INVALID_ARG_TYPE",function(n,t){return`The "${n}" argument must be of type number. Received type ${typeof t}`},TypeError),Ht("ERR_OUT_OF_RANGE",function(n,t,e){let r=`The value of "${n}" is out of range.`,i=e;return Number.isInteger(e)&&Math.abs(e)>2**32?i=ie(String(e)):"bigint"==typeof e&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=ie(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const le=/[^+/0-9A-Za-z-_]/g;function At(n,t){let e;t=t||1/0;const r=n.length;let i=null;const c=[];for(let a=0;a<r;++a){if(e=n.charCodeAt(a),e>55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&c.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&c.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(t-=3)>-1&&c.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;c.push(e)}else if(e<2048){if((t-=2)<0)break;c.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;c.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return c}function oe(n){return R.toByteArray(function Gt(n){if((n=(n=n.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function o(n,t,e,r){let i;for(i=0;i<r&&!(i+e>=t.length||i>=n.length);++i)t[i+e]=n[i];return i}function u(n,t){return n instanceof t||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===t.name}function p(n){return n!=n}const h=function(){const n="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const r=16*e;for(let i=0;i<16;++i)t[r+i]=n[e]+n[i]}return t}();function y(n){return typeof BigInt>"u"?E:n}function E(){throw new Error("BigInt not supported")}},8461:(xt,nt)=>{nt.read=function(X,R,lt,Y,Z){var J,A,l=8*Z-Y-1,ot=(1<<l)-1,Et=ot>>1,st=-7,ct=lt?Z-1:0,j=lt?-1:1,P=X[R+ct];for(ct+=j,J=P&(1<<-st)-1,P>>=-st,st+=l;st>0;J=256*J+X[R+ct],ct+=j,st-=8);for(A=J&(1<<-st)-1,J>>=-st,st+=Y;st>0;A=256*A+X[R+ct],ct+=j,st-=8);if(0===J)J=1-Et;else{if(J===ot)return A?NaN:1/0*(P?-1:1);A+=Math.pow(2,Y),J-=Et}return(P?-1:1)*A*Math.pow(2,J-Y)},nt.write=function(X,R,lt,Y,Z,J){var A,l,ot,Et=8*J-Z-1,st=(1<<Et)-1,ct=st>>1,j=23===Z?Math.pow(2,-24)-Math.pow(2,-77):0,P=Y?0:J-1,U=Y?1:-1,N=R<0||0===R&&1/R<0?1:0;for(R=Math.abs(R),isNaN(R)||R===1/0?(l=isNaN(R)?1:0,A=st):(A=Math.floor(Math.log(R)/Math.LN2),R*(ot=Math.pow(2,-A))<1&&(A--,ot*=2),(R+=A+ct>=1?j/ot:j*Math.pow(2,1-ct))*ot>=2&&(A++,ot/=2),A+ct>=st?(l=0,A=st):A+ct>=1?(l=(R*ot-1)*Math.pow(2,Z),A+=ct):(l=R*Math.pow(2,ct-1)*Math.pow(2,Z),A=0));Z>=8;X[lt+P]=255&l,P+=U,l/=256,Z-=8);for(A=A<<Z|l,Et+=Z;Et>0;X[lt+P]=255&A,P+=U,A/=256,Et-=8);X[lt+P-U]|=128*N}},9426:xt=>{"use strict";var nt=function(R){if("function"!=typeof R)throw new TypeError(R+" is not a function");return R},X=function(R){var Y,Z,lt=document.createTextNode(""),J=0;return new R(function(){var A;if(Y)Z&&(Y=Z.concat(Y));else{if(!Z)return;Y=Z}if(Z=Y,Y=null,"function"==typeof Z)return A=Z,Z=null,void A();for(lt.data=J=++J%2;Z;)A=Z.shift(),Z.length||(Z=null),A()}).observe(lt,{characterData:!0}),function(A){nt(A),Y?"function"==typeof Y?Y=[Y,A]:Y.push(A):(Y=A,lt.data=J=++J%2)}};xt.exports=function(){if("object"==typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(R){queueMicrotask(nt(R))};if("object"==typeof document&&document){if("function"==typeof MutationObserver)return X(MutationObserver);if("function"==typeof WebKitMutationObserver)return X(WebKitMutationObserver)}return"function"==typeof setImmediate?function(R){setImmediate(nt(R))}:"function"==typeof setTimeout||"object"==typeof setTimeout?function(R){setTimeout(nt(R),0)}:null}()},8583:()=>{"use strict";!function(o){const u=o.performance;function p(q){u&&u.mark&&u.mark(q)}function h(q,I){u&&u.measure&&u.measure(q,I)}p("Zone");const y=o.__Zone_symbol_prefix||"__zone_symbol__";function E(q){return y+q}const n=!0===o[E("forceDuplicateZoneCheck")];if(o.Zone){if(n||"function"!=typeof o.Zone.__symbol__)throw new Error("Zone already loaded.");return o.Zone}let t=(()=>{class q{constructor(s,f){this._parent=s,this._name=f?f.name||"unnamed":"<root>",this._properties=f&&f.properties||{},this._zoneDelegate=new r(this,this._parent&&this._parent._zoneDelegate,f)}static assertZonePatched(){if(o.Promise!==St.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 s=q.current;for(;s.parent;)s=s.parent;return s}static get current(){return ut.zone}static get currentTask(){return Ct}static __load_patch(s,f,F=!1){if(St.hasOwnProperty(s)){if(!F&&n)throw Error("Already loaded patch: "+s)}else if(!o["__Zone_disable_"+s]){const L="Zone:"+s;p(L),St[s]=f(o,q,dt),h(L,L)}}get parent(){return this._parent}get name(){return this._name}get(s){const f=this.getZoneWith(s);if(f)return f._properties[s]}getZoneWith(s){let f=this;for(;f;){if(f._properties.hasOwnProperty(s))return f;f=f._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,f){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const F=this._zoneDelegate.intercept(this,s,f),L=this;return function(){return L.runGuarded(F,this,arguments,f)}}run(s,f,F,L){ut={parent:ut,zone:this};try{return this._zoneDelegate.invoke(this,s,f,F,L)}finally{ut=ut.parent}}runGuarded(s,f=null,F,L){ut={parent:ut,zone:this};try{try{return this._zoneDelegate.invoke(this,s,f,F,L)}catch(mt){if(this._zoneDelegate.handleError(this,mt))throw mt}}finally{ut=ut.parent}}runTask(s,f,F){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||gt).name+"; Execution: "+this.name+")");if(s.state===K&&(s.type===kt||s.type===O))return;const L=s.state!=x;L&&s._transitionTo(x,z),s.runCount++;const mt=Ct;Ct=s,ut={parent:ut,zone:this};try{s.type==O&&s.data&&!s.data.isPeriodic&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,s,f,F)}catch(_){if(this._zoneDelegate.handleError(this,_))throw _}}finally{s.state!==K&&s.state!==w&&(s.type==kt||s.data&&s.data.isPeriodic?L&&s._transitionTo(z,x):(s.runCount=0,this._updateTaskCount(s,-1),L&&s._transitionTo(K,x,K))),ut=ut.parent,Ct=mt}}scheduleTask(s){if(s.zone&&s.zone!==this){let F=this;for(;F;){if(F===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);F=F.parent}}s._transitionTo(pt,K);const f=[];s._zoneDelegates=f,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(F){throw s._transitionTo(w,pt,K),this._zoneDelegate.handleError(this,F),F}return s._zoneDelegates===f&&this._updateTaskCount(s,1),s.state==pt&&s._transitionTo(z,pt),s}scheduleMicroTask(s,f,F,L){return this.scheduleTask(new i(W,s,f,F,L,void 0))}scheduleMacroTask(s,f,F,L,mt){return this.scheduleTask(new i(O,s,f,F,L,mt))}scheduleEventTask(s,f,F,L,mt){return this.scheduleTask(new i(kt,s,f,F,L,mt))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||gt).name+"; Execution: "+this.name+")");if(s.state===z||s.state===x){s._transitionTo(Q,z,x);try{this._zoneDelegate.cancelTask(this,s)}catch(f){throw s._transitionTo(w,Q),this._zoneDelegate.handleError(this,f),f}return this._updateTaskCount(s,-1),s._transitionTo(K,Q),s.runCount=0,s}}_updateTaskCount(s,f){const F=s._zoneDelegates;-1==f&&(s._zoneDelegates=null);for(let L=0;L<F.length;L++)F[L]._updateTaskCount(s.type,f)}}return q.__symbol__=E,q})();const e={name:"",onHasTask:(q,I,s,f)=>q.hasTask(s,f),onScheduleTask:(q,I,s,f)=>q.scheduleTask(s,f),onInvokeTask:(q,I,s,f,F,L)=>q.invokeTask(s,f,F,L),onCancelTask:(q,I,s,f)=>q.cancelTask(s,f)};class r{constructor(I,s,f){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=I,this._parentDelegate=s,this._forkZS=f&&(f&&f.onFork?f:s._forkZS),this._forkDlgt=f&&(f.onFork?s:s._forkDlgt),this._forkCurrZone=f&&(f.onFork?this.zone:s._forkCurrZone),this._interceptZS=f&&(f.onIntercept?f:s._interceptZS),this._interceptDlgt=f&&(f.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=f&&(f.onIntercept?this.zone:s._interceptCurrZone),this._invokeZS=f&&(f.onInvoke?f:s._invokeZS),this._invokeDlgt=f&&(f.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=f&&(f.onInvoke?this.zone:s._invokeCurrZone),this._handleErrorZS=f&&(f.onHandleError?f:s._handleErrorZS),this._handleErrorDlgt=f&&(f.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=f&&(f.onHandleError?this.zone:s._handleErrorCurrZone),this._scheduleTaskZS=f&&(f.onScheduleTask?f:s._scheduleTaskZS),this._scheduleTaskDlgt=f&&(f.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=f&&(f.onScheduleTask?this.zone:s._scheduleTaskCurrZone),this._invokeTaskZS=f&&(f.onInvokeTask?f:s._invokeTaskZS),this._invokeTaskDlgt=f&&(f.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=f&&(f.onInvokeTask?this.zone:s._invokeTaskCurrZone),this._cancelTaskZS=f&&(f.onCancelTask?f:s._cancelTaskZS),this._cancelTaskDlgt=f&&(f.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=f&&(f.onCancelTask?this.zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const F=f&&f.onHasTask;(F||s&&s._hasTaskZS)&&(this._hasTaskZS=F?f:e,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=I,f.onScheduleTask||(this._scheduleTaskZS=e,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),f.onInvokeTask||(this._invokeTaskZS=e,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),f.onCancelTask||(this._cancelTaskZS=e,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(I,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,I,s):new t(I,s)}intercept(I,s,f){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,I,s,f):s}invoke(I,s,f,F,L){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,I,s,f,F,L):s.apply(f,F)}handleError(I,s){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,I,s)}scheduleTask(I,s){let f=s;if(this._scheduleTaskZS)this._hasTaskZS&&f._zoneDelegates.push(this._hasTaskDlgtOwner),f=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,I,s),f||(f=s);else if(s.scheduleFn)s.scheduleFn(s);else{if(s.type!=W)throw new Error("Task is missing scheduleFn.");M(s)}return f}invokeTask(I,s,f,F){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,I,s,f,F):s.callback.apply(f,F)}cancelTask(I,s){let f;if(this._cancelTaskZS)f=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,I,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");f=s.cancelFn(s)}return f}hasTask(I,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,I,s)}catch(f){this.handleError(I,f)}}_updateTaskCount(I,s){const f=this._taskCounts,F=f[I],L=f[I]=F+s;if(L<0)throw new Error("More tasks executed then were scheduled.");0!=F&&0!=L||this.hasTask(this.zone,{microTask:f.microTask>0,macroTask:f.macroTask>0,eventTask:f.eventTask>0,change:I})}}class i{constructor(I,s,f,F,L,mt){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=I,this.source=s,this.data=F,this.scheduleFn=L,this.cancelFn=mt,!f)throw new Error("callback is not defined");this.callback=f;const _=this;this.invoke=I===kt&&F&&F.useG?i.invokeTask:function(){return i.invokeTask.call(o,_,this,arguments)}}static invokeTask(I,s,f){I||(I=this),It++;try{return I.runCount++,I.zone.runTask(I,s,f)}finally{1==It&&k(),It--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(K,pt)}_transitionTo(I,s,f){if(this._state!==s&&this._state!==f)throw new Error(`${this.type} '${this.source}': can not transition to '${I}', expecting state '${s}'${f?" or '"+f+"'":""}, was '${this._state}'.`);this._state=I,I==K&&(this._zoneDelegates=null)}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}}}const c=E("setTimeout"),a=E("Promise"),T=E("then");let G,D=[],C=!1;function S(q){if(G||o[a]&&(G=o[a].resolve(0)),G){let I=G[T];I||(I=G.then),I.call(G,q)}else o[c](q,0)}function M(q){0===It&&0===D.length&&S(k),q&&D.push(q)}function k(){if(!C){for(C=!0;D.length;){const q=D;D=[];for(let I=0;I<q.length;I++){const s=q[I];try{s.zone.runTask(s,null,null)}catch(f){dt.onUnhandledError(f)}}}dt.microtaskDrainDone(),C=!1}}const gt={name:"NO ZONE"},K="notScheduled",pt="scheduling",z="scheduled",x="running",Q="canceling",w="unknown",W="microTask",O="macroTask",kt="eventTask",St={},dt={symbol:E,currentZoneFrame:()=>ut,onUnhandledError:at,microtaskDrainDone:at,scheduleMicroTask:M,showUncaughtError:()=>!t[E("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:at,patchMethod:()=>at,bindArguments:()=>[],patchThen:()=>at,patchMacroTask:()=>at,patchEventPrototype:()=>at,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>at,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>at,wrapWithCurrentZone:()=>at,filterProperties:()=>[],attachOriginToPatched:()=>at,_redefineProperty:()=>at,patchCallbacks:()=>at,nativeScheduleMicroTask:S};let ut={parent:null,zone:new t(null,null)},Ct=null,It=0;function at(){}h("Zone","Zone"),o.Zone=t}(typeof window<"u"&&window||typeof self<"u"&&self||global);const xt=Object.getOwnPropertyDescriptor,nt=Object.defineProperty,X=Object.getPrototypeOf,R=Object.create,lt=Array.prototype.slice,Y="addEventListener",Z="removeEventListener",J=Zone.__symbol__(Y),A=Zone.__symbol__(Z),l="true",ot="false",Et=Zone.__symbol__("");function st(o,u){return Zone.current.wrap(o,u)}function ct(o,u,p,h,y){return Zone.current.scheduleMacroTask(o,u,p,h,y)}const j=Zone.__symbol__,P=typeof window<"u",U=P?window:void 0,N=P&&U||"object"==typeof self&&self||global;function ht(o,u){for(let p=o.length-1;p>=0;p--)"function"==typeof o[p]&&(o[p]=st(o[p],u+"_"+p));return o}function _t(o){return!o||!1!==o.writable&&!("function"==typeof o.get&&typeof o.set>"u")}const Pt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,rt=!("nw"in N)&&typeof N.process<"u"&&"[object process]"==={}.toString.call(N.process),Zt=!rt&&!Pt&&!(!P||!U.HTMLElement),$t=typeof N.process<"u"&&"[object process]"==={}.toString.call(N.process)&&!Pt&&!(!P||!U.HTMLElement),jt={},Qt=function(o){if(!(o=o||N.event))return;let u=jt[o.type];u||(u=jt[o.type]=j("ON_PROPERTY"+o.type));const p=this||o.target||N,h=p[u];let y;if(Zt&&p===U&&"error"===o.type){const E=o;y=h&&h.call(this,E.message,E.filename,E.lineno,E.colno,E.error),!0===y&&o.preventDefault()}else y=h&&h.apply(this,arguments),null!=y&&!y&&o.preventDefault();return y};function te(o,u,p){let h=xt(o,u);if(!h&&p&&xt(p,u)&&(h={enumerable:!0,configurable:!0}),!h||!h.configurable)return;const y=j("on"+u+"patched");if(o.hasOwnProperty(y)&&o[y])return;delete h.writable,delete h.value;const E=h.get,n=h.set,t=u.slice(2);let e=jt[t];e||(e=jt[t]=j("ON_PROPERTY"+t)),h.set=function(r){let i=this;!i&&o===N&&(i=N),i&&("function"==typeof i[e]&&i.removeEventListener(t,Qt),n&&n.call(i,null),i[e]=r,"function"==typeof r&&i.addEventListener(t,Qt,!1))},h.get=function(){let r=this;if(!r&&o===N&&(r=N),!r)return null;const i=r[e];if(i)return i;if(E){let c=E.call(this);if(c)return h.set.call(this,c),"function"==typeof r.removeAttribute&&r.removeAttribute(u),c}return null},nt(o,u,h),o[y]=!0}function ee(o,u,p){if(u)for(let h=0;h<u.length;h++)te(o,"on"+u[h],p);else{const h=[];for(const y in o)"on"==y.slice(0,2)&&h.push(y);for(let y=0;y<h.length;y++)te(o,h[y],p)}}const Bt=j("originalInstance");function Ut(o){const u=N[o];if(!u)return;N[j(o)]=u,N[o]=function(){const y=ht(arguments,o);switch(y.length){case 0:this[Bt]=new u;break;case 1:this[Bt]=new u(y[0]);break;case 2:this[Bt]=new u(y[0],y[1]);break;case 3:this[Bt]=new u(y[0],y[1],y[2]);break;case 4:this[Bt]=new u(y[0],y[1],y[2],y[3]);break;default:throw new Error("Arg list too long.")}},Rt(N[o],u);const p=new u(function(){});let h;for(h in p)"XMLHttpRequest"===o&&"responseBlob"===h||function(y){"function"==typeof p[y]?N[o].prototype[y]=function(){return this[Bt][y].apply(this[Bt],arguments)}:nt(N[o].prototype,y,{set:function(E){"function"==typeof E?(this[Bt][y]=st(E,o+"."+y),Rt(this[Bt][y],E)):this[Bt][y]=E},get:function(){return this[Bt][y]}})}(h);for(h in u)"prototype"!==h&&u.hasOwnProperty(h)&&(N[o][h]=u[h])}function bt(o,u,p){let h=o;for(;h&&!h.hasOwnProperty(u);)h=X(h);!h&&o[u]&&(h=o);const y=j(u);let E=null;if(h&&(!(E=h[y])||!h.hasOwnProperty(y))&&(E=h[y]=h[u],_t(h&&xt(h,u)))){const t=p(E,y,u);h[u]=function(){return t(this,arguments)},Rt(h[u],E)}return E}function ne(o,u,p){let h=null;function y(E){const n=E.data;return n.args[n.cbIdx]=function(){E.invoke.apply(this,arguments)},h.apply(n.target,n.args),E}h=bt(o,u,E=>function(n,t){const e=p(n,t);return e.cbIdx>=0&&"function"==typeof t[e.cbIdx]?ct(e.name,t[e.cbIdx],e,y):E.apply(n,t)})}function Rt(o,u){o[j("OriginalDelegate")]=u}let re=!1,Wt=!1;function ue(){if(re)return Wt;re=!0;try{const o=U.navigator.userAgent;(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/")||-1!==o.indexOf("Edge/"))&&(Wt=!0)}catch{}return Wt}Zone.__load_patch("ZoneAwarePromise",(o,u,p)=>{const h=Object.getOwnPropertyDescriptor,y=Object.defineProperty,n=p.symbol,t=[],e=!0===o[n("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],r=n("Promise"),i=n("then");p.onUnhandledError=_=>{if(p.showUncaughtError()){const m=_&&_.rejection;m?console.error("Unhandled Promise rejection:",m instanceof Error?m.message:m,"; Zone:",_.zone.name,"; Task:",_.task&&_.task.source,"; Value:",m,m instanceof Error?m.stack:void 0):console.error(_)}},p.microtaskDrainDone=()=>{for(;t.length;){const _=t.shift();try{_.zone.runGuarded(()=>{throw _.throwOriginal?_.rejection:_})}catch(m){T(m)}}};const a=n("unhandledPromiseRejectionHandler");function T(_){p.onUnhandledError(_);try{const m=u[a];"function"==typeof m&&m.call(this,_)}catch{}}function D(_){return _&&_.then}function C(_){return _}function G(_){return s.reject(_)}const S=n("state"),M=n("value"),k=n("finally"),gt=n("parentPromiseValue"),K=n("parentPromiseState"),z=null,x=!0,Q=!1;function W(_,m){return d=>{try{dt(_,m,d)}catch(g){dt(_,!1,g)}}}const O=function(){let _=!1;return function(d){return function(){_||(_=!0,d.apply(null,arguments))}}},St=n("currentTaskTrace");function dt(_,m,d){const g=O();if(_===d)throw new TypeError("Promise resolved with itself");if(_[S]===z){let b=null;try{("object"==typeof d||"function"==typeof d)&&(b=d&&d.then)}catch(v){return g(()=>{dt(_,!1,v)})(),_}if(m!==Q&&d instanceof s&&d.hasOwnProperty(S)&&d.hasOwnProperty(M)&&d[S]!==z)Ct(d),dt(_,d[S],d[M]);else if(m!==Q&&"function"==typeof b)try{b.call(d,g(W(_,m)),g(W(_,!1)))}catch(v){g(()=>{dt(_,!1,v)})()}else{_[S]=m;const v=_[M];if(_[M]=d,_[k]===k&&m===x&&(_[S]=_[K],_[M]=_[gt]),m===Q&&d instanceof Error){const B=u.currentTask&&u.currentTask.data&&u.currentTask.data.__creationTrace__;B&&y(d,St,{configurable:!0,enumerable:!1,writable:!0,value:B})}for(let B=0;B<v.length;)It(_,v[B++],v[B++],v[B++],v[B++]);if(0==v.length&&m==Q){_[S]=0;let B=d;try{throw new Error("Uncaught (in promise): "+function E(_){return _&&_.toString===Object.prototype.toString?(_.constructor&&_.constructor.name||"")+": "+JSON.stringify(_):_?_.toString():Object.prototype.toString.call(_)}(d)+(d&&d.stack?"\n"+d.stack:""))}catch(H){B=H}e&&(B.throwOriginal=!0),B.rejection=d,B.promise=_,B.zone=u.current,B.task=u.currentTask,t.push(B),p.scheduleMicroTask()}}}return _}const ut=n("rejectionHandledHandler");function Ct(_){if(0===_[S]){try{const m=u[ut];m&&"function"==typeof m&&m.call(this,{rejection:_[M],promise:_})}catch{}_[S]=Q;for(let m=0;m<t.length;m++)_===t[m].promise&&t.splice(m,1)}}function It(_,m,d,g,b){Ct(_);const v=_[S],B=v?"function"==typeof g?g:C:"function"==typeof b?b:G;m.scheduleMicroTask("Promise.then",()=>{try{const H=_[M],V=!!d&&k===d[k];V&&(d[gt]=H,d[K]=v);const $=m.run(B,void 0,V&&B!==G&&B!==C?[]:[H]);dt(d,!0,$)}catch(H){dt(d,!1,H)}},d)}const q=function(){},I=o.AggregateError;class s{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(m){return dt(new this(null),x,m)}static reject(m){return dt(new this(null),Q,m)}static any(m){if(!m||"function"!=typeof m[Symbol.iterator])return Promise.reject(new I([],"All promises were rejected"));const d=[];let g=0;try{for(let B of m)g++,d.push(s.resolve(B))}catch{return Promise.reject(new I([],"All promises were rejected"))}if(0===g)return Promise.reject(new I([],"All promises were rejected"));let b=!1;const v=[];return new s((B,H)=>{for(let V=0;V<d.length;V++)d[V].then($=>{b||(b=!0,B($))},$=>{v.push($),g--,0===g&&(b=!0,H(new I(v,"All promises were rejected")))})})}static race(m){let d,g,b=new this((H,V)=>{d=H,g=V});function v(H){d(H)}function B(H){g(H)}for(let H of m)D(H)||(H=this.resolve(H)),H.then(v,B);return b}static all(m){return s.allWithCallback(m)}static allSettled(m){return(this&&this.prototype instanceof s?this:s).allWithCallback(m,{thenCallback:g=>({status:"fulfilled",value:g}),errorCallback:g=>({status:"rejected",reason:g})})}static allWithCallback(m,d){let g,b,v=new this(($,tt)=>{g=$,b=tt}),B=2,H=0;const V=[];for(let $ of m){D($)||($=this.resolve($));const tt=H;try{$.then(et=>{V[tt]=d?d.thenCallback(et):et,B--,0===B&&g(V)},et=>{d?(V[tt]=d.errorCallback(et),B--,0===B&&g(V)):b(et)})}catch(et){b(et)}B++,H++}return B-=2,0===B&&g(V),v}constructor(m){const d=this;if(!(d instanceof s))throw new Error("Must be an instanceof Promise.");d[S]=z,d[M]=[];try{const g=O();m&&m(g(W(d,x)),g(W(d,Q)))}catch(g){dt(d,!1,g)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return s}then(m,d){var g;let b=null===(g=this.constructor)||void 0===g?void 0:g[Symbol.species];(!b||"function"!=typeof b)&&(b=this.constructor||s);const v=new b(q),B=u.current;return this[S]==z?this[M].push(B,v,m,d):It(this,B,v,m,d),v}catch(m){return this.then(null,m)}finally(m){var d;let g=null===(d=this.constructor)||void 0===d?void 0:d[Symbol.species];(!g||"function"!=typeof g)&&(g=s);const b=new g(q);b[k]=k;const v=u.current;return this[S]==z?this[M].push(v,b,m,m):It(this,v,b,m,m),b}}s.resolve=s.resolve,s.reject=s.reject,s.race=s.race,s.all=s.all;const f=o[r]=o.Promise;o.Promise=s;const F=n("thenPatched");function L(_){const m=_.prototype,d=h(m,"then");if(d&&(!1===d.writable||!d.configurable))return;const g=m.then;m[i]=g,_.prototype.then=function(b,v){return new s((H,V)=>{g.call(this,H,V)}).then(b,v)},_[F]=!0}return p.patchThen=L,f&&(L(f),bt(o,"fetch",_=>function mt(_){return function(m,d){let g=_.apply(m,d);if(g instanceof s)return g;let b=g.constructor;return b[F]||L(b),g}}(_))),Promise[u.__symbol__("uncaughtPromiseErrors")]=t,s}),Zone.__load_patch("toString",o=>{const u=Function.prototype.toString,p=j("OriginalDelegate"),h=j("Promise"),y=j("Error"),E=function(){if("function"==typeof this){const r=this[p];if(r)return"function"==typeof r?u.call(r):Object.prototype.toString.call(r);if(this===Promise){const i=o[h];if(i)return u.call(i)}if(this===Error){const i=o[y];if(i)return u.call(i)}}return u.call(this)};E[p]=u,Function.prototype.toString=E;const n=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":n.call(this)}});let it=!1;if(typeof window<"u")try{const o=Object.defineProperty({},"passive",{get:function(){it=!0}});window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{it=!1}const Tt={useG:!0},wt={},qt={},Xt=new RegExp("^"+Et+"(\\w+)(true|false)$"),Yt=j("propagationStopped");function zt(o,u){const p=(u?u(o):o)+ot,h=(u?u(o):o)+l,y=Et+p,E=Et+h;wt[o]={},wt[o][ot]=y,wt[o][l]=E}function Nt(o,u,p,h){const y=h&&h.add||Y,E=h&&h.rm||Z,n=h&&h.listeners||"eventListeners",t=h&&h.rmAll||"removeAllListeners",e=j(y),r="."+y+":",a=function(M,k,gt){if(M.isRemoved)return;const K=M.callback;let pt;"object"==typeof K&&K.handleEvent&&(M.callback=x=>K.handleEvent(x),M.originalDelegate=K);try{M.invoke(M,k,[gt])}catch(x){pt=x}const z=M.options;return z&&"object"==typeof z&&z.once&&k[E].call(k,gt.type,M.originalDelegate?M.originalDelegate:M.callback,z),pt};function T(M,k,gt){if(!(k=k||o.event))return;const K=M||k.target||o,pt=K[wt[k.type][gt?l:ot]];if(pt){const z=[];if(1===pt.length){const x=a(pt[0],K,k);x&&z.push(x)}else{const x=pt.slice();for(let Q=0;Q<x.length&&(!k||!0!==k[Yt]);Q++){const w=a(x[Q],K,k);w&&z.push(w)}}if(1===z.length)throw z[0];for(let x=0;x<z.length;x++){const Q=z[x];u.nativeScheduleMicroTask(()=>{throw Q})}}}const D=function(M){return T(this,M,!1)},C=function(M){return T(this,M,!0)};function G(M,k){if(!M)return!1;let gt=!0;k&&void 0!==k.useG&&(gt=k.useG);const K=k&&k.vh;let pt=!0;k&&void 0!==k.chkDup&&(pt=k.chkDup);let z=!1;k&&void 0!==k.rt&&(z=k.rt);let x=M;for(;x&&!x.hasOwnProperty(y);)x=X(x);if(!x&&M[y]&&(x=M),!x||x[e])return!1;const Q=k&&k.eventNameToString,w={},W=x[e]=x[y],O=x[j(E)]=x[E],kt=x[j(n)]=x[n],St=x[j(t)]=x[t];let dt;function ut(d,g){return!it&&"object"==typeof d&&d?!!d.capture:it&&g?"boolean"==typeof d?{capture:d,passive:!0}:d?"object"==typeof d&&!1!==d.passive?Object.assign(Object.assign({},d),{passive:!0}):d:{passive:!0}:d}k&&k.prepend&&(dt=x[j(k.prepend)]=x[k.prepend]);const s=gt?function(d){if(!w.isExisting)return W.call(w.target,w.eventName,w.capture?C:D,w.options)}:function(d){return W.call(w.target,w.eventName,d.invoke,w.options)},f=gt?function(d){if(!d.isRemoved){const g=wt[d.eventName];let b;g&&(b=g[d.capture?l:ot]);const v=b&&d.target[b];if(v)for(let B=0;B<v.length;B++)if(v[B]===d){v.splice(B,1),d.isRemoved=!0,0===v.length&&(d.allRemoved=!0,d.target[b]=null);break}}if(d.allRemoved)return O.call(d.target,d.eventName,d.capture?C:D,d.options)}:function(d){return O.call(d.target,d.eventName,d.invoke,d.options)},L=k&&k.diff?k.diff:function(d,g){const b=typeof g;return"function"===b&&d.callback===g||"object"===b&&d.originalDelegate===g},mt=Zone[j("UNPATCHED_EVENTS")],_=o[j("PASSIVE_EVENTS")],m=function(d,g,b,v,B=!1,H=!1){return function(){const V=this||o;let $=arguments[0];k&&k.transferEventName&&($=k.transferEventName($));let tt=arguments[1];if(!tt)return d.apply(this,arguments);if(rt&&"uncaughtException"===$)return d.apply(this,arguments);let et=!1;if("function"!=typeof tt){if(!tt.handleEvent)return d.apply(this,arguments);et=!0}if(K&&!K(d,tt,V,arguments))return;const Ot=it&&!!_&&-1!==_.indexOf($),Ft=ut(arguments[2],Ot);if(mt)for(let Lt=0;Lt<mt.length;Lt++)if($===mt[Lt])return Ot?d.call(V,$,tt,Ft):d.apply(this,arguments);const pe=!!Ft&&("boolean"==typeof Ft||Ft.capture),ye=!(!Ft||"object"!=typeof Ft)&&Ft.once,Te=Zone.current;let de=wt[$];de||(zt($,Q),de=wt[$]);const Ee=de[pe?l:ot];let se,Vt=V[Ee],_e=!1;if(Vt){if(_e=!0,pt)for(let Lt=0;Lt<Vt.length;Lt++)if(L(Vt[Lt],tt))return}else Vt=V[Ee]=[];const me=V.constructor.name,ge=qt[me];ge&&(se=ge[$]),se||(se=me+g+(Q?Q($):$)),w.options=Ft,ye&&(w.options.once=!1),w.target=V,w.capture=pe,w.eventName=$,w.isExisting=_e;const Jt=gt?Tt:void 0;Jt&&(Jt.taskData=w);const Mt=Te.scheduleEventTask(se,tt,Jt,b,v);return w.target=null,Jt&&(Jt.taskData=null),ye&&(Ft.once=!0),!it&&"boolean"==typeof Mt.options||(Mt.options=Ft),Mt.target=V,Mt.capture=pe,Mt.eventName=$,et&&(Mt.originalDelegate=tt),H?Vt.unshift(Mt):Vt.push(Mt),B?V:void 0}};return x[y]=m(W,r,s,f,z),dt&&(x.prependListener=m(dt,".prependListener:",function(d){return dt.call(w.target,w.eventName,d.invoke,w.options)},f,z,!0)),x[E]=function(){const d=this||o;let g=arguments[0];k&&k.transferEventName&&(g=k.transferEventName(g));const b=arguments[2],v=!!b&&("boolean"==typeof b||b.capture),B=arguments[1];if(!B)return O.apply(this,arguments);if(K&&!K(O,B,d,arguments))return;const H=wt[g];let V;H&&(V=H[v?l:ot]);const $=V&&d[V];if($)for(let tt=0;tt<$.length;tt++){const et=$[tt];if(L(et,B))return $.splice(tt,1),et.isRemoved=!0,0===$.length&&(et.allRemoved=!0,d[V]=null,"string"==typeof g)&&(d[Et+"ON_PROPERTY"+g]=null),et.zone.cancelTask(et),z?d:void 0}return O.apply(this,arguments)},x[n]=function(){const d=this||o;let g=arguments[0];k&&k.transferEventName&&(g=k.transferEventName(g));const b=[],v=Ht(d,Q?Q(g):g);for(let B=0;B<v.length;B++){const H=v[B];b.push(H.originalDelegate?H.originalDelegate:H.callback)}return b},x[t]=function(){const d=this||o;let g=arguments[0];if(g){k&&k.transferEventName&&(g=k.transferEventName(g));const b=wt[g];if(b){const H=d[b[ot]],V=d[b[l]];if(H){const $=H.slice();for(let tt=0;tt<$.length;tt++){const et=$[tt];this[E].call(this,g,et.originalDelegate?et.originalDelegate:et.callback,et.options)}}if(V){const $=V.slice();for(let tt=0;tt<$.length;tt++){const et=$[tt];this[E].call(this,g,et.originalDelegate?et.originalDelegate:et.callback,et.options)}}}}else{const b=Object.keys(d);for(let v=0;v<b.length;v++){const H=Xt.exec(b[v]);let V=H&&H[1];V&&"removeListener"!==V&&this[t].call(this,V)}this[t].call(this,"removeListener")}if(z)return this},Rt(x[y],W),Rt(x[E],O),St&&Rt(x[t],St),kt&&Rt(x[n],kt),!0}let S=[];for(let M=0;M<p.length;M++)S[M]=G(p[M],h);return S}function Ht(o,u){if(!u){const E=[];for(let n in o){const t=Xt.exec(n);let e=t&&t[1];if(e&&(!u||e===u)){const r=o[n];if(r)for(let i=0;i<r.length;i++)E.push(r[i])}}return E}let p=wt[u];p||(zt(u),p=wt[u]);const h=o[p[ot]],y=o[p[l]];return h?y?h.concat(y):h.slice():y?y.slice():[]}function ie(o,u){const p=o.Event;p&&p.prototype&&u.patchMethod(p.prototype,"stopImmediatePropagation",h=>function(y,E){y[Yt]=!0,h&&h.apply(y,E)})}function ae(o,u,p,h,y){const E=Zone.__symbol__(h);if(u[E])return;const n=u[E]=u[h];u[h]=function(t,e,r){return e&&e.prototype&&y.forEach(function(i){const c=`${p}.${h}::`+i,a=e.prototype;try{if(a.hasOwnProperty(i)){const T=o.ObjectGetOwnPropertyDescriptor(a,i);T&&T.value?(T.value=o.wrapWithCurrentZone(T.value,c),o._redefineProperty(e.prototype,i,T)):a[i]&&(a[i]=o.wrapWithCurrentZone(a[i],c))}else a[i]&&(a[i]=o.wrapWithCurrentZone(a[i],c))}catch{}}),n.call(u,t,e,r)},o.attachOriginToPatched(u[h],n)}function Kt(o,u,p){if(!p||0===p.length)return u;const h=p.filter(E=>E.target===o);if(!h||0===h.length)return u;const y=h[0].ignoreProperties;return u.filter(E=>-1===y.indexOf(E))}function vt(o,u,p,h){o&&ee(o,Kt(o,u,p),h)}function Dt(o){return Object.getOwnPropertyNames(o).filter(u=>u.startsWith("on")&&u.length>2).map(u=>u.substring(2))}Zone.__load_patch("util",(o,u,p)=>{const h=Dt(o);p.patchOnProperties=ee,p.patchMethod=bt,p.bindArguments=ht,p.patchMacroTask=ne;const y=u.__symbol__("BLACK_LISTED_EVENTS"),E=u.__symbol__("UNPATCHED_EVENTS");o[E]&&(o[y]=o[E]),o[y]&&(u[y]=u[E]=o[y]),p.patchEventPrototype=ie,p.patchEventTarget=Nt,p.isIEOrEdge=ue,p.ObjectDefineProperty=nt,p.ObjectGetOwnPropertyDescriptor=xt,p.ObjectCreate=R,p.ArraySlice=lt,p.patchClass=Ut,p.wrapWithCurrentZone=st,p.filterProperties=Kt,p.attachOriginToPatched=Rt,p._redefineProperty=Object.defineProperty,p.patchCallbacks=ae,p.getGlobalObjects=()=>({globalSources:qt,zoneSymbolEventNames:wt,eventNames:h,isBrowser:Zt,isMix:$t,isNode:rt,TRUE_STR:l,FALSE_STR:ot,ZONE_SYMBOL_PREFIX:Et,ADD_EVENT_LISTENER_STR:Y,REMOVE_EVENT_LISTENER_STR:Z})});const Gt=j("zoneTask");function At(o,u,p,h){let y=null,E=null;p+=h;const n={};function t(r){const i=r.data;return i.args[0]=function(){return r.invoke.apply(this,arguments)},i.handleId=y.apply(o,i.args),r}function e(r){return E.call(o,r.data.handleId)}y=bt(o,u+=h,r=>function(i,c){if("function"==typeof c[0]){const a={isPeriodic:"Interval"===h,delay:"Timeout"===h||"Interval"===h?c[1]||0:void 0,args:c},T=c[0];c[0]=function(){try{return T.apply(this,arguments)}finally{a.isPeriodic||("number"==typeof a.handleId?delete n[a.handleId]:a.handleId&&(a.handleId[Gt]=null))}};const D=ct(u,c[0],a,t,e);if(!D)return D;const C=D.data.handleId;return"number"==typeof C?n[C]=D:C&&(C[Gt]=D),C&&C.ref&&C.unref&&"function"==typeof C.ref&&"function"==typeof C.unref&&(D.ref=C.ref.bind(C),D.unref=C.unref.bind(C)),"number"==typeof C||C?C:D}return r.apply(o,c)}),E=bt(o,p,r=>function(i,c){const a=c[0];let T;"number"==typeof a?T=n[a]:(T=a&&a[Gt],T||(T=a)),T&&"string"==typeof T.type?"notScheduled"!==T.state&&(T.cancelFn&&T.data.isPeriodic||0===T.runCount)&&("number"==typeof a?delete n[a]:a&&(a[Gt]=null),T.zone.cancelTask(T)):r.apply(o,c)})}Zone.__load_patch("legacy",o=>{const u=o[Zone.__symbol__("legacyPatch")];u&&u()}),Zone.__load_patch("queueMicrotask",(o,u,p)=>{p.patchMethod(o,"queueMicrotask",h=>function(y,E){u.current.scheduleMicroTask("queueMicrotask",E[0])})}),Zone.__load_patch("timers",o=>{const u="set",p="clear";At(o,u,p,"Timeout"),At(o,u,p,"Interval"),At(o,u,p,"Immediate")}),Zone.__load_patch("requestAnimationFrame",o=>{At(o,"request","cancel","AnimationFrame"),At(o,"mozRequest","mozCancel","AnimationFrame"),At(o,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(o,u)=>{const p=["alert","prompt","confirm"];for(let h=0;h<p.length;h++)bt(o,p[h],(E,n,t)=>function(e,r){return u.current.run(E,o,r,t)})}),Zone.__load_patch("EventTarget",(o,u,p)=>{(function oe(o,u){u.patchEventPrototype(o,u)})(o,p),function he(o,u){if(Zone[u.symbol("patchEventTarget")])return;const{eventNames:p,zoneSymbolEventNames:h,TRUE_STR:y,FALSE_STR:E,ZONE_SYMBOL_PREFIX:n}=u.getGlobalObjects();for(let e=0;e<p.length;e++){const r=p[e],a=n+(r+E),T=n+(r+y);h[r]={},h[r][E]=a,h[r][y]=T}const t=o.EventTarget;t&&t.prototype&&u.patchEventTarget(o,u,[t&&t.prototype])}(o,p);const h=o.XMLHttpRequestEventTarget;h&&h.prototype&&p.patchEventTarget(o,p,[h.prototype])}),Zone.__load_patch("MutationObserver",(o,u,p)=>{Ut("MutationObserver"),Ut("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(o,u,p)=>{Ut("IntersectionObserver")}),Zone.__load_patch("FileReader",(o,u,p)=>{Ut("FileReader")}),Zone.__load_patch("on_property",(o,u,p)=>{!function le(o,u){if(rt&&!$t||Zone[o.symbol("patchEvents")])return;const p=u.__Zone_ignore_on_properties;let h=[];if(Zt){const y=window;h=h.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const E=function ce(){try{const o=U.navigator.userAgent;if(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:y,ignoreProperties:["error"]}]:[];vt(y,Dt(y),p&&p.concat(E),X(y))}h=h.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let y=0;y<h.length;y++){const E=u[h[y]];E&&E.prototype&&vt(E.prototype,Dt(E.prototype),p)}}(p,o)}),Zone.__load_patch("customElements",(o,u,p)=>{!function fe(o,u){const{isBrowser:p,isMix:h}=u.getGlobalObjects();(p||h)&&o.customElements&&"customElements"in o&&u.patchCallbacks(u,o.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(o,p)}),Zone.__load_patch("XHR",(o,u)=>{!function e(r){const i=r.XMLHttpRequest;if(!i)return;const c=i.prototype;let T=c[J],D=c[A];if(!T){const w=r.XMLHttpRequestEventTarget;if(w){const W=w.prototype;T=W[J],D=W[A]}}const C="readystatechange",G="scheduled";function S(w){const W=w.data,O=W.target;O[E]=!1,O[t]=!1;const kt=O[y];T||(T=O[J],D=O[A]),kt&&D.call(O,C,kt);const St=O[y]=()=>{if(O.readyState===O.DONE)if(!W.aborted&&O[E]&&w.state===G){const ut=O[u.__symbol__("loadfalse")];if(0!==O.status&&ut&&ut.length>0){const Ct=w.invoke;w.invoke=function(){const It=O[u.__symbol__("loadfalse")];for(let at=0;at<It.length;at++)It[at]===w&&It.splice(at,1);!W.aborted&&w.state===G&&Ct.call(w)},ut.push(w)}else w.invoke()}else!W.aborted&&!1===O[E]&&(O[t]=!0)};return T.call(O,C,St),O[p]||(O[p]=w),x.apply(O,W.args),O[E]=!0,w}function M(){}function k(w){const W=w.data;return W.aborted=!0,Q.apply(W.target,W.args)}const gt=bt(c,"open",()=>function(w,W){return w[h]=0==W[2],w[n]=W[1],gt.apply(w,W)}),pt=j("fetchTaskAborting"),z=j("fetchTaskScheduling"),x=bt(c,"send",()=>function(w,W){if(!0===u.current[z]||w[h])return x.apply(w,W);{const O={target:w,url:w[n],isPeriodic:!1,args:W,aborted:!1},kt=ct("XMLHttpRequest.send",M,O,S,k);w&&!0===w[t]&&!O.aborted&&kt.state===G&&kt.invoke()}}),Q=bt(c,"abort",()=>function(w,W){const O=function a(w){return w[p]}(w);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===u.current[pt])return Q.apply(w,W)})}(o);const p=j("xhrTask"),h=j("xhrSync"),y=j("xhrListener"),E=j("xhrScheduled"),n=j("xhrURL"),t=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",o=>{o.navigator&&o.navigator.geolocation&&function ft(o,u){const p=o.constructor.name;for(let h=0;h<u.length;h++){const y=u[h],E=o[y];if(E){if(!_t(xt(o,y)))continue;o[y]=(t=>{const e=function(){return t.apply(this,ht(arguments,p+"."+y))};return Rt(e,t),e})(E)}}}(o.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(o,u)=>{function p(h){return function(y){Ht(o,h).forEach(n=>{const t=o.PromiseRejectionEvent;if(t){const e=new t(h,{promise:y.promise,reason:y.rejection});n.invoke(e)}})}}o.PromiseRejectionEvent&&(u[j("unhandledPromiseRejectionHandler")]=p("unhandledrejection"),u[j("rejectionHandledHandler")]=p("rejectionhandled"))})}},xt=>{var nt=R=>xt(xt.s=R);nt(8583),nt(7435)}]);