forked from factoriolab/factoriolab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolyfills.d42b0043713bc9d9.js
1 lines (1 loc) · 53.6 KB
/
polyfills.d42b0043713bc9d9.js
1
(self.webpackChunkfactoriolab=self.webpackChunkfactoriolab||[]).push([[429],{7435:(ot,Nt,ht)=>{"use strict";ht(8583);var vt=ht(1732);typeof BigInt>"u"&&(window.BigInt=ht.n(vt)())},1732:(ot,Nt,ht)=>{ot=ht.nmd(ot);var Ot,Q=function(vt){"use strict";var F=1e7,Mt=9007199254740992,ft=J(Mt),pt="0123456789abcdefghijklmnopqrstuvwxyz",Et="function"==typeof BigInt;function C(t,e,r,n){return typeof t>"u"?C[0]:typeof e<"u"&&(10!=+e||r)?fe(t,e,r,n):u(t)}function _(t,e){this.value=t,this.sign=e,this.isSmall=!1}function g(t){this.value=t,this.sign=t<0,this.isSmall=!0}function E(t){this.value=t}function at(t){return-Mt<t&&t<Mt}function J(t){return t<1e7?[t]:t<1e14?[t%1e7,Math.floor(t/1e7)]:[t%1e7,Math.floor(t/1e7)%1e7,Math.floor(t/1e14)]}function Rt(t){gt(t);var e=t.length;if(e<4&<(t,ft)<0)switch(e){case 0:return 0;case 1:return t[0];case 2:return t[0]+t[1]*F;default:return t[0]+(t[1]+t[2]*F)*F}return t}function gt(t){for(var e=t.length;0===t[--e];);t.length=e+1}function Vt(t){for(var e=new Array(t),r=-1;++r<t;)e[r]=0;return e}function Tt(t){return t>0?Math.floor(t):Math.ceil(t)}function xt(t,e){var f,y,r=t.length,n=e.length,s=new Array(r),a=0,h=F;for(y=0;y<n;y++)s[y]=(f=t[y]+e[y]+a)-(a=f>=h?1:0)*h;for(;y<r;)f=t[y]+a,s[y++]=f-(a=f===h?1:0)*h;return a>0&&s.push(a),s}function wt(t,e){return t.length>=e.length?xt(t,e):xt(e,t)}function Dt(t,e){var a,h,r=t.length,n=new Array(r),s=F;for(h=0;h<r;h++)a=t[h]-s+e,e=Math.floor(a/s),n[h]=a-e*s,e+=1;for(;e>0;)n[h++]=e%s,e=Math.floor(e/s);return n}function Ct(t,e){var f,y,r=t.length,n=e.length,s=new Array(r),a=0,h=F;for(f=0;f<n;f++)(y=t[f]-a-e[f])<0?(y+=h,a=1):a=0,s[f]=y;for(f=n;f<r;f++){if(!((y=t[f]-a)<0)){s[f++]=y;break}s[f]=y+=h}for(;f<r;f++)s[f]=t[f];return gt(s),s}function jt(t,e,r){var f,y,n=t.length,s=new Array(n),a=-e,h=F;for(f=0;f<n;f++)y=t[f]+a,a=Math.floor(y/h),s[f]=(y%=h)<0?y+h:y;return"number"==typeof(s=Rt(s))?(r&&(s=-s),new g(s)):new _(s,r)}function Ft(t,e){var f,y,b,Z,r=t.length,n=e.length,a=Vt(r+n),h=F;for(b=0;b<r;++b){Z=t[b];for(var S=0;S<n;++S)f=Z*e[S]+a[b+S],y=Math.floor(f/h),a[b+S]=f-y*h,a[b+S+1]+=y}return gt(a),a}function Zt(t,e){var h,f,r=t.length,n=new Array(r),s=F,a=0;for(f=0;f<r;f++)h=t[f]*e+a,a=Math.floor(h/s),n[f]=h-a*s;for(;a>0;)n[f++]=a%s,a=Math.floor(a/s);return n}function ut(t,e){for(var r=[];e-- >0;)r.push(0);return r.concat(t)}function kt(t,e){var r=Math.max(t.length,e.length);if(r<=30)return Ft(t,e);r=Math.ceil(r/2);var n=t.slice(r),s=t.slice(0,r),a=e.slice(r),h=e.slice(0,r),f=kt(s,h),y=kt(n,a),b=kt(wt(s,n),wt(h,a)),Z=wt(wt(f,ut(Ct(Ct(b,f),y),r)),ut(y,2*r));return gt(Z),Z}function ne(t,e,r){return new _(t<F?Zt(e,t):Ft(e,J(t)),r)}function dt(t){var s,a,h,f,e=t.length,r=Vt(e+e),n=F;for(h=0;h<e;h++){a=0-(f=t[h])*f;for(var b=h;b<e;b++)s=f*t[b]*2+r[h+b]+a,a=Math.floor(s/n),r[h+b]=s-a*n;r[h+e]=a}return gt(r),r}function ie(t,e){var a,h,f,y,r=t.length,n=Vt(r);for(f=0,a=r-1;a>=0;--a)f=(y=1e7*f+t[a])-(h=Tt(y/e))*e,n[a]=0|h;return[n,0|f]}function It(t,e){var r,n=u(e);if(Et)return[new E(t.value/n.value),new E(t.value%n.value)];var h,s=t.value,a=n.value;if(0===a)throw new Error("Cannot divide by zero");if(t.isSmall)return n.isSmall?[new g(Tt(s/a)),new g(s%a)]:[C[0],t];if(n.isSmall){if(1===a)return[t,C[0]];if(-1==a)return[t.negate(),C[0]];var f=Math.abs(a);if(f<F){h=Rt((r=ie(s,f))[0]);var y=r[1];return t.sign&&(y=-y),"number"==typeof h?(t.sign!==n.sign&&(h=-h),[new g(h),new g(y)]):[new _(h,t.sign!==n.sign),new g(y)]}a=J(f)}var b=lt(s,a);if(-1===b)return[C[0],t];if(0===b)return[C[t.sign===n.sign?1:-1],C[0]];r=s.length+a.length<=200?function oe(t,e){var Z,N,S,P,W,z,$,r=t.length,n=e.length,s=F,a=Vt(e.length),h=e[n-1],f=Math.ceil(s/(2*h)),y=Zt(t,f),b=Zt(e,f);for(y.length<=r&&y.push(0),b.push(0),h=b[n-1],N=r-n;N>=0;N--){for(Z=s-1,y[N+n]!==h&&(Z=Math.floor((y[N+n]*s+y[N+n-1])/h)),S=0,P=0,z=b.length,W=0;W<z;W++)S+=Z*b[W],$=Math.floor(S/s),P+=y[N+W]-(S-$*s),S=$,P<0?(y[N+W]=P+s,P=-1):(y[N+W]=P,P=0);for(;0!==P;){for(Z-=1,S=0,W=0;W<z;W++)(S+=y[N+W]-s+b[W])<0?(y[N+W]=S+s,S=0):(y[N+W]=S,S=1);P+=S}a[N]=Z}return y=ie(y,f)[0],[Rt(a),Rt(y)]}(s,a):function Kt(t,e){for(var f,y,b,N,r=t.length,n=e.length,s=[],a=[],h=F;r;)if(a.unshift(t[--r]),gt(a),lt(a,e)<0)s.push(0);else{b=a[(y=a.length)-1]*h+a[y-2],y>n&&(b=(b+1)*h),f=Math.ceil(b/(e[n-1]*h+e[n-2]));do{if(lt(N=Zt(e,f),a)<=0)break;f--}while(f);s.push(f),a=Ct(a,N)}return s.reverse(),[Rt(s),Rt(a)]}(s,a);var Z=t.sign!==n.sign,N=r[1],S=t.sign;return"number"==typeof(h=r[0])?(Z&&(h=-h),h=new g(h)):h=new _(h,Z),"number"==typeof N?(S&&(N=-N),N=new g(N)):N=new _(N,S),[h,N]}function lt(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var r=t.length-1;r>=0;r--)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return 0}function se(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function it(t,e){for(var a,f,y,r=t.prev(),n=r,s=0;n.isEven();)n=n.divide(2),s++;t:for(f=0;f<e.length;f++)if(!t.lesser(e[f])&&(y=Q(e[f]).modPow(n,t),!y.isUnit()&&!y.equals(r))){for(a=s-1;0!=a;a--){if((y=y.square().mod(t)).isUnit())return!1;if(y.equals(r))continue t}return!1}return!0}_.prototype=Object.create(C.prototype),g.prototype=Object.create(C.prototype),E.prototype=Object.create(C.prototype),_.prototype.add=function(t){var e=u(t);if(this.sign!==e.sign)return this.subtract(e.negate());var r=this.value,n=e.value;return new _(e.isSmall?Dt(r,Math.abs(n)):wt(r,n),this.sign)},_.prototype.plus=_.prototype.add,g.prototype.add=function(t){var e=u(t),r=this.value;if(r<0!==e.sign)return this.subtract(e.negate());var n=e.value;if(e.isSmall){if(at(r+n))return new g(r+n);n=J(Math.abs(n))}return new _(Dt(n,Math.abs(r)),r<0)},g.prototype.plus=g.prototype.add,E.prototype.add=function(t){return new E(this.value+u(t).value)},E.prototype.plus=E.prototype.add,_.prototype.subtract=function(t){var e=u(t);if(this.sign!==e.sign)return this.add(e.negate());var r=this.value,n=e.value;return e.isSmall?jt(r,Math.abs(n),this.sign):function Gt(t,e,r){var n;return lt(t,e)>=0?n=Ct(t,e):(n=Ct(e,t),r=!r),"number"==typeof(n=Rt(n))?(r&&(n=-n),new g(n)):new _(n,r)}(r,n,this.sign)},_.prototype.minus=_.prototype.subtract,g.prototype.subtract=function(t){var e=u(t),r=this.value;if(r<0!==e.sign)return this.add(e.negate());var n=e.value;return e.isSmall?new g(r-n):jt(n,Math.abs(r),r>=0)},g.prototype.minus=g.prototype.subtract,E.prototype.subtract=function(t){return new E(this.value-u(t).value)},E.prototype.minus=E.prototype.subtract,_.prototype.negate=function(){return new _(this.value,!this.sign)},g.prototype.negate=function(){var t=this.sign,e=new g(-this.value);return e.sign=!t,e},E.prototype.negate=function(){return new E(-this.value)},_.prototype.abs=function(){return new _(this.value,!1)},g.prototype.abs=function(){return new g(Math.abs(this.value))},E.prototype.abs=function(){return new E(this.value>=0?this.value:-this.value)},_.prototype.multiply=function(t){var a,e=u(t),r=this.value,n=e.value,s=this.sign!==e.sign;if(e.isSmall){if(0===n)return C[0];if(1===n)return this;if(-1===n)return this.negate();if((a=Math.abs(n))<F)return new _(Zt(r,a),s);n=J(a)}return function _t(t,e){return-.012*t-.012*e+15e-6*t*e>0}(r.length,n.length)?new _(kt(r,n),s):new _(Ft(r,n),s)},_.prototype.times=_.prototype.multiply,g.prototype._multiplyBySmall=function(t){return at(t.value*this.value)?new g(t.value*this.value):ne(Math.abs(t.value),J(Math.abs(this.value)),this.sign!==t.sign)},_.prototype._multiplyBySmall=function(t){return 0===t.value?C[0]:1===t.value?this:-1===t.value?this.negate():ne(Math.abs(t.value),this.value,this.sign!==t.sign)},g.prototype.times=g.prototype.multiply=function(t){return u(t)._multiplyBySmall(this)},E.prototype.multiply=function(t){return new E(this.value*u(t).value)},E.prototype.times=E.prototype.multiply,_.prototype.square=function(){return new _(dt(this.value),!1)},g.prototype.square=function(){var t=this.value*this.value;return at(t)?new g(t):new _(dt(J(Math.abs(this.value))),!1)},E.prototype.square=function(t){return new E(this.value*this.value)},E.prototype.divmod=g.prototype.divmod=_.prototype.divmod=function(t){var e=It(this,t);return{quotient:e[0],remainder:e[1]}},_.prototype.divide=function(t){return It(this,t)[0]},E.prototype.over=E.prototype.divide=function(t){return new E(this.value/u(t).value)},g.prototype.over=g.prototype.divide=_.prototype.over=_.prototype.divide,_.prototype.mod=function(t){return It(this,t)[1]},E.prototype.mod=E.prototype.remainder=function(t){return new E(this.value%u(t).value)},g.prototype.remainder=g.prototype.mod=_.prototype.remainder=_.prototype.mod,_.prototype.pow=function(t){var s,a,h,e=u(t),r=this.value,n=e.value;if(0===n)return C[1];if(0===r)return C[0];if(1===r)return C[1];if(-1===r)return e.isEven()?C[1]:C[-1];if(e.sign)return C[0];if(!e.isSmall)throw new Error("The exponent "+e.toString()+" is too large.");if(this.isSmall&&at(s=Math.pow(r,n)))return new g(Tt(s));for(a=this,h=C[1];!0&n&&(h=h.times(a),--n),0!==n;)n/=2,a=a.square();return h},g.prototype.pow=_.prototype.pow,E.prototype.pow=function(t){var e=u(t),r=this.value,n=e.value,s=BigInt(0),a=BigInt(1),h=BigInt(2);if(n===s)return C[1];if(r===s)return C[0];if(r===a)return C[1];if(r===BigInt(-1))return e.isEven()?C[1]:C[-1];if(e.isNegative())return new E(s);for(var f=this,y=C[1];(n&a)===a&&(y=y.times(f),--n),n!==s;)n/=h,f=f.square();return y},E.prototype.modPow=g.prototype.modPow=_.prototype.modPow=function(t,e){if(t=u(t),(e=u(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var r=C[1],n=this.mod(e);for(t.isNegative()&&(t=t.multiply(C[-1]),n=n.modInv(e));t.isPositive();){if(n.isZero())return C[0];t.isOdd()&&(r=r.multiply(n).mod(e)),t=t.divide(2),n=n.square().mod(e)}return r},_.prototype.compareAbs=function(t){var e=u(t);return e.isSmall?1:lt(this.value,e.value)},g.prototype.compareAbs=function(t){var e=u(t),r=Math.abs(this.value),n=e.value;return e.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},E.prototype.compareAbs=function(t){var e=this.value,r=u(t).value;return(e=e>=0?e:-e)===(r=r>=0?r:-r)?0:e>r?1:-1},_.prototype.compareTo=_.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=u(t);return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:lt(this.value,e.value)*(this.sign?-1:1)},g.prototype.compareTo=g.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=u(t),r=this.value,n=e.value;return e.isSmall?r==n?0:r>n?1:-1:r<0!==e.sign?r<0?-1:1:r<0?1:-1},E.prototype.compareTo=E.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,r=u(t).value;return e===r?0:e>r?1:-1},E.prototype.eq=E.prototype.equals=g.prototype.eq=g.prototype.equals=_.prototype.eq=_.prototype.equals=function(t){return 0===this.compare(t)},E.prototype.neq=E.prototype.notEquals=g.prototype.neq=g.prototype.notEquals=_.prototype.neq=_.prototype.notEquals=function(t){return 0!==this.compare(t)},E.prototype.gt=E.prototype.greater=g.prototype.gt=g.prototype.greater=_.prototype.gt=_.prototype.greater=function(t){return this.compare(t)>0},E.prototype.lt=E.prototype.lesser=g.prototype.lt=g.prototype.lesser=_.prototype.lt=_.prototype.lesser=function(t){return this.compare(t)<0},E.prototype.geq=E.prototype.greaterOrEquals=g.prototype.geq=g.prototype.greaterOrEquals=_.prototype.geq=_.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},E.prototype.leq=E.prototype.lesserOrEquals=g.prototype.leq=g.prototype.lesserOrEquals=_.prototype.leq=_.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},_.prototype.isEven=function(){return 0==(1&this.value[0])},g.prototype.isEven=function(){return 0==(1&this.value)},E.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},_.prototype.isOdd=function(){return 1==(1&this.value[0])},g.prototype.isOdd=function(){return 1==(1&this.value)},E.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},_.prototype.isPositive=function(){return!this.sign},E.prototype.isPositive=g.prototype.isPositive=function(){return this.value>0},_.prototype.isNegative=function(){return this.sign},E.prototype.isNegative=g.prototype.isNegative=function(){return this.value<0},_.prototype.isUnit=function(){return!1},g.prototype.isUnit=function(){return 1===Math.abs(this.value)},E.prototype.isUnit=function(){return this.abs().value===BigInt(1)},_.prototype.isZero=function(){return!1},g.prototype.isZero=function(){return 0===this.value},E.prototype.isZero=function(){return this.value===BigInt(0)},E.prototype.isDivisibleBy=g.prototype.isDivisibleBy=_.prototype.isDivisibleBy=function(t){var e=u(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},E.prototype.isPrime=g.prototype.isPrime=_.prototype.isPrime=function(t){var e=se(this);if(e!==vt)return e;var r=this.abs(),n=r.bitLength();if(n<=64)return it(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var s=Math.log(2)*n.toJSNumber(),a=Math.ceil(!0===t?2*Math.pow(s,2):s),h=[],f=0;f<a;f++)h.push(Q(f+2));return it(r,h)},E.prototype.isProbablePrime=g.prototype.isProbablePrime=_.prototype.isProbablePrime=function(t,e){var r=se(this);if(r!==vt)return r;for(var n=this.abs(),s=t===vt?5:t,a=[],h=0;h<s;h++)a.push(Q.randBetween(2,n.minus(2),e));return it(n,a)},E.prototype.modInv=g.prototype.modInv=_.prototype.modInv=function(t){for(var a,h,f,e=Q.zero,r=Q.one,n=u(t),s=this.abs();!s.isZero();)a=n.divide(s),h=e,f=n,e=r,n=s,r=h.subtract(a.multiply(r)),s=f.subtract(a.multiply(s));if(!n.isUnit())throw new Error(this.toString()+" and "+t.toString()+" are not co-prime");return-1===e.compare(0)&&(e=e.add(t)),this.isNegative()?e.negate():e},_.prototype.next=function(){var t=this.value;return this.sign?jt(t,1,this.sign):new _(Dt(t,1),this.sign)},g.prototype.next=function(){var t=this.value;return t+1<Mt?new g(t+1):new _(ft,!1)},E.prototype.next=function(){return new E(this.value+BigInt(1))},_.prototype.prev=function(){var t=this.value;return this.sign?new _(Dt(t,1),!0):jt(t,1,this.sign)},g.prototype.prev=function(){var t=this.value;return t-1>-Mt?new g(t-1):new _(ft,!0)},E.prototype.prev=function(){return new E(this.value-BigInt(1))};for(var yt=[1];2*yt[yt.length-1]<=F;)yt.push(2*yt[yt.length-1]);var At=yt.length,bt=yt[At-1];function $t(t){return Math.abs(t)<=F}function Qt(t,e,r){e=u(e);for(var n=t.isNegative(),s=e.isNegative(),a=n?t.not():t,h=s?e.not():e,f=0,y=0,b=null,Z=null,N=[];!a.isZero()||!h.isZero();)f=(b=It(a,bt))[1].toJSNumber(),n&&(f=bt-1-f),y=(Z=It(h,bt))[1].toJSNumber(),s&&(y=bt-1-y),a=b[0],h=Z[0],N.push(r(f,y));for(var S=0!==r(n?1:0,s?1:0)?Q(-1):Q(0),P=N.length-1;P>=0;P-=1)S=S.multiply(bt).add(Q(N[P]));return S}E.prototype.shiftLeft=g.prototype.shiftLeft=_.prototype.shiftLeft=function(t){var e=u(t).toJSNumber();if(!$t(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var r=this;if(r.isZero())return r;for(;e>=At;)r=r.multiply(bt),e-=At-1;return r.multiply(yt[e])},E.prototype.shiftRight=g.prototype.shiftRight=_.prototype.shiftRight=function(t){var e,r=u(t).toJSNumber();if(!$t(r))throw new Error(String(r)+" is too large for shifting.");if(r<0)return this.shiftLeft(-r);for(var n=this;r>=At;){if(n.isZero()||n.isNegative()&&n.isUnit())return n;n=(e=It(n,bt))[1].isNegative()?e[0].prev():e[0],r-=At-1}return(e=It(n,yt[r]))[1].isNegative()?e[0].prev():e[0]},E.prototype.not=g.prototype.not=_.prototype.not=function(){return this.negate().prev()},E.prototype.and=g.prototype.and=_.prototype.and=function(t){return Qt(this,t,function(e,r){return e&r})},E.prototype.or=g.prototype.or=_.prototype.or=function(t){return Qt(this,t,function(e,r){return e|r})},E.prototype.xor=g.prototype.xor=_.prototype.xor=function(t){return Qt(this,t,function(e,r){return e^r})};var Wt=1<<30;function zt(t){var e=t.value,r="number"==typeof e?e|Wt:"bigint"==typeof e?e|BigInt(Wt):e[0]+e[1]*F|1073758208;return r&-r}function te(t,e){if(e.compareTo(t)<=0){var r=te(t,e.square(e)),n=r.p,s=r.e,a=n.multiply(e);return a.compareTo(t)<=0?{p:a,e:2*s+1}:{p:n,e:2*s}}return{p:Q(1),e:0}}function ee(t,e){return t=u(t),e=u(e),t.greater(e)?t:e}function Ht(t,e){return t=u(t),e=u(e),t.lesser(e)?t:e}function ae(t,e){if(t=u(t).abs(),e=u(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var n,s,r=C[1];t.isEven()&&e.isEven();)n=Ht(zt(t),zt(e)),t=t.divide(n),e=e.divide(n),r=r.multiply(n);for(;t.isEven();)t=t.divide(zt(t));do{for(;e.isEven();)e=e.divide(zt(e));t.greater(e)&&(s=e,e=t,t=s),e=e.subtract(t)}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}E.prototype.bitLength=g.prototype.bitLength=_.prototype.bitLength=function(){var t=this;return t.compareTo(Q(0))<0&&(t=t.negate().subtract(Q(1))),0===t.compareTo(Q(0))?Q(0):Q(te(t,Q(2)).e).add(Q(1))};var fe=function(t,e,r,n){r=r||pt,t=String(t),n||(t=t.toLowerCase(),r=r.toLowerCase());var a,s=t.length,h=Math.abs(e),f={};for(a=0;a<r.length;a++)f[r[a]]=a;for(a=0;a<s;a++)if("-"!==(y=t[a])&&y in f&&f[y]>=h){if("1"===y&&1===h)continue;throw new Error(y+" is not a valid digit in base "+e+".")}e=u(e);var b=[],Z="-"===t[0];for(a=Z?1:0;a<t.length;a++){var y;if((y=t[a])in f)b.push(u(f[y]));else{if("<"!==y)throw new Error(y+" is not a valid character");var N=a;do{a++}while(">"!==t[a]&&a<t.length);b.push(u(t.slice(N+1,a)))}}return ue(b,e,Z)};function ue(t,e,r){var a,n=C[0],s=C[1];for(a=t.length-1;a>=0;a--)n=n.add(t[a].times(s)),s=s.times(e);return r?n.negate():n}function o(t,e){if((e=Q(e)).isZero()){if(t.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:!1};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var n=!1;if(t.isNegative()&&e.isPositive()&&(n=!0,t=t.abs()),e.isUnit())return t.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:n};for(var h,s=[],a=t;a.isNegative()||a.compareAbs(e)>=0;){h=a.divmod(e),a=h.quotient;var f=h.remainder;f.isNegative()&&(f=e.minus(f).abs(),a=a.next()),s.push(f.toJSNumber())}return s.push(a.toJSNumber()),{value:s.reverse(),isNegative:n}}function l(t,e,r){var n=o(t,e);return(n.isNegative?"-":"")+n.value.map(function(s){return function he(t,e){return t<(e=e||pt).length?e[t]:"<"+t+">"}(s,r)}).join("")}function d(t){if(at(+t)){var e=+t;if(e===Tt(e))return Et?new E(BigInt(e)):new g(e);throw new Error("Invalid integer: "+t)}var r="-"===t[0];r&&(t=t.slice(1));var n=t.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var s=n[1];if("+"===s[0]&&(s=s.slice(1)),(s=+s)!==Tt(s)||!at(s))throw new Error("Invalid integer: "+s+" is not a valid exponent.");var a=n[0],h=a.indexOf(".");if(h>=0&&(s-=a.length-h-1,a=a.slice(0,h)+a.slice(h+1)),s<0)throw new Error("Cannot include negative exponent part for integers");t=a+=new Array(s+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(Et)return new E(BigInt(r?"-"+t:t));for(var y=[],b=t.length,N=b-7;b>0;)y.push(+t.slice(N,b)),(N-=7)<0&&(N=0),b-=7;return gt(y),new _(y,r)}function u(t){return"number"==typeof t?function p(t){if(Et)return new E(BigInt(t));if(at(t)){if(t!==Tt(t))throw new Error(t+" is not an integer.");return new g(t)}return d(t.toString())}(t):"string"==typeof t?d(t):"bigint"==typeof t?new E(t):t}_.prototype.toArray=function(t){return o(this,t)},g.prototype.toArray=function(t){return o(this,t)},E.prototype.toArray=function(t){return o(this,t)},_.prototype.toString=function(t,e){if(t===vt&&(t=10),10!==t)return l(this,t,e);for(var h,r=this.value,n=r.length,s=String(r[--n]);--n>=0;)h=String(r[n]),s+="0000000".slice(h.length)+h;return(this.sign?"-":"")+s},E.prototype.toString=g.prototype.toString=function(t,e){return t===vt&&(t=10),10!=t?l(this,t,e):String(this.value)},E.prototype.toJSON=_.prototype.toJSON=g.prototype.toJSON=function(){return this.toString()},_.prototype.toJSNumber=_.prototype.valueOf=function(){return parseInt(this.toString(),10)},g.prototype.toJSNumber=g.prototype.valueOf=function(){return this.value},E.prototype.valueOf=E.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var m=0;m<1e3;m++)C[m]=u(m),m>0&&(C[-m]=u(-m));return C.one=C[1],C.zero=C[0],C.minusOne=C[-1],C.max=ee,C.min=Ht,C.gcd=ae,C.lcm=function Xt(t,e){return t=u(t).abs(),e=u(e).abs(),t.divide(ae(t,e)).multiply(e)},C.isInstance=function(t){return t instanceof _||t instanceof g||t instanceof E},C.randBetween=function Lt(t,e,r){t=u(t),e=u(e);var n=r||Math.random,s=Ht(t,e),h=ee(t,e).subtract(s).add(1);if(h.isSmall)return s.add(Math.floor(n()*h));for(var f=o(h,F).value,y=[],b=!0,Z=0;Z<f.length;Z++){var N=b?f[Z]+(Z+1<f.length?f[Z+1]/F:0):F,S=Tt(n()*N);y.push(S),S<f[Z]&&(b=!1)}return s.add(C.fromArray(y,F,!1))},C.fromArray=function(t,e,r){return ue(t.map(u),u(e||10),r)},C}();ot.hasOwnProperty("exports")&&(ot.exports=Q),void 0!==(Ot=function(){return Q}.call(Nt,ht,Nt,ot))&&(ot.exports=Ot)},8583:()=>{"use strict";!function(o){const l=o.performance;function d(G){l&&l.mark&&l.mark(G)}function p(G,M){l&&l.measure&&l.measure(G,M)}d("Zone");const u=o.__Zone_symbol_prefix||"__zone_symbol__";function m(G){return u+G}const t=!0===o[m("forceDuplicateZoneCheck")];if(o.Zone){if(t||"function"!=typeof o.Zone.__symbol__)throw new Error("Zone already loaded.");return o.Zone}let e=(()=>{class G{constructor(i,c){this._parent=i,this._name=c?c.name||"unnamed":"<root>",this._properties=c&&c.properties||{},this._zoneDelegate=new n(this,this._parent&&this._parent._zoneDelegate,c)}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 i=G.current;for(;i.parent;)i=i.parent;return i}static get current(){return tt.zone}static get currentTask(){return mt}static __load_patch(i,c,A=!1){if(St.hasOwnProperty(i)){if(!A&&t)throw Error("Already loaded patch: "+i)}else if(!o["__Zone_disable_"+i]){const q="Zone:"+i;d(q),St[i]=c(o,G,rt),p(q,q)}}get parent(){return this._parent}get name(){return this._name}get(i){const c=this.getZoneWith(i);if(c)return c._properties[i]}getZoneWith(i){let c=this;for(;c;){if(c._properties.hasOwnProperty(i))return c;c=c._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,c){if("function"!=typeof i)throw new Error("Expecting function got: "+i);const A=this._zoneDelegate.intercept(this,i,c),q=this;return function(){return q.runGuarded(A,this,arguments,c)}}run(i,c,A,q){tt={parent:tt,zone:this};try{return this._zoneDelegate.invoke(this,i,c,A,q)}finally{tt=tt.parent}}runGuarded(i,c=null,A,q){tt={parent:tt,zone:this};try{try{return this._zoneDelegate.invoke(this,i,c,A,q)}catch(nt){if(this._zoneDelegate.handleError(this,nt))throw nt}}finally{tt=tt.parent}}runTask(i,c,A){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||W).name+"; Execution: "+this.name+")");if(i.state===z&&(i.type===st||i.type===B))return;const q=i.state!=I;q&&i._transitionTo(I,X),i.runCount++;const nt=mt;mt=i,tt={parent:tt,zone:this};try{i.type==B&&i.data&&!i.data.isPeriodic&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,i,c,A)}catch(T){if(this._zoneDelegate.handleError(this,T))throw T}}finally{i.state!==z&&i.state!==O&&(i.type==st||i.data&&i.data.isPeriodic?q&&i._transitionTo(X,I):(i.runCount=0,this._updateTaskCount(i,-1),q&&i._transitionTo(z,I,z))),tt=tt.parent,mt=nt}}scheduleTask(i){if(i.zone&&i.zone!==this){let A=this;for(;A;){if(A===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);A=A.parent}}i._transitionTo($,z);const c=[];i._zoneDelegates=c,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(A){throw i._transitionTo(O,$,z),this._zoneDelegate.handleError(this,A),A}return i._zoneDelegates===c&&this._updateTaskCount(i,1),i.state==$&&i._transitionTo(X,$),i}scheduleMicroTask(i,c,A,q){return this.scheduleTask(new s(V,i,c,A,q,void 0))}scheduleMacroTask(i,c,A,q,nt){return this.scheduleTask(new s(B,i,c,A,q,nt))}scheduleEventTask(i,c,A,q,nt){return this.scheduleTask(new s(st,i,c,A,q,nt))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||W).name+"; Execution: "+this.name+")");i._transitionTo(Y,X,I);try{this._zoneDelegate.cancelTask(this,i)}catch(c){throw i._transitionTo(O,Y),this._zoneDelegate.handleError(this,c),c}return this._updateTaskCount(i,-1),i._transitionTo(z,Y),i.runCount=0,i}_updateTaskCount(i,c){const A=i._zoneDelegates;-1==c&&(i._zoneDelegates=null);for(let q=0;q<A.length;q++)A[q]._updateTaskCount(i.type,c)}}return G.__symbol__=m,G})();const r={name:"",onHasTask:(G,M,i,c)=>G.hasTask(i,c),onScheduleTask:(G,M,i,c)=>G.scheduleTask(i,c),onInvokeTask:(G,M,i,c,A,q)=>G.invokeTask(i,c,A,q),onCancelTask:(G,M,i,c)=>G.cancelTask(i,c)};class n{constructor(M,i,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=M,this._parentDelegate=i,this._forkZS=c&&(c&&c.onFork?c:i._forkZS),this._forkDlgt=c&&(c.onFork?i:i._forkDlgt),this._forkCurrZone=c&&(c.onFork?this.zone:i._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:i._interceptZS),this._interceptDlgt=c&&(c.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this.zone:i._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:i._invokeZS),this._invokeDlgt=c&&(c.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this.zone:i._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:i._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this.zone:i._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:i._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this.zone:i._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:i._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this.zone:i._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:i._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this.zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const A=c&&c.onHasTask;(A||i&&i._hasTaskZS)&&(this._hasTaskZS=A?c:r,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=M,c.onScheduleTask||(this._scheduleTaskZS=r,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this.zone),c.onInvokeTask||(this._invokeTaskZS=r,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this.zone),c.onCancelTask||(this._cancelTaskZS=r,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this.zone))}fork(M,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,M,i):new e(M,i)}intercept(M,i,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,M,i,c):i}invoke(M,i,c,A,q){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,M,i,c,A,q):i.apply(c,A)}handleError(M,i){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,M,i)}scheduleTask(M,i){let c=i;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,M,i),c||(c=i);else if(i.scheduleFn)i.scheduleFn(i);else{if(i.type!=V)throw new Error("Task is missing scheduleFn.");S(i)}return c}invokeTask(M,i,c,A){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,M,i,c,A):i.callback.apply(c,A)}cancelTask(M,i){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,M,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");c=i.cancelFn(i)}return c}hasTask(M,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,M,i)}catch(c){this.handleError(M,c)}}_updateTaskCount(M,i){const c=this._taskCounts,A=c[M],q=c[M]=A+i;if(q<0)throw new Error("More tasks executed then were scheduled.");0!=A&&0!=q||this.hasTask(this.zone,{microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:M})}}class s{constructor(M,i,c,A,q,nt){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=M,this.source=i,this.data=A,this.scheduleFn=q,this.cancelFn=nt,!c)throw new Error("callback is not defined");this.callback=c;const T=this;this.invoke=M===st&&A&&A.useG?s.invokeTask:function(){return s.invokeTask.call(o,T,this,arguments)}}static invokeTask(M,i,c){M||(M=this),ct++;try{return M.runCount++,M.zone.runTask(M,i,c)}finally{1==ct&&P(),ct--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(z,$)}_transitionTo(M,i,c){if(this._state!==i&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${M}', expecting state '${i}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=M,M==z&&(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 a=m("setTimeout"),h=m("Promise"),f=m("then");let Z,y=[],b=!1;function N(G){if(Z||o[h]&&(Z=o[h].resolve(0)),Z){let M=Z[f];M||(M=Z.then),M.call(Z,G)}else o[a](G,0)}function S(G){0===ct&&0===y.length&&N(P),G&&y.push(G)}function P(){if(!b){for(b=!0;y.length;){const G=y;y=[];for(let M=0;M<G.length;M++){const i=G[M];try{i.zone.runTask(i,null,null)}catch(c){rt.onUnhandledError(c)}}}rt.microtaskDrainDone(),b=!1}}const W={name:"NO ZONE"},z="notScheduled",$="scheduling",X="scheduled",I="running",Y="canceling",O="unknown",V="microTask",B="macroTask",st="eventTask",St={},rt={symbol:m,currentZoneFrame:()=>tt,onUnhandledError:et,microtaskDrainDone:et,scheduleMicroTask:S,showUncaughtError:()=>!e[m("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:et,patchMethod:()=>et,bindArguments:()=>[],patchThen:()=>et,patchMacroTask:()=>et,patchEventPrototype:()=>et,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>et,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>et,wrapWithCurrentZone:()=>et,filterProperties:()=>[],attachOriginToPatched:()=>et,_redefineProperty:()=>et,patchCallbacks:()=>et,nativeScheduleMicroTask:N};let tt={parent:null,zone:new e(null,null)},mt=null,ct=0;function et(){}p("Zone","Zone"),o.Zone=e}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ot=Object.getOwnPropertyDescriptor,Nt=Object.defineProperty,ht=Object.getPrototypeOf,Ot=Object.create,Q=Array.prototype.slice,vt="addEventListener",F="removeEventListener",Yt=Zone.__symbol__(vt),Mt=Zone.__symbol__(F),ft="true",pt="false",Et=Zone.__symbol__("");function C(o,l){return Zone.current.wrap(o,l)}function _(o,l,d,p,u){return Zone.current.scheduleMacroTask(o,l,d,p,u)}const g=Zone.__symbol__,E=typeof window<"u",at=E?window:void 0,J=E&&at||"object"==typeof self&&self||global;function gt(o,l){for(let d=o.length-1;d>=0;d--)"function"==typeof o[d]&&(o[d]=C(o[d],l+"_"+d));return o}function Tt(o){return!o||!1!==o.writable&&!("function"==typeof o.get&&typeof o.set>"u")}const xt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,wt=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),Dt=!wt&&!xt&&!(!E||!at.HTMLElement),Ct=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!xt&&!(!E||!at.HTMLElement),Gt={},jt=function(o){if(!(o=o||J.event))return;let l=Gt[o.type];l||(l=Gt[o.type]=g("ON_PROPERTY"+o.type));const d=this||o.target||J,p=d[l];let u;if(Dt&&d===at&&"error"===o.type){const m=o;u=p&&p.call(this,m.message,m.filename,m.lineno,m.colno,m.error),!0===u&&o.preventDefault()}else u=p&&p.apply(this,arguments),null!=u&&!u&&o.preventDefault();return u};function Ft(o,l,d){let p=ot(o,l);if(!p&&d&&ot(d,l)&&(p={enumerable:!0,configurable:!0}),!p||!p.configurable)return;const u=g("on"+l+"patched");if(o.hasOwnProperty(u)&&o[u])return;delete p.writable,delete p.value;const m=p.get,t=p.set,e=l.slice(2);let r=Gt[e];r||(r=Gt[e]=g("ON_PROPERTY"+e)),p.set=function(n){let s=this;!s&&o===J&&(s=J),s&&("function"==typeof s[r]&&s.removeEventListener(e,jt),t&&t.call(s,null),s[r]=n,"function"==typeof n&&s.addEventListener(e,jt,!1))},p.get=function(){let n=this;if(!n&&o===J&&(n=J),!n)return null;const s=n[r];if(s)return s;if(m){let a=m.call(this);if(a)return p.set.call(this,a),"function"==typeof n.removeAttribute&&n.removeAttribute(l),a}return null},Nt(o,l,p),o[u]=!0}function Zt(o,l,d){if(l)for(let p=0;p<l.length;p++)Ft(o,"on"+l[p],d);else{const p=[];for(const u in o)"on"==u.slice(0,2)&&p.push(u);for(let u=0;u<p.length;u++)Ft(o,p[u],d)}}const ut=g("originalInstance");function kt(o){const l=J[o];if(!l)return;J[g(o)]=l,J[o]=function(){const u=gt(arguments,o);switch(u.length){case 0:this[ut]=new l;break;case 1:this[ut]=new l(u[0]);break;case 2:this[ut]=new l(u[0],u[1]);break;case 3:this[ut]=new l(u[0],u[1],u[2]);break;case 4:this[ut]=new l(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},dt(J[o],l);const d=new l(function(){});let p;for(p in d)"XMLHttpRequest"===o&&"responseBlob"===p||function(u){"function"==typeof d[u]?J[o].prototype[u]=function(){return this[ut][u].apply(this[ut],arguments)}:Nt(J[o].prototype,u,{set:function(m){"function"==typeof m?(this[ut][u]=C(m,o+"."+u),dt(this[ut][u],m)):this[ut][u]=m},get:function(){return this[ut][u]}})}(p);for(p in l)"prototype"!==p&&l.hasOwnProperty(p)&&(J[o][p]=l[p])}function _t(o,l,d){let p=o;for(;p&&!p.hasOwnProperty(l);)p=ht(p);!p&&o[l]&&(p=o);const u=g(l);let m=null;if(p&&(!(m=p[u])||!p.hasOwnProperty(u))&&(m=p[u]=p[l],Tt(p&&ot(p,l)))){const e=d(m,u,l);p[l]=function(){return e(this,arguments)},dt(p[l],m)}return m}function ne(o,l,d){let p=null;function u(m){const t=m.data;return t.args[t.cbIdx]=function(){m.invoke.apply(this,arguments)},p.apply(t.target,t.args),m}p=_t(o,l,m=>function(t,e){const r=d(t,e);return r.cbIdx>=0&&"function"==typeof e[r.cbIdx]?_(r.name,e[r.cbIdx],r,u):m.apply(t,e)})}function dt(o,l){o[g("OriginalDelegate")]=l}let oe=!1,Kt=!1;function It(){if(oe)return Kt;oe=!0;try{const o=at.navigator.userAgent;(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/")||-1!==o.indexOf("Edge/"))&&(Kt=!0)}catch{}return Kt}Zone.__load_patch("ZoneAwarePromise",(o,l,d)=>{const p=Object.getOwnPropertyDescriptor,u=Object.defineProperty,t=d.symbol,e=[],r=!0===o[t("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],n=t("Promise"),s=t("then");d.onUnhandledError=T=>{if(d.showUncaughtError()){const w=T&&T.rejection;w?console.error("Unhandled Promise rejection:",w instanceof Error?w.message:w,"; Zone:",T.zone.name,"; Task:",T.task&&T.task.source,"; Value:",w,w instanceof Error?w.stack:void 0):console.error(T)}},d.microtaskDrainDone=()=>{for(;e.length;){const T=e.shift();try{T.zone.runGuarded(()=>{throw T.throwOriginal?T.rejection:T})}catch(w){f(w)}}};const h=t("unhandledPromiseRejectionHandler");function f(T){d.onUnhandledError(T);try{const w=l[h];"function"==typeof w&&w.call(this,T)}catch{}}function y(T){return T&&T.then}function b(T){return T}function Z(T){return i.reject(T)}const N=t("state"),S=t("value"),P=t("finally"),W=t("parentPromiseValue"),z=t("parentPromiseState"),X=null,I=!0,Y=!1;function V(T,w){return v=>{try{rt(T,w,v)}catch(k){rt(T,!1,k)}}}const B=function(){let T=!1;return function(v){return function(){T||(T=!0,v.apply(null,arguments))}}},St=t("currentTaskTrace");function rt(T,w,v){const k=B();if(T===v)throw new TypeError("Promise resolved with itself");if(T[N]===X){let D=null;try{("object"==typeof v||"function"==typeof v)&&(D=v&&v.then)}catch(L){return k(()=>{rt(T,!1,L)})(),T}if(w!==Y&&v instanceof i&&v.hasOwnProperty(N)&&v.hasOwnProperty(S)&&v[N]!==X)mt(v),rt(T,v[N],v[S]);else if(w!==Y&&"function"==typeof D)try{D.call(v,k(V(T,w)),k(V(T,!1)))}catch(L){k(()=>{rt(T,!1,L)})()}else{T[N]=w;const L=T[S];if(T[S]=v,T[P]===P&&w===I&&(T[N]=T[z],T[S]=T[W]),w===Y&&v instanceof Error){const R=l.currentTask&&l.currentTask.data&&l.currentTask.data.__creationTrace__;R&&u(v,St,{configurable:!0,enumerable:!1,writable:!0,value:R})}for(let R=0;R<L.length;)ct(T,L[R++],L[R++],L[R++],L[R++]);if(0==L.length&&w==Y){T[N]=0;let R=v;try{throw new Error("Uncaught (in promise): "+function m(T){return T&&T.toString===Object.prototype.toString?(T.constructor&&T.constructor.name||"")+": "+JSON.stringify(T):T?T.toString():Object.prototype.toString.call(T)}(v)+(v&&v.stack?"\n"+v.stack:""))}catch(j){R=j}r&&(R.throwOriginal=!0),R.rejection=v,R.promise=T,R.zone=l.current,R.task=l.currentTask,e.push(R),d.scheduleMicroTask()}}}return T}const tt=t("rejectionHandledHandler");function mt(T){if(0===T[N]){try{const w=l[tt];w&&"function"==typeof w&&w.call(this,{rejection:T[S],promise:T})}catch{}T[N]=Y;for(let w=0;w<e.length;w++)T===e[w].promise&&e.splice(w,1)}}function ct(T,w,v,k,D){mt(T);const L=T[N],R=L?"function"==typeof k?k:b:"function"==typeof D?D:Z;w.scheduleMicroTask("Promise.then",()=>{try{const j=T[S],H=!!v&&P===v[P];H&&(v[W]=j,v[z]=L);const U=w.run(R,void 0,H&&R!==Z&&R!==b?[]:[j]);rt(v,!0,U)}catch(j){rt(v,!1,j)}},v)}const G=function(){},M=o.AggregateError;class i{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(w){return rt(new this(null),I,w)}static reject(w){return rt(new this(null),Y,w)}static any(w){if(!w||"function"!=typeof w[Symbol.iterator])return Promise.reject(new M([],"All promises were rejected"));const v=[];let k=0;try{for(let R of w)k++,v.push(i.resolve(R))}catch{return Promise.reject(new M([],"All promises were rejected"))}if(0===k)return Promise.reject(new M([],"All promises were rejected"));let D=!1;const L=[];return new i((R,j)=>{for(let H=0;H<v.length;H++)v[H].then(U=>{D||(D=!0,R(U))},U=>{L.push(U),k--,0===k&&(D=!0,j(new M(L,"All promises were rejected")))})})}static race(w){let v,k,D=new this((j,H)=>{v=j,k=H});function L(j){v(j)}function R(j){k(j)}for(let j of w)y(j)||(j=this.resolve(j)),j.then(L,R);return D}static all(w){return i.allWithCallback(w)}static allSettled(w){return(this&&this.prototype instanceof i?this:i).allWithCallback(w,{thenCallback:k=>({status:"fulfilled",value:k}),errorCallback:k=>({status:"rejected",reason:k})})}static allWithCallback(w,v){let k,D,L=new this((U,x)=>{k=U,D=x}),R=2,j=0;const H=[];for(let U of w){y(U)||(U=this.resolve(U));const x=j;try{U.then(K=>{H[x]=v?v.thenCallback(K):K,R--,0===R&&k(H)},K=>{v?(H[x]=v.errorCallback(K),R--,0===R&&k(H)):D(K)})}catch(K){D(K)}R++,j++}return R-=2,0===R&&k(H),L}constructor(w){const v=this;if(!(v instanceof i))throw new Error("Must be an instanceof Promise.");v[N]=X,v[S]=[];try{const k=B();w&&w(k(V(v,I)),k(V(v,Y)))}catch(k){rt(v,!1,k)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return i}then(w,v){var k;let D=null===(k=this.constructor)||void 0===k?void 0:k[Symbol.species];(!D||"function"!=typeof D)&&(D=this.constructor||i);const L=new D(G),R=l.current;return this[N]==X?this[S].push(R,L,w,v):ct(this,R,L,w,v),L}catch(w){return this.then(null,w)}finally(w){var v;let k=null===(v=this.constructor)||void 0===v?void 0:v[Symbol.species];(!k||"function"!=typeof k)&&(k=i);const D=new k(G);D[P]=P;const L=l.current;return this[N]==X?this[S].push(L,D,w,w):ct(this,L,D,w,w),D}}i.resolve=i.resolve,i.reject=i.reject,i.race=i.race,i.all=i.all;const c=o[n]=o.Promise;o.Promise=i;const A=t("thenPatched");function q(T){const w=T.prototype,v=p(w,"then");if(v&&(!1===v.writable||!v.configurable))return;const k=w.then;w[s]=k,T.prototype.then=function(D,L){return new i((j,H)=>{k.call(this,j,H)}).then(D,L)},T[A]=!0}return d.patchThen=q,c&&(q(c),_t(o,"fetch",T=>function nt(T){return function(w,v){let k=T.apply(w,v);if(k instanceof i)return k;let D=k.constructor;return D[A]||q(D),k}}(T))),Promise[l.__symbol__("uncaughtPromiseErrors")]=e,i}),Zone.__load_patch("toString",o=>{const l=Function.prototype.toString,d=g("OriginalDelegate"),p=g("Promise"),u=g("Error"),m=function(){if("function"==typeof this){const n=this[d];if(n)return"function"==typeof n?l.call(n):Object.prototype.toString.call(n);if(this===Promise){const s=o[p];if(s)return l.call(s)}if(this===Error){const s=o[u];if(s)return l.call(s)}}return l.call(this)};m[d]=l,Function.prototype.toString=m;const t=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":t.call(this)}});let lt=!1;if(typeof window<"u")try{const o=Object.defineProperty({},"passive",{get:function(){lt=!0}});window.addEventListener("test",o,o),window.removeEventListener("test",o,o)}catch{lt=!1}const se={useG:!0},it={},yt={},At=new RegExp("^"+Et+"(\\w+)(true|false)$"),bt=g("propagationStopped");function $t(o,l){const d=(l?l(o):o)+pt,p=(l?l(o):o)+ft,u=Et+d,m=Et+p;it[o]={},it[o][pt]=u,it[o][ft]=m}function Qt(o,l,d,p){const u=p&&p.add||vt,m=p&&p.rm||F,t=p&&p.listeners||"eventListeners",e=p&&p.rmAll||"removeAllListeners",r=g(u),n="."+u+":",h=function(S,P,W){if(S.isRemoved)return;const z=S.callback;let $;"object"==typeof z&&z.handleEvent&&(S.callback=I=>z.handleEvent(I),S.originalDelegate=z);try{S.invoke(S,P,[W])}catch(I){$=I}const X=S.options;return X&&"object"==typeof X&&X.once&&P[m].call(P,W.type,S.originalDelegate?S.originalDelegate:S.callback,X),$};function f(S,P,W){if(!(P=P||o.event))return;const z=S||P.target||o,$=z[it[P.type][W?ft:pt]];if($){const X=[];if(1===$.length){const I=h($[0],z,P);I&&X.push(I)}else{const I=$.slice();for(let Y=0;Y<I.length&&(!P||!0!==P[bt]);Y++){const O=h(I[Y],z,P);O&&X.push(O)}}if(1===X.length)throw X[0];for(let I=0;I<X.length;I++){const Y=X[I];l.nativeScheduleMicroTask(()=>{throw Y})}}}const y=function(S){return f(this,S,!1)},b=function(S){return f(this,S,!0)};function Z(S,P){if(!S)return!1;let W=!0;P&&void 0!==P.useG&&(W=P.useG);const z=P&&P.vh;let $=!0;P&&void 0!==P.chkDup&&($=P.chkDup);let X=!1;P&&void 0!==P.rt&&(X=P.rt);let I=S;for(;I&&!I.hasOwnProperty(u);)I=ht(I);if(!I&&S[u]&&(I=S),!I||I[r])return!1;const Y=P&&P.eventNameToString,O={},V=I[r]=I[u],B=I[g(m)]=I[m],st=I[g(t)]=I[t],St=I[g(e)]=I[e];let rt;function tt(v,k){return!lt&&"object"==typeof v&&v?!!v.capture:lt&&k?"boolean"==typeof v?{capture:v,passive:!0}:v?"object"==typeof v&&!1!==v.passive?Object.assign(Object.assign({},v),{passive:!0}):v:{passive:!0}:v}P&&P.prepend&&(rt=I[g(P.prepend)]=I[P.prepend]);const i=W?function(v){if(!O.isExisting)return V.call(O.target,O.eventName,O.capture?b:y,O.options)}:function(v){return V.call(O.target,O.eventName,v.invoke,O.options)},c=W?function(v){if(!v.isRemoved){const k=it[v.eventName];let D;k&&(D=k[v.capture?ft:pt]);const L=D&&v.target[D];if(L)for(let R=0;R<L.length;R++)if(L[R]===v){L.splice(R,1),v.isRemoved=!0,0===L.length&&(v.allRemoved=!0,v.target[D]=null);break}}if(v.allRemoved)return B.call(v.target,v.eventName,v.capture?b:y,v.options)}:function(v){return B.call(v.target,v.eventName,v.invoke,v.options)},q=P&&P.diff?P.diff:function(v,k){const D=typeof k;return"function"===D&&v.callback===k||"object"===D&&v.originalDelegate===k},nt=Zone[g("UNPATCHED_EVENTS")],T=o[g("PASSIVE_EVENTS")],w=function(v,k,D,L,R=!1,j=!1){return function(){const H=this||o;let U=arguments[0];P&&P.transferEventName&&(U=P.transferEventName(U));let x=arguments[1];if(!x)return v.apply(this,arguments);if(wt&&"uncaughtException"===U)return v.apply(this,arguments);let K=!1;if("function"!=typeof x){if(!x.handleEvent)return v.apply(this,arguments);K=!0}if(z&&!z(v,x,H,arguments))return;const Bt=lt&&!!T&&-1!==T.indexOf(U),Pt=tt(arguments[2],Bt);if(nt)for(let Ut=0;Ut<nt.length;Ut++)if(U===nt[Ut])return Bt?v.call(H,U,x,Pt):v.apply(this,arguments);const pe=!!Pt&&("boolean"==typeof Pt||Pt.capture),ye=!(!Pt||"object"!=typeof Pt)&&Pt.once,Ee=Zone.current;let de=it[U];de||($t(U,Y),de=it[U]);const ve=de[pe?ft:pt];let le,Jt=H[ve],ge=!1;if(Jt){if(ge=!0,$)for(let Ut=0;Ut<Jt.length;Ut++)if(q(Jt[Ut],x))return}else Jt=H[ve]=[];const _e=H.constructor.name,me=yt[_e];me&&(le=me[U]),le||(le=_e+k+(Y?Y(U):U)),O.options=Pt,ye&&(O.options.once=!1),O.target=H,O.capture=pe,O.eventName=U,O.isExisting=ge;const re=W?se:void 0;re&&(re.taskData=O);const qt=Ee.scheduleEventTask(le,x,re,D,L);return O.target=null,re&&(re.taskData=null),ye&&(Pt.once=!0),!lt&&"boolean"==typeof qt.options||(qt.options=Pt),qt.target=H,qt.capture=pe,qt.eventName=U,K&&(qt.originalDelegate=x),j?Jt.unshift(qt):Jt.push(qt),R?H:void 0}};return I[u]=w(V,n,i,c,X),rt&&(I.prependListener=w(rt,".prependListener:",function(v){return rt.call(O.target,O.eventName,v.invoke,O.options)},c,X,!0)),I[m]=function(){const v=this||o;let k=arguments[0];P&&P.transferEventName&&(k=P.transferEventName(k));const D=arguments[2],L=!!D&&("boolean"==typeof D||D.capture),R=arguments[1];if(!R)return B.apply(this,arguments);if(z&&!z(B,R,v,arguments))return;const j=it[k];let H;j&&(H=j[L?ft:pt]);const U=H&&v[H];if(U)for(let x=0;x<U.length;x++){const K=U[x];if(q(K,R))return U.splice(x,1),K.isRemoved=!0,0===U.length&&(K.allRemoved=!0,v[H]=null,"string"==typeof k)&&(v[Et+"ON_PROPERTY"+k]=null),K.zone.cancelTask(K),X?v:void 0}return B.apply(this,arguments)},I[t]=function(){const v=this||o;let k=arguments[0];P&&P.transferEventName&&(k=P.transferEventName(k));const D=[],L=Wt(v,Y?Y(k):k);for(let R=0;R<L.length;R++){const j=L[R];D.push(j.originalDelegate?j.originalDelegate:j.callback)}return D},I[e]=function(){const v=this||o;let k=arguments[0];if(k){P&&P.transferEventName&&(k=P.transferEventName(k));const D=it[k];if(D){const j=v[D[pt]],H=v[D[ft]];if(j){const U=j.slice();for(let x=0;x<U.length;x++){const K=U[x];this[m].call(this,k,K.originalDelegate?K.originalDelegate:K.callback,K.options)}}if(H){const U=H.slice();for(let x=0;x<U.length;x++){const K=U[x];this[m].call(this,k,K.originalDelegate?K.originalDelegate:K.callback,K.options)}}}}else{const D=Object.keys(v);for(let L=0;L<D.length;L++){const j=At.exec(D[L]);let H=j&&j[1];H&&"removeListener"!==H&&this[e].call(this,H)}this[e].call(this,"removeListener")}if(X)return this},dt(I[u],V),dt(I[m],B),St&&dt(I[e],St),st&&dt(I[t],st),!0}let N=[];for(let S=0;S<d.length;S++)N[S]=Z(d[S],p);return N}function Wt(o,l){if(!l){const m=[];for(let t in o){const e=At.exec(t);let r=e&&e[1];if(r&&(!l||r===l)){const n=o[t];if(n)for(let s=0;s<n.length;s++)m.push(n[s])}}return m}let d=it[l];d||($t(l),d=it[l]);const p=o[d[pt]],u=o[d[ft]];return p?u?p.concat(u):p.slice():u?u.slice():[]}function ce(o,l){const d=o.Event;d&&d.prototype&&l.patchMethod(d.prototype,"stopImmediatePropagation",p=>function(u,m){u[bt]=!0,p&&p.apply(u,m)})}function zt(o,l,d,p,u){const m=Zone.__symbol__(p);if(l[m])return;const t=l[m]=l[p];l[p]=function(e,r,n){return r&&r.prototype&&u.forEach(function(s){const a=`${d}.${p}::`+s,h=r.prototype;try{if(h.hasOwnProperty(s)){const f=o.ObjectGetOwnPropertyDescriptor(h,s);f&&f.value?(f.value=o.wrapWithCurrentZone(f.value,a),o._redefineProperty(r.prototype,s,f)):h[s]&&(h[s]=o.wrapWithCurrentZone(h[s],a))}else h[s]&&(h[s]=o.wrapWithCurrentZone(h[s],a))}catch{}}),t.call(l,e,r,n)},o.attachOriginToPatched(l[p],t)}function te(o,l,d){if(!d||0===d.length)return l;const p=d.filter(m=>m.target===o);if(!p||0===p.length)return l;const u=p[0].ignoreProperties;return l.filter(m=>-1===u.indexOf(m))}function ee(o,l,d,p){o&&Zt(o,te(o,l,d),p)}function Ht(o){return Object.getOwnPropertyNames(o).filter(l=>l.startsWith("on")&&l.length>2).map(l=>l.substring(2))}Zone.__load_patch("util",(o,l,d)=>{const p=Ht(o);d.patchOnProperties=Zt,d.patchMethod=_t,d.bindArguments=gt,d.patchMacroTask=ne;const u=l.__symbol__("BLACK_LISTED_EVENTS"),m=l.__symbol__("UNPATCHED_EVENTS");o[m]&&(o[u]=o[m]),o[u]&&(l[u]=l[m]=o[u]),d.patchEventPrototype=ce,d.patchEventTarget=Qt,d.isIEOrEdge=It,d.ObjectDefineProperty=Nt,d.ObjectGetOwnPropertyDescriptor=ot,d.ObjectCreate=Ot,d.ArraySlice=Q,d.patchClass=kt,d.wrapWithCurrentZone=C,d.filterProperties=te,d.attachOriginToPatched=dt,d._redefineProperty=Object.defineProperty,d.patchCallbacks=zt,d.getGlobalObjects=()=>({globalSources:yt,zoneSymbolEventNames:it,eventNames:p,isBrowser:Dt,isMix:Ct,isNode:wt,TRUE_STR:ft,FALSE_STR:pt,ZONE_SYMBOL_PREFIX:Et,ADD_EVENT_LISTENER_STR:vt,REMOVE_EVENT_LISTENER_STR:F})});const Xt=g("zoneTask");function Lt(o,l,d,p){let u=null,m=null;d+=p;const t={};function e(n){const s=n.data;return s.args[0]=function(){return n.invoke.apply(this,arguments)},s.handleId=u.apply(o,s.args),n}function r(n){return m.call(o,n.data.handleId)}u=_t(o,l+=p,n=>function(s,a){if("function"==typeof a[0]){const h={isPeriodic:"Interval"===p,delay:"Timeout"===p||"Interval"===p?a[1]||0:void 0,args:a},f=a[0];a[0]=function(){try{return f.apply(this,arguments)}finally{h.isPeriodic||("number"==typeof h.handleId?delete t[h.handleId]:h.handleId&&(h.handleId[Xt]=null))}};const y=_(l,a[0],h,e,r);if(!y)return y;const b=y.data.handleId;return"number"==typeof b?t[b]=y:b&&(b[Xt]=y),b&&b.ref&&b.unref&&"function"==typeof b.ref&&"function"==typeof b.unref&&(y.ref=b.ref.bind(b),y.unref=b.unref.bind(b)),"number"==typeof b||b?b:y}return n.apply(o,a)}),m=_t(o,d,n=>function(s,a){const h=a[0];let f;"number"==typeof h?f=t[h]:(f=h&&h[Xt],f||(f=h)),f&&"string"==typeof f.type?"notScheduled"!==f.state&&(f.cancelFn&&f.data.isPeriodic||0===f.runCount)&&("number"==typeof h?delete t[h]:h&&(h[Xt]=null),f.zone.cancelTask(f)):n.apply(o,a)})}Zone.__load_patch("legacy",o=>{const l=o[Zone.__symbol__("legacyPatch")];l&&l()}),Zone.__load_patch("queueMicrotask",(o,l,d)=>{d.patchMethod(o,"queueMicrotask",p=>function(u,m){l.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",o=>{const l="set",d="clear";Lt(o,l,d,"Timeout"),Lt(o,l,d,"Interval"),Lt(o,l,d,"Immediate")}),Zone.__load_patch("requestAnimationFrame",o=>{Lt(o,"request","cancel","AnimationFrame"),Lt(o,"mozRequest","mozCancel","AnimationFrame"),Lt(o,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(o,l)=>{const d=["alert","prompt","confirm"];for(let p=0;p<d.length;p++)_t(o,d[p],(m,t,e)=>function(r,n){return l.current.run(m,o,n,e)})}),Zone.__load_patch("EventTarget",(o,l,d)=>{(function he(o,l){l.patchEventPrototype(o,l)})(o,d),function ue(o,l){if(Zone[l.symbol("patchEventTarget")])return;const{eventNames:d,zoneSymbolEventNames:p,TRUE_STR:u,FALSE_STR:m,ZONE_SYMBOL_PREFIX:t}=l.getGlobalObjects();for(let r=0;r<d.length;r++){const n=d[r],h=t+(n+m),f=t+(n+u);p[n]={},p[n][m]=h,p[n][u]=f}const e=o.EventTarget;e&&e.prototype&&l.patchEventTarget(o,l,[e&&e.prototype])}(o,d);const p=o.XMLHttpRequestEventTarget;p&&p.prototype&&d.patchEventTarget(o,d,[p.prototype])}),Zone.__load_patch("MutationObserver",(o,l,d)=>{kt("MutationObserver"),kt("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(o,l,d)=>{kt("IntersectionObserver")}),Zone.__load_patch("FileReader",(o,l,d)=>{kt("FileReader")}),Zone.__load_patch("on_property",(o,l,d)=>{!function ae(o,l){if(wt&&!Ct||Zone[o.symbol("patchEvents")])return;const d=l.__Zone_ignore_on_properties;let p=[];if(Dt){const u=window;p=p.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const m=function ie(){try{const o=at.navigator.userAgent;if(-1!==o.indexOf("MSIE ")||-1!==o.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];ee(u,Ht(u),d&&d.concat(m),ht(u))}p=p.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let u=0;u<p.length;u++){const m=l[p[u]];m&&m.prototype&&ee(m.prototype,Ht(m.prototype),d)}}(d,o)}),Zone.__load_patch("customElements",(o,l,d)=>{!function fe(o,l){const{isBrowser:d,isMix:p}=l.getGlobalObjects();(d||p)&&o.customElements&&"customElements"in o&&l.patchCallbacks(l,o.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(o,d)}),Zone.__load_patch("XHR",(o,l)=>{!function r(n){const s=n.XMLHttpRequest;if(!s)return;const a=s.prototype;let f=a[Yt],y=a[Mt];if(!f){const O=n.XMLHttpRequestEventTarget;if(O){const V=O.prototype;f=V[Yt],y=V[Mt]}}const b="readystatechange",Z="scheduled";function N(O){const V=O.data,B=V.target;B[m]=!1,B[e]=!1;const st=B[u];f||(f=B[Yt],y=B[Mt]),st&&y.call(B,b,st);const St=B[u]=()=>{if(B.readyState===B.DONE)if(!V.aborted&&B[m]&&O.state===Z){const tt=B[l.__symbol__("loadfalse")];if(0!==B.status&&tt&&tt.length>0){const mt=O.invoke;O.invoke=function(){const ct=B[l.__symbol__("loadfalse")];for(let et=0;et<ct.length;et++)ct[et]===O&&ct.splice(et,1);!V.aborted&&O.state===Z&&mt.call(O)},tt.push(O)}else O.invoke()}else!V.aborted&&!1===B[m]&&(B[e]=!0)};return f.call(B,b,St),B[d]||(B[d]=O),I.apply(B,V.args),B[m]=!0,O}function S(){}function P(O){const V=O.data;return V.aborted=!0,Y.apply(V.target,V.args)}const W=_t(a,"open",()=>function(O,V){return O[p]=0==V[2],O[t]=V[1],W.apply(O,V)}),$=g("fetchTaskAborting"),X=g("fetchTaskScheduling"),I=_t(a,"send",()=>function(O,V){if(!0===l.current[X]||O[p])return I.apply(O,V);{const B={target:O,url:O[t],isPeriodic:!1,args:V,aborted:!1},st=_("XMLHttpRequest.send",S,B,N,P);O&&!0===O[e]&&!B.aborted&&st.state===Z&&st.invoke()}}),Y=_t(a,"abort",()=>function(O,V){const B=function h(O){return O[d]}(O);if(B&&"string"==typeof B.type){if(null==B.cancelFn||B.data&&B.data.aborted)return;B.zone.cancelTask(B)}else if(!0===l.current[$])return Y.apply(O,V)})}(o);const d=g("xhrTask"),p=g("xhrSync"),u=g("xhrListener"),m=g("xhrScheduled"),t=g("xhrURL"),e=g("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",o=>{o.navigator&&o.navigator.geolocation&&function Vt(o,l){const d=o.constructor.name;for(let p=0;p<l.length;p++){const u=l[p],m=o[u];if(m){if(!Tt(ot(o,u)))continue;o[u]=(e=>{const r=function(){return e.apply(this,gt(arguments,d+"."+u))};return dt(r,e),r})(m)}}}(o.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(o,l)=>{function d(p){return function(u){Wt(o,p).forEach(t=>{const e=o.PromiseRejectionEvent;if(e){const r=new e(p,{promise:u.promise,reason:u.rejection});t.invoke(r)}})}}o.PromiseRejectionEvent&&(l[g("unhandledPromiseRejectionHandler")]=d("unhandledrejection"),l[g("rejectionHandledHandler")]=d("rejectionhandled"))})}},ot=>{ot(ot.s=7435)}]);