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