TKK_E32210179/build/static/js/main.ed7d9119.js

3 lines
723 KiB
JavaScript

/*! For license information please see main.ed7d9119.js.LICENSE.txt */
!function(){var e={244:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"===typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(677).Buffer}catch(N){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,i){for(var a=0,o=0,s=Math.min(e.length,r),u=t;u<s;u++){var l=e.charCodeAt(u)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o<i,"Invalid character"),a+=o}return a}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a=0,o=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,u=0,c=r;c<s;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var f=1;for(u=l(e,c,e.length,t),c=0;c<o;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){c(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(N){a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==a||o!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==a&&(r=a.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(c).toString(e);r=(f=f.idivn(c)).isZero()?m+r:h[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var l=1;l<n;l++){for(var c=u>>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[d])+f)/67108864|0,f=67108863&o}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===a?(r<e.length&&(e[r++]=o>>24&255),n=0,a=0):(n=o>>>24,a+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===a?(r>=0&&(e[r--]=o>>24&255),n=0,a=0):(n=o>>>24,a+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},a.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,t,r){var n,i,a,o=e.words,s=t.words,u=r.words,l=0,c=0|o[0],f=8191&c,h=c>>>13,d=0|o[1],p=8191&d,m=d>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],w=8191&b,x=b>>>13,k=0|o[4],_=8191&k,E=k>>>13,M=0|o[5],A=8191&M,S=M>>>13,N=0|o[6],T=8191&N,P=N>>>13,C=0|o[7],O=8191&C,R=C>>>13,I=0|o[8],j=8191&I,L=I>>>13,D=0|o[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,Y=0|s[1],V=8191&Y,G=Y>>>13,q=0|s[2],W=8191&q,Q=q>>>13,K=0|s[3],J=8191&K,Z=K>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ve=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0;l=((a=Math.imul(h,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,a=Math.imul(m,H);var ge=(l+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,V)|0))<<13)|0;l=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(y,z)|0,a=Math.imul(y,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,G)|0;var ye=(l+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,W)|0))<<13)|0;l=((a=a+Math.imul(h,Q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(x,z)|0,a=Math.imul(x,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,V)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Q)|0;var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0;l=((a=a+Math.imul(h,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(E,z)|0,a=Math.imul(E,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,G)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,Q)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,Z)|0;var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;l=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(S,z)|0,a=Math.imul(S,H),n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(E,V)|0,a=a+Math.imul(E,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,Z)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var xe=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((a=a+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(P,z)|0,a=Math.imul(P,H),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,V)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(E,W)|0,a=a+Math.imul(E,Q)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,Z)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0;var ke=(l+(n=n+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(h,ae)|0))<<13)|0;l=((a=a+Math.imul(h,oe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(R,z)|0,a=Math.imul(R,H),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(E,J)|0,a=a+Math.imul(E,Z)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(y,re)|0,a=a+Math.imul(y,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var _e=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0;l=((a=a+Math.imul(h,le)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(L,z)|0,a=Math.imul(L,H),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(R,V)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,Z)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(E,$)|0,a=a+Math.imul(E,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,a=a+Math.imul(m,le)|0;var Ee=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;l=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,H))+Math.imul(B,z)|0,a=Math.imul(B,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(L,V)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,Q)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,Z)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(E,re)|0,a=a+Math.imul(E,ne)|0,n=n+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,he)|0;var Me=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((a=a+Math.imul(h,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,G))+Math.imul(B,V)|0,a=Math.imul(B,G),n=n+Math.imul(j,W)|0,i=(i=i+Math.imul(j,Q)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,Q)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,Z)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(S,re)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ue)|0,a=a+Math.imul(x,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(y,fe)|0,a=a+Math.imul(y,he)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,W),i=(i=Math.imul(F,Q))+Math.imul(B,W)|0,a=Math.imul(B,Q),n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,Z)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(P,re)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(E,ue)|0,a=a+Math.imul(E,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(x,fe)|0,a=a+Math.imul(x,he)|0;var Se=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,Z))+Math.imul(B,J)|0,a=Math.imul(B,Z),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,a=a+Math.imul(R,ne)|0,n=n+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(S,ue)|0,a=a+Math.imul(S,le)|0,n=n+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(E,fe)|0,a=a+Math.imul(E,he)|0;var Ne=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;l=((a=a+Math.imul(x,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(B,$)|0,a=Math.imul(B,ee),n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(L,re)|0,a=a+Math.imul(L,ne)|0,n=n+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(P,ue)|0,a=a+Math.imul(P,le)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,he)|0;var Te=(l+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(E,pe)|0))<<13)|0;l=((a=a+Math.imul(E,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,re),i=(i=Math.imul(F,ne))+Math.imul(B,re)|0,a=Math.imul(B,ne),n=n+Math.imul(j,ae)|0,i=(i=i+Math.imul(j,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(R,ue)|0,a=a+Math.imul(R,le)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(P,fe)|0,a=a+Math.imul(P,he)|0;var Pe=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,ae),i=(i=Math.imul(F,oe))+Math.imul(B,ae)|0,a=Math.imul(B,oe),n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,le)|0)+Math.imul(L,ue)|0,a=a+Math.imul(L,le)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(R,fe)|0,a=a+Math.imul(R,he)|0;var Ce=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,ue),i=(i=Math.imul(F,le))+Math.imul(B,ue)|0,a=Math.imul(B,le),n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(L,fe)|0,a=a+Math.imul(L,he)|0;var Oe=(l+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(R,pe)|0))<<13)|0;l=((a=a+Math.imul(R,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,fe),i=(i=Math.imul(F,he))+Math.imul(B,fe)|0,a=Math.imul(B,he);var Re=(l+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((a=a+Math.imul(L,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ie=(l+(n=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(B,pe)|0))<<13)|0;return l=((a=Math.imul(B,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ge,u[2]=ye,u[3]=be,u[4]=we,u[5]=xe,u[6]=ke,u[7]=_e,u[8]=Ee,u[9]=Me,u[10]=Ae,u[11]=Se,u[12]=Ne,u[13]=Te,u[14]=Pe,u[15]=Ce,u[16]=Oe,u[17]=Re,u[18]=Ie,0!==l&&(u[19]=l,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,u=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=u;l++){var c=a-l,f=(0|e.words[c])*(0|t.words[l]),h=67108863&f;s=67108863&(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r._strip()}function y(e,t,r){return g(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(v=m),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?v(this,e,t):r<63?m(this,e,t):r<1024?g(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o<a;o++)n[o]=t[e[o]],i[o]=r[e[o]]},b.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,h=l,d=0;d<o;d++){var p=r[c+d],m=n[c+d],v=r[c+d+o],g=n[c+d+o],y=f*v-h*g;g=f*g+h*v,v=y,r[c+d]=p+v,n[c+d]=m+g,r[c+d+o]=p-v,n[c+d+o]=m-g,d!==s&&(y=u*f-l*h,h=u*h+l*f,f=y)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(0===(-8192&a))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,l,n),this.transform(o,a,s,u,n,i),this.transform(l,a,c,f,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*c[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),y(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&r);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},a.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,u=r;if(i-=o,i=Math.max(0,i),u){for(var l=0;l<o;l++)u.words[l]=this.words[l];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-a|f>>>a,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((a-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(r*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*r;this.words[i]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(u)):(r.isub(t),s.isub(i),u.isub(o))}return{a:s,b:u,gcd:r.iushln(l)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(k,x),k.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&r,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(_,x),i(E,x),i(M,x),M.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new k;else if("p224"===e)t=new _;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=o;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();n(v<p);var g=this.pow(f,new a(1).iushln(p-v-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return h},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},i(S,A),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},286:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"===typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(808).Buffer}catch(N){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,i){for(var a=0,o=0,s=Math.min(e.length,r),u=t;u<s;u++){var l=e.charCodeAt(u)-48;a*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&o<i,"Invalid character"),a+=o}return a}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(a.isBN=function(e){return e instanceof a||null!==e&&"object"===typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,a=0,o=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,u=0,c=r;c<s;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var f=1;for(u=l(e,c,e.length,t),c=0;c<o;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){c(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(N){a.prototype.inspect=f}else a.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=(16777215&(s<<i|a)).toString(16);a=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,o--),r=0!==a||o!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==a&&(r=a.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(c).toString(e);r=(f=f.idivn(c)).isZero()?m+r:h[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},o&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var l=1;l<n;l++){for(var c=u>>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0;c+=(o=(i=0|e.words[p])*(a=0|t.words[d])+f)/67108864|0,f=67108863&o}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|n;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===a?(r<e.length&&(e[r++]=o>>24&255),n=0,a=0):(n=o>>>24,a+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,a=0;i<this.length;i++){var o=this.words[i]<<a|n;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===a?(r>=0&&(e[r--]=o>>24&255),n=0,a=0):(n=o>>>24,a+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this._strip()},a.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,t,r){var n,i,a,o=e.words,s=t.words,u=r.words,l=0,c=0|o[0],f=8191&c,h=c>>>13,d=0|o[1],p=8191&d,m=d>>>13,v=0|o[2],g=8191&v,y=v>>>13,b=0|o[3],w=8191&b,x=b>>>13,k=0|o[4],_=8191&k,E=k>>>13,M=0|o[5],A=8191&M,S=M>>>13,N=0|o[6],T=8191&N,P=N>>>13,C=0|o[7],O=8191&C,R=C>>>13,I=0|o[8],j=8191&I,L=I>>>13,D=0|o[9],F=8191&D,B=D>>>13,U=0|s[0],z=8191&U,H=U>>>13,Y=0|s[1],V=8191&Y,G=Y>>>13,q=0|s[2],W=8191&q,Q=q>>>13,K=0|s[3],J=8191&K,Z=K>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ue=8191&se,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ve=(l+(n=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(h,z)|0))<<13)|0;l=((a=Math.imul(h,H))+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,a=Math.imul(m,H);var ge=(l+(n=n+Math.imul(f,V)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,V)|0))<<13)|0;l=((a=a+Math.imul(h,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,z),i=(i=Math.imul(g,H))+Math.imul(y,z)|0,a=Math.imul(y,H),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,V)|0,a=a+Math.imul(m,G)|0;var ye=(l+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(h,W)|0))<<13)|0;l=((a=a+Math.imul(h,Q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(x,z)|0,a=Math.imul(x,H),n=n+Math.imul(g,V)|0,i=(i=i+Math.imul(g,G)|0)+Math.imul(y,V)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,Q)|0;var be=(l+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0;l=((a=a+Math.imul(h,Z)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(E,z)|0,a=Math.imul(E,H),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,V)|0,a=a+Math.imul(x,G)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,Q)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,Z)|0;var we=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;l=((a=a+Math.imul(h,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(S,z)|0,a=Math.imul(S,H),n=n+Math.imul(_,V)|0,i=(i=i+Math.imul(_,G)|0)+Math.imul(E,V)|0,a=a+Math.imul(E,G)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(x,W)|0,a=a+Math.imul(x,Q)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Z)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,Z)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var xe=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((a=a+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,H))+Math.imul(P,z)|0,a=Math.imul(P,H),n=n+Math.imul(A,V)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,V)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,Q)|0)+Math.imul(E,W)|0,a=a+Math.imul(E,Q)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Z)|0)+Math.imul(x,J)|0,a=a+Math.imul(x,Z)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0;var ke=(l+(n=n+Math.imul(f,ae)|0)|0)+((8191&(i=(i=i+Math.imul(f,oe)|0)+Math.imul(h,ae)|0))<<13)|0;l=((a=a+Math.imul(h,oe)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(O,z),i=(i=Math.imul(O,H))+Math.imul(R,z)|0,a=Math.imul(R,H),n=n+Math.imul(T,V)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(P,V)|0,a=a+Math.imul(P,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,Q)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(E,J)|0,a=a+Math.imul(E,Z)|0,n=n+Math.imul(w,$)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(y,re)|0,a=a+Math.imul(y,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var _e=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0;l=((a=a+Math.imul(h,le)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,H))+Math.imul(L,z)|0,a=Math.imul(L,H),n=n+Math.imul(O,V)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(R,V)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,Q)|0)+Math.imul(P,W)|0,a=a+Math.imul(P,Q)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Z)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,Z)|0,n=n+Math.imul(_,$)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(E,$)|0,a=a+Math.imul(E,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(x,re)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(g,ae)|0,i=(i=i+Math.imul(g,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,a=a+Math.imul(m,le)|0;var Ee=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;l=((a=a+Math.imul(h,he)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,z),i=(i=Math.imul(F,H))+Math.imul(B,z)|0,a=Math.imul(B,H),n=n+Math.imul(j,V)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(L,V)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,Q)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(P,J)|0,a=a+Math.imul(P,Z)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(E,re)|0,a=a+Math.imul(E,ne)|0,n=n+Math.imul(w,ae)|0,i=(i=i+Math.imul(w,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,le)|0)+Math.imul(y,ue)|0,a=a+Math.imul(y,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,a=a+Math.imul(m,he)|0;var Me=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;l=((a=a+Math.imul(h,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,V),i=(i=Math.imul(F,G))+Math.imul(B,V)|0,a=Math.imul(B,G),n=n+Math.imul(j,W)|0,i=(i=i+Math.imul(j,Q)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,Q)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Z)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,Z)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,$)|0,a=a+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(S,re)|0,a=a+Math.imul(S,ne)|0,n=n+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(x,ue)|0,a=a+Math.imul(x,le)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(y,fe)|0,a=a+Math.imul(y,he)|0;var Ae=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,W),i=(i=Math.imul(F,Q))+Math.imul(B,W)|0,a=Math.imul(B,Q),n=n+Math.imul(j,J)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,Z)|0,n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(P,re)|0,a=a+Math.imul(P,ne)|0,n=n+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,oe)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(E,ue)|0,a=a+Math.imul(E,le)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,he)|0)+Math.imul(x,fe)|0,a=a+Math.imul(x,he)|0;var Se=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(y,pe)|0))<<13)|0;l=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,Z))+Math.imul(B,J)|0,a=Math.imul(B,Z),n=n+Math.imul(j,$)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(R,re)|0,a=a+Math.imul(R,ne)|0,n=n+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(P,ae)|0,a=a+Math.imul(P,oe)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(S,ue)|0,a=a+Math.imul(S,le)|0,n=n+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(E,fe)|0,a=a+Math.imul(E,he)|0;var Ne=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,pe)|0))<<13)|0;l=((a=a+Math.imul(x,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(B,$)|0,a=Math.imul(B,ee),n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(L,re)|0,a=a+Math.imul(L,ne)|0,n=n+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(P,ue)|0,a=a+Math.imul(P,le)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(S,fe)|0,a=a+Math.imul(S,he)|0;var Te=(l+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(E,pe)|0))<<13)|0;l=((a=a+Math.imul(E,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,re),i=(i=Math.imul(F,ne))+Math.imul(B,re)|0,a=Math.imul(B,ne),n=n+Math.imul(j,ae)|0,i=(i=i+Math.imul(j,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(R,ue)|0,a=a+Math.imul(R,le)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(P,fe)|0,a=a+Math.imul(P,he)|0;var Pe=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(S,pe)|0))<<13)|0;l=((a=a+Math.imul(S,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,ae),i=(i=Math.imul(F,oe))+Math.imul(B,ae)|0,a=Math.imul(B,oe),n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,le)|0)+Math.imul(L,ue)|0,a=a+Math.imul(L,le)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,he)|0)+Math.imul(R,fe)|0,a=a+Math.imul(R,he)|0;var Ce=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((a=a+Math.imul(P,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,ue),i=(i=Math.imul(F,le))+Math.imul(B,ue)|0,a=Math.imul(B,le),n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(L,fe)|0,a=a+Math.imul(L,he)|0;var Oe=(l+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(R,pe)|0))<<13)|0;l=((a=a+Math.imul(R,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,fe),i=(i=Math.imul(F,he))+Math.imul(B,fe)|0,a=Math.imul(B,he);var Re=(l+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(L,pe)|0))<<13)|0;l=((a=a+Math.imul(L,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var Ie=(l+(n=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(B,pe)|0))<<13)|0;return l=((a=Math.imul(B,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,u[0]=ve,u[1]=ge,u[2]=ye,u[3]=be,u[4]=we,u[5]=xe,u[6]=ke,u[7]=_e,u[8]=Ee,u[9]=Me,u[10]=Ae,u[11]=Se,u[12]=Ne,u[13]=Te,u[14]=Pe,u[15]=Ce,u[16]=Oe,u[17]=Re,u[18]=Ie,0!==l&&(u[19]=l,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,u=Math.min(a,t.length-1),l=Math.max(0,a-e.length+1);l<=u;l++){var c=a-l,f=(0|e.words[c])*(0|t.words[l]),h=67108863&f;s=67108863&(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r._strip()}function y(e,t,r){return g(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(v=m),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?v(this,e,t):r<63?m(this,e,t):r<1024?g(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o<a;o++)n[o]=t[e[o]],i[o]=r[e[o]]},b.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,h=l,d=0;d<o;d++){var p=r[c+d],m=n[c+d],v=r[c+d+o],g=n[c+d+o],y=f*v-h*g;g=f*g+h*v,v=y,r[c+d]=p+v,n[c+d]=m+g,r[c+d+o]=p-v,n[c+d+o]=m-g,d!==s&&(y=u*f-l*h,h=u*h+l*f,f=y)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(0===(-8192&a))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),u=new Array(n),l=new Array(n),c=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,l,n),this.transform(o,a,s,u,n,i),this.transform(l,a,c,f,n,i);for(var d=0;d<n;d++){var p=s[d]*c[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*c[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),y(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"===typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var a=(0|this.words[i])*e,o=(67108863&a)+(67108863&r);r>>=26,r+=a/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},a.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,u=r;if(i-=o,i=Math.max(0,i),u){for(var l=0;l<o;l++)u.words[l]=this.words[l];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-a|f>>>a,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;s=((a-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==t){(s=new a(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,a=this.length-1;a>=0;a--)i=(r*i+(0|this.words[a]))%e;return t?-i:i},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var a=(0|this.words[i])+67108864*r;this.words[i]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),u=new a(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(c),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(u)):(r.isub(t),s.isub(i),u.isub(o))}return{a:s,b:u,gcd:r.iushln(l)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0===(1&this.words[0])},a.prototype.isOdd=function(){return 1===(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new A(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function k(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"===typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(k,x),k.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=a&r,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[i-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},k.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(_,x),i(E,x),i(M,x),M.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new k;else if("p224"===e)t=new _;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return w[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),d=this.pow(e,i),p=o;0!==d.cmp(s);){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();n(v<p);var g=this.pow(f,new a(1).iushln(p-v-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return h},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==o?(o<<=1,o|=f,(4===++s||0===n&&0===c)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}u=26}return i},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new S(e)},i(S,A),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},360:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=t.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function a(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=a(t)^n>>5}for(t=a(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=a(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),i=e.toUpperCase();if(e!==n&&e!==i)return"Mixed-case string "+e;var s=(e=n).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var u=e.slice(0,s),l=e.slice(s+1);if(l.length<6)return"Data too short";var c=o(u);if("string"===typeof c)return c;for(var f=[],h=0;h<l.length;++h){var d=l.charAt(h),p=r[d];if(void 0===p)return"Unknown character "+d;c=a(c)^p,h+6>=l.length||f.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:u,words:f}}function u(e,t,r,n){for(var i=0,a=0,o=(1<<r)-1,s=[],u=0;u<e.length;++u)for(i=i<<t|e[u],a+=t;a>=r;)a-=r,s.push(i>>a&o);if(n)a>0&&s.push(i<<r-a&o);else{if(a>=t)return"Excess padding";if(i<<r-a&o)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"===typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"===typeof t)return t;throw new Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=o(e=e.toLowerCase());if("string"===typeof i)throw new Error(i);for(var s=e+"1",u=0;u<r.length;++u){var l=r[u];if(l>>5!==0)throw new Error("Non 5-bit word");i=a(i)^l,s+=t.charAt(l)}for(u=0;u<6;++u)i=a(i);for(i^=1,u=0;u<6;++u){s+=t.charAt(i>>5*(5-u)&31)}return s},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},125:function(e,t,r){var n=t;n.utils=r(46),n.common=r(684),n.sha=r(194),n.ripemd=r(645),n.hmac=r(609),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},684:function(e,t,r){"use strict";var n=r(46),i=r(325);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n}},609:function(e,t,r){"use strict";var n=r(46),i=r(325);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},645:function(e,t,r){"use strict";var n=r(46),i=r(684),a=n.rotl32,o=n.sum32,s=n.sum32_3,u=n.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],y=r,b=n,w=i,x=l,k=c,_=0;_<80;_++){var E=o(a(u(r,f(_,n,i,l),e[p[_]+t],h(_)),v[_]),c);r=c,c=l,l=a(i,10),i=n,n=E,E=o(a(u(y,f(79-_,b,w,x),e[m[_]+t],d(_)),g[_]),k),y=k,k=x,x=a(w,10),w=b,b=E}E=s(this.h[1],i,x),this.h[1]=s(this.h[2],l,k),this.h[2]=s(this.h[3],c,y),this.h[3]=s(this.h[4],r,b),this.h[4]=s(this.h[0],n,w),this.h[0]=E},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},194:function(e,t,r){"use strict";t.sha1=r(361),t.sha224=r(753),t.sha256=r(966),t.sha384=r(233),t.sha512=r(63)},361:function(e,t,r){"use strict";var n=r(46),i=r(684),a=r(343),o=n.rotl32,s=n.sum32,u=n.sum32_5,l=a.ft_1,c=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],a=this.h[1],c=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=u(o(i,5),l(p,a,c,h),d,r[n],f[p]);d=h,h=c,c=o(a,30),a=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},753:function(e,t,r){"use strict";var n=r(46),i=r(966);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},966:function(e,t,r){"use strict";var n=r(46),i=r(684),a=r(343),o=r(325),s=n.sum32,u=n.sum32_4,l=n.sum32_5,c=a.ch32,f=a.maj32,h=a.s0_256,d=a.s1_256,p=a.g0_256,m=a.g1_256,v=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(y,v),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],v=this.h[2],g=this.h[3],y=this.h[4],b=this.h[5],w=this.h[6],x=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var k=l(x,d(y),c(y,b,w),this.k[n],r[n]),_=s(h(i),f(i,a,v));x=w,w=b,b=y,y=s(g,k),g=v,v=a,a=i,i=s(k,_)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},233:function(e,t,r){"use strict";var n=r(46),i=r(63);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},63:function(e,t,r){"use strict";var n=r(46),i=r(684),a=r(325),o=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,l=n.shr64_lo,c=n.sum64,f=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,v=n.sum64_5_lo,g=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function w(e,t,r,n,i){var a=e&r^~e&i;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function k(e,t,r,n,i){var a=e&r^e&i^r&i;return a<0&&(a+=4294967296),a}function _(e,t,r,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function E(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function N(e,t){var r=o(e,t,1)^o(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=o(e,t,19)^o(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(b,g),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=P(r[n-4],r[n-3]),a=C(r[n-4],r[n-3]),o=r[n-14],s=r[n-13],u=N(r[n-30],r[n-29]),l=T(r[n-30],r[n-29]),c=r[n-32],f=r[n-31];r[n]=d(i,a,o,s,u,l,c,f),r[n+1]=p(i,a,o,s,u,l,c,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],l=this.h[5],d=this.h[6],p=this.h[7],g=this.h[8],y=this.h[9],b=this.h[10],N=this.h[11],T=this.h[12],P=this.h[13],C=this.h[14],O=this.h[15];a(this.k.length===r.length);for(var R=0;R<r.length;R+=2){var I=C,j=O,L=A(g,y),D=S(g,y),F=w(g,y,b,N,T),B=x(g,y,b,N,T,P),U=this.k[R],z=this.k[R+1],H=r[R],Y=r[R+1],V=m(I,j,L,D,F,B,U,z,H,Y),G=v(I,j,L,D,F,B,U,z,H,Y);I=E(n,i),j=M(n,i),L=k(n,i,o,s,u),D=_(n,i,o,s,u,l);var q=f(I,j,L,D),W=h(I,j,L,D);C=T,O=P,T=b,P=N,b=g,N=y,g=f(d,p,V,G),y=h(p,p,V,G),d=u,p=l,u=o,l=s,o=n,s=i,n=f(V,G,q,W),i=h(V,G,q,W)}c(this.h,0,n,i),c(this.h,2,o,s),c(this.h,4,u,l),c(this.h,6,d,p),c(this.h,8,g,y),c(this.h,10,b,N),c(this.h,12,T,P),c(this.h,14,C,O)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},343:function(e,t,r){"use strict";var n=r(46).rotr32;function i(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?o(t,r,n):2===e?a(t,r,n):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},46:function(e,t,r){"use strict";var n=r(325),i=r(534);function a(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var a=r-t;n(a%4===0);for(var o=new Array(a/4),s=0,u=t;s<o.length;s++,u+=4){var l;l="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],o[s]=l>>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,a,o,s){var u=0,l=t;return u+=(l=l+n>>>0)<t?1:0,u+=(l=l+a>>>0)<a?1:0,e+r+i+o+(u+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,a,o,s,u,l){var c=0,f=t;return c+=(f=f+n>>>0)<t?1:0,c+=(f=f+a>>>0)<a?1:0,c+=(f=f+s>>>0)<s?1:0,e+r+i+o+u+(c+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,a,o,s,u,l){return t+n+a+s+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},110:function(e,t,r){"use strict";var n=r(441),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?o:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(p){var i=d(r);i&&i!==p&&e(t,i,n)}var o=c(r);f&&(o=o.concat(f(r)));for(var s=u(t),m=u(r),v=0;v<o.length;++v){var g=o[v];if(!a[g]&&(!n||!n[g])&&(!m||!m[g])&&(!s||!s[g])){var y=h(r,g);try{l(t,g,y)}catch(b){}}}}return t}},534:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},898:function(e,t,r){var n,i=r(842);!function(){"use strict";var a="input is invalid type",o="object"===typeof window,s=o?window:{};s.JS_SHA3_NO_WINDOW&&(o=!1);var u=!o&&"object"===typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node?s=r.g:u&&(s=self);var l=!s.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,f=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,h="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],v=[224,256,384,512],g=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!f||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new j(e,t,e).update(n)[r]()}},x=function(e,t,r){return function(n,i){return new j(e,t,i).update(n)[r]()}},k=function(e,t,r){return function(t,n,i,a){return S["cshake"+e].update(t,n,i,a)[r]()}},_=function(e,t,r){return function(t,n,i,a){return S["kmac"+e].update(t,n,i,a)[r]()}},E=function(e,t,r,n){for(var i=0;i<y.length;++i){var a=y[i];e[a]=t(r,n,a)}return e},M=function(e,t){var r=w(e,t,"hex");return r.create=function(){return new j(e,t,e)},r.update=function(e){return r.create().update(e)},E(r,w,e,t)},A=[{name:"keccak",padding:[1,256,65536,16777216],bits:v,createMethod:M},{name:"sha3",padding:[6,1536,393216,100663296],bits:v,createMethod:M},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var r=x(e,t,"hex");return r.create=function(r){return new j(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},E(r,x,e,t)}},{name:"cshake",padding:d,bits:g,createMethod:function(e,t){var r=b[e],n=k(e,0,"hex");return n.create=function(n,i,a){return i||a?new j(e,t,n).bytepad([i,a],r):S["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},E(n,k,e,t)}},{name:"kmac",padding:d,bits:g,createMethod:function(e,t){var r=b[e],n=_(e,0,"hex");return n.create=function(n,i,a){return new L(e,t,i).bytepad(["KMAC",a],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},E(n,_,e,t)}}],S={},N=[],T=0;T<A.length;++T)for(var P=A[T],C=P.bits,O=0;O<C.length;++O){var R=P.name+"_"+C[O];if(N.push(R),S[R]=P.createMethod(C[O],P.padding),"sha3"!==P.name){var I=P.name+C[O];N.push(I),S[I]=S[R]}}function j(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){j.call(this,e,t,r)}j.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(a);if(null===e)throw new Error(a);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var n,i,o=this.blocks,s=this.byteCount,u=e.length,l=this.blockCount,c=0,h=this.s;c<u;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<l+1;++n)o[n]=0;if(t)for(n=this.start;c<u&&n<s;++c)o[n>>2]|=e[c]<<p[3&n++];else for(n=this.start;c<u&&n<s;++c)(i=e.charCodeAt(c))<128?o[n>>2]|=i<<p[3&n++]:i<2048?(o[n>>2]|=(192|i>>6)<<p[3&n++],o[n>>2]|=(128|63&i)<<p[3&n++]):i<55296||i>=57344?(o[n>>2]|=(224|i>>12)<<p[3&n++],o[n>>2]|=(128|i>>6&63)<<p[3&n++],o[n>>2]|=(128|63&i)<<p[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++c)),o[n>>2]|=(240|i>>18)<<p[3&n++],o[n>>2]|=(128|i>>12&63)<<p[3&n++],o[n>>2]|=(128|i>>6&63)<<p[3&n++],o[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[l],n=0;n<l;++n)h[n]^=o[n];D(h),this.reset=!0}else this.start=n}return this},j.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},j.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(a);if(null===e)throw new Error(a);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(a);t=!0}var n=0,i=e.length;if(t)n=i;else for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128?n+=1:s<2048?n+=2:s<55296||s>=57344?n+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),n+=4)}return n+=this.encode(8*n),this.update(e),n},j.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,a=[];return a.length=i,this.update(a),this},j.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];D(n)}},j.prototype.toString=j.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,o=0,s="";o<n;){for(a=0;a<t&&o<n;++a,++o)e=r[a],s+=h[e>>4&15]+h[15&e]+h[e>>12&15]+h[e>>8&15]+h[e>>20&15]+h[e>>16&15]+h[e>>28&15]+h[e>>24&15];o%t===0&&(D(r),a=0)}return i&&(e=r[a],s+=h[e>>4&15]+h[15&e],i>1&&(s+=h[e>>12&15]+h[e>>8&15]),i>2&&(s+=h[e>>20&15]+h[e>>16&15])),s},j.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,o=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);o<n;){for(a=0;a<t&&o<n;++a,++o)u[o]=r[a];o%t===0&&D(r)}return i&&(u[a]=r[a],e=e.slice(0,s)),e},j.prototype.buffer=j.prototype.arrayBuffer,j.prototype.digest=j.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,a=this.extraBytes,o=0,s=0,u=[];s<i;){for(o=0;o<r&&s<i;++o,++s)e=s<<2,t=n[o],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r===0&&D(n)}return a&&(e=s<<2,t=n[o],u[e]=255&t,a>1&&(u[e+1]=t>>8&255),a>2&&(u[e+2]=t>>16&255)),u},L.prototype=new j,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var D=function(e){var t,r,n,i,a,o,s,u,l,c,f,h,d,p,v,g,y,b,w,x,k,_,E,M,A,S,N,T,P,C,O,R,I,j,L,D,F,B,U,z,H,Y,V,G,q,W,Q,K,J,Z,X,$,ee,te,re,ne,ie,ae,oe,se,ue,le,ce;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),r=(d=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=a^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(c<<1|f>>>31),r=s^(f<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|d>>>31),r=l^(d<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|a>>>31),r=f^(a<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],v=e[1],W=e[11]<<4|e[10]>>>28,Q=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,L=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,C=e[33]<<13|e[32]>>>19,O=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,F=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,R=e[45]<<29|e[44]>>>3,I=e[44]<<29|e[45]>>>3,M=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,B=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,G=e[8]<<27|e[9]>>>5,q=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,N=e[19]<<20|e[18]>>>12,ae=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,_=e[48]<<14|e[49]>>>18,E=e[49]<<14|e[48]>>>18,e[0]=p^~g&b,e[1]=v^~y&w,e[10]=M^~S&T,e[11]=A^~N&P,e[20]=j^~D&B,e[21]=L^~F&U,e[30]=G^~W&K,e[31]=q^~Q&J,e[40]=te^~ne&ae,e[41]=re^~ie&oe,e[2]=g^~b&x,e[3]=y^~w&k,e[12]=S^~T&C,e[13]=N^~P&O,e[22]=D^~B&z,e[23]=F^~U&H,e[32]=W^~K&Z,e[33]=Q^~J&X,e[42]=ne^~ae&se,e[43]=ie^~oe&ue,e[4]=b^~x&_,e[5]=w^~k&E,e[14]=T^~C&R,e[15]=P^~O&I,e[24]=B^~z&Y,e[25]=U^~H&V,e[34]=K^~Z&$,e[35]=J^~X&ee,e[44]=ae^~se&le,e[45]=oe^~ue&ce,e[6]=x^~_&p,e[7]=k^~E&v,e[16]=C^~R&M,e[17]=O^~I&A,e[26]=z^~Y&j,e[27]=H^~V&L,e[36]=Z^~$&G,e[37]=X^~ee&q,e[46]=se^~le&te,e[47]=ue^~ce&re,e[8]=_^~p&g,e[9]=E^~v&y,e[18]=R^~M&S,e[19]=I^~A&N,e[28]=Y^~j&D,e[29]=V^~L&F,e[38]=$^~G&W,e[39]=ee^~q&Q,e[48]=le^~te&ne,e[49]=ce^~re&ie,e[0]^=m[n],e[1]^=m[n+1]};if(l)e.exports=S;else{for(T=0;T<N.length;++T)s[N[T]]=S[N[T]];c&&(void 0===(n=function(){return S}.call(t,r,t,e))||(e.exports=n))}}()},325:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},68:function(e,t,r){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,r){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(r(426))},426:function(e,t,r){(e=r.nmd(e)).exports=function(){"use strict";var t,r;function n(){return t.apply(null,arguments)}function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var r,n=[],i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function d(e,t){for(var r in t)s(t,r)&&(e[r]=t[r]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,r,n){return Wr(e,t,r,n,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=p(NaN);return null!=e?d(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var b=n.momentProperties=[],w=!1;function x(e,t){var r,n,i,a=b.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=v(t)),l(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)l(i=t[n=b[r]])||(e[n]=i);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,n.updateOffset(this),w=!1)}function _(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function E(e){!1===n.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var r=!0;return d((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),r){var i,a,o,u=[],l=arguments.length;for(a=0;a<l;a++){if(i="","object"===typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];u.push(i)}E(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)}),t)}var A,S={};function N(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),S[e]||(E(t),S[e]=!0)}function T(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,r;for(r in e)s(e,r)&&(T(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(e,t){var r,n=d({},e);for(r in t)s(t,r)&&(o(e[r])&&o(t[r])?(n[r]={},d(n[r],e[r]),d(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)s(e,r)&&!s(t,r)&&o(e[r])&&(n[r]=d({},n[r]));return n}function O(e){null!=e&&this.set(e)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,A=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)s(e,t)&&r.push(t);return r};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return T(n)?n.call(t,r):n}function j(e,t,r){var n=""+Math.abs(e),i=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+n}var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},B={};function U(e,t,r,n){var i=n;"string"===typeof n&&(i=function(){return this[n]()}),e&&(B[e]=i),t&&(B[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),r&&(B[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,r,n=e.match(L);for(t=0,r=n.length;t<r;t++)B[n[t]]?n[t]=B[n[t]]:n[t]=z(n[t]);return function(t){var i,a="";for(i=0;i<r;i++)a+=T(n[i])?n[i].call(t,e):n[i];return a}}function Y(e,t){return e.isValid()?(t=V(t,e.localeData()),F[t]=F[t]||H(t),F[t](e)):e.localeData().invalidDate()}function V(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;r>=0&&D.test(e);)e=e.replace(D,n),D.lastIndex=0,r-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(L).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var W="Invalid date";function Q(){return this._invalidDate}var K="%d",J=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var X={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,t,r,n){var i=this._relativeTime[r];return T(i)?i(e,t,r,n):i.replace(/%d/i,e)}function ee(e,t){var r=this._relativeTime[e>0?"future":"past"];return T(r)?r(t):r.replace(/%s/i,t)}var te={};function re(e,t){var r=e.toLowerCase();te[r]=te[r+"s"]=te[t]=e}function ne(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,r,n={};for(r in e)s(e,r)&&(t=ne(r))&&(n[t]=e[r]);return n}var ae={};function oe(e,t){ae[e]=t}function se(e){var t,r=[];for(t in e)s(e,t)&&r.push({unit:t,priority:ae[t]});return r.sort((function(e,t){return e.priority-t.priority})),r}function ue(e){return e%4===0&&e%100!==0||e%400===0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=le(t)),r}function fe(e,t){return function(r){return null!=r?(de(this,e,r),n.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function de(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&ue(e.year())&&1===e.month()&&29===e.date()?(r=ce(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),$e(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function pe(e){return T(this[e=ne(e)])?this[e]():this}function me(e,t){if("object"===typeof e){var r,n=se(e=ie(e)),i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(T(this[e=ne(e)]))return this[e](t);return this}var ve,ge=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,xe=/[+-]?\d{6}/,ke=/\d\d?/,_e=/\d\d\d\d?/,Ee=/\d\d\d\d\d\d?/,Me=/\d{1,3}/,Ae=/\d{1,4}/,Se=/[+-]?\d{1,6}/,Ne=/\d+/,Te=/[+-]?\d+/,Pe=/Z|[+-]\d\d:?\d\d/gi,Ce=/Z|[+-]\d\d(?::?\d\d)?/gi,Oe=/[+-]?\d+(\.\d{1,3})?/,Re=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ie(e,t,r){ve[e]=T(t)?t:function(e,n){return e&&r?r:t}}function je(e,t){return s(ve,e)?ve[e](t._strict,t._locale):new RegExp(Le(e))}function Le(e){return De(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,r,n,i){return t||r||n||i})))}function De(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Be(e,t){var r,n,i=t;for("string"===typeof e&&(e=[e]),c(t)&&(i=function(e,r){r[t]=ce(e)}),n=e.length,r=0;r<n;r++)Fe[e[r]]=i}function Ue(e,t){Be(e,(function(e,r,n,i){n._w=n._w||{},t(e,n._w,n,i)}))}function ze(e,t,r){null!=t&&s(Fe,e)&&Fe[e](t,r._a,r,e)}var He,Ye=0,Ve=1,Ge=2,qe=3,We=4,Qe=5,Ke=6,Je=7,Ze=8;function Xe(e,t){return(e%t+t)%t}function $e(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Xe(t,12);return e+=(t-r)/12,1===r?ue(e)?29:28:31-r%7%2}He=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),oe("month",8),Ie("M",ke),Ie("MM",ke,ye),Ie("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ie("MMMM",(function(e,t){return t.monthsRegex(e)})),Be(["M","MM"],(function(e,t){t[Ve]=ce(e)-1})),Be(["MMM","MMMM"],(function(e,t,r,n){var i=r._locale.monthsParse(e,n,r._strict);null!=i?t[Ve]=i:v(r).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,nt=Re,it=Re;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ot(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=p([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=He.call(this._shortMonthsParse,o))?i:null:-1!==(i=He.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=He.call(this._shortMonthsParse,o))||-1!==(i=He.call(this._longMonthsParse,o))?i:null:-1!==(i=He.call(this._longMonthsParse,o))||-1!==(i=He.call(this._shortMonthsParse,o))?i:null}function ut(e,t,r){var n,i,a;if(this._monthsParseExact)return st.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=p([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function lt(e,t){var r;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return r=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function ct(e){return null!=e?(lt(this,e),n.updateOffset(this,!0),this):he(this,"Month")}function ft(){return $e(this.year(),this.month())}function ht(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=nt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function dt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,r,n=[],i=[],a=[];for(t=0;t<12;t++)r=p([2e3,t]),n.push(this.monthsShort(r,"")),i.push(this.months(r,"")),a.push(this.months(r,"")),a.push(this.monthsShort(r,""));for(n.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)n[t]=De(n[t]),i[t]=De(i[t]);for(t=0;t<24;t++)a[t]=De(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function mt(e){return ue(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?j(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),re("year","y"),oe("year",1),Ie("Y",Te),Ie("YY",ke,ye),Ie("YYYY",Ae,we),Ie("YYYYY",Se,xe),Ie("YYYYYY",Se,xe),Be(["YYYYY","YYYYYY"],Ye),Be("YYYY",(function(e,t){t[Ye]=2===e.length?n.parseTwoDigitYear(e):ce(e)})),Be("YY",(function(e,t){t[Ye]=n.parseTwoDigitYear(e)})),Be("Y",(function(e,t){t[Ye]=parseInt(e,10)})),n.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var vt=fe("FullYear",!0);function gt(){return ue(this.year())}function yt(e,t,r,n,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,i,a,o),s}function bt(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,r){var n=7+t-r;return-(7+bt(e,0,n).getUTCDay()-t)%7+n-1}function xt(e,t,r,n,i){var a,o,s=1+7*(t-1)+(7+r-n)%7+wt(e,n,i);return s<=0?o=mt(a=e-1)+s:s>mt(e)?(a=e+1,o=s-mt(e)):(a=e,o=s),{year:a,dayOfYear:o}}function kt(e,t,r){var n,i,a=wt(e.year(),t,r),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?n=o+_t(i=e.year()-1,t,r):o>_t(e.year(),t,r)?(n=o-_t(e.year(),t,r),i=e.year()+1):(i=e.year(),n=o),{week:n,year:i}}function _t(e,t,r){var n=wt(e,t,r),i=wt(e+1,t,r);return(mt(e)-n+i)/7}function Et(e){return kt(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ie("w",ke),Ie("ww",ke,ye),Ie("W",ke),Ie("WW",ke,ye),Ue(["w","ww","W","WW"],(function(e,t,r,n){t[n.substr(0,1)]=ce(e)}));var Mt={dow:0,doy:6};function At(){return this._week.dow}function St(){return this._week.doy}function Nt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Tt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ct(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ot(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ie("d",ke),Ie("e",ke),Ie("E",ke),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,r,n){var i=r._locale.weekdaysParse(e,n,r._strict);null!=i?t.d=i:v(r).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,r,n){t[n]=ce(e)}));var Rt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Lt=Re,Dt=Re,Ft=Re;function Bt(e,t){var r=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ot(r,this._week.dow):e?r[e.day()]:r}function Ut(e){return!0===e?Ot(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return!0===e?Ot(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,r){var n,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=p([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=He.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=He.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=He.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=He.call(this._weekdaysParse,o))||-1!==(i=He.call(this._shortWeekdaysParse,o))||-1!==(i=He.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=He.call(this._shortWeekdaysParse,o))||-1!==(i=He.call(this._weekdaysParse,o))||-1!==(i=He.call(this._minWeekdaysParse,o))?i:null:-1!==(i=He.call(this._minWeekdaysParse,o))||-1!==(i=He.call(this._weekdaysParse,o))||-1!==(i=He.call(this._shortWeekdaysParse,o))?i:null}function Yt(e,t,r){var n,i,a;if(this._weekdaysParseExact)return Ht.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=p([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ct(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Wt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Lt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,r,n,i,a,o=[],s=[],u=[],l=[];for(t=0;t<7;t++)r=p([2e3,1]).day(t),n=De(this.weekdaysMin(r,"")),i=De(this.weekdaysShort(r,"")),a=De(this.weekdays(r,"")),o.push(n),s.push(i),u.push(a),l.push(n),l.push(i),l.push(a);o.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Xt(){return this.hours()||24}function $t(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function er(e,t){return t._meridiemParse}function tr(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Zt),U("k",["kk",2],0,Xt),U("hmm",0,0,(function(){return""+Zt.apply(this)+j(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Zt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),$t("a",!0),$t("A",!1),re("hour","h"),oe("hour",13),Ie("a",er),Ie("A",er),Ie("H",ke),Ie("h",ke),Ie("k",ke),Ie("HH",ke,ye),Ie("hh",ke,ye),Ie("kk",ke,ye),Ie("hmm",_e),Ie("hmmss",Ee),Ie("Hmm",_e),Ie("Hmmss",Ee),Be(["H","HH"],qe),Be(["k","kk"],(function(e,t,r){var n=ce(e);t[qe]=24===n?0:n})),Be(["a","A"],(function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e})),Be(["h","hh"],(function(e,t,r){t[qe]=ce(e),v(r).bigHour=!0})),Be("hmm",(function(e,t,r){var n=e.length-2;t[qe]=ce(e.substr(0,n)),t[We]=ce(e.substr(n)),v(r).bigHour=!0})),Be("hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[qe]=ce(e.substr(0,n)),t[We]=ce(e.substr(n,2)),t[Qe]=ce(e.substr(i)),v(r).bigHour=!0})),Be("Hmm",(function(e,t,r){var n=e.length-2;t[qe]=ce(e.substr(0,n)),t[We]=ce(e.substr(n))})),Be("Hmmss",(function(e,t,r){var n=e.length-4,i=e.length-2;t[qe]=ce(e.substr(0,n)),t[We]=ce(e.substr(n,2)),t[Qe]=ce(e.substr(i))}));var rr=/[ap]\.?m?\.?/i,nr=fe("Hours",!0);function ir(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ar,or={calendar:R,longDateFormat:G,invalidDate:W,ordinal:K,dayOfMonthOrdinalParse:J,relativeTime:X,months:et,monthsShort:tt,week:Mt,weekdays:Rt,weekdaysMin:jt,weekdaysShort:It,meridiemParse:rr},sr={},ur={};function lr(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function cr(e){return e?e.toLowerCase().replace("_","-"):e}function fr(e){for(var t,r,n,i,a=0;a<e.length;){for(t=(i=cr(e[a]).split("-")).length,r=(r=cr(e[a+1]))?r.split("-"):null;t>0;){if(n=dr(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&lr(i,r)>=t-1)break;t--}a++}return ar}function hr(e){return null!=e.match("^[^/\\\\]*$")}function dr(t){var r=null;if(void 0===sr[t]&&e&&e.exports&&hr(t))try{r=ar._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),pr(r)}catch(n){sr[t]=null}return sr[t]}function pr(e,t){var r;return e&&((r=l(t)?gr(e):mr(e,t))?ar=r:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ar._abbr}function mr(e,t){if(null!==t){var r,n=or;if(t.abbr=e,null!=sr[e])N("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=sr[e]._config;else if(null!=t.parentLocale)if(null!=sr[t.parentLocale])n=sr[t.parentLocale]._config;else{if(null==(r=dr(t.parentLocale)))return ur[t.parentLocale]||(ur[t.parentLocale]=[]),ur[t.parentLocale].push({name:e,config:t}),null;n=r._config}return sr[e]=new O(C(n,t)),ur[e]&&ur[e].forEach((function(e){mr(e.name,e.config)})),pr(e),sr[e]}return delete sr[e],null}function vr(e,t){if(null!=t){var r,n,i=or;null!=sr[e]&&null!=sr[e].parentLocale?sr[e].set(C(sr[e]._config,t)):(null!=(n=dr(e))&&(i=n._config),t=C(i,t),null==n&&(t.abbr=e),(r=new O(t)).parentLocale=sr[e],sr[e]=r),pr(e)}else null!=sr[e]&&(null!=sr[e].parentLocale?(sr[e]=sr[e].parentLocale,e===pr()&&pr(e)):null!=sr[e]&&delete sr[e]);return sr[e]}function gr(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ar;if(!a(e)){if(t=dr(e))return t;e=[e]}return fr(e)}function yr(){return A(sr)}function br(e){var t,r=e._a;return r&&-2===v(e).overflow&&(t=r[Ve]<0||r[Ve]>11?Ve:r[Ge]<1||r[Ge]>$e(r[Ye],r[Ve])?Ge:r[qe]<0||r[qe]>24||24===r[qe]&&(0!==r[We]||0!==r[Qe]||0!==r[Ke])?qe:r[We]<0||r[We]>59?We:r[Qe]<0||r[Qe]>59?Qe:r[Ke]<0||r[Ke]>999?Ke:-1,v(e)._overflowDayOfYear&&(t<Ye||t>Ge)&&(t=Ge),v(e)._overflowWeeks&&-1===t&&(t=Je),v(e)._overflowWeekday&&-1===t&&(t=Ze),v(e).overflow=t),e}var wr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kr=/Z|[+-]\d\d(?::?\d\d)?/,_r=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Er=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mr=/^\/?Date\((-?\d+)/i,Ar=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Sr={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nr(e){var t,r,n,i,a,o,s=e._i,u=wr.exec(s)||xr.exec(s),l=_r.length,c=Er.length;if(u){for(v(e).iso=!0,t=0,r=l;t<r;t++)if(_r[t][1].exec(u[1])){i=_r[t][0],n=!1!==_r[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,r=c;t<r;t++)if(Er[t][1].exec(u[3])){a=(u[2]||" ")+Er[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(u[4]){if(!kr.exec(u[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Ur(e)}else e._isValid=!1}function Tr(e,t,r,n,i,a){var o=[Pr(e),tt.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Cr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Or(e,t,r){return!e||It.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(r).weekdayMismatch=!0,r._isValid=!1,!1)}function Rr(e,t,r){if(e)return Sr[e];if(t)return 0;var n=parseInt(r,10),i=n%100;return(n-i)/100*60+i}function Ir(e){var t,r=Ar.exec(Cr(e._i));if(r){if(t=Tr(r[4],r[3],r[2],r[5],r[6],r[7]),!Or(r[1],t,e))return;e._a=t,e._tzm=Rr(r[8],r[9],r[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function jr(e){var t=Mr.exec(e._i);null===t?(Nr(e),!1===e._isValid&&(delete e._isValid,Ir(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:n.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Lr(e,t,r){return null!=e?e:null!=t?t:r}function Dr(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fr(e){var t,r,n,i,a,o=[];if(!e._d){for(n=Dr(e),e._w&&null==e._a[Ge]&&null==e._a[Ve]&&Br(e),null!=e._dayOfYear&&(a=Lr(e._a[Ye],n[Ye]),(e._dayOfYear>mt(a)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),r=bt(a,0,e._dayOfYear),e._a[Ve]=r.getUTCMonth(),e._a[Ge]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=n[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[We]&&0===e._a[Qe]&&0===e._a[Ke]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?bt:yt).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function Br(e){var t,r,n,i,a,o,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,r=Lr(t.GG,e._a[Ye],kt(Qr(),1,4).year),n=Lr(t.W,1),((i=Lr(t.E,1))<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=kt(Qr(),a,o),r=Lr(t.gg,e._a[Ye],l.year),n=Lr(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a),n<1||n>_t(r,a,o)?v(e)._overflowWeeks=!0:null!=u?v(e)._overflowWeekday=!0:(s=xt(r,n,i,a,o),e._a[Ye]=s.year,e._dayOfYear=s.dayOfYear)}function Ur(e){if(e._f!==n.ISO_8601)if(e._f!==n.RFC_2822){e._a=[],v(e).empty=!0;var t,r,i,a,o,s,u,l=""+e._i,c=l.length,f=0;for(u=(i=V(e._f,e._locale).match(L)||[]).length,t=0;t<u;t++)a=i[t],(r=(l.match(je(a,e))||[])[0])&&((o=l.substr(0,l.indexOf(r))).length>0&&v(e).unusedInput.push(o),l=l.slice(l.indexOf(r)+r.length),f+=r.length),B[a]?(r?v(e).empty=!1:v(e).unusedTokens.push(a),ze(a,r,e)):e._strict&&!r&&v(e).unusedTokens.push(a);v(e).charsLeftOver=c-f,l.length>0&&v(e).unusedInput.push(l),e._a[qe]<=12&&!0===v(e).bigHour&&e._a[qe]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[qe]=zr(e._locale,e._a[qe],e._meridiem),null!==(s=v(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(s,e._a[Ye])),Fr(e),br(e)}else Ir(e);else Nr(e)}function zr(e,t,r){var n;return null==r?t:null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}function Hr(e){var t,r,n,i,a,o,s=!1,u=e._f.length;if(0===u)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)a=0,o=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ur(t),g(t)&&(o=!0),a+=v(t).charsLeftOver,a+=10*v(t).unusedTokens.length,v(t).score=a,s?a<n&&(n=a,r=t):(null==n||a<n||o)&&(n=a,r=t,o&&(s=!0));d(e,r||t)}function Yr(e){if(!e._d){var t=ie(e._i),r=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fr(e)}}function Vr(e){var t=new k(br(Gr(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gr(e){var t=e._i,r=e._f;return e._locale=e._locale||gr(e._l),null===t||void 0===r&&""===t?y({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new k(br(t)):(f(t)?e._d=t:a(r)?Hr(e):r?Ur(e):qr(e),g(e)||(e._d=null),e))}function qr(e){var t=e._i;l(t)?e._d=new Date(n.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?jr(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fr(e)):o(t)?Yr(e):c(t)?e._d=new Date(t):n.createFromInputFallback(e)}function Wr(e,t,r,n,i){var s={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(o(e)&&u(e)||a(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=e,s._f=t,s._strict=n,Vr(s)}function Qr(e,t,r,n){return Wr(e,t,r,n,!1)}n.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var Kr=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Jr=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Zr(e,t){var r,n;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Qr();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}function Xr(){return Zr("isBefore",[].slice.call(arguments,0))}function $r(){return Zr("isAfter",[].slice.call(arguments,0))}var en=function(){return Date.now?Date.now():+new Date},tn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rn(e){var t,r,n=!1,i=tn.length;for(t in e)if(s(e,t)&&(-1===He.call(tn,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[tn[r]]){if(n)return!1;parseFloat(e[tn[r]])!==ce(e[tn[r]])&&(n=!0)}return!0}function nn(){return this._isValid}function an(){return Nn(NaN)}function on(e){var t=ie(e),r=t.year||0,n=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=rn(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*n+12*r,this._data={},this._locale=gr(),this._bubble()}function sn(e){return e instanceof on}function un(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ln(e,t,r){var n,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(n=0;n<i;n++)(r&&e[n]!==t[n]||!r&&ce(e[n])!==ce(t[n]))&&o++;return o+a}function cn(e,t){U(e,0,0,(function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+j(~~(e/60),2)+t+j(~~e%60,2)}))}cn("Z",":"),cn("ZZ",""),Ie("Z",Ce),Ie("ZZ",Ce),Be(["Z","ZZ"],(function(e,t,r){r._useUTC=!0,r._tzm=hn(Ce,e)}));var fn=/([\+\-]|\d\d)/gi;function hn(e,t){var r,n,i=(t||"").match(e);return null===i?null:0===(n=60*(r=((i[i.length-1]||[])+"").match(fn)||["-",0,0])[1]+ce(r[2]))?0:"+"===r[0]?n:-n}function dn(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(_(e)||f(e)?e.valueOf():Qr(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):Qr(e).local()}function pn(e){return-Math.round(e._d.getTimezoneOffset())}function mn(e,t,r){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=hn(Ce,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=pn(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Rn(this,Nn(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pn(this)}function vn(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gn(e){return this.utcOffset(0,e)}function yn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pn(this),"m")),this}function bn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=hn(Pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wn(e){return!!this.isValid()&&(e=e?Qr(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function xn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kn(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Gr(t))._a?(e=t._isUTC?p(t._a):Qr(t._a),this._isDSTShifted=this.isValid()&&ln(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _n(){return!!this.isValid()&&!this._isUTC}function En(){return!!this.isValid()&&this._isUTC}function Mn(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var An=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Sn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Nn(e,t){var r,n,i,a=e,o=null;return sn(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=An.exec(e))?(r="-"===o[1]?-1:1,a={y:0,d:ce(o[Ge])*r,h:ce(o[qe])*r,m:ce(o[We])*r,s:ce(o[Qe])*r,ms:ce(un(1e3*o[Ke]))*r}):(o=Sn.exec(e))?(r="-"===o[1]?-1:1,a={y:Tn(o[2],r),M:Tn(o[3],r),w:Tn(o[4],r),d:Tn(o[5],r),h:Tn(o[6],r),m:Tn(o[7],r),s:Tn(o[8],r)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(i=Cn(Qr(a.from),Qr(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),n=new on(a),sn(e)&&s(e,"_locale")&&(n._locale=e._locale),sn(e)&&s(e,"_isValid")&&(n._isValid=e._isValid),n}function Tn(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Pn(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Cn(e,t){var r;return e.isValid()&&t.isValid()?(t=dn(t,e),e.isBefore(t)?r=Pn(e,t):((r=Pn(t,e)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function On(e,t){return function(r,n){var i;return null===n||isNaN(+n)||(N(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),Rn(this,Nn(r,n),e),this}}function Rn(e,t,r,i){var a=t._milliseconds,o=un(t._days),s=un(t._months);e.isValid()&&(i=null==i||i,s&&lt(e,he(e,"Month")+s*r),o&&de(e,"Date",he(e,"Date")+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),i&&n.updateOffset(e,o||s))}Nn.fn=on.prototype,Nn.invalid=an;var In=On(1,"add"),jn=On(-1,"subtract");function Ln(e){return"string"===typeof e||e instanceof String}function Dn(e){return _(e)||f(e)||Ln(e)||c(e)||Bn(e)||Fn(e)||null===e||void 0===e}function Fn(e){var t,r,n=o(e)&&!u(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=a.length;for(t=0;t<l;t+=1)r=a[t],i=i||s(e,r);return n&&i}function Bn(e){var t=a(e),r=!1;return t&&(r=0===e.filter((function(t){return!c(t)&&Ln(e)})).length),t&&r}function Un(e){var t,r,n=o(e)&&!u(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)r=a[t],i=i||s(e,r);return n&&i}function zn(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Hn(e,t){1===arguments.length&&(arguments[0]?Dn(arguments[0])?(e=arguments[0],t=void 0):Un(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||Qr(),i=dn(r,this).startOf("day"),a=n.calendarFormat(this,i)||"sameElse",o=t&&(T(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,Qr(r)))}function Yn(){return new k(this)}function Vn(e,t){var r=_(e)?e:Qr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())}function Gn(e,t){var r=_(e)?e:Qr(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())}function qn(e,t,r,n){var i=_(e)?e:Qr(e),a=_(t)?t:Qr(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(n=n||"()")[0]?this.isAfter(i,r):!this.isBefore(i,r))&&(")"===n[1]?this.isBefore(a,r):!this.isAfter(a,r))}function Wn(e,t){var r,n=_(e)?e:Qr(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))}function Qn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Jn(e,t,r){var n,i,a;if(!this.isValid())return NaN;if(!(n=dn(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=ne(t)){case"year":a=Zn(this,n)/12;break;case"month":a=Zn(this,n);break;case"quarter":a=Zn(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-i)/864e5;break;case"week":a=(this-n-i)/6048e5;break;default:a=this-n}return r?a:le(a)}function Zn(e,t){if(e.date()<t.date())return-Zn(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function Xn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $n(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Y(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(r,"Z")):Y(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",n=a+'[")]',this.format(e+t+r+n)}function ti(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(_(e)&&e.isValid()||Qr(e).isValid())?Nn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ni(e){return this.from(Qr(),e)}function ii(e,t){return this.isValid()&&(_(e)&&e.isValid()||Qr(e).isValid())?Nn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to(Qr(),e)}function oi(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gr(e))&&(this._locale=t),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var li=1e3,ci=60*li,fi=60*ci,hi=3506328*fi;function di(e,t){return(e%t+t)%t}function pi(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-hi:new Date(e,t,r).valueOf()}function mi(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-hi:Date.UTC(e,t,r)}function vi(e){var t,r;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?mi:pi,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=di(t+(this._isUTC?0:this.utcOffset()*ci),fi);break;case"minute":t=this._d.valueOf(),t-=di(t,ci);break;case"second":t=this._d.valueOf(),t-=di(t,li)}return this._d.setTime(t),n.updateOffset(this,!0),this}function gi(e){var t,r;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?mi:pi,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-di(t+(this._isUTC?0:this.utcOffset()*ci),fi)-1;break;case"minute":t=this._d.valueOf(),t+=ci-di(t,ci)-1;break;case"second":t=this._d.valueOf(),t+=li-di(t,li)-1}return this._d.setTime(t),n.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function xi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ki(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _i(){return this.isValid()?this.toISOString():null}function Ei(){return g(this)}function Mi(){return d({},v(this))}function Ai(){return v(this).overflow}function Si(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ni(e,t){var r,i,a,o=this._eras||gr("en")._eras;for(r=0,i=o.length;r<i;++r)switch("string"===typeof o[r].since&&(a=n(o[r].since).startOf("day"),o[r].since=a.valueOf()),typeof o[r].until){case"undefined":o[r].until=1/0;break;case"string":a=n(o[r].until).startOf("day").valueOf(),o[r].until=a.valueOf()}return o}function Ti(e,t,r){var n,i,a,o,s,u=this.eras();for(e=e.toUpperCase(),n=0,i=u.length;n<i;++n)if(a=u[n].name.toUpperCase(),o=u[n].abbr.toUpperCase(),s=u[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return u[n];break;case"NNNN":if(a===e)return u[n];break;case"NNNNN":if(s===e)return u[n]}else if([a,o,s].indexOf(e)>=0)return u[n]}function Pi(e,t){var r=e.since<=e.until?1:-1;return void 0===t?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function Ci(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""}function Oi(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""}function Ri(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""}function Ii(){var e,t,r,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-n(a[e].since).year())*r+a[e].offset;return this.year()}function ji(e){return s(this,"_erasNameRegex")||Hi.call(this),e?this._erasNameRegex:this._erasRegex}function Li(e){return s(this,"_erasAbbrRegex")||Hi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Di(e){return s(this,"_erasNarrowRegex")||Hi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Bi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function zi(e,t){return t._eraYearOrdinalRegex||Ne}function Hi(){var e,t,r=[],n=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)n.push(De(o[e].name)),r.push(De(o[e].abbr)),i.push(De(o[e].narrow)),a.push(De(o[e].name)),a.push(De(o[e].abbr)),a.push(De(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Yi(e,t){U(0,[e,e.length],0,t)}function Vi(e){return Ji.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(e){return Ji.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return _t(this.year(),1,4)}function Wi(){return _t(this.isoWeekYear(),1,4)}function Qi(){var e=this.localeData()._week;return _t(this.year(),e.dow,e.doy)}function Ki(){var e=this.localeData()._week;return _t(this.weekYear(),e.dow,e.doy)}function Ji(e,t,r,n,i){var a;return null==e?kt(this,n,i).year:(t>(a=_t(e,n,i))&&(t=a),Zi.call(this,e,t,r,n,i))}function Zi(e,t,r,n,i){var a=xt(e,t,r,n,i),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Ie("N",Fi),Ie("NN",Fi),Ie("NNN",Fi),Ie("NNNN",Bi),Ie("NNNNN",Ui),Be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,r,n){var i=r._locale.erasParse(e,n,r._strict);i?v(r).era=i:v(r).invalidEra=e})),Ie("y",Ne),Ie("yy",Ne),Ie("yyy",Ne),Ie("yyyy",Ne),Ie("yo",zi),Be(["y","yy","yyy","yyyy"],Ye),Be(["yo"],(function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ye]=r._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Yi("gggg","weekYear"),Yi("ggggg","weekYear"),Yi("GGGG","isoWeekYear"),Yi("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ie("G",Te),Ie("g",Te),Ie("GG",ke,ye),Ie("gg",ke,ye),Ie("GGGG",Ae,we),Ie("gggg",Ae,we),Ie("GGGGG",Se,xe),Ie("ggggg",Se,xe),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,r,n){t[n.substr(0,2)]=ce(e)})),Ue(["gg","GG"],(function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),re("quarter","Q"),oe("quarter",7),Ie("Q",ge),Be("Q",(function(e,t){t[Ve]=3*(ce(e)-1)})),U("D",["DD",2],"Do","date"),re("date","D"),oe("date",9),Ie("D",ke),Ie("DD",ke,ye),Ie("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Be(["D","DD"],Ge),Be("Do",(function(e,t){t[Ge]=ce(e.match(ke)[0])}));var $i=fe("Date",!0);function ea(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),oe("dayOfYear",4),Ie("DDD",Me),Ie("DDDD",be),Be(["DDD","DDDD"],(function(e,t,r){r._dayOfYear=ce(e)})),U("m",["mm",2],0,"minute"),re("minute","m"),oe("minute",14),Ie("m",ke),Ie("mm",ke,ye),Be(["m","mm"],We);var ta=fe("Minutes",!1);U("s",["ss",2],0,"second"),re("second","s"),oe("second",15),Ie("s",ke),Ie("ss",ke,ye),Be(["s","ss"],Qe);var ra,na,ia=fe("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),oe("millisecond",16),Ie("S",Me,ge),Ie("SS",Me,ye),Ie("SSS",Me,be),ra="SSSS";ra.length<=9;ra+="S")Ie(ra,Ne);function aa(e,t){t[Ke]=ce(1e3*("0."+e))}for(ra="S";ra.length<=9;ra+="S")Be(ra,aa);function oa(){return this._isUTC?"UTC":""}function sa(){return this._isUTC?"Coordinated Universal Time":""}na=fe("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ua=k.prototype;function la(e){return Qr(1e3*e)}function ca(){return Qr.apply(null,arguments).parseZone()}function fa(e){return e}ua.add=In,ua.calendar=Hn,ua.clone=Yn,ua.diff=Jn,ua.endOf=gi,ua.format=ti,ua.from=ri,ua.fromNow=ni,ua.to=ii,ua.toNow=ai,ua.get=pe,ua.invalidAt=Ai,ua.isAfter=Vn,ua.isBefore=Gn,ua.isBetween=qn,ua.isSame=Wn,ua.isSameOrAfter=Qn,ua.isSameOrBefore=Kn,ua.isValid=Ei,ua.lang=si,ua.locale=oi,ua.localeData=ui,ua.max=Jr,ua.min=Kr,ua.parsingFlags=Mi,ua.set=me,ua.startOf=vi,ua.subtract=jn,ua.toArray=xi,ua.toObject=ki,ua.toDate=wi,ua.toISOString=$n,ua.inspect=ei,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=_i,ua.toString=Xn,ua.unix=bi,ua.valueOf=yi,ua.creationData=Si,ua.eraName=Ci,ua.eraNarrow=Oi,ua.eraAbbr=Ri,ua.eraYear=Ii,ua.year=vt,ua.isLeapYear=gt,ua.weekYear=Vi,ua.isoWeekYear=Gi,ua.quarter=ua.quarters=Xi,ua.month=ct,ua.daysInMonth=ft,ua.week=ua.weeks=Nt,ua.isoWeek=ua.isoWeeks=Tt,ua.weeksInYear=Qi,ua.weeksInWeekYear=Ki,ua.isoWeeksInYear=qi,ua.isoWeeksInISOWeekYear=Wi,ua.date=$i,ua.day=ua.days=Vt,ua.weekday=Gt,ua.isoWeekday=qt,ua.dayOfYear=ea,ua.hour=ua.hours=nr,ua.minute=ua.minutes=ta,ua.second=ua.seconds=ia,ua.millisecond=ua.milliseconds=na,ua.utcOffset=mn,ua.utc=gn,ua.local=yn,ua.parseZone=bn,ua.hasAlignedHourOffset=wn,ua.isDST=xn,ua.isLocal=_n,ua.isUtcOffset=En,ua.isUtc=Mn,ua.isUTC=Mn,ua.zoneAbbr=oa,ua.zoneName=sa,ua.dates=M("dates accessor is deprecated. Use date instead.",$i),ua.months=M("months accessor is deprecated. Use month instead",ct),ua.years=M("years accessor is deprecated. Use year instead",vt),ua.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vn),ua.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kn);var ha=O.prototype;function da(e,t,r,n){var i=gr(),a=p().set(n,t);return i[r](a,e)}function pa(e,t,r){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return da(e,t,r,"month");var n,i=[];for(n=0;n<12;n++)i[n]=da(e,n,r,"month");return i}function ma(e,t,r,n){"boolean"===typeof e?(c(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,c(t)&&(r=t,t=void 0),t=t||"");var i,a=gr(),o=e?a._week.dow:0,s=[];if(null!=r)return da(t,(r+o)%7,n,"day");for(i=0;i<7;i++)s[i]=da(t,(i+o)%7,n,"day");return s}function va(e,t){return pa(e,t,"months")}function ga(e,t){return pa(e,t,"monthsShort")}function ya(e,t,r){return ma(e,t,r,"weekdays")}function ba(e,t,r){return ma(e,t,r,"weekdaysShort")}function wa(e,t,r){return ma(e,t,r,"weekdaysMin")}ha.calendar=I,ha.longDateFormat=q,ha.invalidDate=Q,ha.ordinal=Z,ha.preparse=fa,ha.postformat=fa,ha.relativeTime=$,ha.pastFuture=ee,ha.set=P,ha.eras=Ni,ha.erasParse=Ti,ha.erasConvertYear=Pi,ha.erasAbbrRegex=Li,ha.erasNameRegex=ji,ha.erasNarrowRegex=Di,ha.months=at,ha.monthsShort=ot,ha.monthsParse=ut,ha.monthsRegex=dt,ha.monthsShortRegex=ht,ha.week=Et,ha.firstDayOfYear=St,ha.firstDayOfWeek=At,ha.weekdays=Bt,ha.weekdaysMin=zt,ha.weekdaysShort=Ut,ha.weekdaysParse=Yt,ha.weekdaysRegex=Wt,ha.weekdaysShortRegex=Qt,ha.weekdaysMinRegex=Kt,ha.isPM=tr,ha.meridiem=ir,pr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=M("moment.lang is deprecated. Use moment.locale instead.",pr),n.langData=M("moment.langData is deprecated. Use moment.localeData instead.",gr);var xa=Math.abs;function ka(){var e=this._data;return this._milliseconds=xa(this._milliseconds),this._days=xa(this._days),this._months=xa(this._months),e.milliseconds=xa(e.milliseconds),e.seconds=xa(e.seconds),e.minutes=xa(e.minutes),e.hours=xa(e.hours),e.months=xa(e.months),e.years=xa(e.years),this}function _a(e,t,r,n){var i=Nn(t,r);return e._milliseconds+=n*i._milliseconds,e._days+=n*i._days,e._months+=n*i._months,e._bubble()}function Ea(e,t){return _a(this,e,t,1)}function Ma(e,t){return _a(this,e,t,-1)}function Aa(e){return e<0?Math.floor(e):Math.ceil(e)}function Sa(){var e,t,r,n,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Aa(Ta(s)+o),o=0,s=0),u.milliseconds=a%1e3,e=le(a/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,r=le(t/60),u.hours=r%24,o+=le(r/24),s+=i=le(Na(o)),o-=Aa(Ta(i)),n=le(s/12),s%=12,u.days=o,u.months=s,u.years=n,this}function Na(e){return 4800*e/146097}function Ta(e){return 146097*e/4800}function Pa(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+Na(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Ta(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}}function Ca(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Oa(e){return function(){return this.as(e)}}var Ra=Oa("ms"),Ia=Oa("s"),ja=Oa("m"),La=Oa("h"),Da=Oa("d"),Fa=Oa("w"),Ba=Oa("M"),Ua=Oa("Q"),za=Oa("y");function Ha(){return Nn(this)}function Ya(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Va(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ga=Va("milliseconds"),qa=Va("seconds"),Wa=Va("minutes"),Qa=Va("hours"),Ka=Va("days"),Ja=Va("months"),Za=Va("years");function Xa(){return le(this.days()/7)}var $a=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function to(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}function ro(e,t,r,n){var i=Nn(e).abs(),a=$a(i.as("s")),o=$a(i.as("m")),s=$a(i.as("h")),u=$a(i.as("d")),l=$a(i.as("M")),c=$a(i.as("w")),f=$a(i.as("y")),h=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||u<=1&&["d"]||u<r.d&&["dd",u];return null!=r.w&&(h=h||c<=1&&["w"]||c<r.w&&["ww",c]),(h=h||l<=1&&["M"]||l<r.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,h[3]=+e>0,h[4]=n,to.apply(null,h)}function no(e){return void 0===e?$a:"function"===typeof e&&($a=e,!0)}function io(e,t){return void 0!==eo[e]&&(void 0===t?eo[e]:(eo[e]=t,"s"===e&&(eo.ss=t-1),!0))}function ao(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,i=!1,a=eo;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(a=Object.assign({},eo,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=ro(this,!i,a,r=this.localeData()),i&&(n=r.pastFuture(+this,n)),r.postformat(n)}var oo=Math.abs;function so(e){return(e>0)-(e<0)||+e}function uo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,a,o,s,u=oo(this._milliseconds)/1e3,l=oo(this._days),c=oo(this._months),f=this.asSeconds();return f?(e=le(u/60),t=le(e/60),u%=60,e%=60,r=le(c/12),c%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",a=so(this._months)!==so(f)?"-":"",o=so(this._days)!==so(f)?"-":"",s=so(this._milliseconds)!==so(f)?"-":"",i+"P"+(r?a+r+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+n+"S":"")):"P0D"}var lo=on.prototype;return lo.isValid=nn,lo.abs=ka,lo.add=Ea,lo.subtract=Ma,lo.as=Pa,lo.asMilliseconds=Ra,lo.asSeconds=Ia,lo.asMinutes=ja,lo.asHours=La,lo.asDays=Da,lo.asWeeks=Fa,lo.asMonths=Ba,lo.asQuarters=Ua,lo.asYears=za,lo.valueOf=Ca,lo._bubble=Sa,lo.clone=Ha,lo.get=Ya,lo.milliseconds=Ga,lo.seconds=qa,lo.minutes=Wa,lo.hours=Qa,lo.days=Ka,lo.weeks=Xa,lo.months=Ja,lo.years=Za,lo.humanize=ao,lo.toISOString=uo,lo.toString=uo,lo.toJSON=uo,lo.locale=oi,lo.localeData=ui,lo.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),lo.lang=si,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Ie("x",Te),Ie("X",Oe),Be("X",(function(e,t,r){r._d=new Date(1e3*parseFloat(e))})),Be("x",(function(e,t,r){r._d=new Date(ce(e))})),n.version="2.29.4",i(Qr),n.fn=ua,n.min=Xr,n.max=$r,n.now=en,n.utc=p,n.unix=la,n.months=va,n.isDate=f,n.locale=pr,n.invalid=y,n.duration=Nn,n.isMoment=_,n.weekdays=ya,n.parseZone=ca,n.localeData=gr,n.isDuration=sn,n.monthsShort=ga,n.weekdaysMin=wa,n.defineLocale=mr,n.updateLocale=vr,n.locales=yr,n.weekdaysShort=ba,n.normalizeUnits=ne,n.relativeTimeRounding=no,n.relativeTimeThreshold=io,n.calendarFormat=zn,n.prototype=ua,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},842:function(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,c=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):c=-1,u.length&&h())}function h(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++c<t;)s&&s[c].run();c=-1,t=u.length}s=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new d(e,t)),1!==u.length||l||o(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},888:function(e,t,r){"use strict";var n=r(47);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return r.PropTypes=r,r}},7:function(e,t,r){e.exports=r(888)()},47:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},463:function(e,t,r){"use strict";var n=r(791),i=r(296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function m(e,t,r,n,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,r,n){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!f.call(p,e)||!f.call(d,e)&&(h.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),k=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),S=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var L,D=Object.assign;function F(e){if(void 0===L)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&"string"===typeof l.stack){for(var i=l.stack.split("\n"),a=n.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var u="\n"+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case k:return"Portal";case M:return"Profiler";case E:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return H(e(t))}catch(r){}}return null}function Y(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=G(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var r=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function J(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=V(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Z(e,t);var r=V(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&Q(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+V(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(te(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:V(r)}}function ae(e,t){var r=V(t.value),n=V(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ve(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ge=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,_e=null,Ee=null;function Me(e){if(e=bi(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=xi(t),ke(e.stateNode,e.type,t))}}function Ae(e){_e?Ee?Ee.push(e):Ee=[e]:_e=e}function Se(){if(_e){var e=_e,t=Ee;if(Ee=_e=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Ne(e,t){return e(t)}function Te(){}var Pe=!1;function Ce(e,t,r){if(Pe)return e(t,r);Pe=!0;try{return Ne(e,t,r)}finally{Pe=!1,(null!==_e||null!==Ee)&&(Te(),Se())}}function Oe(e,t){var r=e.stateNode;if(null===r)return null;var n=xi(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(a(231,t,typeof r));return r}var Re=!1;if(c)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ce){Re=!1}function je(e,t,r,n,i,a,o,s,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var Le=!1,De=null,Fe=!1,Be=null,Ue={onError:function(e){Le=!0,De=e}};function ze(e,t,r,n,i,a,o,s,u){Le=!1,De=null,je.apply(Ue,arguments)}function He(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(a(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Ve(i),e;if(o===n)return Ve(i),t;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,u=i.child;u;){if(u===r){s=!0,r=i,n=o;break}if(u===n){s=!0,n=i,r=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===r){s=!0,r=o,n=i;break}if(u===n){s=!0,n=o,r=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Qe=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Je=i.unstable_requestPaint,Ze=i.unstable_now,Xe=i.unstable_getCurrentPriorityLevel,$e=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var lt=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&r;if(0!==o){var s=o&~i;0!==s?n=ft(s):0!==(a&=o)&&(n=ft(a))}else 0!==(o=r&~i)?n=ft(o):0!==a&&(n=ft(a));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&i)&&((i=n&-n)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-ot(t)),n|=e[r],t&=~i;return n}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=lt;return 0===(4194240&(lt<<=1))&&(lt=64),e}function vt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function gt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ot(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,kt,_t,Et,Mt,At=!1,St=[],Nt=null,Tt=null,Pt=null,Ct=new Map,Ot=new Map,Rt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Lt(e,t,r,n,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&kt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Dt(e){var t=yi(e.target);if(null!==t){var r=He(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ye(r)))return e.blockedOn=t,void Mt(e.priority,(function(){_t(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=bi(r))&&kt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function Bt(e,t,r){Ft(e)&&r.delete(t)}function Ut(){At=!1,null!==Nt&&Ft(Nt)&&(Nt=null),null!==Tt&&Ft(Tt)&&(Tt=null),null!==Pt&&Ft(Pt)&&(Pt=null),Ct.forEach(Bt),Ot.forEach(Bt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return zt(t,e)}if(0<St.length){zt(St[0],e);for(var r=1;r<St.length;r++){var n=St[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Nt&&zt(Nt,e),null!==Tt&&zt(Tt,e),null!==Pt&&zt(Pt,e),Ct.forEach(t),Ot.forEach(t),r=0;r<Rt.length;r++)(n=Rt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Rt.length&&null===(r=Rt[0]).blockedOn;)Dt(r),null===r.blockedOn&&Rt.shift()}var Yt=w.ReactCurrentBatchConfig,Vt=!0;function Gt(e,t,r,n){var i=bt,a=Yt.transition;Yt.transition=null;try{bt=1,Wt(e,t,r,n)}finally{bt=i,Yt.transition=a}}function qt(e,t,r,n){var i=bt,a=Yt.transition;Yt.transition=null;try{bt=4,Wt(e,t,r,n)}finally{bt=i,Yt.transition=a}}function Wt(e,t,r,n){if(Vt){var i=Kt(e,t,r,n);if(null===i)Vn(e,t,n,Qt,r),jt(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return Nt=Lt(Nt,e,t,r,n,i),!0;case"dragenter":return Tt=Lt(Tt,e,t,r,n,i),!0;case"mouseover":return Pt=Lt(Pt,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Ct.set(a,Lt(Ct.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Ot.set(a,Lt(Ot.get(a)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(jt(e,n),4&t&&-1<It.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&xt(a),null===(a=Kt(e,t,r,n))&&Vn(e,t,n,Qt,r),a===i)break;i=a}null!==i&&n.stopPropagation()}else Vn(e,t,n,null,r)}}var Qt=null;function Kt(e,t,r,n){if(Qt=null,null!==(e=yi(e=xe(n))))if(null===(t=He(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ye(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case $e:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Zt=null,Xt=null,$t=null;function er(){if($t)return $t;var e,t,r=Xt,n=r.length,i="value"in Zt?Zt.value:Zt.textContent,a=i.length;for(e=0;e<n&&r[e]===i[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===i[a-t];t++);return $t=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,a){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ar,or,sr,ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=ir(ur),cr=D({},ur,{view:0,detail:0}),fr=ir(cr),hr=D({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ar=e.screenX-sr.screenX,or=e.screenY-sr.screenY):or=ar=0,sr=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:or}}),dr=ir(hr),pr=ir(D({},hr,{dataTransfer:0})),mr=ir(D({},cr,{relatedTarget:0})),vr=ir(D({},ur,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=D({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=ir(gr),br=ir(D({},ur,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Er(){return _r}var Mr=D({},cr,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ar=ir(Mr),Sr=ir(D({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nr=ir(D({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Tr=ir(D({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pr=D({},hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Cr=ir(Pr),Or=[9,13,27,32],Rr=c&&"CompositionEvent"in window,Ir=null;c&&"documentMode"in document&&(Ir=document.documentMode);var jr=c&&"TextEvent"in window&&!Ir,Lr=c&&(!Rr||Ir&&8<Ir&&11>=Ir),Dr=String.fromCharCode(32),Fr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Or.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ur(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zr=!1;var Hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hr[e.type]:"textarea"===t}function Vr(e,t,r,n){Ae(n),0<(t=qn(t,"onChange")).length&&(r=new lr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Gr=null,qr=null;function Wr(e){Fn(e,0)}function Qr(e){if(W(wi(e)))return e}function Kr(e,t){if("change"===e)return t}var Jr=!1;if(c){var Zr;if(c){var Xr="oninput"in document;if(!Xr){var $r=document.createElement("div");$r.setAttribute("oninput","return;"),Xr="function"===typeof $r.oninput}Zr=Xr}else Zr=!1;Jr=Zr&&(!document.documentMode||9<document.documentMode)}function en(){Gr&&(Gr.detachEvent("onpropertychange",tn),qr=Gr=null)}function tn(e){if("value"===e.propertyName&&Qr(qr)){var t=[];Vr(t,qr,e,xe(e)),Ce(Wr,t)}}function rn(e,t,r){"focusin"===e?(en(),qr=r,(Gr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qr(qr)}function an(e,t){if("click"===e)return Qr(t)}function on(e,t){if("input"===e||"change"===e)return Qr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function un(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!f.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function ln(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=ln(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ln(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=Q((e=t.contentWindow).document)}return t}function dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&dn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=void 0===n.end?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=cn(r,a);var o=cn(r,n);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=c&&"documentMode"in document&&11>=document.documentMode,vn=null,gn=null,yn=null,bn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==vn||vn!==Q(n)||("selectionStart"in(n=vn)&&dn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&un(yn,n)||(yn=n,0<(n=qn(gn,"onSelect")).length&&(t=new lr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=vn)))}function xn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var kn={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionend:xn("Transition","TransitionEnd")},_n={},En={};function Mn(e){if(_n[e])return _n[e];if(!kn[e])return e;var t,r=kn[e];for(t in r)if(r.hasOwnProperty(t)&&t in En)return _n[e]=r[t];return e}c&&(En=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);var An=Mn("animationend"),Sn=Mn("animationiteration"),Nn=Mn("animationstart"),Tn=Mn("transitionend"),Pn=new Map,Cn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function On(e,t){Pn.set(e,t),u(t,[e])}for(var Rn=0;Rn<Cn.length;Rn++){var In=Cn[Rn];On(In.toLowerCase(),"on"+(In[0].toUpperCase()+In.slice(1)))}On(An,"onAnimationEnd"),On(Sn,"onAnimationIteration"),On(Nn,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(Tn,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(jn));function Dn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,o,s,u,l){if(ze.apply(this,arguments),Le){if(!Le)throw Error(a(198));var c=De;Le=!1,De=null,Fe||(Fe=!0,Be=c)}}(n,t,void 0,e),e.currentTarget=null}function Fn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],u=s.instance,l=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Dn(i,s,l),a=u}else for(o=0;o<n.length;o++){if(u=(s=n[o]).instance,l=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Dn(i,s,l),a=u}}}if(Fe)throw e=Be,Fe=!1,Be=null,e}function Bn(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(Yn(t,e,2,!1),r.add(n))}function Un(e,t,r){var n=0;t&&(n|=4),Yn(r,e,n,t)}var zn="_reactListening"+Math.random().toString(36).slice(2);function Hn(e){if(!e[zn]){e[zn]=!0,o.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||Un(t,!1,e),Un(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zn]||(t[zn]=!0,Un("selectionchange",!1,t))}}function Yn(e,t,r,n){switch(Jt(t)){case 1:var i=Gt;break;case 4:i=qt;break;default:i=Wt}r=i.bind(null,t,r,e),i=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Vn(e,t,r,n,i){var a=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var o=n.tag;if(3===o||4===o){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=n.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=yi(s)))return;if(5===(u=o.tag)||6===u){n=a=o;continue e}s=s.parentNode}}n=n.return}Ce((function(){var n=a,i=xe(r),o=[];e:{var s=Pn.get(e);if(void 0!==s){var u=lr,l=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":u=Ar;break;case"focusin":l="focus",u=mr;break;case"focusout":l="blur",u=mr;break;case"beforeblur":case"afterblur":u=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Nr;break;case An:case Sn:case Nn:u=vr;break;case Tn:u=Tr;break;case"scroll":u=fr;break;case"wheel":u=Cr;break;case"copy":case"cut":case"paste":u=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Sr}var c=0!==(4&t),f=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var d,p=n;null!==p;){var m=(d=p).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==h&&(null!=(m=Oe(p,h))&&c.push(Gn(p,m,d)))),f)break;p=p.return}0<c.length&&(s=new u(s,l,null,r,i),o.push({event:s,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(l=r.relatedTarget||r.fromElement)||!yi(l)&&!l[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=n,null!==(l=(l=r.relatedTarget||r.toElement)?yi(l):null)&&(l!==(f=He(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(u=null,l=n),u!==l)){if(c=dr,m="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Sr,m="onPointerLeave",h="onPointerEnter",p="pointer"),f=null==u?s:wi(u),d=null==l?s:wi(l),(s=new c(m,p+"leave",u,r,i)).target=f,s.relatedTarget=d,m=null,yi(i)===n&&((c=new c(h,p+"enter",l,r,i)).target=d,c.relatedTarget=f,m=c),f=m,u&&l)e:{for(h=l,p=0,d=c=u;d;d=Wn(d))p++;for(d=0,m=h;m;m=Wn(m))d++;for(;0<p-d;)c=Wn(c),p--;for(;0<d-p;)h=Wn(h),d--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break e;c=Wn(c),h=Wn(h)}c=null}else c=null;null!==u&&Qn(o,s,u,c,!1),null!==l&&null!==f&&Qn(o,f,l,c,!0)}if("select"===(u=(s=n?wi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Kr;else if(Yr(s))if(Jr)v=on;else{v=nn;var g=rn}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=an);switch(v&&(v=v(e,n))?Vr(o,v,r,i):(g&&g(e,s,n),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=n?wi(n):window,e){case"focusin":(Yr(g)||"true"===g.contentEditable)&&(vn=g,gn=n,yn=null);break;case"focusout":yn=gn=vn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,wn(o,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(o,r,i)}var y;if(Rr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zr?Br(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Lr&&"ko"!==r.locale&&(zr||"onCompositionStart"!==b?"onCompositionEnd"===b&&zr&&(y=er()):(Xt="value"in(Zt=i)?Zt.value:Zt.textContent,zr=!0)),0<(g=qn(n,b)).length&&(b=new br(b,e,null,r,i),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Ur(r))&&(b.data=y))),(y=jr?function(e,t){switch(e){case"compositionend":return Ur(t);case"keypress":return 32!==t.which?null:(Fr=!0,Dr);case"textInput":return(e=t.data)===Dr&&Fr?null:e;default:return null}}(e,r):function(e,t){if(zr)return"compositionend"===e||!Rr&&Br(e,t)?(e=er(),$t=Xt=Zt=null,zr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=qn(n,"onBeforeInput")).length&&(i=new br("onBeforeInput","beforeinput",null,r,i),o.push({event:i,listeners:n}),i.data=y))}Fn(o,t)}))}function Gn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function qn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Oe(e,r))&&n.unshift(Gn(e,a,i)),null!=(a=Oe(e,t))&&n.push(Gn(e,a,i))),e=e.return}return n}function Wn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qn(e,t,r,n,i){for(var a=t._reactName,o=[];null!==r&&r!==n;){var s=r,u=s.alternate,l=s.stateNode;if(null!==u&&u===n)break;5===s.tag&&null!==l&&(s=l,i?null!=(u=Oe(r,a))&&o.unshift(Gn(r,u,s)):i||null!=(u=Oe(r,a))&&o.push(Gn(r,u,s))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var Kn=/\r\n?/g,Jn=/\u0000|\uFFFD/g;function Zn(e){return("string"===typeof e?e:""+e).replace(Kn,"\n").replace(Jn,"")}function Xn(e,t,r){if(t=Zn(t),Zn(e)!==t&&r)throw Error(a(425))}function $n(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,oi="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void Ht(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);Ht(t)}function li(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),hi="__reactFiber$"+fi,di="__reactProps$"+fi,pi="__reactContainer$"+fi,mi="__reactEvents$"+fi,vi="__reactListeners$"+fi,gi="__reactHandles$"+fi;function yi(e){var t=e[hi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pi]||r[hi]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ci(e);null!==e;){if(r=e[hi])return r;e=ci(e)}return t}r=(e=r).parentNode}return null}function bi(e){return!(e=e[hi]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function xi(e){return e[di]||null}var ki=[],_i=-1;function Ei(e){return{current:e}}function Mi(e){0>_i||(e.current=ki[_i],ki[_i]=null,_i--)}function Ai(e,t){_i++,ki[_i]=e.current,e.current=t}var Si={},Ni=Ei(Si),Ti=Ei(!1),Pi=Si;function Ci(e,t){var r=e.type.contextTypes;if(!r)return Si;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in r)a[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Oi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ri(){Mi(Ti),Mi(Ni)}function Ii(e,t,r){if(Ni.current!==Si)throw Error(a(168));Ai(Ni,t),Ai(Ti,r)}function ji(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(a(108,Y(e)||"Unknown",i));return D({},r,n)}function Li(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,Pi=Ni.current,Ai(Ni,e),Ai(Ti,Ti.current),!0}function Di(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=ji(e,t,Pi),n.__reactInternalMemoizedMergedChildContext=e,Mi(Ti),Mi(Ni),Ai(Ni,e)):Mi(Ti),Ai(Ti,r)}var Fi=null,Bi=!1,Ui=!1;function zi(e){null===Fi?Fi=[e]:Fi.push(e)}function Hi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=bt;try{var r=Fi;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Fi=null,Bi=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),We($e,Hi),i}finally{bt=t,Ui=!1}}return null}var Yi=[],Vi=0,Gi=null,qi=0,Wi=[],Qi=0,Ki=null,Ji=1,Zi="";function Xi(e,t){Yi[Vi++]=qi,Yi[Vi++]=Gi,Gi=e,qi=t}function $i(e,t,r){Wi[Qi++]=Ji,Wi[Qi++]=Zi,Wi[Qi++]=Ki,Ki=e;var n=Ji;e=Zi;var i=32-ot(n)-1;n&=~(1<<i),r+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Ji=1<<32-ot(t)+i|r<<i|n,Zi=a+e}else Ji=1<<a|r<<i|n,Zi=e}function ea(e){null!==e.return&&(Xi(e,1),$i(e,1,0))}function ta(e){for(;e===Gi;)Gi=Yi[--Vi],Yi[Vi]=null,qi=Yi[--Vi],Yi[Vi]=null;for(;e===Ki;)Ki=Wi[--Qi],Wi[Qi]=null,Zi=Wi[--Qi],Wi[Qi]=null,Ji=Wi[--Qi],Wi[Qi]=null}var ra=null,na=null,ia=!1,aa=null;function oa(e,t){var r=Ol(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function sa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,na=li(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,na=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Ki?{id:Ji,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Ol(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ra=e,na=null,!0);default:return!1}}function ua(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function la(e){if(ia){var t=na;if(t){var r=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=li(r.nextSibling);var n=ra;t&&sa(e,t)?oa(n,r):(e.flags=-4097&e.flags|2,ia=!1,ra=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,ra=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=na)){if(ua(e))throw ha(),Error(a(418));for(;t;)oa(e,t),t=li(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){na=li(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}na=null}}else na=ra?li(e.stateNode.nextSibling):null;return!0}function ha(){for(var e=na;e;)e=li(e.nextSibling)}function da(){na=ra=null,ia=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var ma=w.ReactCurrentBatchConfig;function va(e,t){if(e&&e.defaultProps){for(var r in t=D({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var ga=Ei(null),ya=null,ba=null,wa=null;function xa(){wa=ba=ya=null}function ka(e){var t=ga.current;Mi(ga),e._currentValue=t}function _a(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ea(e,t){ya=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ma(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ya)throw Error(a(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Aa=null;function Sa(e){null===Aa?Aa=[e]:Aa.push(e)}function Na(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Sa(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ta(e,n)}function Ta(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Pa=!1;function Ca(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ra(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Tu)){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ta(e,r)}return null===(i=n.interleaved)?(t.next=t,Sa(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ta(e,r)}function ja(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function La(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?i=a=o:a=a.next=o,r=r.next}while(null!==r);null===a?i=a=t:a=a.next=t}else i=a=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Da(e,t,r,n){var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,l=u.next;u.next=null,null===o?a=l:o.next=l,o=u;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=l:s.next=l,c.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(o=0,c=l=u=null,s=a;;){var h=s.lane,d=s.eventTime;if((n&h)===h){null!==c&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(h=t,d=r,m.tag){case 1:if("function"===typeof(p=m.payload)){f=p.call(d,f,h);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=m.payload)?p.call(d,f,h):p)||void 0===h)break e;f=D({},f,h);break e;case 2:Pa=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else d={eventTime:d,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(l=c=d,u=f):c=c.next=d,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=l,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Du|=o,e.lanes=o,e.memoizedState=f}}function Fa(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!==typeof i)throw Error(a(191,i));i.call(n)}}}var Ba=(new n.Component).refs;function Ua(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:D({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var za={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tl(),i=rl(e),a=Ra(n,i);a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=Ia(e,a,i))&&(nl(t,e,i,n),ja(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tl(),i=rl(e),a=Ra(n,i);a.tag=1,a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=Ia(e,a,i))&&(nl(t,e,i,n),ja(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tl(),n=rl(e),i=Ra(r,n);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Ia(e,i,n))&&(nl(t,e,n,r),ja(t,e,n))}};function Ha(e,t,r,n,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!un(r,n)||!un(i,a))}function Ya(e,t,r){var n=!1,i=Si,a=t.contextType;return"object"===typeof a&&null!==a?a=Ma(a):(i=Oi(t)?Pi:Ni.current,a=(n=null!==(n=t.contextTypes)&&void 0!==n)?Ci(e,i):Si),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Va(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&za.enqueueReplaceState(t,t.state,null)}function Ga(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Ba,Ca(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ma(a):(a=Oi(t)?Pi:Ni.current,i.context=Ci(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,r),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&za.enqueueReplaceState(i,i.state,null),Da(e,r,i,n),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function qa(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var i=n,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Ba&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Wa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){return(0,e._init)(e._payload)}function Ka(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Il(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,r,n){return null===t||6!==t.tag?((t=Fl(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===_?f(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===O&&Qa(a)===t.type)?((n=i(t,r.props)).ref=qa(e,t,r),n.return=e,n):((n=jl(r.type,r.key,r.props,null,e.mode,n)).ref=qa(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Bl(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function f(e,t,r,n,a){return null===t||7!==t.tag?((t=Ll(r,e.mode,n,a)).return=e,t):((t=i(t,r)).return=e,t)}function h(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Fl(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(r=jl(t.type,t.key,t.props,null,e.mode,r)).ref=qa(e,null,t),r.return=e,r;case k:return(t=Bl(t,e.mode,r)).return=e,t;case O:return h(e,(0,t._init)(t._payload),r)}if(te(t)||j(t))return(t=Ll(t,e.mode,r,null)).return=e,t;Wa(e,t)}return null}function d(e,t,r,n){var i=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==i?null:u(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return r.key===i?l(e,t,r,n):null;case k:return r.key===i?c(e,t,r,n):null;case O:return d(e,t,(i=r._init)(r._payload),n)}if(te(r)||j(r))return null!==i?null:f(e,t,r,n,null);Wa(e,r)}return null}function p(e,t,r,n,i){if("string"===typeof n&&""!==n||"number"===typeof n)return u(t,e=e.get(r)||null,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return l(t,e=e.get(null===n.key?r:n.key)||null,n,i);case k:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case O:return p(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||j(n))return f(t,e=e.get(r)||null,n,i,null);Wa(t,n)}return null}function m(i,a,s,u){for(var l=null,c=null,f=a,m=a=0,v=null;null!==f&&m<s.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=d(i,f,s[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===c?l=g:c.sibling=g,c=g,f=v}if(m===s.length)return r(i,f),ia&&Xi(i,m),l;if(null===f){for(;m<s.length;m++)null!==(f=h(i,s[m],u))&&(a=o(f,a,m),null===c?l=f:c.sibling=f,c=f);return ia&&Xi(i,m),l}for(f=n(i,f);m<s.length;m++)null!==(v=p(f,i,m,s[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),ia&&Xi(i,m),l}function v(i,s,u,l){var c=j(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=s,v=s=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=d(i,m,y.value,l);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return r(i,m),ia&&Xi(i,v),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=h(i,y.value,l))&&(s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return ia&&Xi(i,v),c}for(m=n(i,m);!y.done;v++,y=u.next())null!==(y=p(m,i,v,y.value,l))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),ia&&Xi(i,v),c}return function e(n,a,o,u){if("object"===typeof o&&null!==o&&o.type===_&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case x:e:{for(var l=o.key,c=a;null!==c;){if(c.key===l){if((l=o.type)===_){if(7===c.tag){r(n,c.sibling),(a=i(c,o.props.children)).return=n,n=a;break e}}else if(c.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===O&&Qa(l)===c.type){r(n,c.sibling),(a=i(c,o.props)).ref=qa(n,c,o),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}o.type===_?((a=Ll(o.props.children,n.mode,u,o.key)).return=n,n=a):((u=jl(o.type,o.key,o.props,null,n.mode,u)).ref=qa(n,a,o),u.return=n,n=u)}return s(n);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){r(n,a.sibling),(a=i(a,o.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Bl(o,n.mode,u)).return=n,n=a}return s(n);case O:return e(n,a,(c=o._init)(o._payload),u)}if(te(o))return m(n,a,o,u);if(j(o))return v(n,a,o,u);Wa(n,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(r(n,a.sibling),(a=i(a,o)).return=n,n=a):(r(n,a),(a=Fl(o,n.mode,u)).return=n,n=a),s(n)):r(n,a)}}var Ja=Ka(!0),Za=Ka(!1),Xa={},$a=Ei(Xa),eo=Ei(Xa),to=Ei(Xa);function ro(e){if(e===Xa)throw Error(a(174));return e}function no(e,t){switch(Ai(to,t),Ai(eo,e),Ai($a,Xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mi($a),Ai($a,t)}function io(){Mi($a),Mi(eo),Mi(to)}function ao(e){ro(to.current);var t=ro($a.current),r=ue(t,e.type);t!==r&&(Ai(eo,e),Ai($a,r))}function oo(e){eo.current===e&&(Mi($a),Mi(eo))}var so=Ei(0);function uo(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var lo=[];function co(){for(var e=0;e<lo.length;e++)lo[e]._workInProgressVersionPrimary=null;lo.length=0}var fo=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,po=0,mo=null,vo=null,go=null,yo=!1,bo=!1,wo=0,xo=0;function ko(){throw Error(a(321))}function _o(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function Eo(e,t,r,n,i,o){if(po=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ss:us,e=r(n,i),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(a(301));o+=1,go=vo=null,t.updateQueue=null,fo.current=ls,e=r(n,i)}while(bo)}if(fo.current=os,t=null!==vo&&null!==vo.next,po=0,go=vo=mo=null,yo=!1,t)throw Error(a(300));return e}function Mo(){var e=0!==wo;return wo=0,e}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===go?mo.memoizedState=go=e:go=go.next=e,go}function So(){if(null===vo){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=vo.next;var t=null===go?mo.memoizedState:go.next;if(null!==t)go=t,vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(vo=e).memoizedState,baseState:vo.baseState,baseQueue:vo.baseQueue,queue:vo.queue,next:null},null===go?mo.memoizedState=go=e:go=go.next=e}return go}function No(e,t){return"function"===typeof t?t(e):t}function To(e){var t=So(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=vo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(null!==i){o=i.next,n=n.baseState;var u=s=null,l=null,c=o;do{var f=c.lane;if((po&f)===f)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(u=l=h,s=n):l=l.next=h,mo.lanes|=f,Du|=f}c=c.next}while(null!==c&&c!==o);null===l?s=n:l.next=u,sn(n,t.memoizedState)||(ws=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{o=i.lane,mo.lanes|=o,Du|=o,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Po(e){var t=So(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sn(o,t.memoizedState)||(ws=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Co(){}function Oo(e,t){var r=mo,n=So(),i=t(),o=!sn(n.memoizedState,i);if(o&&(n.memoizedState=i,ws=!0),n=n.queue,Vo(jo.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||null!==go&&1&go.memoizedState.tag){if(r.flags|=2048,Bo(9,Io.bind(null,r,n,i,t),void 0,null),null===Pu)throw Error(a(349));0!==(30&po)||Ro(r,t,i)}return i}function Ro(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Io(e,t,r,n){t.value=r,t.getSnapshot=n,Lo(t)&&Do(e)}function jo(e,t,r){return r((function(){Lo(t)&&Do(e)}))}function Lo(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function Do(e){var t=Ta(e,1);null!==t&&nl(t,e,1,-1)}function Fo(e){var t=Ao();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,mo,e),[t.memoizedState,e]}function Bo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Uo(){return So().memoizedState}function zo(e,t,r,n){var i=Ao();mo.flags|=e,i.memoizedState=Bo(1|t,r,void 0,void 0===n?null:n)}function Ho(e,t,r,n){var i=So();n=void 0===n?null:n;var a=void 0;if(null!==vo){var o=vo.memoizedState;if(a=o.destroy,null!==n&&_o(n,o.deps))return void(i.memoizedState=Bo(t,r,a,n))}mo.flags|=e,i.memoizedState=Bo(1|t,r,a,n)}function Yo(e,t){return zo(8390656,8,e,t)}function Vo(e,t){return Ho(2048,8,e,t)}function Go(e,t){return Ho(4,2,e,t)}function qo(e,t){return Ho(4,4,e,t)}function Wo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qo(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Ho(4,4,Wo.bind(null,t,e),r)}function Ko(){}function Jo(e,t){var r=So();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&_o(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Zo(e,t){var r=So();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&_o(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Xo(e,t,r){return 0===(21&po)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=r):(sn(r,t)||(r=mt(),mo.lanes|=r,Du|=r,e.baseState=!0),t)}function $o(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=r,ho.transition=n}}function es(){return So().memoizedState}function ts(e,t,r){var n=rl(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e))is(t,r);else if(null!==(r=Na(e,t,r,n))){nl(r,e,n,tl()),as(r,t,n)}}function rs(e,t,r){var n=rl(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,o)){var u=t.interleaved;return null===u?(i.next=i,Sa(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(l){}null!==(r=Na(e,t,i,n))&&(nl(r,e,n,i=tl()),as(r,t,n))}}function ns(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function is(e,t){bo=yo=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function as(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var os={readContext:Ma,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},ss={readContext:Ma,useCallback:function(e,t){return Ao().memoizedState=[e,void 0===t?null:t],e},useContext:Ma,useEffect:Yo,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,zo(4194308,4,Wo.bind(null,t,e),r)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var r=Ao();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ao();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,mo,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Ao().memoizedState=e},useState:Fo,useDebugValue:Ko,useDeferredValue:function(e){return Ao().memoizedState=e},useTransition:function(){var e=Fo(!1),t=e[0];return e=$o.bind(null,e[1]),Ao().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=mo,i=Ao();if(ia){if(void 0===r)throw Error(a(407));r=r()}else{if(r=t(),null===Pu)throw Error(a(349));0!==(30&po)||Ro(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Yo(jo.bind(null,n,o,e),[e]),n.flags|=2048,Bo(9,Io.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ao(),t=Pu.identifierPrefix;if(ia){var r=Zi;t=":"+t+"R"+(r=(Ji&~(1<<32-ot(Ji)-1)).toString(32)+r),0<(r=wo++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=xo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:Ma,useCallback:Jo,useContext:Ma,useEffect:Vo,useImperativeHandle:Qo,useInsertionEffect:Go,useLayoutEffect:qo,useMemo:Zo,useReducer:To,useRef:Uo,useState:function(){return To(No)},useDebugValue:Ko,useDeferredValue:function(e){return Xo(So(),vo.memoizedState,e)},useTransition:function(){return[To(No)[0],So().memoizedState]},useMutableSource:Co,useSyncExternalStore:Oo,useId:es,unstable_isNewReconciler:!1},ls={readContext:Ma,useCallback:Jo,useContext:Ma,useEffect:Vo,useImperativeHandle:Qo,useInsertionEffect:Go,useLayoutEffect:qo,useMemo:Zo,useReducer:Po,useRef:Uo,useState:function(){return Po(No)},useDebugValue:Ko,useDeferredValue:function(e){var t=So();return null===vo?t.memoizedState=e:Xo(t,vo.memoizedState,e)},useTransition:function(){return[Po(No)[0],So().memoizedState]},useMutableSource:Co,useSyncExternalStore:Oo,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var r="",n=t;do{r+=z(n),n=n.return}while(n);var i=r}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var ds="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Ra(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Gu||(Gu=!0,qu=n),hs(0,t)},r}function ms(e,t,r){(r=Ra(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){hs(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(r.callback=function(){hs(0,t),"function"!==typeof n&&(null===Wu?Wu=new Set([this]):Wu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function vs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new ds;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Al.bind(null,e,t,r),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ra(-1,1)).tag=2,Ia(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,r,n){t.child=null===e?Za(t,null,r,n):Ja(t,e.child,r,n)}function ks(e,t,r,n,i){r=r.render;var a=t.ref;return Ea(t,i),n=Eo(e,t,r,n,a,i),r=Mo(),null===e||ws?(ia&&r&&ea(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function _s(e,t,r,n,i){if(null===e){var a=r.type;return"function"!==typeof a||Rl(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=jl(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Es(e,t,a,n,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((r=null!==(r=r.compare)?r:un)(o,n)&&e.ref===t.ref)return Gs(e,t,i)}return t.flags|=1,(e=Il(a,n)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(un(a,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=a,0===(e.lanes&i))return t.lanes=e.lanes,Gs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Ss(e,t,r,n,i)}function Ms(e,t,r){var n=t.pendingProps,i=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ai(Iu,Ru),Ru|=r;else{if(0===(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ai(Iu,Ru),Ru|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,Ai(Iu,Ru),Ru|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ai(Iu,Ru),Ru|=n;return xs(e,t,i,r),t.child}function As(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,r,n,i){var a=Oi(r)?Pi:Ni.current;return a=Ci(t,a),Ea(t,i),r=Eo(e,t,r,n,a,i),n=Mo(),null===e||ws?(ia&&n&&ea(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gs(e,t,i))}function Ns(e,t,r,n,i){if(Oi(r)){var a=!0;Li(t)}else a=!1;if(Ea(t,i),null===t.stateNode)Vs(e,t),Ya(t,r,n),Ga(t,r,n,i),n=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,l=r.contextType;"object"===typeof l&&null!==l?l=Ma(l):l=Ci(t,l=Oi(r)?Pi:Ni.current);var c=r.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==n||u!==l)&&Va(t,o,n,l),Pa=!1;var h=t.memoizedState;o.state=h,Da(t,n,o,i),u=t.memoizedState,s!==n||h!==u||Ti.current||Pa?("function"===typeof c&&(Ua(t,r,c,n),u=t.memoizedState),(s=Pa||Ha(t,r,s,n,h,u,l))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=l,n=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:va(t.type,s),o.props=l,f=t.pendingProps,h=o.context,"object"===typeof(u=r.contextType)&&null!==u?u=Ma(u):u=Ci(t,u=Oi(r)?Pi:Ni.current);var d=r.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||h!==u)&&Va(t,o,n,u),Pa=!1,h=t.memoizedState,o.state=h,Da(t,n,o,i);var p=t.memoizedState;s!==f||h!==p||Ti.current||Pa?("function"===typeof d&&(Ua(t,r,d,n),p=t.memoizedState),(l=Pa||Ha(t,r,l,n,h,p,u)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(n,p,u),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,p,u)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=u,n=l):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Ts(e,t,r,n,a,i)}function Ts(e,t,r,n,i,a){As(e,t);var o=0!==(128&t.flags);if(!n&&!o)return i&&Di(t,r,!1),Gs(e,t,a);n=t.stateNode,bs.current=t;var s=o&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&o?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,s,a)):xs(e,t,s,a),t.memoizedState=n.state,i&&Di(t,r,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Ii(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(0,t.context,!1),no(e,t.containerInfo)}function Cs(e,t,r,n,i){return da(),pa(i),t.flags|=256,xs(e,t,r,n),t.child}var Os,Rs,Is,js,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,r){var n,i=t.pendingProps,o=so.current,s=!1,u=0!==(128&t.flags);if((n=u)||(n=(null===e||null!==e.memoizedState)&&0!==(2&o)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ai(so,1&o),null===e)return la(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Dl(u,i,0,null),e=Ll(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(r),t.memoizedState=Ls,e):Bs(t,u));if(null!==(o=e.memoizedState)&&null!==(n=o.dehydrated))return function(e,t,r,n,i,o,s){if(r)return 256&t.flags?(t.flags&=-257,Us(e,t,s,n=fs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Dl({mode:"visible",children:n.children},i,0,null),(o=Ll(o,i,s,null)).flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,0!==(1&t.mode)&&Ja(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,o);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var u=n.dgst;return n=u,Us(e,t,s,n=fs(o=Error(a(419)),n,void 0))}if(u=0!==(s&e.childLanes),ws||u){if(null!==(n=Pu)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(n.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Ta(e,i),nl(n,e,i,-1))}return vl(),Us(e,t,s,n=fs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Nl.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,na=li(i.nextSibling),ra=t,ia=!0,aa=null,null!==e&&(Wi[Qi++]=Ji,Wi[Qi++]=Zi,Wi[Qi++]=Ki,Ji=e.id,Zi=e.overflow,Ki=t),t=Bs(t,n.children),t.flags|=4096,t)}(e,t,u,i,n,o,r);if(s){s=i.fallback,u=t.mode,n=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=Il(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==n?s=Il(n,s):(s=Ll(s,u,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ds(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~r,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Il(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Bs(e,t){return(t=Dl({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,r,n){return null!==n&&pa(n),Ja(t,e.child,null,r),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),_a(e.return,t,r)}function Hs(e,t,r,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function Ys(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(xs(e,t,n.children,r),0!==(2&(n=so.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,r,t);else if(19===e.tag)zs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ai(so,n),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===uo(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Hs(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===uo(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Hs(t,!0,r,null,a);break;case"together":Hs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Du|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Il(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Il(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function qs(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Qs(e,t,r){var n=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Oi(t.type)&&Ri(),Ws(t),null;case 3:return n=t.stateNode,io(),Mi(Ti),Mi(Ni),co(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(sl(aa),aa=null))),Rs(e,t),Ws(t),null;case 5:oo(t);var i=ro(to.current);if(r=t.type,null!==e&&null!=t.stateNode)Is(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(a(166));return Ws(t),null}if(e=ro($a.current),fa(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[hi]=t,n[di]=o,e=0!==(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(i=0;i<jn.length;i++)Bn(jn[i],n);break;case"source":Bn("error",n);break;case"img":case"image":case"link":Bn("error",n),Bn("load",n);break;case"details":Bn("toggle",n);break;case"input":J(n,o),Bn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Bn("invalid",n);break;case"textarea":ie(n,o),Bn("invalid",n)}for(var u in ye(r,o),i=null,o)if(o.hasOwnProperty(u)){var l=o[u];"children"===u?"string"===typeof l?n.textContent!==l&&(!0!==o.suppressHydrationWarning&&Xn(n.textContent,l,e),i=["children",l]):"number"===typeof l&&n.textContent!==""+l&&(!0!==o.suppressHydrationWarning&&Xn(n.textContent,l,e),i=["children",""+l]):s.hasOwnProperty(u)&&null!=l&&"onScroll"===u&&Bn("scroll",n)}switch(r){case"input":q(n),$(n,o,!0);break;case"textarea":q(n),oe(n);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(n.onclick=$n)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=u.createElement(r,{is:n.is}):(e=u.createElement(r),"select"===r&&(u=e,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):e=u.createElementNS(e,r),e[hi]=t,e[di]=n,Os(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),i=n;break;case"iframe":case"object":case"embed":Bn("load",e),i=n;break;case"video":case"audio":for(i=0;i<jn.length;i++)Bn(jn[i],e);i=n;break;case"source":Bn("error",e),i=n;break;case"img":case"image":case"link":Bn("error",e),Bn("load",e),i=n;break;case"details":Bn("toggle",e),i=n;break;case"input":J(e,n),i=K(e,n),Bn("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=D({},n,{value:void 0}),Bn("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),Bn("invalid",e)}for(o in ye(r,i),l=i)if(l.hasOwnProperty(o)){var c=l[o];"style"===o?ve(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"===typeof c?("textarea"!==r||""!==c)&&he(e,c):"number"===typeof c&&he(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Bn("scroll",e):null!=c&&b(e,o,c,u))}switch(r){case"input":q(e),$(e,n,!1);break;case"textarea":q(e),oe(e);break;case"option":null!=n.value&&e.setAttribute("value",""+V(n.value));break;case"select":e.multiple=!!n.multiple,null!=(o=n.value)?re(e,!!n.multiple,o,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=$n)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(a(166));if(r=ro(to.current),ro($a.current),fa(t)){if(n=t.stateNode,r=t.memoizedProps,n[hi]=t,(o=n.nodeValue!==r)&&null!==(e=ra))switch(e.tag){case 3:Xn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xn(n.nodeValue,r,0!==(1&e.mode))}o&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[hi]=t,t.stateNode=n}return Ws(t),null;case 13:if(Mi(so),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==na&&0!==(1&t.mode)&&0===(128&t.flags))ha(),da(),t.flags|=98560,o=!1;else if(o=fa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[hi]=t}else da(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),o=!1}else null!==aa&&(sl(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&so.current)?0===ju&&(ju=3):vl())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return io(),Rs(e,t),null===e&&Hn(t.stateNode.containerInfo),Ws(t),null;case 10:return ka(t.type._context),Ws(t),null;case 19:if(Mi(so),null===(o=t.memoizedState))return Ws(t),null;if(n=0!==(128&t.flags),null===(u=o.rendering))if(n)qs(o,!1);else{if(0!==ju||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=uo(e))){for(t.flags|=128,qs(o,!1),null!==(n=u.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(o=r).flags&=14680066,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ai(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Ze()>Yu&&(t.flags|=128,n=!0,qs(o,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=uo(u))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),qs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!ia)return Ws(t),null}else 2*Ze()-o.renderingStartTime>Yu&&1073741824!==r&&(t.flags|=128,n=!0,qs(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=o.last)?r.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ze(),t.sibling=null,r=so.current,Ai(so,n?1&r|2:1&r),t):(Ws(t),null);case 22:case 23:return hl(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Ru)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ks(e,t){switch(ta(t),t.tag){case 1:return Oi(t.type)&&Ri(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return io(),Mi(Ti),Mi(Ni),co(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Mi(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));da()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mi(so),null;case 4:return io(),null;case 10:return ka(t.type._context),null;case 22:case 23:return hl(),null;default:return null}}Os=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Rs=function(){},Is=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ro($a.current);var a,o=null;switch(r){case"input":i=K(e,i),n=K(e,n),o=[];break;case"select":i=D({},i,{value:void 0}),n=D({},n,{value:void 0}),o=[];break;case"textarea":i=ne(e,i),n=ne(e,n),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof n.onClick&&(e.onclick=$n)}for(c in ye(r,n),r=null,i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var u=i[c];for(a in u)u.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(u=null!=i?i[c]:void 0,n.hasOwnProperty(c)&&l!==u&&(null!=l||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&u[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(c,r)),r=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,u=u?u.__html:void 0,null!=l&&u!==l&&(o=o||[]).push(c,l)):"children"===c?"string"!==typeof l&&"number"!==typeof l||(o=o||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&Bn("scroll",e),o||u===l||(o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},js=function(e,t,r,n){r!==n&&(t.flags|=4)};var Js=!1,Zs=!1,Xs="function"===typeof WeakSet?WeakSet:Set,$s=null;function eu(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){Ml(e,t,n)}else r.current=null}function tu(e,t,r){try{r()}catch(n){Ml(e,t,n)}}var ru=!1;function nu(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&tu(t,r,a)}i=i.next}while(i!==n)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function au(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hi],delete t[di],delete t[mi],delete t[vi],delete t[gi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=$n));else if(4!==n&&null!==(e=e.child))for(lu(e,t,r),e=e.sibling;null!==e;)lu(e,t,r),e=e.sibling}function cu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cu(e,t,r),e=e.sibling;null!==e;)cu(e,t,r),e=e.sibling}var fu=null,hu=!1;function du(e,t,r){for(r=r.child;null!==r;)pu(e,t,r),r=r.sibling}function pu(e,t,r){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Zs||eu(r,t);case 6:var n=fu,i=hu;fu=null,du(e,t,r),hu=i,null!==(fu=n)&&(hu?(e=fu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):fu.removeChild(r.stateNode));break;case 18:null!==fu&&(hu?(e=fu,r=r.stateNode,8===e.nodeType?ui(e.parentNode,r):1===e.nodeType&&ui(e,r),Ht(e)):ui(fu,r.stateNode));break;case 4:n=fu,i=hu,fu=r.stateNode.containerInfo,hu=!0,du(e,t,r),fu=n,hu=i;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&tu(r,t,o),i=i.next}while(i!==n)}du(e,t,r);break;case 1:if(!Zs&&(eu(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ml(r,t,s)}du(e,t,r);break;case 21:du(e,t,r);break;case 22:1&r.mode?(Zs=(n=Zs)||null!==r.memoizedState,du(e,t,r),Zs=n):du(e,t,r);break;default:du(e,t,r)}}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Xs),t.forEach((function(t){var n=Tl.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function vu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,hu=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,hu=!0;break e}u=u.return}if(null===fu)throw Error(a(160));pu(o,s,i),fu=null,hu=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(c){Ml(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gu(t,e),t=t.sibling}function gu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),yu(e),4&n){try{nu(3,e,e.return),iu(3,e)}catch(v){Ml(e,e.return,v)}try{nu(5,e,e.return)}catch(v){Ml(e,e.return,v)}}break;case 1:vu(t,e),yu(e),512&n&&null!==r&&eu(r,r.return);break;case 5:if(vu(t,e),yu(e),512&n&&null!==r&&eu(r,r.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(v){Ml(e,e.return,v)}}if(4&n&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==r?r.memoizedProps:o,u=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===u&&"radio"===o.type&&null!=o.name&&Z(i,o),be(u,s);var c=be(u,o);for(s=0;s<l.length;s+=2){var f=l[s],h=l[s+1];"style"===f?ve(i,h):"dangerouslySetInnerHTML"===f?fe(i,h):"children"===f?he(i,h):b(i,f,h,c)}switch(u){case"input":X(i,o);break;case"textarea":ae(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?re(i,!!o.multiple,p,!1):d!==!!o.multiple&&(null!=o.defaultValue?re(i,!!o.multiple,o.defaultValue,!0):re(i,!!o.multiple,o.multiple?[]:"",!1))}i[di]=o}catch(v){Ml(e,e.return,v)}}break;case 6:if(vu(t,e),yu(e),4&n){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Ml(e,e.return,v)}}break;case 3:if(vu(t,e),yu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(v){Ml(e,e.return,v)}break;case 4:default:vu(t,e),yu(e);break;case 13:vu(t,e),yu(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Hu=Ze())),4&n&&mu(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Zs=(c=Zs)||f,vu(t,e),Zs=c):vu(t,e),yu(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for($s=e,f=e.child;null!==f;){for(h=$s=f;null!==$s;){switch(p=(d=$s).child,d.tag){case 0:case 11:case 14:case 15:nu(4,d,d.return);break;case 1:eu(d,d.return);var m=d.stateNode;if("function"===typeof m.componentWillUnmount){n=d,r=d.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Ml(n,r,v)}}break;case 5:eu(d,d.return);break;case 22:if(null!==d.memoizedState){ku(h);continue}}null!==p?(p.return=d,$s=p):ku(h)}f=f.sibling}e:for(f=null,h=e;;){if(5===h.tag){if(null===f){f=h;try{i=h.stateNode,c?"function"===typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=h.stateNode,s=void 0!==(l=h.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,u.style.display=me("display",s))}catch(v){Ml(e,e.return,v)}}}else if(6===h.tag){if(null===f)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(v){Ml(e,e.return,v)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:vu(t,e),yu(e),4&n&&mu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(su(r)){var n=r;break e}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(he(i,""),n.flags&=-33),cu(e,uu(e),i);break;case 3:case 4:var o=n.stateNode.containerInfo;lu(e,uu(e),o);break;default:throw Error(a(161))}}catch(s){Ml(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,r){$s=e,wu(e,t,r)}function wu(e,t,r){for(var n=0!==(1&e.mode);null!==$s;){var i=$s,a=i.child;if(22===i.tag&&n){var o=null!==i.memoizedState||Js;if(!o){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Zs;s=Js;var l=Zs;if(Js=o,(Zs=u)&&!l)for($s=i;null!==$s;)u=(o=$s).child,22===o.tag&&null!==o.memoizedState?_u(i):null!==u?(u.return=o,$s=u):_u(i);for(;null!==a;)$s=a,wu(a,t,r),a=a.sibling;$s=i,Js=s,Zs=l}xu(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,$s=a):xu(e)}}function xu(e){for(;null!==$s;){var t=$s;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||iu(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Zs)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:va(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Fa(t,o,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Fa(t,s,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var h=f.dehydrated;null!==h&&Ht(h)}}}break;default:throw Error(a(163))}Zs||512&t.flags&&au(t)}catch(d){Ml(t,t.return,d)}}if(t===e){$s=null;break}if(null!==(r=t.sibling)){r.return=t.return,$s=r;break}$s=t.return}}function ku(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var r=t.sibling;if(null!==r){r.return=t.return,$s=r;break}$s=t.return}}function _u(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{iu(4,t)}catch(u){Ml(t,r,u)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(u){Ml(t,i,u)}}var a=t.return;try{au(t)}catch(u){Ml(t,a,u)}break;case 5:var o=t.return;try{au(t)}catch(u){Ml(t,o,u)}}}catch(u){Ml(t,t.return,u)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var Eu,Mu=Math.ceil,Au=w.ReactCurrentDispatcher,Su=w.ReactCurrentOwner,Nu=w.ReactCurrentBatchConfig,Tu=0,Pu=null,Cu=null,Ou=0,Ru=0,Iu=Ei(0),ju=0,Lu=null,Du=0,Fu=0,Bu=0,Uu=null,zu=null,Hu=0,Yu=1/0,Vu=null,Gu=!1,qu=null,Wu=null,Qu=!1,Ku=null,Ju=0,Zu=0,Xu=null,$u=-1,el=0;function tl(){return 0!==(6&Tu)?Ze():-1!==$u?$u:$u=Ze()}function rl(e){return 0===(1&e.mode)?1:0!==(2&Tu)&&0!==Ou?Ou&-Ou:null!==ma.transition?(0===el&&(el=mt()),el):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nl(e,t,r,n){if(50<Zu)throw Zu=0,Xu=null,Error(a(185));gt(e,r,n),0!==(2&Tu)&&e===Pu||(e===Pu&&(0===(2&Tu)&&(Fu|=r),4===ju&&ul(e,Ou)),il(e,n),1===r&&0===Tu&&0===(1&t.mode)&&(Yu=Ze()+500,Bi&&Hi()))}function il(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,u=i[o];-1===u?0!==(s&r)&&0===(s&n)||(i[o]=dt(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=ht(e,e===Pu?Ou:0);if(0===n)null!==r&&Qe(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Qe(r),1===t)0===e.tag?function(e){Bi=!0,zi(e)}(ll.bind(null,e)):zi(ll.bind(null,e)),oi((function(){0===(6&Tu)&&Hi()})),r=null;else{switch(wt(n)){case 1:r=$e;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Pl(r,al.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function al(e,t){if($u=-1,el=0,0!==(6&Tu))throw Error(a(327));var r=e.callbackNode;if(_l()&&e.callbackNode!==r)return null;var n=ht(e,e===Pu?Ou:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=gl(e,n);else{t=n;var i=Tu;Tu|=2;var o=ml();for(Pu===e&&Ou===t||(Vu=null,Yu=Ze()+500,dl(e,t));;)try{bl();break}catch(u){pl(e,u)}xa(),Au.current=o,Tu=i,null!==Cu?t=0:(Pu=null,Ou=0,t=ju)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(n=i,t=ol(e,i))),1===t)throw r=Lu,dl(e,0),ul(e,n),il(e,Ze()),r;if(6===t)ul(e,n);else{if(i=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!sn(a(),i))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=gl(e,n))&&(0!==(o=pt(e))&&(n=o,t=ol(e,o))),1===t))throw r=Lu,dl(e,0),ul(e,n),il(e,Ze()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(a(345));case 2:case 5:kl(e,zu,Vu);break;case 3:if(ul(e,n),(130023424&n)===n&&10<(t=Hu+500-Ze())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&n)!==n){tl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(kl.bind(null,e,zu,Vu),t);break}kl(e,zu,Vu);break;case 4:if(ul(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-ot(n);o=1<<s,(s=t[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Ze()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Mu(n/1960))-n)){e.timeoutHandle=ni(kl.bind(null,e,zu,Vu),n);break}kl(e,zu,Vu);break;default:throw Error(a(329))}}}return il(e,Ze()),e.callbackNode===r?al.bind(null,e):null}function ol(e,t){var r=Uu;return e.current.memoizedState.isDehydrated&&(dl(e,t).flags|=256),2!==(e=gl(e,t))&&(t=zu,zu=r,null!==t&&sl(t)),e}function sl(e){null===zu?zu=e:zu.push.apply(zu,e)}function ul(e,t){for(t&=~Bu,t&=~Fu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ot(t),n=1<<r;e[r]=-1,t&=~n}}function ll(e){if(0!==(6&Tu))throw Error(a(327));_l();var t=ht(e,0);if(0===(1&t))return il(e,Ze()),null;var r=gl(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=ol(e,n))}if(1===r)throw r=Lu,dl(e,0),ul(e,t),il(e,Ze()),r;if(6===r)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kl(e,zu,Vu),il(e,Ze()),null}function cl(e,t){var r=Tu;Tu|=1;try{return e(t)}finally{0===(Tu=r)&&(Yu=Ze()+500,Bi&&Hi())}}function fl(e){null!==Ku&&0===Ku.tag&&0===(6&Tu)&&_l();var t=Tu;Tu|=1;var r=Nu.transition,n=bt;try{if(Nu.transition=null,bt=1,e)return e()}finally{bt=n,Nu.transition=r,0===(6&(Tu=t))&&Hi()}}function hl(){Ru=Iu.current,Mi(Iu)}function dl(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Cu)for(r=Cu.return;null!==r;){var n=r;switch(ta(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Ri();break;case 3:io(),Mi(Ti),Mi(Ni),co();break;case 5:oo(n);break;case 4:io();break;case 13:case 19:Mi(so);break;case 10:ka(n.type._context);break;case 22:case 23:hl()}r=r.return}if(Pu=e,Cu=e=Il(e.current,null),Ou=Ru=t,ju=0,Lu=null,Bu=Fu=Du=0,zu=Uu=null,null!==Aa){for(t=0;t<Aa.length;t++)if(null!==(n=(r=Aa[t]).interleaved)){r.interleaved=null;var i=n.next,a=r.pending;if(null!==a){var o=a.next;a.next=i,n.next=o}r.pending=n}Aa=null}return e}function pl(e,t){for(;;){var r=Cu;try{if(xa(),fo.current=os,yo){for(var n=mo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}yo=!1}if(po=0,go=vo=mo=null,bo=!1,wo=0,Su.current=null,null===r||null===r.return){ju=1,Lu=t,Cu=null;break}e:{var o=e,s=r.return,u=r,l=t;if(t=Ou,u.flags|=32768,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l,f=u,h=f.tag;if(0===(1&f.mode)&&(0===h||11===h||15===h)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,ys(p,s,u,0,t),1&p.mode&&vs(o,c,t),l=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}if(0===(1&t)){vs(o,c,t),vl();break e}l=Error(a(426))}else if(ia&&1&u.mode){var g=gs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ys(g,s,u,0,t),pa(cs(l,u));break e}}o=l=cs(l,u),4!==ju&&(ju=2),null===Uu?Uu=[o]:Uu.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,La(o,ps(0,l,t));break e;case 1:u=l;var y=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wu||!Wu.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,La(o,ms(o,u,t));break e}}o=o.return}while(null!==o)}xl(r)}catch(w){t=w,Cu===r&&null!==r&&(Cu=r=r.return);continue}break}}function ml(){var e=Au.current;return Au.current=os,null===e?os:e}function vl(){0!==ju&&3!==ju&&2!==ju||(ju=4),null===Pu||0===(268435455&Du)&&0===(268435455&Fu)||ul(Pu,Ou)}function gl(e,t){var r=Tu;Tu|=2;var n=ml();for(Pu===e&&Ou===t||(Vu=null,dl(e,t));;)try{yl();break}catch(i){pl(e,i)}if(xa(),Tu=r,Au.current=n,null!==Cu)throw Error(a(261));return Pu=null,Ou=0,ju}function yl(){for(;null!==Cu;)wl(Cu)}function bl(){for(;null!==Cu&&!Ke();)wl(Cu)}function wl(e){var t=Eu(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?xl(e):Cu=t,Su.current=null}function xl(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Qs(r,t,Ru)))return void(Cu=r)}else{if(null!==(r=Ks(r,t)))return r.flags&=32767,void(Cu=r);if(null===e)return ju=6,void(Cu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Cu=t);Cu=t=e}while(null!==t);0===ju&&(ju=5)}function kl(e,t,r){var n=bt,i=Nu.transition;try{Nu.transition=null,bt=1,function(e,t,r,n){do{_l()}while(null!==Ku);if(0!==(6&Tu))throw Error(a(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ot(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}(e,o),e===Pu&&(Cu=Pu=null,Ou=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Qu||(Qu=!0,Pl(tt,(function(){return _l(),null}))),o=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||o){o=Nu.transition,Nu.transition=null;var s=bt;bt=1;var u=Tu;Tu|=4,Su.current=null,function(e,t){if(ei=Vt,dn(e=hn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(x){r=null;break e}var s=0,u=-1,l=-1,c=0,f=0,h=e,d=null;t:for(;;){for(var p;h!==r||0!==i&&3!==h.nodeType||(u=s+i),h!==o||0!==n&&3!==h.nodeType||(l=s+n),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)d=h,h=p;for(;;){if(h===e)break t;if(d===r&&++c===i&&(u=s),d===o&&++f===n&&(l=s),null!==(p=h.nextSibling))break;d=(h=d).parentNode}h=p}r=-1===u||-1===l?null:{start:u,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},Vt=!1,$s=t;null!==$s;)if(e=(t=$s).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:va(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(x){Ml(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}m=ru,ru=!1}(e,r),gu(r,e),pn(ti),Vt=!!ei,ti=ei=null,e.current=r,bu(r,e,i),Je(),Tu=u,bt=s,Nu.transition=o}else e.current=r;if(Qu&&(Qu=!1,Ku=e,Ju=i),o=e.pendingLanes,0===o&&(Wu=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),il(e,Ze()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Gu)throw Gu=!1,e=qu,qu=null,e;0!==(1&Ju)&&0!==e.tag&&_l(),o=e.pendingLanes,0!==(1&o)?e===Xu?Zu++:(Zu=0,Xu=e):Zu=0,Hi()}(e,t,r,n)}finally{Nu.transition=i,bt=n}return null}function _l(){if(null!==Ku){var e=wt(Ju),t=Nu.transition,r=bt;try{if(Nu.transition=null,bt=16>e?16:e,null===Ku)var n=!1;else{if(e=Ku,Ku=null,Ju=0,0!==(6&Tu))throw Error(a(331));var i=Tu;for(Tu|=4,$s=e.current;null!==$s;){var o=$s,s=o.child;if(0!==(16&$s.flags)){var u=o.deletions;if(null!==u){for(var l=0;l<u.length;l++){var c=u[l];for($s=c;null!==$s;){var f=$s;switch(f.tag){case 0:case 11:case 15:nu(8,f,o)}var h=f.child;if(null!==h)h.return=f,$s=h;else for(;null!==$s;){var d=(f=$s).sibling,p=f.return;if(ou(f),f===c){$s=null;break}if(null!==d){d.return=p,$s=d;break}$s=p}}}var m=o.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}$s=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,$s=s;else e:for(;null!==$s;){if(0!==(2048&(o=$s).flags))switch(o.tag){case 0:case 11:case 15:nu(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,$s=y;break e}$s=o.return}}var b=e.current;for($s=b;null!==$s;){var w=(s=$s).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,$s=w;else e:for(s=b;null!==$s;){if(0!==(2048&(u=$s).flags))try{switch(u.tag){case 0:case 11:case 15:iu(9,u)}}catch(k){Ml(u,u.return,k)}if(u===s){$s=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,$s=x;break e}$s=u.return}}if(Tu=i,Hi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(k){}n=!0}return n}finally{bt=r,Nu.transition=t}}return!1}function El(e,t,r){e=Ia(e,t=ps(0,t=cs(r,t),1),1),t=tl(),null!==e&&(gt(e,1,t),il(e,t))}function Ml(e,t,r){if(3===e.tag)El(e,e,r);else for(;null!==t;){if(3===t.tag){El(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Wu||!Wu.has(n))){t=Ia(t,e=ms(t,e=cs(r,e),1),1),e=tl(),null!==t&&(gt(t,1,e),il(t,e));break}}t=t.return}}function Al(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tl(),e.pingedLanes|=e.suspendedLanes&r,Pu===e&&(Ou&r)===r&&(4===ju||3===ju&&(130023424&Ou)===Ou&&500>Ze()-Hu?dl(e,0):Bu|=r),il(e,t)}function Sl(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var r=tl();null!==(e=Ta(e,t))&&(gt(e,t,r),il(e,r))}function Nl(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Sl(e,r)}function Tl(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(t),Sl(e,r)}function Pl(e,t){return We(e,t)}function Cl(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ol(e,t,r,n){return new Cl(e,t,r,n)}function Rl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Il(e,t){var r=e.alternate;return null===r?((r=Ol(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function jl(e,t,r,n,i,o){var s=2;if(n=e,"function"===typeof e)Rl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return Ll(r.children,i,o,t);case E:s=8,i|=8;break;case M:return(e=Ol(12,r,t,2|i)).elementType=M,e.lanes=o,e;case T:return(e=Ol(13,r,t,i)).elementType=T,e.lanes=o,e;case P:return(e=Ol(19,r,t,i)).elementType=P,e.lanes=o,e;case R:return Dl(r,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case S:s=9;break e;case N:s=11;break e;case C:s=14;break e;case O:s=16,n=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ol(s,r,t,i)).elementType=e,t.type=n,t.lanes=o,t}function Ll(e,t,r,n){return(e=Ol(7,e,n,t)).lanes=r,e}function Dl(e,t,r,n){return(e=Ol(22,e,n,t)).elementType=R,e.lanes=r,e.stateNode={isHidden:!1},e}function Fl(e,t,r){return(e=Ol(6,e,null,t)).lanes=r,e}function Bl(e,t,r){return(t=Ol(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ul(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zl(e,t,r,n,i,a,o,s,u){return e=new Ul(e,t,r,s,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ol(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ca(a),e}function Hl(e){if(!e)return Si;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var r=e.type;if(Oi(r))return ji(e,r,t)}return t}function Yl(e,t,r,n,i,a,o,s,u){return(e=zl(r,n,!0,e,0,a,0,s,u)).context=Hl(null),r=e.current,(a=Ra(n=tl(),i=rl(r))).callback=void 0!==t&&null!==t?t:null,Ia(r,a,i),e.current.lanes=i,gt(e,i,n),il(e,n),e}function Vl(e,t,r,n){var i=t.current,a=tl(),o=rl(i);return r=Hl(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ra(a,o)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ia(i,t,o))&&(nl(e,i,o,a),ja(e,i,o)),o}function Gl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ql(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Wl(e,t){ql(e,t),(e=e.alternate)&&ql(e,t)}Eu=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ti.current)ws=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:Ps(t),da();break;case 5:ao(t);break;case 1:Oi(t.type)&&Li(t);break;case 4:no(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ai(ga,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ai(so,1&so.current),t.flags|=128,null):0!==(r&t.child.childLanes)?Fs(e,t,r):(Ai(so,1&so.current),null!==(e=Gs(e,t,r))?e.sibling:null);Ai(so,1&so.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return Ys(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ai(so,so.current),n)break;return null;case 22:case 23:return t.lanes=0,Ms(e,t,r)}return Gs(e,t,r)}(e,t,r);ws=0!==(131072&e.flags)}else ws=!1,ia&&0!==(1048576&t.flags)&&$i(t,qi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Vs(e,t),e=t.pendingProps;var i=Ci(t,Ni.current);Ea(t,r),i=Eo(null,t,n,e,i,r);var o=Mo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oi(n)?(o=!0,Li(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ca(t),i.updater=za,t.stateNode=i,i._reactInternals=t,Ga(t,n,e,r),t=Ts(null,t,n,!0,o,r)):(t.tag=0,ia&&o&&ea(t),xs(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"===typeof e)return Rl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===N)return 11;if(e===C)return 14}return 2}(n),e=va(n,e),i){case 0:t=Ss(null,t,n,e,r);break e;case 1:t=Ns(null,t,n,e,r);break e;case 11:t=ks(null,t,n,e,r);break e;case 14:t=_s(null,t,n,va(n.type,e),r);break e}throw Error(a(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ss(e,t,n,i=t.elementType===n?i:va(n,i),r);case 1:return n=t.type,i=t.pendingProps,Ns(e,t,n,i=t.elementType===n?i:va(n,i),r);case 3:e:{if(Ps(t),null===e)throw Error(a(387));n=t.pendingProps,i=(o=t.memoizedState).element,Oa(e,t),Da(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated){if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Cs(e,t,n,r,i=cs(Error(a(423)),t));break e}if(n!==i){t=Cs(e,t,n,r,i=cs(Error(a(424)),t));break e}for(na=li(t.stateNode.containerInfo.firstChild),ra=t,ia=!0,aa=null,r=Za(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(da(),n===i){t=Gs(e,t,r);break e}xs(e,t,n,r)}t=t.child}return t;case 5:return ao(t),null===e&&la(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==o&&ri(n,o)&&(t.flags|=32),As(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&la(t),null;case 13:return Fs(e,t,r);case 4:return no(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ja(t,null,n,r):xs(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,ks(e,t,n,i=t.elementType===n?i:va(n,i),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ai(ga,n._currentValue),n._currentValue=s,null!==o)if(sn(o.value,s)){if(o.children===i.children&&!Ti.current){t=Gs(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){s=o.child;for(var l=u.firstContext;null!==l;){if(l.context===n){if(1===o.tag){(l=Ra(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}o.lanes|=r,null!==(l=o.alternate)&&(l.lanes|=r),_a(o.return,r,t),u.lanes|=r;break}l=l.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=r,null!==(u=s.alternate)&&(u.lanes|=r),_a(s,r,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}xs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ea(t,r),n=n(i=Ma(i)),t.flags|=1,xs(e,t,n,r),t.child;case 14:return i=va(n=t.type,t.pendingProps),_s(e,t,n,i=va(n.type,i),r);case 15:return Es(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:va(n,i),Vs(e,t),t.tag=1,Oi(n)?(e=!0,Li(t)):e=!1,Ea(t,r),Ya(t,n,i),Ga(t,n,i,r),Ts(null,t,n,!0,e,r);case 19:return Ys(e,t,r);case 22:return Ms(e,t,r)}throw Error(a(156,t.tag))};var Ql="function"===typeof reportError?reportError:function(e){console.error(e)};function Kl(e){this._internalRoot=e}function Jl(e){this._internalRoot=e}function Zl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $l(){}function ec(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if("function"===typeof i){var s=i;i=function(){var e=Gl(o);s.call(e)}}Vl(t,o,e,i)}else o=function(e,t,r,n,i){if(i){if("function"===typeof n){var a=n;n=function(){var e=Gl(o);a.call(e)}}var o=Yl(t,n,e,0,null,!1,0,"",$l);return e._reactRootContainer=o,e[pi]=o.current,Hn(8===e.nodeType?e.parentNode:e),fl(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof n){var s=n;n=function(){var e=Gl(u);s.call(e)}}var u=zl(e,0,!1,null,0,!1,0,"",$l);return e._reactRootContainer=u,e[pi]=u.current,Hn(8===e.nodeType?e.parentNode:e),fl((function(){Vl(t,u,r,n)})),u}(r,t,e,i,n);return Gl(o)}Jl.prototype.render=Kl.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Vl(e,t,null,null)},Jl.prototype.unmount=Kl.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fl((function(){Vl(null,e,null,null)})),t[pi]=null}},Jl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Rt.length&&0!==t&&t<Rt[r].priority;r++);Rt.splice(r,0,e),0===r&&Dt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(yt(t,1|r),il(t,Ze()),0===(6&Tu)&&(Yu=Ze()+500,Hi()))}break;case 13:fl((function(){var t=Ta(e,1);if(null!==t){var r=tl();nl(t,e,1,r)}})),Wl(e,1)}},kt=function(e){if(13===e.tag){var t=Ta(e,134217728);if(null!==t)nl(t,e,134217728,tl());Wl(e,134217728)}},_t=function(e){if(13===e.tag){var t=rl(e),r=Ta(e,t);if(null!==r)nl(r,e,t,tl());Wl(e,t)}},Et=function(){return bt},Mt=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},ke=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=xi(n);if(!i)throw Error(a(90));W(n),X(n,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ne=cl,Te=fl;var tc={usingClientEntryPoint:!1,Events:[bi,wi,xi,Ae,Se,cl]},rc={findFiberByHostInstance:yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(nc),at=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zl(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Zl(e))throw Error(a(299));var r=!1,n="",i=Ql;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zl(e,1,!1,null,0,r,0,n,i),e[pi]=t.current,Hn(8===e.nodeType?e.parentNode:e),new Kl(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return fl(e)},t.hydrate=function(e,t,r){if(!Xl(t))throw Error(a(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Zl(e))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,i=!1,o="",s=Ql;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Yl(t,null,e,1,null!=r?r:null,i,0,o,s),e[pi]=t.current,Hn(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Jl(t)},t.render=function(e,t,r){if(!Xl(t))throw Error(a(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Xl(e))throw Error(a(40));return!!e._reactRootContainer&&(fl((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cl,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Xl(r))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},250:function(e,t,r){"use strict";var n=r(164);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},164:function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(463)},309:function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=s(n),a=s(r(2)),o=s(r(3));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t=e.fg,r=e.bg,s=e.count,u=e.palette,l=e.string,c=e.size,f=e.getColor,h=e.padding,d=e.className,p=(0,n.useRef)(null);(0,n.useEffect)((function(){m(e)}));var m=function(){var e=(0,a.default)(l),n=Math.floor(c/s),i=e.slice(0,6);if(u&&u.length){var d=Math.floor((0,o.default)(parseInt(e.slice(-3),16),0,4095,0,u.length));t=u[d]}f&&f(t||i);var m=h;p.current.width=n*s+m,p.current.height=n*s+m;var v=e.split("").map((function(e){return(e=parseInt(e,16))<8?0:1})),g=[];g[0]=g[4]=v.slice(0,5),g[1]=g[3]=v.slice(5,10),g[2]=v.slice(10,15);var y=p.current.getContext("2d");y.imageSmoothingEnabled=!1,y.clearRect(0,0,p.current.width,p.current.height),g.forEach((function(e,a){e.forEach((function(e,o){e?(y.fillStyle=t||"#"+i,y.fillRect(n*a+m,n*o+m,n-m,n-m)):(y.fillStyle=r,y.fillRect(n*a+m,n*o+m,n-m,n-m))}))}))};return i.default.createElement("canvas",{ref:p,className:d,style:{width:c,height:c}})};u.defaultProps={className:"identicon",bg:"transparent",count:5,palette:null,fg:null,padding:0,size:400,getColor:null,string:""},t.default=u},function(e,t){e.exports=r(791)},function(e,t,r){"use strict";var n;"function"==typeof Symbol&&Symbol.iterator,function(i){function a(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,i,o){return a(function(e,t){return e<<t|e>>>32-t}(a(a(t,e),a(n,o)),i),r)}function s(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function l(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}function f(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var r,n,i,o,f,h=1732584193,d=-271733879,p=-1732584194,m=271733878;for(r=0;r<e.length;r+=16)n=h,i=d,o=p,f=m,d=c(d=c(d=c(d=c(d=l(d=l(d=l(d=l(d=u(d=u(d=u(d=u(d=s(d=s(d=s(d=s(d,p=s(p,m=s(m,h=s(h,d,p,m,e[r],7,-680876936),d,p,e[r+1],12,-389564586),h,d,e[r+2],17,606105819),m,h,e[r+3],22,-1044525330),p=s(p,m=s(m,h=s(h,d,p,m,e[r+4],7,-176418897),d,p,e[r+5],12,1200080426),h,d,e[r+6],17,-1473231341),m,h,e[r+7],22,-45705983),p=s(p,m=s(m,h=s(h,d,p,m,e[r+8],7,1770035416),d,p,e[r+9],12,-1958414417),h,d,e[r+10],17,-42063),m,h,e[r+11],22,-1990404162),p=s(p,m=s(m,h=s(h,d,p,m,e[r+12],7,1804603682),d,p,e[r+13],12,-40341101),h,d,e[r+14],17,-1502002290),m,h,e[r+15],22,1236535329),p=u(p,m=u(m,h=u(h,d,p,m,e[r+1],5,-165796510),d,p,e[r+6],9,-1069501632),h,d,e[r+11],14,643717713),m,h,e[r],20,-373897302),p=u(p,m=u(m,h=u(h,d,p,m,e[r+5],5,-701558691),d,p,e[r+10],9,38016083),h,d,e[r+15],14,-660478335),m,h,e[r+4],20,-405537848),p=u(p,m=u(m,h=u(h,d,p,m,e[r+9],5,568446438),d,p,e[r+14],9,-1019803690),h,d,e[r+3],14,-187363961),m,h,e[r+8],20,1163531501),p=u(p,m=u(m,h=u(h,d,p,m,e[r+13],5,-1444681467),d,p,e[r+2],9,-51403784),h,d,e[r+7],14,1735328473),m,h,e[r+12],20,-1926607734),p=l(p,m=l(m,h=l(h,d,p,m,e[r+5],4,-378558),d,p,e[r+8],11,-2022574463),h,d,e[r+11],16,1839030562),m,h,e[r+14],23,-35309556),p=l(p,m=l(m,h=l(h,d,p,m,e[r+1],4,-1530992060),d,p,e[r+4],11,1272893353),h,d,e[r+7],16,-155497632),m,h,e[r+10],23,-1094730640),p=l(p,m=l(m,h=l(h,d,p,m,e[r+13],4,681279174),d,p,e[r],11,-358537222),h,d,e[r+3],16,-722521979),m,h,e[r+6],23,76029189),p=l(p,m=l(m,h=l(h,d,p,m,e[r+9],4,-640364487),d,p,e[r+12],11,-421815835),h,d,e[r+15],16,530742520),m,h,e[r+2],23,-995338651),p=c(p,m=c(m,h=c(h,d,p,m,e[r],6,-198630844),d,p,e[r+7],10,1126891415),h,d,e[r+14],15,-1416354905),m,h,e[r+5],21,-57434055),p=c(p,m=c(m,h=c(h,d,p,m,e[r+12],6,1700485571),d,p,e[r+3],10,-1894986606),h,d,e[r+10],15,-1051523),m,h,e[r+1],21,-2054922799),p=c(p,m=c(m,h=c(h,d,p,m,e[r+8],6,1873313359),d,p,e[r+15],10,-30611744),h,d,e[r+6],15,-1560198380),m,h,e[r+13],21,1309151649),p=c(p,m=c(m,h=c(h,d,p,m,e[r+4],6,-145523070),d,p,e[r+11],10,-1120210379),h,d,e[r+2],15,718787259),m,h,e[r+9],21,-343485551),h=a(h,n),d=a(d,i),p=a(p,o),m=a(m,f);return[h,d,p,m]}function h(e){var t,r="",n=32*e.length;for(t=0;t<n;t+=8)r+=String.fromCharCode(e[t>>5]>>>t%32&255);return r}function d(e){var t,r=[];for(r[(e.length>>2)-1]=void 0,t=0;t<r.length;t+=1)r[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)r[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return r}function p(e){var t,r,n="";for(r=0;r<e.length;r+=1)t=e.charCodeAt(r),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}function m(e){return unescape(encodeURIComponent(e))}function v(e){return function(e){return h(f(d(e),8*e.length))}(m(e))}function g(e,t){return function(e,t){var r,n,i=d(e),a=[],o=[];for(a[15]=o[15]=void 0,i.length>16&&(i=f(i,8*e.length)),r=0;r<16;r+=1)a[r]=909522486^i[r],o[r]=1549556828^i[r];return n=f(a.concat(d(t)),512+8*t.length),h(f(o.concat(n),640))}(m(e),m(t))}function y(e,t,r){return t?r?g(t,e):function(e,t){return p(g(e,t))}(t,e):r?v(e):function(e){return p(v(e))}(e)}void 0===(n=function(){return y}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n,i){return(e-t)*(i-n)/(r-t)+n}}])},372:function(e,t){"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case a:case s:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case v:case m:case u:return e;default:return t}}case i:return t}}}function k(e){return x(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=n,t.ForwardRef=h,t.Fragment=a,t.Lazy=v,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return k(e)||x(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===o},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===o||e===d||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=x},441:function(e,t,r){"use strict";e.exports=r(372)},431:function(e,t,r){var n,i;e.exports=(n=r(426),i=r(791),function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t,r){e.exports=r(3)()},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(4);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){var n,i,a,o,s;o=this,s=function(e){var t=!1,r=!1,n=!1,i=!1,a="escape years months weeks days hours minutes seconds milliseconds general".split(" "),o=[{type:"seconds",targets:[{type:"minutes",value:60},{type:"hours",value:3600},{type:"days",value:86400},{type:"weeks",value:604800},{type:"months",value:2678400},{type:"years",value:31536e3}]},{type:"minutes",targets:[{type:"hours",value:60},{type:"days",value:1440},{type:"weeks",value:10080},{type:"months",value:44640},{type:"years",value:525600}]},{type:"hours",targets:[{type:"days",value:24},{type:"weeks",value:168},{type:"months",value:744},{type:"years",value:8760}]},{type:"days",targets:[{type:"weeks",value:7},{type:"months",value:31},{type:"years",value:365}]},{type:"months",targets:[{type:"years",value:12}]}];function s(e,t){return!(t.length>e.length)&&-1!==e.indexOf(t)}function u(e){for(var t="";e;)t+="0",e-=1;return t}function l(e,t){var r=e+"+"+y(A(t).sort(),(function(e){return e+":"+t[e]})).join(",");return l.cache[r]||(l.cache[r]=Intl.NumberFormat(e,t)),l.cache[r]}function c(e,t,a){var o,s,f,h=t.useToLocaleString,d=t.useGrouping,p=d&&t.grouping.slice(),m=t.maximumSignificantDigits,v=t.minimumIntegerDigits||1,g=t.fractionDigits||0,y=t.groupingSeparator,b=t.decimalSeparator;if(h&&a){var w,x={minimumIntegerDigits:v,useGrouping:d};return g&&(x.maximumFractionDigits=g,x.minimumFractionDigits=g),m&&e>0&&(x.maximumSignificantDigits=m),n?(i||((w=M({},t)).useGrouping=!1,w.decimalSeparator=".",e=parseFloat(c(e,w),10)),l(a,x).format(e)):(r||((w=M({},t)).useGrouping=!1,w.decimalSeparator=".",e=parseFloat(c(e,w),10)),e.toLocaleString(a,x))}var k=(m?e.toPrecision(m+1):e.toFixed(g+1)).split("e");f=k[1]||"",s=(k=k[0].split("."))[1]||"";var _=(o=k[0]||"").length,E=s.length,A=_+E,S=o+s;(m&&A===m+1||!m&&E===g+1)&&((S=function(e){for(var t=e.split("").reverse(),r=0,n=!0;n&&r<t.length;)r?"9"===t[r]?t[r]="0":(t[r]=(parseInt(t[r],10)+1).toString(),n=!1):(parseInt(t[r],10)<5&&(n=!1),t[r]="0"),r+=1;return n&&t.push("1"),t.reverse().join("")}(S)).length===A+1&&(_+=1),E&&(S=S.slice(0,-1)),o=S.slice(0,_),s=S.slice(_)),m&&(s=s.replace(/0*$/,""));var N=parseInt(f,10);N>0?s.length<=N?(o+=s+=u(N-s.length),s=""):(o+=s.slice(0,N),s=s.slice(N)):N<0&&(s=u(Math.abs(N)-o.length)+o+s,o="0"),m||((s=s.slice(0,g)).length<g&&(s+=u(g-s.length)),o.length<v&&(o=u(v-o.length)+o));var T,P="";if(d)for(k=o;k.length;)p.length&&(T=p.shift()),P&&(P=y+P),P=k.slice(-T)+P,k=k.slice(0,-T);else P=o;return s&&(P=P+b+s),P}function f(e,t){return e.label.length>t.label.length?-1:e.label.length<t.label.length?1:0}function h(e,t){var r=[];return g(A(t),(function(n){if("_durationLabels"===n.slice(0,15)){var i=n.slice(15).toLowerCase();g(A(t[n]),(function(a){a.slice(0,1)===e&&r.push({type:i,key:a,label:t[n][a]})}))}})),r}l.cache={};var d={durationLabelsStandard:{S:"millisecond",SS:"milliseconds",s:"second",ss:"seconds",m:"minute",mm:"minutes",h:"hour",hh:"hours",d:"day",dd:"days",w:"week",ww:"weeks",M:"month",MM:"months",y:"year",yy:"years"},durationLabelsShort:{S:"msec",SS:"msecs",s:"sec",ss:"secs",m:"min",mm:"mins",h:"hr",hh:"hrs",d:"dy",dd:"dys",w:"wk",ww:"wks",M:"mo",MM:"mos",y:"yr",yy:"yrs"},durationTimeTemplates:{HMS:"h:mm:ss",HM:"h:mm",MS:"m:ss"},durationLabelTypes:[{type:"standard",string:"__"},{type:"short",string:"_"}],durationPluralKey:function(e,t,r){return 1===t&&null===r?e:e+e}};function p(e){return"[object Array]"===Object.prototype.toString.call(e)}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e,t){var r,n=0,i=e&&e.length||0;for("function"!=typeof t&&(r=t,t=function(e){return e===r});n<i;){if(t(e[n]))return e[n];n+=1}}function g(e,t){var r=0,n=e.length;if(e&&n)for(;r<n;){if(!1===t(e[r],r))return;r+=1}}function y(e,t){var r=0,n=e.length,i=[];if(!e||!n)return i;for(;r<n;)i[r]=t(e[r],r),r+=1;return i}function b(e,t){return y(e,(function(e){return e[t]}))}function w(e){var t=[];return g(e,(function(e){e&&t.push(e)})),t}function x(e){var t=[];return g(e,(function(e){v(t,e)||t.push(e)})),t}function k(e,t){var r=[];return g(e,(function(e){g(t,(function(t){e===t&&r.push(e)}))})),x(r)}function _(e,t){var r=[];return g(e,(function(n,i){if(!t(n))return r=e.slice(i),!1})),r}function E(e,t){return _(e.slice().reverse(),t).reverse()}function M(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function A(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function S(e,t){var r=0,n=e.length;if(!e||!n)return!1;for(;r<n;){if(!0===t(e[r],r))return!0;r+=1}return!1}function N(e){var t=[];return g(e,(function(e){t=t.concat(e)})),t}function T(e){return"3.6"===e(3.55,"en",{useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:1,maximumFractionDigits:1})}function P(e){var t=!0;return!!((t=(t=(t=t&&"1"===e(1,"en",{minimumIntegerDigits:1}))&&"01"===e(1,"en",{minimumIntegerDigits:2}))&&"001"===e(1,"en",{minimumIntegerDigits:3}))&&(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumFractionDigits:0,minimumFractionDigits:0}))&&"100.0"===e(99.99,"en",{maximumFractionDigits:1,minimumFractionDigits:1}))&&"99.99"===e(99.99,"en",{maximumFractionDigits:2,minimumFractionDigits:2}))&&"99.990"===e(99.99,"en",{maximumFractionDigits:3,minimumFractionDigits:3}))&&(t=(t=(t=(t=(t=t&&"100"===e(99.99,"en",{maximumSignificantDigits:1}))&&"100"===e(99.99,"en",{maximumSignificantDigits:2}))&&"100"===e(99.99,"en",{maximumSignificantDigits:3}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:4}))&&"99.99"===e(99.99,"en",{maximumSignificantDigits:5}))&&(t=(t=t&&"1,000"===e(1e3,"en",{useGrouping:!0}))&&"1000"===e(1e3,"en",{useGrouping:!1})))}function C(){var e,t=[].slice.call(arguments),r={};if(g(t,(function(t,n){if(!n){if(!p(t))throw"Expected array as the first argument to durationsFormat.";e=t}"string"!=typeof t&&"function"!=typeof t?"number"!=typeof t?m(t)&&M(r,t):r.precision=t:r.template=t})),!e||!e.length)return[];r.returnMomentTypes=!0;var n=y(e,(function(e){return e.format(r)})),i=k(a,x(b(N(n),"type"))),o=r.largest;return o&&(i=i.slice(0,o)),r.returnMomentTypes=!1,r.outputTypes=i,y(e,(function(e){return e.format(r)}))}function O(){var r=[].slice.call(arguments),i=M({},this.format.defaults),u=this.asMilliseconds(),l=this.asMonths();"function"==typeof this.isValid&&!1===this.isValid()&&(u=0,l=0);var N=u<0,T=e.duration(Math.abs(u),"milliseconds"),P=e.duration(Math.abs(l),"months");g(r,(function(e){"string"!=typeof e&&"function"!=typeof e?"number"!=typeof e?m(e)&&M(i,e):i.precision=e:i.template=e}));var C={years:"y",months:"M",weeks:"w",days:"d",hours:"h",minutes:"m",seconds:"s",milliseconds:"S"},O={escape:/\[(.+?)\]/,years:/\*?[Yy]+/,months:/\*?M+/,weeks:/\*?[Ww]+/,days:/\*?[Dd]+/,hours:/\*?[Hh]+/,minutes:/\*?m+/,seconds:/\*?s+/,milliseconds:/\*?S+/,general:/.+?/};i.types=a;var R=function(e){return v(a,(function(t){return O[t].test(e)}))},I=new RegExp(y(a,(function(e){return O[e].source})).join("|"),"g");i.duration=this;var j="function"==typeof i.template?i.template.apply(i):i.template,L=i.outputTypes,D=i.returnMomentTypes,F=i.largest,B=[];L||(p(i.stopTrim)&&(i.stopTrim=i.stopTrim.join("")),i.stopTrim&&g(i.stopTrim.match(I),(function(e){var t=R(e);"escape"!==t&&"general"!==t&&B.push(t)})));var U=e.localeData();U||(U={}),g(A(d),(function(e){"function"!=typeof d[e]?U["_"+e]||(U["_"+e]=d[e]):U[e]||(U[e]=d[e])})),g(A(U._durationTimeTemplates),(function(e){j=j.replace("_"+e+"_",U._durationTimeTemplates[e])}));var z=i.userLocale||e.locale(),H=i.useLeftUnits,Y=i.usePlural,V=i.precision,G=i.forceLength,q=i.useGrouping,W=i.trunc,Q=i.useSignificantDigits&&V>0,K=Q?i.precision:0,J=K,Z=i.minValue,X=!1,$=i.maxValue,ee=!1,te=i.useToLocaleString,re=i.groupingSeparator,ne=i.decimalSeparator,ie=i.grouping;te=te&&(t||n);var ae=i.trim;p(ae)&&(ae=ae.join(" ")),null===ae&&(F||$||Q)&&(ae="all"),null!==ae&&!0!==ae&&"left"!==ae&&"right"!==ae||(ae="large"),!1===ae&&(ae="");var oe=function(e){return e.test(ae)},se=/small/,ue=/both/,le=/mid/,ce=/^all|[^sm]all/,fe=/final/,he=F>0||S([/large/,ue,ce],oe),de=S([se,ue,ce],oe),pe=S([le,ce],oe),me=S([fe,ce],oe),ve=y(j.match(I),(function(e,t){var r=R(e);return"*"===e.slice(0,1)&&(e=e.slice(1),"escape"!==r&&"general"!==r&&B.push(r)),{index:t,length:e.length,text:"",token:"escape"===r?e.replace(O.escape,"$1"):e,type:"escape"===r||"general"===r?null:r}})),ge={index:0,length:0,token:"",text:"",type:null},ye=[];H&&ve.reverse(),g(ve,(function(e){if(e.type)return(ge.type||ge.text)&&ye.push(ge),void(ge=e);H?ge.text=e.token+ge.text:ge.text+=e.token})),(ge.type||ge.text)&&ye.push(ge),H&&ye.reverse();var be=k(a,x(w(b(ye,"type"))));if(!be.length)return b(ye,"text").join("");be=y(be,(function(e,t){var r,n=t+1===be.length,a=!t;r="years"===e||"months"===e?P.as(e):T.as(e);var o=Math.floor(r),s=r-o,u=v(ye,(function(t){return e===t.type}));return a&&$&&r>$&&(ee=!0),n&&Z&&Math.abs(i.duration.as(e))<Z&&(X=!0),a&&null===G&&u.length>1&&(G=!0),T.subtract(o,e),P.subtract(o,e),{rawValue:r,wholeValue:o,decimalValue:n?s:0,isSmallest:n,isLargest:a,type:e,tokenLength:u.length}}));var we=W?Math.floor:Math.round,xe=function(e,t){var r=Math.pow(10,t);return we(e*r)/r},ke=!1,_e=!1,Ee=function(e,t){var r={useGrouping:q,groupingSeparator:re,decimalSeparator:ne,grouping:ie,useToLocaleString:te};return Q&&(K<=0?(e.rawValue=0,e.wholeValue=0,e.decimalValue=0):(r.maximumSignificantDigits=K,e.significantDigits=K)),ee&&!_e&&(e.isLargest?(e.wholeValue=$,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),X&&!_e&&(e.isSmallest?(e.wholeValue=Z,e.decimalValue=0):(e.wholeValue=0,e.decimalValue=0)),e.isSmallest||e.significantDigits&&e.significantDigits-e.wholeValue.toString().length<=0?V<0?e.value=xe(e.wholeValue,V):0===V?e.value=we(e.wholeValue+e.decimalValue):Q?(e.value=W?xe(e.rawValue,K-e.wholeValue.toString().length):e.rawValue,e.wholeValue&&(K-=e.wholeValue.toString().length)):(r.fractionDigits=V,e.value=W?e.wholeValue+xe(e.decimalValue,V):e.wholeValue+e.decimalValue):Q&&e.wholeValue?(e.value=Math.round(xe(e.wholeValue,e.significantDigits-e.wholeValue.toString().length)),K-=e.wholeValue.toString().length):e.value=e.wholeValue,e.tokenLength>1&&(G||ke)&&(r.minimumIntegerDigits=e.tokenLength,_e&&r.maximumSignificantDigits<e.tokenLength&&delete r.maximumSignificantDigits),!ke&&(e.value>0||""===ae||v(B,e.type)||v(L,e.type))&&(ke=!0),e.formattedValue=c(e.value,r,z),r.useGrouping=!1,r.decimalSeparator=".",e.formattedValueEn=c(e.value,r,"en"),2===e.tokenLength&&"milliseconds"===e.type&&(e.formattedValueMS=c(e.value,{minimumIntegerDigits:3,useGrouping:!1},"en").slice(0,2)),e};if((be=w(be=y(be,Ee))).length>1){var Me=function(e){return v(be,(function(t){return t.type===e}))},Ae=function(e){var t=Me(e.type);t&&g(e.targets,(function(e){var r=Me(e.type);r&&parseInt(t.formattedValueEn,10)===e.value&&(t.rawValue=0,t.wholeValue=0,t.decimalValue=0,r.rawValue+=1,r.wholeValue+=1,r.decimalValue=0,r.formattedValueEn=r.wholeValue.toString(),_e=!0)}))};g(o,Ae)}return _e&&(ke=!1,K=J,be=w(be=y(be,Ee))),!L||ee&&!i.trim?(he&&(be=_(be,(function(e){return!e.isSmallest&&!e.wholeValue&&!v(B,e.type)}))),F&&be.length&&(be=be.slice(0,F)),de&&be.length>1&&(be=E(be,(function(e){return!e.wholeValue&&!v(B,e.type)&&!e.isLargest}))),pe&&(be=w(be=y(be,(function(e,t){return t>0&&t<be.length-1&&!e.wholeValue?null:e})))),!me||1!==be.length||be[0].wholeValue||!W&&be[0].isSmallest&&be[0].rawValue<Z||(be=[])):be=w(be=y(be,(function(e){return v(L,(function(t){return e.type===t}))?e:null}))),D?be:(g(ye,(function(e){var t=C[e.type],r=v(be,(function(t){return t.type===e.type}));if(t&&r){var n=r.formattedValueEn.split(".");n[0]=parseInt(n[0],10),n[1]?n[1]=parseFloat("0."+n[1],10):n[1]=null;var i=U.durationPluralKey(t,n[0],n[1]),a=h(t,U),o=!1,u={};g(U._durationLabelTypes,(function(t){var r=v(a,(function(e){return e.type===t.type&&e.key===i}));r&&(u[r.type]=r.label,s(e.text,t.string)&&(e.text=e.text.replace(t.string,r.label),o=!0))})),Y&&!o&&(a.sort(f),g(a,(function(t){return u[t.type]===t.label?!s(e.text,t.label)&&void 0:s(e.text,t.label)?(e.text=e.text.replace(t.label,u[t.type]),!1):void 0})))}})),(ye=y(ye,(function(e){if(!e.type)return e.text;var t=v(be,(function(t){return t.type===e.type}));if(!t)return"";var r="";return H&&(r+=e.text),(N&&ee||!N&&X)&&(r+="< ",ee=!1,X=!1),(N&&X||!N&&ee)&&(r+="> ",ee=!1,X=!1),N&&(t.value>0||""===ae||v(B,t.type)||v(L,t.type))&&(r+="-",N=!1),"milliseconds"===e.type&&t.formattedValueMS?r+=t.formattedValueMS:r+=t.formattedValue,H||(r+=e.text),r}))).join("").replace(/(,| |:|\.)*$/,"").replace(/^(,| |:|\.)*/,""))}function R(){var e=this.duration,t=function(t){return e._data[t]},r=v(this.types,t),n=function(e,t){for(var r=e.length;r-=1;)if(t(e[r]))return e[r]}(this.types,t);switch(r){case"milliseconds":return"S __";case"seconds":case"minutes":return"*_MS_";case"hours":return"_HMS_";case"days":if(r===n)return"d __";case"weeks":return r===n?"w __":(null===this.trim&&(this.trim="both"),"w __, d __, h __");case"months":if(r===n)return"M __";case"years":return r===n?"y __":(null===this.trim&&(this.trim="both"),"y __, M __, d __");default:return null===this.trim&&(this.trim="both"),"y __, d __, h __, m __, s __"}}function I(e){if(!e)throw"Moment Duration Format init cannot find moment instance.";e.duration.format=C,e.duration.fn.format=O,e.duration.fn.format.defaults={trim:null,stopTrim:null,largest:null,maxValue:null,minValue:null,precision:0,trunc:!1,forceLength:null,userLocale:null,usePlural:!0,useLeftUnits:!1,useGrouping:!0,useSignificantDigits:!1,template:R,useToLocaleString:!0,groupingSeparator:",",decimalSeparator:".",grouping:[3]},e.updateLocale("en",d)}var j=function(e,t,r){return e.toLocaleString(t,r)};t=function(){try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()&&P(j),r=t&&T(j);var L=function(e,t,r){if("undefined"!=typeof window&&window&&window.Intl&&window.Intl.NumberFormat)return window.Intl.NumberFormat(t,r).format(e)};return n=P(L),i=n&&T(L),I(e),I},i=[r(1)],void 0===(a="function"==typeof(n=s)?n.apply(t,i):n)||(e.exports=a),o&&(o.momentDurationFormatSetup=o.moment?s(o.moment):s)},function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return E}));var n=r(2),i=r.n(n),a=r(0),o=r.n(a),s=r(1),u=r.n(s);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return v(this,r)}}function v(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r(5);var w=[o.a.string,o.a.number,o.a.array,o.a.object],x=[o.a.string,o.a.array],k=[o.a.object,o.a.bool],_=[o.a.string,o.a.bool],E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(r,e);var t=m(r);function r(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),b(g(n=t.call(this,e)),"setTimer",(function(){var e=n.props.interval;n.clearTimer(),r.pooledTimer||0===e||(n.timer=setInterval((function(){n.update(n.props)}),e))})),b(g(n),"getTitle",(function(){var e=n.props.titleFormat,t=r.getDatetime(n.props),i=e||r.globalFormat;return t.format(i)})),b(g(n),"clearTimer",(function(){!r.pooledTimer&&n.timer&&(clearInterval(n.timer),n.timer=null),r.pooledTimer&&!n.timer&&r.removePooledElement(g(n))})),r.globalMoment||(r.globalMoment=u.a),n.state={content:""},n.timer=null,n}return d(r,null,[{key:"startPooledTimer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4;r.clearPooledTimer(),r.pooledTimer=setInterval((function(){r.pooledElements.forEach((function(e){0!==e.props.interval&&e.update()}))}),e)}},{key:"clearPooledTimer",value:function(){r.pooledTimer&&(clearInterval(r.pooledTimer),r.pooledTimer=null,r.pooledElements=[])}},{key:"pushPooledElement",value:function(e){e instanceof r?-1===r.pooledElements.indexOf(e)&&r.pooledElements.push(e):console.error("Element not an instance of Moment.")}},{key:"removePooledElement",value:function(e){var t=r.pooledElements.indexOf(e);-1!==t&&r.pooledElements.splice(t,1)}},{key:"getDatetime",value:function(e){var t=e.utc,n=e.unix,i=e.date,a=e.locale,o=e.parse,s=e.tz,u=e.local;i=i||e.children,o=o||r.globalParse,u=u||r.globalLocal,s=s||r.globalTimezone,a=r.globalLocale?r.globalLocale:a||r.globalMoment.locale();var l=null;return l=t?r.globalMoment.utc(i,o,a):n?r.globalMoment(1e3*i,o,a):r.globalMoment(i,o,a),s?l=l.tz(s):u&&(l=l.local()),l}},{key:"getContent",value:function(e){var t=e.fromNow,n=e.fromNowDuring,i=e.from,a=e.add,o=e.subtract,s=e.toNow,l=e.to,c=e.ago,f=e.calendar,h=e.diff,d=e.duration,p=e.durationFromNow,m=e.unit,v=e.decimal,g=e.trim,y=e.format;y=y||r.globalFormat;var b=r.getDatetime(e);a&&b.add(a),o&&b.subtract(o);var w=Boolean(n)&&-b.diff(u()())<n,x="";return x=!y||w||p||d?i?b.from(i,c):t||w?b.fromNow(c):l?b.to(l,c):s?b.toNow(c):f?b.calendar(null,f):h?b.diff(h,m,v):d?b.diff(d):p?u()().diff(b):b.toString():b.format(y),(d||p)&&(x=(x=u.a.duration(x)).format(y,{trim:g})),(r.globalFilter||e.filter)(x)}}]),d(r,[{key:"componentDidMount",value:function(){this.setTimer(),r.pooledTimer&&r.pushPooledElement(this)}},{key:"componentDidUpdate",value:function(e){var t=this.props.interval;e.interval!==t&&this.setTimer()}},{key:"componentWillUnmount",value:function(){this.clearTimer()}},{key:"update",value:function(e){var t=e||this.props,n=t.onChange,i=r.getContent(t);this.setState({content:i},(function(){n(i)}))}},{key:"render",value:function(){var e,t,n,a,o=this.props,s=o.withTitle,u=o.element,l=f(o,["withTitle","element"]),h=this.state.content,d=(e=l,t=r.propTypes,n=Object.keys(t),a=Object.assign({},e),Object.keys(a).filter((function(e){return-1!==n.indexOf(e)})).forEach((function(e){return delete a[e]})),a);return s&&(d.title=this.getTitle()),i.a.createElement(u||r.globalElement,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({dateTime:r.getDatetime(this.props)},d),h)}}],[{key:"getDerivedStateFromProps",value:function(e){return{content:r.getContent(e)}}}]),r}(i.a.Component);b(E,"propTypes",{element:o.a.any,date:o.a.oneOfType(w),parse:o.a.oneOfType(x),format:o.a.string,add:o.a.object,subtract:o.a.object,ago:o.a.bool,fromNow:o.a.bool,fromNowDuring:o.a.number,from:o.a.oneOfType(w),toNow:o.a.bool,to:o.a.oneOfType(w),calendar:o.a.oneOfType(k),unix:o.a.bool,utc:o.a.bool,local:o.a.bool,tz:o.a.string,withTitle:o.a.bool,titleFormat:o.a.string,locale:o.a.string,interval:o.a.number,diff:o.a.oneOfType(w),duration:o.a.oneOfType(w),durationFromNow:o.a.bool,trim:o.a.oneOfType(_),unit:o.a.string,decimal:o.a.bool,filter:o.a.func,onChange:o.a.func}),b(E,"defaultProps",{element:null,fromNow:!1,toNow:!1,calendar:!1,ago:!1,unix:!1,utc:!1,local:!1,unit:null,withTitle:!1,trim:!1,decimal:!1,titleFormat:"",interval:6e4,filter:function(e){return e},onChange:function(){}}),b(E,"globalMoment",null),b(E,"globalLocale",null),b(E,"globalLocal",null),b(E,"globalFormat",null),b(E,"globalParse",null),b(E,"globalFilter",null),b(E,"globalElement","time"),b(E,"globalTimezone",null),b(E,"pooledElements",[]),b(E,"pooledTimer",null)}]))},374:function(e,t,r){"use strict";var n=r(791),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,a={},l=null,c=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,n)&&!u.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=l,t.jsxs=l},117:function(e,t){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=v,this.updater=r||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var w=b.prototype=new y;w.constructor=b,m(w,g.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,_={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,i)&&!E.hasOwnProperty(i)&&(a[i]=t[i]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===a[i]&&(a[i]=u[i]);return{$$typeof:r,type:e,key:o,ref:s,props:a,_owner:_.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var S=/\/+/g;function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case r:case n:u=!0}}if(u)return o=o(u=e),e=""===a?"."+N(u,0):a,x(o)?(i="",null!=e&&(i=e.replace(S,"$&/")+"/"),T(o,t,i,"",(function(e){return e}))):null!=o&&(A(o)&&(o=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(u=0,a=""===a?".":a+":",x(e))for(var l=0;l<e.length;l++){var c=a+N(s=e[l],l);u+=T(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=T(s=s.value,t,i,c=a+N(s,l++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,r){if(null==e)return e;var n=[],i=0;return T(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function C(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},R={transition:null},I={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:R,ReactCurrentOwner:_};t.Children={map:P,forEach:function(e,t,r){P(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in t)k.call(t,l)&&!E.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==u?u[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){u=Array(l);for(var c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}return{$$typeof:r,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=M,t.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=R.transition;R.transition={};try{e()}finally{R.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,r){return O.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,r){return O.current.useReducer(e,t,r)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return O.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},791:function(e,t,r){"use strict";e.exports=r(117)},184:function(e,t,r){"use strict";e.exports=r(374)},813:function(e,t){"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<a(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,u=e[s],l=s+1,c=e[l];if(0>a(u,r))l<i&&0>a(c,u)?(e[n]=c,e[l]=r,n=l):(e[n]=u,e[s]=r,n=s);else{if(!(l<i&&0>a(c,r)))break e;e[n]=c,e[l]=r,n=l}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var l=[],c=[],f=1,h=null,d=3,p=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,r(l,t)}t=n(c)}}function x(e){if(v=!1,w(e),!m)if(null!==n(l))m=!0,R(k);else{var t=n(c);null!==t&&I(x,t.startTime-e)}}function k(e,r){m=!1,v&&(v=!1,y(A),A=-1),p=!0;var a=d;try{for(w(r),h=n(l);null!==h&&(!(h.expirationTime>r)||e&&!T());){var o=h.callback;if("function"===typeof o){h.callback=null,d=h.priorityLevel;var s=o(h.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?h.callback=s:h===n(l)&&i(l),w(r)}else i(l);h=n(l)}if(null!==h)var u=!0;else{var f=n(c);null!==f&&I(x,f.startTime-r),u=!1}return u}finally{h=null,d=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,E=!1,M=null,A=-1,S=5,N=-1;function T(){return!(t.unstable_now()-N<S)}function P(){if(null!==M){var e=t.unstable_now();N=e;var r=!0;try{r=M(!0,e)}finally{r?_():(E=!1,M=null)}}else E=!1}if("function"===typeof b)_=function(){b(P)};else if("undefined"!==typeof MessageChannel){var C=new MessageChannel,O=C.port2;C.port1.onmessage=P,_=function(){O.postMessage(null)}}else _=function(){g(P,0)};function R(e){M=e,E||(E=!0,_())}function I(e,r){A=g((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,R(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(l)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var r=d;d=t;try{return e()}finally{d=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=d;d=e;try{return t()}finally{d=r}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,r(c,e),null===n(l)&&e===n(c)&&(v?(y(A),A=-1):v=!0,I(x,a-o))):(e.sortIndex=s,r(l,e),m||p||(m=!0,R(k))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=d;return function(){var r=d;d=t;try{return e.apply(this,arguments)}finally{d=r}}}},296:function(e,t,r){"use strict";e.exports=r(813)},677:function(){},808:function(){}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.amdO={},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},r.p="/",function(){"use strict";var e,t=r(791),n=r(250);function i(e){if(Array.isArray(e))return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){return i(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}(e,t)||o(e,t)||s()}function l(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function c(e){return function(e){if(Array.isArray(e))return a(e)}(e)||l(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function d(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function m(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(oc){return!1}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){var t=b();return function(){var r,n=y(e);if(t){var i=y(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,r)}}function k(e,t,r){return k=b()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&v(i,r.prototype),i},k.apply(null,arguments)}function _(e){var t="function"===typeof Map?new Map:void 0;return _=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return k(e,arguments,y(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,e)},_(e)}function E(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));var A,S="popstate";function N(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function T(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(oc){}}}function P(e,t){return{usr:e.state,key:e.key,idx:t}}function C(e,t,r,n){return void 0===r&&(r=null),M({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?R(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function O(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,i=void 0===n?"":n,a=e.hash,o=void 0===a?"":a;return i&&"?"!==i&&(r+="?"===i.charAt(0)?i:"?"+i),o&&"#"!==o&&(r+="#"===o.charAt(0)?o:"#"+o),r}function R(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function I(t,r,n,i){void 0===i&&(i={});var a=i,o=a.window,s=void 0===o?document.defaultView:o,u=a.v5Compat,l=void 0!==u&&u,c=s.history,f=e.Pop,h=null,d=p();function p(){return(c.state||{idx:null}).idx}function m(){f=e.Pop;var t=p(),r=null==t?null:t-d;d=t,h&&h({action:f,location:g.location,delta:r})}function v(e){var t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"===typeof e?e:O(e);return N(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==d&&(d=0,c.replaceState(M({},c.state,{idx:d}),""));var g={get action(){return f},get location(){return t(s,c)},listen:function(e){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(S,m),h=e,function(){s.removeEventListener(S,m),h=null}},createHref:function(e){return r(s,e)},createURL:v,encodeLocation:function(e){var t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(t,r){f=e.Push;var i=C(g.location,t,r);n&&n(i,t);var a=P(i,d=p()+1),o=g.createHref(i);try{c.pushState(a,"",o)}catch(u){s.location.assign(o)}l&&h&&h({action:f,location:g.location,delta:1})},replace:function(t,r){f=e.Replace;var i=C(g.location,t,r);n&&n(i,t);var a=P(i,d=p()),o=g.createHref(i);c.replaceState(a,"",o),l&&h&&h({action:f,location:g.location,delta:0})},go:function(e){return c.go(e)}};return g}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(A||(A={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,r){void 0===r&&(r="/");var n=K(("string"===typeof t?R(t):t).pathname||"/",r);if(null==n)return null;var i=L(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var r=e.length===t.length&&e.slice(0,-1).every((function(e,r){return e===t[r]}));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,o=0;null==a&&o<i.length;++o)a=q(i[o],Q(n));return a}function L(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");var i=function(e,i,a){var o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(N(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(n.length));var s=$([n,o.relativePath]),u=r.concat(o);e.children&&e.children.length>0&&(N(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),L(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:G(s,e.index),routesMeta:u})};return e.forEach((function(e,t){var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?")){var n,a=E(D(e.path));try{for(a.s();!(n=a.n()).done;){var o=n.value;i(e,t,o)}}catch(s){a.e(s)}finally{a.f()}}else i(e,t)})),t}function D(e){var t=e.split("/");if(0===t.length)return[];var r,n=i(r=t)||l(r)||o(r)||s(),a=n[0],u=n.slice(1),f=a.endsWith("?"),h=a.replace(/\?$/,"");if(0===u.length)return f?[h,""]:[h];var d=D(u.join("/")),p=[];return p.push.apply(p,c(d.map((function(e){return""===e?h:[h,e].join("/")})))),f&&p.push.apply(p,c(d)),p.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var F=/^:\w+$/,B=3,U=2,z=1,H=10,Y=-2,V=function(e){return"*"===e};function G(e,t){var r=e.split("/"),n=r.length;return r.some(V)&&(n+=Y),t&&(n+=U),r.filter((function(e){return!V(e)})).reduce((function(e,t){return e+(F.test(t)?B:""===t?z:H)}),n)}function q(e,t){for(var r=e.routesMeta,n={},i="/",a=[],o=0;o<r.length;++o){var s=r[o],u=o===r.length-1,l="/"===i?t:t.slice(i.length)||"/",c=W({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},l);if(!c)return null;Object.assign(n,c.params);var f=s.route;a.push({params:n,pathname:$([i,c.pathname]),pathnameBase:ee($([i,c.pathnameBase])),route:f}),"/"!==c.pathnameBase&&(i=$([i,c.pathnameBase]))}return a}function W(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var r=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);T("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return n.push(t),"/([^\\/]+)"}));e.endsWith("*")?(n.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");var a=new RegExp(i,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),n=u(r,2),i=n[0],a=n[1],o=t.match(i);if(!o)return null;var s=o[0],l=s.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:a.reduce((function(e,t,r){if("*"===t){var n=c[r]||"";l=s.slice(0,s.length-n.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(r){return T(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c[r]||"",t),e}),{}),pathname:s,pathnameBase:l,pattern:e}}function Q(e){try{return decodeURI(e)}catch(t){return T(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function K(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function J(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Z(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function X(e,t,r,n){var i;void 0===n&&(n=!1),"string"===typeof e?i=R(e):(N(!(i=M({},e)).pathname||!i.pathname.includes("?"),J("?","pathname","search",i)),N(!i.pathname||!i.pathname.includes("#"),J("#","pathname","hash",i)),N(!i.search||!i.search.includes("#"),J("#","search","hash",i)));var a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(n||null==s)a=r;else{var u=t.length-1;if(s.startsWith("..")){for(var l=s.split("/");".."===l[0];)l.shift(),u-=1;i.pathname=l.join("/")}a=u>=0?t[u]:"/"}var c=function(e,t){void 0===t&&(t="/");var r="string"===typeof e?R(e):e,n=r.pathname,i=r.search,a=void 0===i?"":i,o=r.hash,s=void 0===o?"":o,u=n?n.startsWith("/")?n:function(e,t){var r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(n,t):t;return{pathname:u,search:te(a),hash:re(s)}}(i,a),f=s&&"/"!==s&&s.endsWith("/"),h=(o||"."===s)&&r.endsWith("/");return c.pathname.endsWith("/")||!f&&!h||(c.pathname+="/"),c}var $=function(e){return e.join("/").replace(/\/\/+/g,"/")},ee=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},te=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},re=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},ne=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r)}(_(Error));function ie(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var ae=["post","put","patch","delete"],oe=(new Set(ae),["get"].concat(ae));new Set(oe),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred");function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}var ue=t.createContext(null);var le=t.createContext(null);var ce=t.createContext(null);var fe=t.createContext(null);var he=t.createContext(null);var de=t.createContext({outlet:null,matches:[],isDataRoute:!1});var pe=t.createContext(null);function me(){return null!=t.useContext(he)}function ve(){return me()||N(!1),t.useContext(he).location}function ge(e){t.useContext(fe).static||t.useLayoutEffect(e)}function ye(){return t.useContext(de).isDataRoute?function(){var e=Ne(ke.UseNavigateStable).router,r=Pe(_e.UseNavigateStable),n=t.useRef(!1);ge((function(){n.current=!0}));var i=t.useCallback((function(t,i){void 0===i&&(i={}),n.current&&("number"===typeof t?e.navigate(t):e.navigate(t,se({fromRouteId:r},i)))}),[e,r]);return i}():function(){me()||N(!1);var e=t.useContext(ue),r=t.useContext(fe),n=r.basename,i=r.navigator,a=t.useContext(de).matches,o=ve().pathname,s=JSON.stringify(Z(a).map((function(e){return e.pathnameBase}))),u=t.useRef(!1);return ge((function(){u.current=!0})),t.useCallback((function(t,r){if(void 0===r&&(r={}),u.current)if("number"!==typeof t){var a=X(t,JSON.parse(s),o,"path"===r.relative);null==e&&"/"!==n&&(a.pathname="/"===a.pathname?n:$([n,a.pathname])),(r.replace?i.replace:i.push)(a,r.state,r)}else i.go(t)}),[n,i,s,o,e])}()}function be(e,r){var n=(void 0===r?{}:r).relative,i=t.useContext(de).matches,a=ve().pathname,o=JSON.stringify(Z(i).map((function(e){return e.pathnameBase})));return t.useMemo((function(){return X(e,JSON.parse(o),a,"path"===n)}),[e,o,a,n])}function we(r,n,i){me()||N(!1);var a,o=t.useContext(fe).navigator,s=t.useContext(de).matches,u=s[s.length-1],l=u?u.params:{},c=(u&&u.pathname,u?u.pathnameBase:"/"),f=(u&&u.route,ve());if(n){var h,d="string"===typeof n?R(n):n;"/"===c||(null==(h=d.pathname)?void 0:h.startsWith(c))||N(!1),a=d}else a=f;var p=a.pathname||"/",m=j(r,{pathname:"/"===c?p:p.slice(c.length)||"/"});var v=Se(m&&m.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:$([c,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:$([c,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),s,i);return n&&v?t.createElement(he.Provider,{value:{location:se({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:e.Pop}},v):v}function xe(){var e=function(){var e,r=t.useContext(pe),n=Te(_e.UseRouteError),i=Pe(_e.UseRouteError);if(r)return r;return null==(e=n.errors)?void 0:e[i]}(),r=ie(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i};return t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},r),n?t.createElement("pre",{style:a},n):null,null)}var ke,_e,Ee=t.createElement(xe,null),Me=function(e){g(n,e);var r=x(n);function n(e){var t;return f(this,n),(t=r.call(this,e)).state={location:e.location,revalidation:e.revalidation,error:e.error},t}return m(n,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?t.createElement(de.Provider,{value:this.props.routeContext},t.createElement(pe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}}]),n}(t.Component);function Ae(e){var r=e.routeContext,n=e.match,i=e.children,a=t.useContext(ue);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),t.createElement(de.Provider,{value:r},i)}function Se(e,r,n){var i;if(void 0===r&&(r=[]),void 0===n&&(n=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}var o=e,s=null==(i=n)?void 0:i.errors;if(null!=s){var u=o.findIndex((function(e){return e.route.id&&(null==s?void 0:s[e.route.id])}));u>=0||N(!1),o=o.slice(0,Math.min(o.length,u+1))}return o.reduceRight((function(e,i,a){var u=i.route.id?null==s?void 0:s[i.route.id]:null,l=null;n&&(l=i.route.errorElement||Ee);var c=r.concat(o.slice(0,a+1)),f=function(){var r;return r=u?l:i.route.Component?t.createElement(i.route.Component,null):i.route.element?i.route.element:e,t.createElement(Ae,{match:i,routeContext:{outlet:e,matches:c,isDataRoute:null!=n},children:r})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===a)?t.createElement(Me,{location:n.location,revalidation:n.revalidation,component:l,error:u,children:f(),routeContext:{outlet:null,matches:c,isDataRoute:!0}}):f()}),null)}function Ne(e){var r=t.useContext(ue);return r||N(!1),r}function Te(e){var r=t.useContext(le);return r||N(!1),r}function Pe(e){var r=function(e){var r=t.useContext(de);return r||N(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||N(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(ke||(ke={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(_e||(_e={}));var Ce;function Oe(e){N(!1)}function Re(r){var n=r.basename,i=void 0===n?"/":n,a=r.children,o=void 0===a?null:a,s=r.location,u=r.navigationType,l=void 0===u?e.Pop:u,c=r.navigator,f=r.static,h=void 0!==f&&f;me()&&N(!1);var d=i.replace(/^\/*/,"/"),p=t.useMemo((function(){return{basename:d,navigator:c,static:h}}),[d,c,h]);"string"===typeof s&&(s=R(s));var m=s,v=m.pathname,g=void 0===v?"/":v,y=m.search,b=void 0===y?"":y,w=m.hash,x=void 0===w?"":w,k=m.state,_=void 0===k?null:k,E=m.key,M=void 0===E?"default":E,A=t.useMemo((function(){var e=K(g,d);return null==e?null:{location:{pathname:e,search:b,hash:x,state:_,key:M},navigationType:l}}),[d,g,b,x,_,M,l]);return null==A?null:t.createElement(fe.Provider,{value:p},t.createElement(he.Provider,{children:o,value:A}))}function Ie(e){var t=e.children,r=e.location;return we(Le(t),r)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Ce||(Ce={}));var je=new Promise((function(){}));t.Component;function Le(e,r){void 0===r&&(r=[]);var n=[];return t.Children.forEach(e,(function(e,i){if(t.isValidElement(e)){var a=[].concat(c(r),[i]);if(e.type!==t.Fragment){e.type!==Oe&&N(!1),e.props.index&&e.props.children&&N(!1);var o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Le(e.props.children,a)),n.push(o)}else n.push.apply(n,Le(e.props.children,a))}})),n}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},De.apply(this,arguments)}function Fe(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var Be=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Ue(e){var r,n=e.basename,i=e.children,a=e.window,o=t.useRef();null==o.current&&(o.current=(void 0===(r={window:a,v5Compat:!0})&&(r={}),I((function(e,t){var r=e.location;return C("",{pathname:r.pathname,search:r.search,hash:r.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:O(t)}),null,r)));var s=o.current,l=u(t.useState({action:s.action,location:s.location}),2),c=l[0],f=l[1];return t.useLayoutEffect((function(){return s.listen(f)}),[s]),t.createElement(Re,{basename:n,children:i,location:c.location,navigationType:c.action,navigator:s})}var ze="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,He=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ye=t.forwardRef((function(e,r){var n,i=e.onClick,a=e.relative,o=e.reloadDocument,s=e.replace,u=e.state,l=e.target,c=e.to,f=e.preventScrollReset,h=Fe(e,Be),d=t.useContext(fe).basename,p=!1;if("string"===typeof c&&He.test(c)&&(n=c,ze))try{var m=new URL(window.location.href),v=c.startsWith("//")?new URL(m.protocol+c):new URL(c),g=K(v.pathname,d);v.origin===m.origin&&null!=g?c=g+v.search+v.hash:p=!0}catch(oc){}var y=function(e,r){var n=(void 0===r?{}:r).relative;me()||N(!1);var i=t.useContext(fe),a=i.basename,o=i.navigator,s=be(e,{relative:n}),u=s.hash,l=s.pathname,c=s.search,f=l;return"/"!==a&&(f="/"===l?a:$([a,l])),o.createHref({pathname:f,search:c,hash:u})}(c,{relative:a}),b=function(e,r){var n=void 0===r?{}:r,i=n.target,a=n.replace,o=n.state,s=n.preventScrollReset,u=n.relative,l=ye(),c=ve(),f=be(e,{relative:u});return t.useCallback((function(t){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,i)){t.preventDefault();var r=void 0!==a?a:O(c)===O(f);l(e,{replace:r,state:o,preventScrollReset:s,relative:u})}}),[c,l,f,a,o,i,e,s,u])}(c,{replace:s,state:u,target:l,preventScrollReset:f,relative:a});return t.createElement("a",De({},h,{href:n||y,onClick:p||o?i:function(e){i&&i(e),e.defaultPrevented||b(e)},ref:r,target:l}))}));var Ve,Ge;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Ve||(Ve={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ge||(Ge={}));function qe(){qe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,r){return e[t]=r}}function l(e,t,r,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new A(i||[]);return n(o,"_invoke",{value:k(e,r,s)}),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function m(){}var v={};u(v,a,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(S([])));y&&y!==t&&r.call(y,a)&&(v=y);var b=m.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(n,a,o,s){var u=c(e[n],e,a);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==h(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return i("throw",e,o,s)}))}s(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return N()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=_(o,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:N}}function N(){return{value:void 0,done:!0}}return p.prototype=m,n(b,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,o,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new x(l(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(b),u(b,s,"Generator"),u(b,a,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function We(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void r(l)}s.done?t(u):Promise.resolve(u).then(n,i)}function Qe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){We(a,n,i,o,s,"next",e)}function s(e){We(a,n,i,o,s,"throw",e)}o(void 0)}))}}var Ke=r(426),Je=r.n(Ke);function Ze(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xe(){return(Xe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var $e=Symbol(),et=function(e,r){var n=Object.keys(r),i=r,a=null,o={};n.forEach((function(e){o[e]=new Set}));var s=function(t,r){return r.type===$e?r.r?r.r(t):r.e:e(t,r)},l=function(e,t){var r=function(r){return Xe({},r,Ze({},e,(n=r[e],"function"==typeof(i=t)?i(n):i)));var n,i};if(a)a({type:$e,r:r});else{var n=(i=r(i))[e];o[e].forEach((function(e){return e(n)}))}},c=function(e,t){n.forEach((function(r){var n=t[r];e[r]!==n&&o[r].forEach((function(e){return e(n)}))}))};return{useGlobalStateProvider:function(){var e=u((0,t.useReducer)(s,i),2),r=e[0],n=e[1];(0,t.useEffect)((function(){if(a)throw new Error("Only one global state provider is allowed");return a=n,n({type:$e,e:i}),function(){a=null}}),[]);var o=(0,t.useRef)(r);c(o.current,r),o.current=r,(0,t.useEffect)((function(){i=r}),[r])},useGlobalState:function(e){var r=u((0,t.useState)(i[e]),2),n=r[0],a=r[1];return(0,t.useEffect)((function(){return o[e].add(a),a(i[e]),function(){o[e].delete(a)}}),[e]),[n,(0,t.useCallback)((function(t){return l(e,t)}),[e])]},getGlobalState:function(e){return i[e]},setGlobalState:l,getState:function(){return i},setState:function(e){a?a({type:$e,e:e}):c(i,i=e)},dispatch:function(t){if(a)a(t);else{var r=i;i=e(i,t),c(r,i)}return t}}},tt=function(e){return et((function(e,t){return e}),e)}({createModal:"scale-0",updateModal:"scale-0",deleteModal:"scale-0",backModal:"scale-0",connectedAccount:"",projects:[],project:null,stats:null,backers:[]}),rt=tt.setGlobalState,nt=tt.useGlobalState,it=tt.getGlobalState,at=function(e,t,r,n){if(e.length>n){for(var i=e.substring(0,t),a=e.substring(e.length-r,e.length);i.length+a.length<n;)i+=".";return i+a}return e},ot=function(e){var t=Je()(),r=Je()(Number(e+"000"));if(r.diff(t)<=0)return"0 hari";var n=r.diff(t,"days");return"".concat(n+1," hari")},st={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ut=t.createContext&&t.createContext(st),lt=function(){return lt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lt.apply(this,arguments)},ct=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function ft(e){return e&&e.map((function(e,r){return t.createElement(e.tag,lt({key:r},e.attr),ft(e.child))}))}function ht(e){return function(r){return t.createElement(dt,lt({attr:lt({},e.attr)},r),ft(e.child))}}function dt(e){var r=function(r){var n,i=e.attr,a=e.size,o=e.title,s=ct(e,["attr","size","title"]),u=a||r.size||"1em";return r.className&&(n=r.className),e.className&&(n=(n?n+" ":"")+e.className),t.createElement("svg",lt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,s,{className:n,style:lt(lt({color:e.color||r.color},r.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&t.createElement("title",null,o),e.children)};return void 0!==ut?t.createElement(ut.Consumer,null,(function(e){return r(e)})):r(st)}function pt(e){return ht({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2Z"}}]})(e)}var mt=r(184),vt=function(){return(0,mt.jsx)("div",{className:"fixed right-10 bottom-10 flex space-x-2 justify-center",children:(0,mt.jsx)("button",{type:"button",className:"flex justify-center items-center w-9 h-9 bg-green-600 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-green-700",onClick:function(){return rt("createModal","scale-100")},children:(0,mt.jsx)(pt,{className:"font-bold",size:20})})})};function gt(e){return ht({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M311.9 260.8L160 353.6 8 260.8 160 0l151.9 260.8zM160 383.4L8 290.6 160 512l152-221.4-152 92.8z"}}]})(e)}function yt(e){return ht({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}}]})(e)}function bt(e){return ht({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}}]})(e)}function wt(e){return ht({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-48.9 158.8c.2 2.8.2 5.7.2 8.5 0 86.7-66 186.6-186.6 186.6-37.2 0-71.7-10.8-100.7-29.4 5.3.6 10.4.8 15.8.8 30.7 0 58.9-10.4 81.4-28-28.8-.6-53-19.5-61.3-45.5 10.1 1.5 19.2 1.5 29.6-1.2-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3a65.447 65.447 0 0 1-29.2-54.6c0-12.2 3.2-23.4 8.9-33.1 32.3 39.8 80.8 65.8 135.2 68.6-9.3-44.5 24-80.6 64-80.6 18.9 0 35.9 7.9 47.9 20.7 14.8-2.8 29-8.3 41.6-15.8-4.9 15.2-15.2 28-28.8 36.1 13.2-1.4 26-5.1 37.8-10.2-8.9 13.1-20.1 24.7-32.9 34z"}}]})(e)}function xt(e){return ht({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function kt(e){return ht({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(e)}function _t(e){return ht({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"}}]})(e)}function Et(e){return ht({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function Mt(e){return ht({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"}}]})(e)}function At(e){return ht({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"}}]})(e)}function St(e){return ht({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function Nt(e){return ht({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"}}]})(e)}function Tt(e){return ht({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}function Pt(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ct(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ot(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(r),!0).forEach((function(t){Ze(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Rt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}var It=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Rt(e))&&(n&&(n+=" "),n+=t);return n},jt=["theme","type","isLoading"],Lt=function(e){return"number"==typeof e&&!isNaN(e)},Dt=function(e){return"string"==typeof e},Ft=function(e){return"function"==typeof e},Bt=function(e){return Dt(e)||Ft(e)?e:null},Ut=function(e){return(0,t.isValidElement)(e)||Dt(e)||Ft(e)||Lt(e)};function zt(e){var r=e.enter,n=e.exit,i=e.appendPosition,a=void 0!==i&&i,o=e.collapse,s=void 0===o||o,u=e.collapseDuration,l=void 0===u?300:u;return function(e){var i=e.children,o=e.position,u=e.preventExitTransition,f=e.done,h=e.nodeRef,d=e.isIn,p=e.playToast,m=a?"".concat(r,"--").concat(o):r,v=a?"".concat(n,"--").concat(o):n,g=(0,t.useRef)(0);return(0,t.useLayoutEffect)((function(){var e,t=h.current,r=m.split(" "),n=function e(n){var i;n.target===h.current&&(p(),t.removeEventListener("animationend",e),t.removeEventListener("animationcancel",e),0===g.current&&"animationcancel"!==n.type&&(i=t.classList).remove.apply(i,c(r)))};(e=t.classList).add.apply(e,c(r)),t.addEventListener("animationend",n),t.addEventListener("animationcancel",n)}),[]),(0,t.useEffect)((function(){var e=h.current,t=function t(){e.removeEventListener("animationend",t),s?function(e,t,r){void 0===r&&(r=300);var n=e.scrollHeight,i=e.style;requestAnimationFrame((function(){i.minHeight="initial",i.height=n+"px",i.transition="all ".concat(r,"ms"),requestAnimationFrame((function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)}))}))}(e,f,l):f()};d||(u?t():(g.current=1,e.className+=" ".concat(v),e.addEventListener("animationend",t)))}),[d]),t.createElement(t.Fragment,null,i)}}function Ht(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}var Yt=new Map,Vt=[],Gt=new Set,qt=function(e){return Gt.forEach((function(t){return t(e)}))},Wt=function(){return Yt.size>0};function Qt(e,t){var r;if(t)return!(null==(r=Yt.get(t))||!r.isToastActive(e));var n=!1;return Yt.forEach((function(t){t.isToastActive(e)&&(n=!0)})),n}function Kt(e,t){Ut(e)&&(Wt()||Vt.push({content:e,options:t}),Yt.forEach((function(r){r.buildToast(e,t)})))}function Jt(e,t){Yt.forEach((function(r){null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===r.id&&r.toggle(e,null==t?void 0:t.id):r.toggle(e,null==t?void 0:t.id)}))}function Zt(e){var r=(0,t.useRef)(function(e){var r=e.containerId||1;return{subscribe:function(n){var i=function(e,r,n){var i=1,a=0,o=[],s=[],l=[],f=r,h=new Map,d=new Set,p=function(){l=Array.from(h.values()),d.forEach((function(e){return e()}))},m=function(e){s=null==e?[]:s.filter((function(t){return t!==e})),p()},v=function(e){var r=e.props,i=r.toastId,a=r.onOpen,o=r.updateId,u=r.children,l=null==o;e.staleId&&h.delete(e.staleId),h.set(i,e),s=[].concat(c(s),[e.props.toastId]).filter((function(t){return t!==e.staleId})),p(),n(Ht(e,l?"added":"updated")),l&&Ft(a)&&a((0,t.isValidElement)(u)&&u.props)};return{id:e,props:f,observe:function(e){return d.add(e),function(){return d.delete(e)}},toggle:function(e,t){h.forEach((function(r){null!=t&&t!==r.props.toastId||Ft(r.toggle)&&r.toggle(e)}))},removeToast:m,toasts:h,clearQueue:function(){a-=o.length,o=[]},buildToast:function(r,s){if(!function(t){var r=t.containerId,n=t.toastId,i=t.updateId,a=r?r!==e:1!==e,o=h.has(n)&&null==i;return a||o}(s)){var l=s.toastId,c=s.updateId,d=s.data,g=s.staleId,y=s.delay,b=function(){m(l)},w=null==c;w&&a++;var x,k,_=Ot(Ot(Ot({},f),{},{style:f.toastStyle,key:i++},Object.fromEntries(Object.entries(s).filter((function(e){var t=u(e,2);t[0];return null!=t[1]})))),{},{toastId:l,updateId:c,data:d,closeToast:b,isIn:!1,className:Bt(s.className||f.toastClassName),bodyClassName:Bt(s.bodyClassName||f.bodyClassName),progressClassName:Bt(s.progressClassName||f.progressClassName),autoClose:!s.isLoading&&(x=s.autoClose,k=f.autoClose,!1===x||Lt(x)&&x>0?x:k),deleteToast:function(){var e=h.get(l),r=e.props,i=r.onClose,s=r.children;Ft(i)&&i((0,t.isValidElement)(s)&&s.props),n(Ht(e,"removed")),h.delete(l),--a<0&&(a=0),o.length>0?v(o.shift()):p()}});_.closeButton=f.closeButton,!1===s.closeButton||Ut(s.closeButton)?_.closeButton=s.closeButton:!0===s.closeButton&&(_.closeButton=!Ut(f.closeButton)||f.closeButton);var E=r;(0,t.isValidElement)(r)&&!Dt(r.type)?E=(0,t.cloneElement)(r,{closeToast:b,toastProps:_,data:d}):Ft(r)&&(E=r({closeToast:b,toastProps:_,data:d}));var M={content:E,props:_,staleId:g};f.limit&&f.limit>0&&a>f.limit&&w?o.push(M):Lt(y)?setTimeout((function(){v(M)}),y):v(M)}},setProps:function(e){f=e},setToggle:function(e,t){h.get(e).toggle=t},isToastActive:function(e){return s.some((function(t){return t===e}))},getSnapshot:function(){return f.newestOnTop?l.reverse():l}}}(r,e,qt);Yt.set(r,i);var a=i.observe(n);return Vt.forEach((function(e){return Kt(e.content,e.options)})),Vt=[],function(){a(),Yt.delete(r)}},setProps:function(e){var t;null==(t=Yt.get(r))||t.setProps(e)},getSnapshot:function(){var e;return null==(e=Yt.get(r))?void 0:e.getSnapshot()}}}(e)).current,n=r.subscribe,i=r.getSnapshot;(0,r.setProps)(e);var a=(0,t.useSyncExternalStore)(n,i,i);return{getToastToRender:function(e){if(!a)return[];var t=new Map;return a.forEach((function(e){var r=e.props.position;t.has(r)||t.set(r,[]),t.get(r).push(e)})),Array.from(t,(function(t){return e(t[0],t[1])}))},isToastActive:Qt,count:null==a?void 0:a.length}}function Xt(e){var r,n,i=u((0,t.useState)(!1),2),a=i[0],o=i[1],s=u((0,t.useState)(!1),2),l=s[0],c=s[1],f=(0,t.useRef)(null),h=(0,t.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,d=e.autoClose,p=e.pauseOnHover,m=e.closeToast,v=e.onClick,g=e.closeOnClick;function y(){o(!0)}function b(){o(!1)}function w(t){var r=f.current;h.canDrag&&r&&(h.didMove=!0,a&&b(),h.delta="x"===e.draggableDirection?t.clientX-h.start:t.clientY-h.start,h.start!==t.clientX&&(h.canCloseOnClick=!1),r.style.transform="translate3d(".concat("x"===e.draggableDirection?"".concat(h.delta,"px, var(--y)"):"0, calc(".concat(h.delta,"px + var(--y))"),",0)"),r.style.opacity=""+(1-Math.abs(h.delta/h.removalDistance)))}function x(){document.removeEventListener("pointermove",w),document.removeEventListener("pointerup",x);var t=f.current;if(h.canDrag&&h.didMove&&t){if(h.canDrag=!1,Math.abs(h.delta)>h.removalDistance)return c(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(n=Yt.get((r={id:e.toastId,containerId:e.containerId,fn:o}).containerId||1))||n.setToggle(r.id,r.fn),(0,t.useEffect)((function(){if(e.pauseOnFocusLoss)return document.hasFocus()||b(),window.addEventListener("focus",y),window.addEventListener("blur",b),function(){window.removeEventListener("focus",y),window.removeEventListener("blur",b)}}),[e.pauseOnFocusLoss]);var k={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){h.didMove=!1,document.addEventListener("pointermove",w),document.addEventListener("pointerup",x);var r=f.current;h.canCloseOnClick=!0,h.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(h.start=t.clientX,h.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(h.start=t.clientY,h.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){var r=f.current.getBoundingClientRect(),n=r.top,i=r.bottom,a=r.left,o=r.right;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=a&&t.clientX<=o&&t.clientY>=n&&t.clientY<=i?b():y()}};return d&&p&&(k.onMouseEnter=b,e.stacked||(k.onMouseLeave=y)),g&&(k.onClick=function(e){v&&v(e),h.canCloseOnClick&&m()}),{playToast:y,pauseToast:b,isRunning:a,preventExitTransition:l,toastRef:f,eventHandlers:k}}function $t(e){var r=e.delay,n=e.isRunning,i=e.closeToast,a=e.type,o=void 0===a?"default":a,s=e.hide,u=e.className,l=e.style,c=e.controlledProgress,f=e.progress,h=e.rtl,d=e.isIn,p=e.theme,m=s||c&&0===f,v=Ot(Ot({},l),{},{animationDuration:"".concat(r,"ms"),animationPlayState:n?"running":"paused"});c&&(v.transform="scaleX(".concat(f,")"));var g=It("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--".concat(p),"Toastify__progress-bar--".concat(o),{"Toastify__progress-bar--rtl":h}),y=Ft(u)?u({rtl:h,type:o,defaultClassName:g}):It(g,u),b=Ze({},c&&f>=1?"onTransitionEnd":"onAnimationEnd",c&&f<1?null:function(){d&&i()});return t.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":m},t.createElement("div",{className:"Toastify__progress-bar--bg Toastify__progress-bar-theme--".concat(p," Toastify__progress-bar--").concat(o)}),t.createElement("div",Ot({role:"progressbar","aria-hidden":m?"true":"false","aria-label":"notification timer",className:y,style:v},b)))}var er=1,tr=function(){return""+er++};function rr(e){return e&&(Dt(e.toastId)||Lt(e.toastId))?e.toastId:tr()}function nr(e,t){return Kt(e,t),t.toastId}function ir(e,t){return Ot(Ot({},t),{},{type:t&&t.type||e,toastId:rr(t)})}function ar(e){return function(t,r){return nr(t,ir(e,r))}}function or(e,t){return nr(e,ir("default",t))}or.loading=function(e,t){return nr(e,ir("default",Ot({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},or.promise=function(e,t,r){var n,i=t.pending,a=t.error,o=t.success;i&&(n=Dt(i)?or.loading(i,r):or.loading(i.render,Ot(Ot({},r),i)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=function(e,t,i){if(null!=t){var a=Ot(Ot(Ot({type:e},s),r),{},{data:i}),o=Dt(t)?{render:t}:t;return n?or.update(n,Ot(Ot({},a),o)):or(o.render,Ot(Ot({},a),o)),i}or.dismiss(n)},l=Ft(e)?e():e;return l.then((function(e){return u("success",o,e)})).catch((function(e){return u("error",a,e)})),l},or.success=ar("success"),or.info=ar("info"),or.error=ar("error"),or.warning=ar("warning"),or.warn=or.warning,or.dark=function(e,t){return nr(e,ir("default",Ot({theme:"dark"},t)))},or.dismiss=function(e){!function(e){var t;if(Wt()){if(null==e||Dt(t=e)||Lt(t))Yt.forEach((function(t){t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){var r=Yt.get(e.containerId);r?r.removeToast(e.id):Yt.forEach((function(t){t.removeToast(e.id)}))}}else Vt=Vt.filter((function(t){return null!=e&&t.options.toastId!==e}))}(e)},or.clearWaitingQueue=function(e){void 0===e&&(e={}),Yt.forEach((function(t){!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()}))},or.isActive=Qt,or.update=function(e,t){void 0===t&&(t={});var r=function(e,t){var r,n=t.containerId;return null==(r=Yt.get(n||1))?void 0:r.toasts.get(e)}(e,t);if(r){var n=r.props,i=r.content,a=Ot(Ot(Ot({delay:100},n),t),{},{toastId:t.toastId||e,updateId:tr()});a.toastId!==e&&(a.staleId=e);var o=a.render||i;delete a.render,nr(o,a)}},or.done=function(e){or.update(e,{progress:1})},or.onChange=function(e){return Gt.add(e),function(){Gt.delete(e)}},or.play=function(e){return Jt(!0,e)},or.pause=function(e){return Jt(!1,e)};var sr="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,ur=function(e){var r=e.theme,n=e.type,i=(e.isLoading,Pt(e,jt));return t.createElement("svg",Ot({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===r?"currentColor":"var(--toastify-icon-color-".concat(n,")")},i))},lr={info:function(e){return t.createElement(ur,Ot({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(ur,Ot({},e),t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(ur,Ot({},e),t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(ur,Ot({},e),t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}},cr=function(e){var r=Xt(e),n=r.isRunning,i=r.preventExitTransition,a=r.toastRef,o=r.eventHandlers,s=r.playToast,u=e.closeButton,l=e.children,c=e.autoClose,f=e.onClick,h=e.type,d=e.hideProgressBar,p=e.closeToast,m=e.transition,v=e.position,g=e.className,y=e.style,b=e.bodyClassName,w=e.bodyStyle,x=e.progressClassName,k=e.progressStyle,_=e.updateId,E=e.role,M=e.progress,A=e.rtl,S=e.toastId,N=e.deleteToast,T=e.isIn,P=e.isLoading,C=e.closeOnClick,O=e.theme,R=It("Toastify__toast","Toastify__toast-theme--".concat(O),"Toastify__toast--".concat(h),{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":C}),I=Ft(g)?g({rtl:A,position:v,type:h,defaultClassName:R}):It(R,g),j=function(e){var r=e.theme,n=e.type,i=e.isLoading,a=e.icon,o=null,s={theme:r,type:n};return!1===a||(Ft(a)?o=a(Ot(Ot({},s),{},{isLoading:i})):(0,t.isValidElement)(a)?o=(0,t.cloneElement)(a,s):i?o=lr.spinner():function(e){return e in lr}(n)&&(o=lr[n](s))),o}(e),L=!!M||!c,D={closeToast:p,type:h,theme:O},F=null;return!1===u||(F=Ft(u)?u(D):(0,t.isValidElement)(u)?(0,t.cloneElement)(u,D):function(e){var r=e.closeToast,n=e.theme,i=e.ariaLabel,a=void 0===i?"close":i;return t.createElement("button",{className:"Toastify__close-button Toastify__close-button--".concat(n),type:"button",onClick:function(e){e.stopPropagation(),r(e)},"aria-label":a},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(D)),t.createElement(m,{isIn:T,done:N,position:v,preventExitTransition:i,nodeRef:a,playToast:s},t.createElement("div",Ot(Ot({id:S,onClick:f,"data-in":T,className:I},o),{},{style:y,ref:a}),t.createElement("div",Ot(Ot({},T&&{role:E}),{},{className:Ft(b)?b({type:h}):It("Toastify__toast-body",b),style:w}),null!=j&&t.createElement("div",{className:It("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},j),t.createElement("div",null,l)),F,t.createElement($t,Ot(Ot({},_&&!L?{key:"pb-".concat(_)}:{}),{},{rtl:A,theme:O,delay:c,isRunning:n,isIn:T,closeToast:p,hide:d,type:h,style:k,className:x,controlledProgress:L,progress:M||0}))))},fr=function(e,t){return void 0===t&&(t=!1),{enter:"Toastify--animate Toastify__".concat(e,"-enter"),exit:"Toastify--animate Toastify__".concat(e,"-exit"),appendPosition:t}},hr=zt(fr("bounce",!0)),dr=(zt(fr("slide",!0)),zt(fr("zoom")),zt(fr("flip")),{position:"top-right",transition:hr,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function pr(e){var r=Ot(Ot({},dr),e),n=e.stacked,i=u((0,t.useState)(!0),2),a=i[0],o=i[1],s=(0,t.useRef)(null),l=Zt(r),c=l.getToastToRender,f=l.isToastActive,h=l.count,d=r.className,p=r.style,m=r.rtl,v=r.containerId;function g(e){var t=It("Toastify__toast-container","Toastify__toast-container--".concat(e),{"Toastify__toast-container--rtl":m});return Ft(d)?d({position:e,rtl:m,defaultClassName:t}):It(t,Bt(d))}function y(){n&&(o(!0),or.play())}return sr((function(){if(n){var e,t=s.current.querySelectorAll('[data-in="true"]'),i=null==(e=r.position)?void 0:e.includes("top"),o=0,u=0;Array.from(t).reverse().forEach((function(e,t){var r=e;r.classList.add("Toastify__toast--stacked"),t>0&&(r.dataset.collapsed="".concat(a)),r.dataset.pos||(r.dataset.pos=i?"top":"bot");var n=o*(a?.2:1)+(a?0:12*t);r.style.setProperty("--y","".concat(i?n:-1*n,"px")),r.style.setProperty("--g","".concat(12)),r.style.setProperty("--s",""+(1-(a?u:0))),o+=r.offsetHeight,u+=.025}))}}),[a,h,n]),t.createElement("div",{ref:s,className:"Toastify",id:v,onMouseEnter:function(){n&&(o(!1),or.pause())},onMouseLeave:y},c((function(e,r){var i=r.length?Ot({},p):Ot(Ot({},p),{},{pointerEvents:"none"});return t.createElement("div",{className:g(e),style:i,key:"container-".concat(e)},r.map((function(e){var r=e.content,i=e.props;return t.createElement(cr,Ot(Ot({},i),{},{stacked:n,collapseAll:y,isIn:f(i.toastId,i.containerId),style:i.style,key:"toast-".concat(i.key)}),r)})))})))}var mr=JSON.parse('{"Mt":[{"inputs":[{"internalType":"uint256","name":"_projectTax","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"actionType","type":"string"},{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Action","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"comment","type":"string"}],"name":"addComment","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"backProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_taxPct","type":"uint256"}],"name":"changeTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURL","type":"string"},{"internalType":"string","name":"category","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"createProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"deleteProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getBackers","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"contribution","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"bool","name":"refunded","type":"bool"}],"internalType":"struct Crowdfunding.backerStruct[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getComments","outputs":[{"components":[{"internalType":"address","name":"commenter","type":"address"},{"internalType":"string","name":"comment","type":"string"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct Crowdfunding.commentStruct[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getProject","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURL","type":"string"},{"internalType":"string","name":"category","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"raised","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"uint256","name":"backers","type":"uint256"},{"internalType":"enum Crowdfunding.statusEnum","name":"status","type":"uint8"}],"internalType":"struct Crowdfunding.projectStruct","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getProjects","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURL","type":"string"},{"internalType":"string","name":"category","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"raised","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"uint256","name":"backers","type":"uint256"},{"internalType":"enum Crowdfunding.statusEnum","name":"status","type":"uint8"}],"internalType":"struct Crowdfunding.projectStruct[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"category","type":"string"}],"name":"getProjectsByCategory","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURL","type":"string"},{"internalType":"string","name":"category","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"raised","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"uint256","name":"backers","type":"uint256"},{"internalType":"enum Crowdfunding.statusEnum","name":"status","type":"uint8"}],"internalType":"struct Crowdfunding.projectStruct[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"payOutProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"projectCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectExist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projects","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURL","type":"string"},{"internalType":"string","name":"category","type":"string"},{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"raised","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"expiresAt","type":"uint256"},{"internalType":"uint256","name":"backers","type":"uint256"},{"internalType":"enum Crowdfunding.statusEnum","name":"status","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"requestRefund","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stats","outputs":[{"internalType":"uint256","name":"totalProjects","type":"uint256"},{"internalType":"uint256","name":"totalBacking","type":"uint256"},{"internalType":"uint256","name":"totalDonations","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageURL","type":"string"},{"internalType":"uint256","name":"expiresAt","type":"uint256"}],"name":"updateProject","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]}'),vr=JSON.parse('{"L":"0xf17828b611D2b4601EDc2C361cB67B1de112b5e5"}'),gr=!1,yr=!1,br={debug:1,default:2,info:2,warning:3,error:4,off:5},wr=br.default,xr=null;var kr,_r,Er=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(kr||(kr={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(_r||(_r={}));var Mr="0123456789abcdef",Ar=function(){function e(t){f(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return m(e,[{key:"_log",value:function(e,t){var r=e.toLowerCase();null==br[r]&&this.throwArgumentError("invalid log level name","logLevel",e),wr>br[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.DEBUG,r)}},{key:"info",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.INFO,r)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.WARNING,r)}},{key:"makeError",value:function(t,r,n){if(yr)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(e){var t=n[e];try{if(t instanceof Uint8Array){for(var r="",a=0;a<t.length;a++)r+=Mr[t[a]>>4],r+=Mr[15&t[a]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(u){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code=".concat(r)),i.push("version=".concat(this.version));var a=t,o="";switch(r){case _r.NUMERIC_FAULT:o="NUMERIC_FAULT";var s=t;switch(s){case"overflow":case"underflow":case"division-by-zero":o+="-"+s;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break;case _r.CALL_EXCEPTION:case _r.INSUFFICIENT_FUNDS:case _r.MISSING_NEW:case _r.NONCE_EXPIRED:case _r.REPLACEMENT_UNDERPRICED:case _r.TRANSACTION_REPLACED:case _r.UNPREDICTABLE_GAS_LIMIT:o=r}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var u=new Error(t);return u.reason=a,u.code=r,Object.keys(n).forEach((function(e){u[e]=n[e]})),u}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),Er&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Er})}},{key:"checkSafeUint53",value:function(t,r){"number"===typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return xr||(xr=new e("logger/5.7.0")),xr}},{key:"setCensorship",value:function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),gr){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}yr=!!t,gr=!!r}},{key:"setLogLevel",value:function(t){var r=br[t.toLowerCase()];null!=r?wr=r:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();Ar.errors=_r,Ar.levels=kr;var Sr=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},Nr=new Ar("properties/5.7.0");function Tr(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function Pr(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function Cr(e){return Sr(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object.keys(e).map((function(t){var r=e[t];return Promise.resolve(r).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(r);case 3:return n=t.sent,t.abrupt("return",n.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))}function Or(e){var t={};for(var r in e)t[r]=e[r];return t}var Rr={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function Ir(e){if(void 0===e||null===e||Rr[typeof e])return!0;if(Array.isArray(e)||"object"===typeof e){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),r=0;r<t.length;r++){var n=null;try{n=e[t[r]]}catch(i){continue}if(!Ir(n))return!1}return!0}return Nr.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function jr(e){if(Ir(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return Lr(e)})));if("object"===typeof e){var t={};for(var r in e){var n=e[r];void 0!==n&&Tr(t,r,Lr(n))}return t}return Nr.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function Lr(e){return jr(e)}var Dr=m((function e(t){for(var r in f(this,e),t)this[r]=Lr(t[r])})),Fr="providers/5.7.2";function Br(){return Br="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},Br.apply(this,arguments)}var Ur=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},zr=new Ar("abstract-signer/5.7.0"),Hr=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Yr=[Ar.errors.INSUFFICIENT_FUNDS,Ar.errors.NONCE_EXPIRED,Ar.errors.REPLACEMENT_UNDERPRICED],Vr=function(){function e(){f(this,e),zr.checkAbstract(this instanceof e?this.constructor:void 0,e),Tr(this,"_isSigner",!0)}return m(e,[{key:"getBalance",value:function(e){return Ur(this,void 0,void 0,qe().mark((function t(){return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getBalance"),t.next=3,this.provider.getBalance(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionCount",value:function(e){return Ur(this,void 0,void 0,qe().mark((function t(){return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getTransactionCount"),t.next=3,this.provider.getTransactionCount(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"estimateGas",value:function(e){return Ur(this,void 0,void 0,qe().mark((function t(){var r;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("estimateGas"),t.next=3,Cr(this.checkTransaction(e));case 3:return r=t.sent,t.next=6,this.provider.estimateGas(r);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return Ur(this,void 0,void 0,qe().mark((function r(){var n;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._checkProvider("call"),r.next=3,Cr(this.checkTransaction(e));case 3:return n=r.sent,r.next=6,this.provider.call(n,t);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"sendTransaction",value:function(e){return Ur(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("sendTransaction"),t.next=3,this.populateTransaction(e);case 3:return r=t.sent,t.next=6,this.signTransaction(r);case 6:return n=t.sent,t.next=9,this.provider.sendTransaction(n);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getChainId",value:function(){return Ur(this,void 0,void 0,qe().mark((function e(){var t;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getChainId"),e.next=3,this.provider.getNetwork();case 3:return t=e.sent,e.abrupt("return",t.chainId);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Ur(this,void 0,void 0,qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getGasPrice"),e.next=3,this.provider.getGasPrice();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getFeeData",value:function(){return Ur(this,void 0,void 0,qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getFeeData"),e.next=3,this.provider.getFeeData();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"resolveName",value:function(e){return Ur(this,void 0,void 0,qe().mark((function t(){return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("resolveName"),t.next=3,this.provider.resolveName(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"checkTransaction",value:function(e){for(var t in e)-1===Hr.indexOf(t)&&zr.throwArgumentError("invalid transaction key: "+t,"transaction",e);var r=Or(e);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&zr.throwArgumentError("from address mismatch","transaction",e),t[0]})),r}},{key:"populateTransaction",value:function(e){return Ur(this,void 0,void 0,qe().mark((function t(){var r,n,i,a,o=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Cr(this.checkTransaction(e));case 2:if(null!=(r=t.sent).to&&(r.to=Promise.resolve(r.to).then((function(e){return Ur(o,void 0,void 0,qe().mark((function t(){var r;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.resolveName(e);case 4:return null==(r=t.sent)&&zr.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))})),r.to.catch((function(e){}))),n=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas,null==r.gasPrice||2!==r.type&&!n?0!==r.type&&1!==r.type||!n||zr.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):zr.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas){t.next=10;break}r.type=2,t.next=18;break;case 10:if(0!==r.type&&1!==r.type){t.next=14;break}null==r.gasPrice&&(r.gasPrice=this.getGasPrice()),t.next=18;break;case 14:return t.next=16,this.getFeeData();case 16:i=t.sent,null==r.type?null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas?(r.type=2,null!=r.gasPrice?(a=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=a,r.maxPriorityFeePerGas=a):(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):null!=i.gasPrice?(n&&zr.throwError("network does not support EIP-1559",Ar.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=i.gasPrice),r.type=0):zr.throwError("failed to get consistent fee data",Ar.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=i.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas));case 18:return null==r.nonce&&(r.nonce=this.getTransactionCount("pending")),null==r.gasLimit&&(r.gasLimit=this.estimateGas(r).catch((function(e){if(Yr.indexOf(e.code)>=0)throw e;return zr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ar.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&zr.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,Cr(r);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||zr.throwError("missing provider",Ar.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),Gr=function(e){g(r,e);var t=x(r);function r(e,n){var i;return f(this,r),Tr(w(i=t.call(this)),"address",e),Tr(w(i),"provider",n||null),i}return m(r,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){zr.throwError(e,Ar.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new r(this.address,e)}}]),r}(Vr),qr=r(244),Wr=r.n(qr),Qr=new Ar("bytes/5.7.0");function Kr(e){return!!e.toHexString}function Jr(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return Jr(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Zr(e){return nn(e)&&!(e.length%2)||$r(e)}function Xr(e){return"number"===typeof e&&e==e&&e%1===0}function $r(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!Xr(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!Xr(r)||r<0||r>=256)return!1}return!0}function en(e,t){if(t||(t={}),"number"===typeof e){Qr.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),Jr(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Kr(e)&&(e=e.toHexString()),nn(e)){var n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":Qr.throwArgumentError("hex data is odd-length","value",e));for(var i=[],a=0;a<n.length;a+=2)i.push(parseInt(n.substring(a,a+2),16));return Jr(new Uint8Array(i))}return $r(e)?Jr(new Uint8Array(e)):Qr.throwArgumentError("invalid arrayify value","value",e)}function tn(e){var t=e.map((function(e){return en(e)})),r=t.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(r);return t.reduce((function(e,t){return n.set(t,e),e+t.length}),0),Jr(n)}function rn(e){var t=en(e);if(0===t.length)return t;for(var r=0;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function nn(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}var an="0123456789abcdef";function on(e,t){if(t||(t={}),"number"===typeof e){Qr.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r=an[15&e]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Kr(e))return e.toHexString();if(nn(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":Qr.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if($r(e)){for(var n="0x",i=0;i<e.length;i++){var a=e[i];n+=an[(240&a)>>4]+an[15&a]}return n}return Qr.throwArgumentError("invalid hexlify value","value",e)}function sn(e){if("string"!==typeof e)e=on(e);else if(!nn(e)||e.length%2)return null;return(e.length-2)/2}function un(e,t,r){return"string"!==typeof e?e=on(e):(!nn(e)||e.length%2)&&Qr.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function ln(e){var t="0x";return e.forEach((function(e){t+=on(e).substring(2)})),t}function cn(e){var t=function(e){"string"!==typeof e&&(e=on(e));nn(e)||Qr.throwArgumentError("invalid hex string","value",e);e=e.substring(2);var t=0;for(;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}(on(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function fn(e,t){for("string"!==typeof e?e=on(e):nn(e)||Qr.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&Qr.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function hn(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Zr(e)){var r=en(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=on(r.slice(0,32)),t.s=on(r.slice(32,64))):65===r.length?(t.r=on(r.slice(0,32)),t.s=on(r.slice(32,64)),t.v=r[64]):Qr.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:Qr.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=on(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var n=function(e,t){(e=en(e)).length>t&&Qr.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),Jr(r)}(en(t._vs),32);t._vs=on(n);var i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&Qr.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var a=on(n);null==t.s?t.s=a:t.s!==a&&Qr.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?Qr.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var o=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==o&&Qr.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&nn(t.r)?t.r=fn(t.r,32):Qr.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&nn(t.s)?t.s=fn(t.s,32):Qr.throwArgumentError("signature missing or invalid s","signature",e);var s=en(t.s);s[0]>=128&&Qr.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(s[0]|=128);var u=on(s);t._vs&&(nn(t._vs)||Qr.throwArgumentError("signature invalid _vs","signature",e),t._vs=fn(t._vs,32)),null==t._vs?t._vs=u:t._vs!==u&&Qr.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}var dn="bignumber/5.7.0",pn=Wr().BN,mn=new Ar(dn),vn={},gn=9007199254740991;var yn=!1,bn=function(){function e(t,r){f(this,e),t!==vn&&mn.throwError("cannot call constructor directly; use BigNumber.from",Ar.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return m(e,[{key:"fromTwos",value:function(e){return xn(kn(this).fromTwos(e))}},{key:"toTwos",value:function(e){return xn(kn(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return xn(kn(this).add(kn(e)))}},{key:"sub",value:function(e){return xn(kn(this).sub(kn(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&_n("division-by-zero","div"),xn(kn(this).div(kn(t)))}},{key:"mul",value:function(e){return xn(kn(this).mul(kn(e)))}},{key:"mod",value:function(e){var t=kn(e);return t.isNeg()&&_n("division-by-zero","mod"),xn(kn(this).umod(t))}},{key:"pow",value:function(e){var t=kn(e);return t.isNeg()&&_n("negative-power","pow"),xn(kn(this).pow(t))}},{key:"and",value:function(e){var t=kn(e);return(this.isNegative()||t.isNeg())&&_n("unbound-bitwise-result","and"),xn(kn(this).and(t))}},{key:"or",value:function(e){var t=kn(e);return(this.isNegative()||t.isNeg())&&_n("unbound-bitwise-result","or"),xn(kn(this).or(t))}},{key:"xor",value:function(e){var t=kn(e);return(this.isNegative()||t.isNeg())&&_n("unbound-bitwise-result","xor"),xn(kn(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&_n("negative-width","mask"),xn(kn(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&_n("negative-width","shl"),xn(kn(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&_n("negative-width","shr"),xn(kn(this).shrn(e))}},{key:"eq",value:function(e){return kn(this).eq(kn(e))}},{key:"lt",value:function(e){return kn(this).lt(kn(e))}},{key:"lte",value:function(e){return kn(this).lte(kn(e))}},{key:"gt",value:function(e){return kn(this).gt(kn(e))}},{key:"gte",value:function(e){return kn(this).gte(kn(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return kn(this).isZero()}},{key:"toNumber",value:function(){try{return kn(this).toNumber()}catch(e){_n("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(oc){}return mn.throwError("this platform does not support BigInt",Ar.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?yn||(yn=!0,mn.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?mn.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Ar.errors.UNEXPECTED_ARGUMENT,{}):mn.throwError("BigNumber.toString does not accept parameters",Ar.errors.UNEXPECTED_ARGUMENT,{})),kn(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(vn,wn(t)):t.match(/^-?[0-9]+$/)?new e(vn,wn(new pn(t))):mn.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&_n("underflow","BigNumber.from",t),(t>=gn||t<=-gn)&&_n("overflow","BigNumber.from",t),e.from(String(t));var r=t;if("bigint"===typeof r)return e.from(r.toString());if($r(r))return e.from(on(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"===typeof n)return e.from(n)}else{var i=r._hex;if(null==i&&"BigNumber"===r.type&&(i=r.hex),"string"===typeof i&&(nn(i)||"-"===i[0]&&nn(i.substring(1))))return e.from(i)}return mn.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function wn(e){if("string"!==typeof e)return wn(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&mn.throwArgumentError("invalid hex","value",e),"0x00"===(e=wn(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function xn(e){return bn.from(wn(e))}function kn(e){var t=bn.from(e).toHexString();return"-"===t[0]?new pn("-"+t.substring(3),16):new pn(t.substring(2),16)}function _n(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),mn.throwError(e,Ar.errors.NUMERIC_FAULT,n)}var En=r(898),Mn=r.n(En);function An(e){return"0x"+Mn().keccak_256(en(e))}var Sn=new Ar("rlp/5.7.0");function Nn(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function Tn(e,t,r){for(var n=0,i=0;i<r;i++)n=256*n+e[t+i];return n}function Pn(e){if(Array.isArray(e)){var t=[];if(e.forEach((function(e){t=t.concat(Pn(e))})),t.length<=55)return t.unshift(192+t.length),t;var r=Nn(t.length);return r.unshift(247+r.length),r.concat(t)}Zr(e)||Sn.throwArgumentError("RLP object must be BytesLike","object",e);var n=Array.prototype.slice.call(en(e));if(1===n.length&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;var i=Nn(n.length);return i.unshift(183+i.length),i.concat(n)}function Cn(e){return on(Pn(e))}function On(e,t,r,n){for(var i=[];r<t+1+n;){var a=Rn(e,r);i.push(a.result),(r+=a.consumed)>t+1+n&&Sn.throwError("child data too short",Ar.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function Rn(e,t){if(0===e.length&&Sn.throwError("data too short",Ar.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&Sn.throwError("data short segment too short",Ar.errors.BUFFER_OVERRUN,{});var n=Tn(e,t+1,r);return t+1+r+n>e.length&&Sn.throwError("data long segment too short",Ar.errors.BUFFER_OVERRUN,{}),On(e,t,t+1+r,r+n)}if(e[t]>=192){var i=e[t]-192;return t+1+i>e.length&&Sn.throwError("data array too short",Ar.errors.BUFFER_OVERRUN,{}),On(e,t,t+1,i)}if(e[t]>=184){var a=e[t]-183;t+1+a>e.length&&Sn.throwError("data array too short",Ar.errors.BUFFER_OVERRUN,{});var o=Tn(e,t+1,a);return t+1+a+o>e.length&&Sn.throwError("data array too short",Ar.errors.BUFFER_OVERRUN,{}),{consumed:1+a+o,result:on(e.slice(t+1+a,t+1+a+o))}}if(e[t]>=128){var s=e[t]-128;return t+1+s>e.length&&Sn.throwError("data too short",Ar.errors.BUFFER_OVERRUN,{}),{consumed:1+s,result:on(e.slice(t+1,t+1+s))}}return{consumed:1,result:on(e[t])}}function In(e){var t=en(e),r=Rn(t,0);return r.consumed!==t.length&&Sn.throwArgumentError("invalid rlp data","data",e),r.result}var jn=new Ar("address/5.7.0");function Ln(e){nn(e,20)||jn.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);for(var i=en(An(r)),a=0;a<40;a+=2)i[a>>1]>>4>=8&&(t[a]=t[a].toUpperCase()),(15&i[a>>1])>=8&&(t[a+1]=t[a+1].toUpperCase());return"0x"+t.join("")}for(var Dn={},Fn=0;Fn<10;Fn++)Dn[String(Fn)]=String(Fn);for(var Bn=0;Bn<26;Bn++)Dn[String.fromCharCode(65+Bn)]=String(10+Bn);var Un=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function zn(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return Dn[e]})).join("");t.length>=Un;){var r=t.substring(0,Un);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function Hn(e){var t,r=null;if("string"!==typeof e&&jn.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),r=Ln(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==e&&jn.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==zn(e)&&jn.throwArgumentError("bad icap checksum","address",e),t=e.substring(4),r=new pn(t,36).toString(16);r.length<40;)r="0"+r;r=Ln("0x"+r)}else jn.throwArgumentError("invalid address","address",e);return r}function Yn(e){var t=null;try{t=Hn(e.from)}catch(r){jn.throwArgumentError("missing from address","transaction",e)}return Hn(un(An(Cn([t,rn(en(bn.from(e.nonce).toHexString()))])),12))}var Vn,Gn,qn="hash/5.7.0",Wn=new Ar("strings/5.7.0");function Qn(e,t,r,n,i){if(e===Gn.BAD_PREFIX||e===Gn.UNEXPECTED_CONTINUE){for(var a=0,o=t+1;o<r.length&&r[o]>>6===2;o++)a++;return a}return e===Gn.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(Vn||(Vn={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(Gn||(Gn={}));var Kn=Object.freeze({error:function(e,t,r,n,i){return Wn.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:Qn,replace:function(e,t,r,n,i){return e===Gn.OVERLONG?(n.push(i),0):(n.push(65533),Qn(e,t,r))}});function Jn(e,t){null==t&&(t=Kn.error),e=en(e);for(var r=[],n=0;n<e.length;){var i=e[n++];if(i>>7!==0){var a=null,o=null;if(192===(224&i))a=1,o=127;else if(224===(240&i))a=2,o=2047;else{if(240!==(248&i)){n+=t(128===(192&i)?Gn.UNEXPECTED_CONTINUE:Gn.BAD_PREFIX,n-1,e,r);continue}a=3,o=65535}if(n-1+a>=e.length)n+=t(Gn.OVERRUN,n-1,e,r);else{for(var s=i&(1<<8-a-1)-1,u=0;u<a;u++){var l=e[n];if(128!=(192&l)){n+=t(Gn.MISSING_CONTINUE,n,e,r),s=null;break}s=s<<6|63&l,n++}null!==s&&(s>1114111?n+=t(Gn.OUT_OF_RANGE,n-1-a,e,r,s):s>=55296&&s<=57343?n+=t(Gn.UTF16_SURROGATE,n-1-a,e,r,s):s<=o?n+=t(Gn.OVERLONG,n-1-a,e,r,s):r.push(s))}}else r.push(i)}return r}function Zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn.current;t!=Vn.current&&(Wn.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i<128)r.push(i);else if(i<2048)r.push(i>>6|192),r.push(63&i|128);else if(55296==(64512&i)){n++;var a=e.charCodeAt(n);if(n>=e.length||56320!==(64512&a))throw new Error("invalid utf-8 string");var o=65536+((1023&i)<<10)+(1023&a);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return en(r)}function Xn(e,t){return Jn(e,t).map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function $n(e){return An(Zn(e))}var ei=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},ti=new Ar(qn),ri=new Uint8Array(32);ri.fill(0);var ni=bn.from(-1),ii=bn.from(0),ai=bn.from(1),oi=bn.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var si=fn(ai.toHexString(),32),ui=fn(ii.toHexString(),32),li={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},ci=["name","version","chainId","verifyingContract","salt"];function fi(e){return function(t){return"string"!==typeof t&&ti.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var hi={name:fi("name"),version:fi("version"),chainId:function(e){try{return bn.from(e).toString()}catch(t){}return ti.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return Hn(e).toLowerCase()}catch(t){}return ti.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=en(e);if(32!==t.length)throw new Error("bad length");return on(t)}catch(r){}return ti.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function di(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var r=""===t[1],n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&ti.throwArgumentError("invalid numeric width","type",e);var i=oi.mask(r?n-1:n),a=r?i.add(ai).mul(ni):ii;return function(t){var r=bn.from(t);return(r.lt(a)||r.gt(i))&&ti.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),fn(r.toTwos(256).toHexString(),32)}}var o=e.match(/^bytes(\d+)$/);if(o){var s=parseInt(o[1]);return(0===s||s>32||o[1]!==String(s))&&ti.throwArgumentError("invalid bytes width","type",e),function(t){return en(t).length!==s&&ti.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=en(e),r=t.length%32;return r?ln([t,ri.slice(r)]):on(t)}(t)}}switch(e){case"address":return function(e){return fn(Hn(e),32)};case"bool":return function(e){return e?si:ui};case"bytes":return function(e){return An(e)};case"string":return function(e){return $n(e)}}return null}function pi(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var mi=function(){function e(t){f(this,e),Tr(this,"types",Object.freeze(Lr(t))),Tr(this,"_encoderCache",{}),Tr(this,"_types",{});var r={},n={},i={};Object.keys(t).forEach((function(e){r[e]={},n[e]=[],i[e]={}}));var a=function(e){var i={};t[e].forEach((function(a){i[a.name]&&ti.throwArgumentError("duplicate variable name ".concat(JSON.stringify(a.name)," in ").concat(JSON.stringify(e)),"types",t),i[a.name]=!0;var o=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===e&&ti.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),di(o)||(n[o]||ti.throwArgumentError("unknown type ".concat(JSON.stringify(o)),"types",t),n[o].push(e),r[e][o]=!0)}))};for(var o in t)a(o);var s=Object.keys(n).filter((function(e){return 0===n[e].length}));for(var u in 0===s.length?ti.throwArgumentError("missing primary type","types",t):s.length>1&&ti.throwArgumentError("ambiguous primary types or unused types: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),Tr(this,"primaryType",s[0]),function e(a,o){o[a]&&ti.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),o[a]=!0,Object.keys(r[a]).forEach((function(t){n[t]&&(e(t,o),Object.keys(o).forEach((function(e){i[e][t]=!0})))})),delete o[a]}(this.primaryType,{}),i){var l=Object.keys(i[u]);l.sort(),this._types[u]=pi(u,t[u])+l.map((function(e){return pi(e,t[e])})).join("")}}return m(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=di(e);if(r)return r;var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var i=n[1],a=this.getEncoder(i),o=parseInt(n[3]);return function(e){o>=0&&e.length!==o&&ti.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var r=e.map(a);return t._types[i]&&(r=r.map(An)),An(ln(r))}}var s=this.types[e];if(s){var u=$n(this._types[e]);return function(e){var r=s.map((function(r){var n=r.name,i=r.type,a=t.getEncoder(i)(e[n]);return t._types[i]?An(a):a}));return r.unshift(u),ln(r)}}return ti.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||ti.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return An(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this;if(di(e))return r(e,t);var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var a=i[1],o=parseInt(i[3]);return o>=0&&t.length!==o&&ti.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(a,e,r)}))}var s=this.types[e];return s?s.reduce((function(e,i){var a=i.name,o=i.type;return e[a]=n._visit(o,t[a],r),e}),{}):ti.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[];for(var n in t){var i=li[n];i||ti.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:i})}return r.sort((function(e,t){return ci.indexOf(e.name)-ci.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return ln(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return An(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,i){return ei(this,void 0,void 0,qe().mark((function a(){var o,s,u;return qe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=Or(t),o={},t.verifyingContract&&!nn(t.verifyingContract,20)&&(o[t.verifyingContract]="0x"),(s=e.from(r)).visit(n,(function(e,t){return"address"!==e||nn(t,20)||(o[t]="0x"),t})),a.t0=qe().keys(o);case 6:if((a.t1=a.t0()).done){a.next=13;break}return u=a.t1.value,a.next=10,i(u);case 10:o[u]=a.sent,a.next=6;break;case 13:return t.verifyingContract&&o[t.verifyingContract]&&(t.verifyingContract=o[t.verifyingContract]),n=s.visit(n,(function(e,t){return"address"===e&&o[t]?o[t]:t})),a.abrupt("return",{domain:t,value:n});case 16:case"end":return a.stop()}}),a)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t);var i={},a=[];ci.forEach((function(e){var r=t[e];null!=r&&(i[e]=hi[e](r),a.push({name:e,type:li[e]}))}));var o=e.from(r),s=Or(r);return s.EIP712Domain?ti.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):s.EIP712Domain=a,o.encode(n),{types:s,domain:i,primaryType:o.primaryType,message:o.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return on(en(t));if(e.match(/^u?int/))return bn.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&ti.throwArgumentError("invalid string","value",t),t}return ti.throwArgumentError("unsupported type","type",e)}))}}}]),e}(),vi=bn.from(-1),gi=bn.from(0),yi=bn.from(1),bi=bn.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),wi=r(286),xi=r.n(wi),ki=r(125),_i=r.n(ki);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self&&self;function Ei(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&r.path)}},e(r,r.exports),r.exports}var Mi=Ai;function Ai(e,t){if(!e)throw new Error(t||"Assertion failed")}Ai.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Si=Ei((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,o=255&i;a?r.push(a,o):r.push(o)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),Ni=Ei((function(e,t){var r=t;r.assert=Mi,r.toArray=Si.toArray,r.zero2=Si.zero2,r.toHex=Si.toHex,r.encode=Si.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,a=e.clone(),o=0;o<n.length;o++){var s,u=a.andln(i-1);a.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,a.isubn(s)):s=0,n[o]=s,a.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,a=0;e.cmpn(-i)>0||t.cmpn(-a)>0;){var o,s,u=e.andln(3)+i&3,l=t.andln(3)+a&3;3===u&&(u=-1),3===l&&(l=-1),o=0===(1&u)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==l?u:-u,r[0].push(o),s=0===(1&l)?0:3!==(n=t.andln(7)+a&7)&&5!==n||2!==u?l:-l,r[1].push(s),2*i===o+1&&(i=1-i),2*a===s+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(xi())(e,"hex","le")}})),Ti=Ni.getNAF,Pi=Ni.getJSF,Ci=Ni.assert;function Oi(e,t){this.type=e,this.p=new(xi())(t.p,16),this.red=t.prime?xi().red(t.prime):xi().mont(this.p),this.zero=new(xi())(0).toRed(this.red),this.one=new(xi())(1).toRed(this.red),this.two=new(xi())(2).toRed(this.red),this.n=t.n&&new(xi())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Ri=Oi;function Ii(e,t){this.curve=e,this.type=t,this.precomputed=null}Oi.prototype.point=function(){throw new Error("Not implemented")},Oi.prototype.validate=function(){throw new Error("Not implemented")},Oi.prototype._fixedNafMul=function(e,t){Ci(e.precomputed);var r=e._getDoubles(),n=Ti(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var a,o,s=[];for(a=0;a<n.length;a+=r.step){o=0;for(var u=a+r.step-1;u>=a;u--)o=(o<<1)+n[u];s.push(o)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=i;f>0;f--){for(a=0;a<s.length;a++)(o=s[a])===f?c=c.mixedAdd(r.points[a]):o===-f&&(c=c.mixedAdd(r.points[a].neg()));l=l.add(c)}return l.toP()},Oi.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=Ti(t,r,this._bitLength),o=this.jpoint(null,null,null),s=a.length-1;s>=0;s--){for(var u=0;s>=0&&0===a[s];s--)u++;if(s>=0&&u++,o=o.dblp(u),s<0)break;var l=a[s];Ci(0!==l),o="affine"===e.type?l>0?o.mixedAdd(i[l-1>>1]):o.mixedAdd(i[-l-1>>1].neg()):l>0?o.add(i[l-1>>1]):o.add(i[-l-1>>1].neg())}return"affine"===e.type?o.toP():o},Oi.prototype._wnafMulAdd=function(e,t,r,n,i){var a,o,s,u=this._wnafT1,l=this._wnafT2,c=this._wnafT3,f=0;for(a=0;a<n;a++){var h=(s=t[a])._getNAFPoints(e);u[a]=h.wnd,l[a]=h.points}for(a=n-1;a>=1;a-=2){var d=a-1,p=a;if(1===u[d]&&1===u[p]){var m=[t[d],null,null,t[p]];0===t[d].y.cmp(t[p].y)?(m[1]=t[d].add(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].add(t[p].neg())):(m[1]=t[d].toJ().mixedAdd(t[p]),m[2]=t[d].toJ().mixedAdd(t[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=Pi(r[d],r[p]);for(f=Math.max(g[0].length,f),c[d]=new Array(f),c[p]=new Array(f),o=0;o<f;o++){var y=0|g[0][o],b=0|g[1][o];c[d][o]=v[3*(y+1)+(b+1)],c[p][o]=0,l[d]=m}}else c[d]=Ti(r[d],u[d],this._bitLength),c[p]=Ti(r[p],u[p],this._bitLength),f=Math.max(c[d].length,f),f=Math.max(c[p].length,f)}var w=this.jpoint(null,null,null),x=this._wnafT4;for(a=f;a>=0;a--){for(var k=0;a>=0;){var _=!0;for(o=0;o<n;o++)x[o]=0|c[o][a],0!==x[o]&&(_=!1);if(!_)break;k++,a--}if(a>=0&&k++,w=w.dblp(k),a<0)break;for(o=0;o<n;o++){var E=x[o];0!==E&&(E>0?s=l[o][E-1>>1]:E<0&&(s=l[o][-E-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(a=0;a<n;a++)l[a]=null;return i?w:w.toP()},Oi.BasePoint=Ii,Ii.prototype.eq=function(){throw new Error("Not implemented")},Ii.prototype.validate=function(){return this.curve.validate(this)},Oi.prototype.decodePoint=function(e,t){e=Ni.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*r)return 6===e[0]?Ci(e[e.length-1]%2===0):7===e[0]&&Ci(e[e.length-1]%2===1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},Ii.prototype.encodeCompressed=function(e){return this.encode(e,!0)},Ii.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},Ii.prototype.encode=function(e,t){return Ni.encode(this._encode(t),e)},Ii.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},Ii.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},Ii.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}},Ii.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},Ii.prototype._getBeta=function(){return null},Ii.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var ji=Ei((function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),Li=Ni.assert;function Di(e){Ri.call(this,"short",e),this.a=new(xi())(e.a,16).toRed(this.red),this.b=new(xi())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}ji(Di,Ri);var Fi=Di;function Bi(e,t,r,n){Ri.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new(xi())(t,16),this.y=new(xi())(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function Ui(e,t,r,n){Ri.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(xi())(0)):(this.x=new(xi())(t,16),this.y=new(xi())(r,16),this.z=new(xi())(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Di.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new(xi())(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new(xi())(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],Li(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new(xi())(e.a,16),b:new(xi())(e.b,16)}})):this._getEndoBasis(r)}}},Di.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:xi().mont(e),r=new(xi())(2).toRed(t).redInvm(),n=r.redNeg(),i=new(xi())(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},Di.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,o,s,u,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),d=new(xi())(1),p=new(xi())(0),m=new(xi())(0),v=new(xi())(1),g=0;0!==f.cmpn(0);){var y=h.div(f);u=h.sub(y.mul(f)),l=m.sub(y.mul(d));var b=v.sub(y.mul(p));if(!n&&u.cmp(c)<0)t=s.neg(),r=d,n=u.neg(),i=l;else if(n&&2===++g)break;s=u,h=f,f=u,m=d,d=l,v=p,p=b}a=u.neg(),o=l;var w=n.sqr().add(i.sqr());return a.sqr().add(o.sqr()).cmp(w)>=0&&(a=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),o=o.neg()),[{a:n,b:i},{a:a,b:o}]},Di.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),s=a.mul(n.a),u=i.mul(r.b),l=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:u.add(l).neg()}},Di.prototype.pointFromX=function(e,t){(e=new(xi())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},Di.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},Di.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],u=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),u=u.neg(!0)),n[2*a]=s,n[2*a+1]=u,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var l=this._wnafMulAdd(1,n,i,2*a,r),c=0;c<2*a;c++)n[c]=null,i[c]=null;return l},ji(Bi,Ri.BasePoint),Di.prototype.point=function(e,t,r){return new Bi(this,e,t,r)},Di.prototype.pointFromJSON=function(e,t){return Bi.fromJSON(this,e,t)},Bi.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},Bi.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Bi.fromJSON=function(e,t,r){"string"===typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var a=t[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(i))}},n},Bi.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Bi.prototype.isInfinity=function(){return this.inf},Bi.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},Bi.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},Bi.prototype.getX=function(){return this.x.fromRed()},Bi.prototype.getY=function(){return this.y.fromRed()},Bi.prototype.mul=function(e){return e=new(xi())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},Bi.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},Bi.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},Bi.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},Bi.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},Bi.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},ji(Ui,Ri.BasePoint),Di.prototype.jpoint=function(e,t,r){return new Ui(this,e,t,r)},Ui.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},Ui.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Ui.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=a.redSub(o);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),f=n.redMul(l),h=u.redSqr().redIAdd(c).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},Ui.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),c=r.redMul(u),f=s.redSqr().redIAdd(l).redISub(c).redISub(c),h=s.redMul(c.redISub(f)).redISub(i.redMul(l)),d=this.z.redMul(o);return this.curve.jpoint(f,h,d)},Ui.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,u=s.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var c=a.redSqr(),f=l.redSqr(),h=f.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),p=a.redMul(f),m=d.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=d.redMul(v);g=g.redIAdd(g).redISub(h);var y=l.redMul(s);t+1<e&&(u=u.redMul(h)),a=m,s=y,l=g}return this.curve.jpoint(a,l.redMul(i),s)},Ui.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},Ui.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(o).redISub(o),l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),e=u,t=s.redMul(o.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(c).redISub(h);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),v=h.redIAdd(h);v=(v=v.redIAdd(v)).redIAdd(v),e=m.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(v),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},Ui.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(o).redISub(o);e=u;var l=a.redIAdd(a);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(o.redISub(u)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var v=f.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),t=d.redMul(p.redISub(e)).redISub(v)}return this.curve.jpoint(e,t,r)},Ui.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),u=t.redAdd(t),l=(u=u.redIAdd(u)).redMul(o),c=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(c),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,d,p)},Ui.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var l=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(u),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(s).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(l.redMul(u.redISub(l)).redISub(o.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,h,d)},Ui.prototype.mul=function(e,t){return e=new(xi())(e,t),this.curve._wnafMul(this,e)},Ui.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},Ui.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},Ui.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},Ui.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var zi=Ei((function(e,t){var r=t;r.base=Ri,r.short=Fi,r.mont=null,r.edwards=null})),Hi=Ei((function(e,t){var r,n=t,i=Ni.assert;function a(e){"short"===e.type?this.curve=new zi.short(e):"edwards"===e.type?this.curve=new zi.edwards(e):this.curve=new zi.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new a(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=a,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:_i().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:_i().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:_i().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:_i().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:_i().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:_i().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:_i().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(oc){r=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:_i().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function Yi(e){if(!(this instanceof Yi))return new Yi(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Si.toArray(e.entropy,e.entropyEnc||"hex"),r=Si.toArray(e.nonce,e.nonceEnc||"hex"),n=Si.toArray(e.pers,e.persEnc||"hex");Mi(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var Vi=Yi;Yi.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},Yi.prototype._hmac=function(){return new(_i().hmac)(this.hash,this.K)},Yi.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},Yi.prototype.reseed=function(e,t,r,n){"string"!==typeof t&&(n=r,r=t,t=null),e=Si.toArray(e,t),r=Si.toArray(r,n),Mi(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},Yi.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=Si.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var a=i.slice(0,e);return this._update(r),this._reseed++,Si.encode(a,t)};var Gi=Ni.assert;function qi(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var Wi=qi;qi.fromPublic=function(e,t,r){return t instanceof qi?t:new qi(e,{pub:t,pubEnc:r})},qi.fromPrivate=function(e,t,r){return t instanceof qi?t:new qi(e,{priv:t,privEnc:r})},qi.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},qi.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},qi.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},qi.prototype._importPrivate=function(e,t){this.priv=new(xi())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},qi.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?Gi(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||Gi(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},qi.prototype.derive=function(e){return e.validate()||Gi(e.validate(),"public point not validated"),e.mul(this.priv).getX()},qi.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},qi.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},qi.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var Qi=Ni.assert;function Ki(e,t){if(e instanceof Ki)return e;this._importDER(e,t)||(Qi(e.r&&e.s,"Signature without r or s"),this.r=new(xi())(e.r,16),this.s=new(xi())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var Ji=Ki;function Zi(){this.place=0}function Xi(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,a=0,o=t.place;a<n;a++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function $i(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function ea(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}Ki.prototype._importDER=function(e,t){e=Ni.toArray(e,t);var r=new Zi;if(48!==e[r.place++])return!1;var n=Xi(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=Xi(e,r);if(!1===i)return!1;var a=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var o=Xi(e,r);if(!1===o)return!1;if(e.length!==o+r.place)return!1;var s=e.slice(r.place,o+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new(xi())(a),this.s=new(xi())(s),this.recoveryParam=null,!0},Ki.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=$i(t),r=$i(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];ea(n,t.length),(n=n.concat(t)).push(2),ea(n,r.length);var i=n.concat(r),a=[48];return ea(a,i.length),a=a.concat(i),Ni.encode(a,e)};var ta=function(){throw new Error("unsupported")},ra=Ni.assert;function na(e){if(!(this instanceof na))return new na(e);"string"===typeof e&&(ra(Object.prototype.hasOwnProperty.call(Hi,e),"Unknown curve "+e),e=Hi[e]),e instanceof Hi.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var ia=na;na.prototype.keyPair=function(e){return new Wi(this,e)},na.prototype.keyFromPrivate=function(e,t){return Wi.fromPrivate(this,e,t)},na.prototype.keyFromPublic=function(e,t){return Wi.fromPublic(this,e,t)},na.prototype.genKeyPair=function(e){e||(e={});for(var t=new Vi({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ta(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(xi())(2));;){var i=new(xi())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},na.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},na.prototype.sign=function(e,t,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(xi())(e,16));for(var i=this.n.byteLength(),a=t.getPrivate().toArray("be",i),o=e.toArray("be",i),s=new Vi({hash:this.hash,entropy:a,nonce:o,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(xi())(1)),l=0;;l++){var c=n.k?n.k(l):new(xi())(s.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||c.cmp(u)>=0)){var f=this.g.mul(c);if(!f.isInfinity()){var h=f.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=c.invm(this.n).mul(d.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(f.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new Ji({r:d,s:p,recoveryParam:m})}}}}}},na.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(xi())(e,16)),r=this.keyFromPublic(r,n);var i=(t=new Ji(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var o,s=a.invm(this.n),u=s.mul(e).umod(this.n),l=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&o.eqXToP(i):!(o=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===o.getX().umod(this.n).cmp(i)},na.prototype.recoverPubKey=function(e,t,r,n){ra((3&r)===r,"The recovery param is more than two bits"),t=new Ji(t,n);var i=this.n,a=new(xi())(e),o=t.r,s=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var c=t.r.invm(i),f=i.sub(a).mul(c).umod(i),h=s.mul(c).umod(i);return this.g.mulAdd(f,o,h)},na.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new Ji(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var aa=Ei((function(e,t){var r=t;r.version="6.5.4",r.utils=Ni,r.rand=function(){throw new Error("unsupported")},r.curve=zi,r.curves=Hi,r.ec=ia,r.eddsa=null})).ec,oa=new Ar("signing-key/5.7.0"),sa=null;function ua(){return sa||(sa=new aa("secp256k1")),sa}var la=function(){function e(t){f(this,e),Tr(this,"curve","secp256k1"),Tr(this,"privateKey",on(t)),32!==sn(this.privateKey)&&oa.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var r=ua().keyFromPrivate(en(this.privateKey));Tr(this,"publicKey","0x"+r.getPublic(!1,"hex")),Tr(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),Tr(this,"_isSigningKey",!0)}return m(e,[{key:"_addPoint",value:function(e){var t=ua().keyFromPublic(en(this.publicKey)),r=ua().keyFromPublic(en(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=ua().keyFromPrivate(en(this.privateKey)),r=en(e);32!==r.length&&oa.throwArgumentError("bad digest length","digest",e);var n=t.sign(r,{canonical:!0});return hn({recoveryParam:n.recoveryParam,r:fn("0x"+n.r.toString(16),32),s:fn("0x"+n.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=ua().keyFromPrivate(en(this.privateKey)),r=ua().keyFromPublic(en(ca(e)));return fn("0x"+t.derive(r.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function ca(e,t){var r=en(e);if(32===r.length){var n=new la(r);return t?"0x"+ua().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?t?on(r):"0x"+ua().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+ua().keyFromPublic(r).getPublic(!0,"hex"):on(r):oa.throwArgumentError("invalid public or private key","key","[REDACTED]")}var fa,ha=new Ar("transactions/5.7.0");function da(e){return"0x"===e?null:Hn(e)}function pa(e){return"0x"===e?gi:bn.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(fa||(fa={}));function ma(e,t){return function(e){return Hn(un(An(un(ca(e),1)),12))}(function(e,t){var r=hn(t),n={r:en(r.r),s:en(r.s)};return"0x"+ua().recoverPubKey(en(e),n,r.recoveryParam).encode("hex",!1)}(en(e),t))}function va(e,t){var r=rn(bn.from(e).toHexString());return r.length>32&&ha.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function ga(e,t){return{address:Hn(e),storageKeys:(t||[]).map((function(t,r){return 32!==sn(t)&&ha.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function ya(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&ha.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),ga(e[0],e[1])):ga(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return ga(t,Object.keys(r).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function ba(e){return ya(e).map((function(e){return[e.address,e.storageKeys]}))}function wa(e,t){if(null!=e.gasPrice){var r=bn.from(e.gasPrice),n=bn.from(e.maxFeePerGas||0);r.eq(n)||ha.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var i=[va(e.chainId||0,"chainId"),va(e.nonce||0,"nonce"),va(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),va(e.maxFeePerGas||0,"maxFeePerGas"),va(e.gasLimit||0,"gasLimit"),null!=e.to?Hn(e.to):"0x",va(e.value||0,"value"),e.data||"0x",ba(e.accessList||[])];if(t){var a=hn(t);i.push(va(a.recoveryParam,"recoveryParam")),i.push(rn(a.r)),i.push(rn(a.s))}return ln(["0x02",Cn(i)])}function xa(e,t){var r=[va(e.chainId||0,"chainId"),va(e.nonce||0,"nonce"),va(e.gasPrice||0,"gasPrice"),va(e.gasLimit||0,"gasLimit"),null!=e.to?Hn(e.to):"0x",va(e.value||0,"value"),e.data||"0x",ba(e.accessList||[])];if(t){var n=hn(t);r.push(va(n.recoveryParam,"recoveryParam")),r.push(rn(n.r)),r.push(rn(n.s))}return ln(["0x01",Cn(r)])}function ka(e,t,r){try{var n=pa(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(a){ha.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=fn(t[1],32),e.s=fn(t[2],32);try{var i=An(r(e));e.from=ma(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(a){}}function _a(e){var t=en(e);if(t[0]>127)return function(e){var t=In(e);9!==t.length&&6!==t.length&&ha.throwArgumentError("invalid raw transaction","rawTransaction",e);var r={nonce:pa(t[0]).toNumber(),gasPrice:pa(t[1]),gasLimit:pa(t[2]),to:da(t[3]),value:pa(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=bn.from(t[6]).toNumber()}catch(o){return r}if(r.r=fn(t[7],32),r.s=fn(t[8],32),bn.from(r.r).isZero()&&bn.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,i=t.slice(0,6);0!==r.chainId&&(i.push(on(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);var a=An(Cn(i));try{r.from=ma(a,{r:on(r.r),s:on(r.s),recoveryParam:n})}catch(o){}r.hash=An(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){var t=In(e.slice(1));8!==t.length&&11!==t.length&&ha.throwArgumentError("invalid component count for transaction type: 1","payload",on(e));var r={type:1,chainId:pa(t[0]).toNumber(),nonce:pa(t[1]).toNumber(),gasPrice:pa(t[2]),gasLimit:pa(t[3]),to:da(t[4]),value:pa(t[5]),data:t[6],accessList:ya(t[7])};return 8===t.length||(r.hash=An(e),ka(r,t.slice(8),xa)),r}(t);case 2:return function(e){var t=In(e.slice(1));9!==t.length&&12!==t.length&&ha.throwArgumentError("invalid component count for transaction type: 2","payload",on(e));var r=pa(t[2]),n=pa(t[3]),i={type:2,chainId:pa(t[0]).toNumber(),nonce:pa(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:pa(t[4]),to:da(t[5]),value:pa(t[6]),data:t[7],accessList:ya(t[8])};return 9===t.length||(i.hash=An(e),ka(i,t.slice(9),wa)),i}(t)}return ha.throwError("unsupported transaction type: ".concat(t[0]),Ar.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}function Ea(e){e=atob(e);for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return en(t)}function Ma(e){e=en(e);for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Aa=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))};function Sa(e,t){return Aa(this,void 0,void 0,qe().mark((function r(){var n,i,a,o,s;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t={}),n={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),null!=t.fetchOptions&&((i=t.fetchOptions).mode&&(n.mode=i.mode),i.cache&&(n.cache=i.cache),i.credentials&&(n.credentials=i.credentials),i.redirect&&(n.redirect=i.redirect),i.referrer&&(n.referrer=i.referrer)),r.next=7,fetch(e,n);case 7:return a=r.sent,r.next=10,a.arrayBuffer();case 10:return o=r.sent,s={},a.headers.forEach?a.headers.forEach((function(e,t){s[t.toLowerCase()]=e})):a.headers.keys().forEach((function(e){s[e.toLowerCase()]=a.headers.get(e)})),r.abrupt("return",{headers:s,statusCode:a.status,statusMessage:a.statusText,body:en(new Uint8Array(o))});case 14:case"end":return r.stop()}}),r)})))}var Na=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},Ta=new Ar("web/5.7.1");function Pa(e){return new Promise((function(t){setTimeout(t,e)}))}function Ca(e,t){if(null==e)return null;if("string"===typeof e)return e;if(Zr(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Xn(e)}catch(r){}return on(e)}return e}function Oa(e,t,r){var n=null;if(null!=t){n=Zn(t);var i="string"===typeof e?{url:e}:Or(e);if(i.headers){var a=0!==Object.keys(i.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length;a||(i.headers=Or(i.headers),i.headers["content-type"]="application/json")}else i.headers={"content-type":"application/json"};e=i}return function(e,t,r){var n="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;Ta.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var i="object"===typeof e?e.throttleCallback:null,a="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;Ta.assertArgument(a>0&&a%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",a);var o="object"===typeof e&&!!e.errorPassThrough,s={},u=null,l={method:"GET"},c=!1,f=12e4;if("string"===typeof e)u=e;else if("object"===typeof e){if(null!=e&&null!=e.url||Ta.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"===typeof e.timeout&&e.timeout>0&&(f=e.timeout),e.headers)for(var h in e.headers)s[h.toLowerCase()]={key:h,value:String(e.headers[h])},["if-none-match","if-modified-since"].indexOf(h.toLowerCase())>=0&&(c=!0);if(l.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&Ta.throwError("basic authentication requires a secure https url",Ar.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});var d=e.user+":"+e.password;s.authorization={key:"Authorization",value:"Basic "+Ma(Zn(d))}}null!=e.skipFetchSetup&&(l.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(l.fetchOptions=Or(e.fetchOptions))}var p,m=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=u?u.match(m):null;if(v)try{var g={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?Ea(v[3]):(p=v[3],Zn(p.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},y=g.body;return r&&(y=r(g.body,g)),Promise.resolve(y)}catch(k){Ta.throwError("processing response error",Ar.errors.SERVER_ERROR,{body:Ca(v[1],v[2]),error:k,requestBody:null,requestMethod:"GET",url:u})}t&&(l.method="POST",l.body=t,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(t.length)}));var b={};Object.keys(s).forEach((function(e){var t=s[e];b[t.key]=t.value})),l.headers=b;var w=function(){var e=null;return{promise:new Promise((function(t,r){f&&(e=setTimeout((function(){null!=e&&(e=null,r(Ta.makeError("timeout",Ar.errors.TIMEOUT,{requestBody:Ca(l.body,b["content-type"]),requestMethod:l.method,timeout:f,url:u})))}),f))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),x=function(){return Na(this,void 0,void 0,qe().mark((function e(){var t,s,f,h,d,p,m,v,g,y;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<n)){e.next=65;break}return s=null,e.prev=3,e.next=6,Sa(u,l);case 6:if(s=e.sent,!(t<n)){e.next=28;break}if(301!==s.statusCode&&302!==s.statusCode){e.next=15;break}if(f=s.headers.location||"","GET"!==l.method||!f.match(/^https:/)){e.next=13;break}return u=s.headers.location,e.abrupt("continue",62);case 13:e.next=28;break;case 15:if(429!==s.statusCode){e.next=28;break}if(h=!0,!i){e.next=21;break}return e.next=20,i(t,u);case 20:h=e.sent;case 21:if(!h){e.next=28;break}return d=0,p=s.headers["retry-after"],d="string"===typeof p&&p.match(/^[1-9][0-9]*$/)?1e3*parseInt(p):a*parseInt(String(Math.random()*Math.pow(2,t))),e.next=27,Pa(d);case 27:return e.abrupt("continue",62);case 28:e.next=34;break;case 30:e.prev=30,e.t0=e.catch(3),null==(s=e.t0.response)&&(w.cancel(),Ta.throwError("missing response",Ar.errors.SERVER_ERROR,{requestBody:Ca(l.body,b["content-type"]),requestMethod:l.method,serverError:e.t0,url:u}));case 34:if(m=s.body,c&&304===s.statusCode?m=null:!o&&(s.statusCode<200||s.statusCode>=300)&&(w.cancel(),Ta.throwError("bad response",Ar.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:Ca(m,s.headers?s.headers["content-type"]:null),requestBody:Ca(l.body,b["content-type"]),requestMethod:l.method,url:u})),!r){e.next=60;break}return e.prev=37,e.next=40,r(m,s);case 40:return v=e.sent,w.cancel(),e.abrupt("return",v);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&t<n)){e.next=58;break}if(g=!0,!i){e.next=53;break}return e.next=52,i(t,u);case 52:g=e.sent;case 53:if(!g){e.next=58;break}return y=a*parseInt(String(Math.random()*Math.pow(2,t))),e.next=57,Pa(y);case 57:return e.abrupt("continue",62);case 58:w.cancel(),Ta.throwError("processing response error",Ar.errors.SERVER_ERROR,{body:Ca(m,s.headers?s.headers["content-type"]:null),error:e.t1,requestBody:Ca(l.body,b["content-type"]),requestMethod:l.method,url:u});case 60:return w.cancel(),e.abrupt("return",m);case 62:t++,e.next=1;break;case 65:return e.abrupt("return",Ta.throwError("failed response",Ar.errors.SERVER_ERROR,{requestBody:Ca(l.body,b["content-type"]),requestMethod:l.method,url:u}));case 66:case"end":return e.stop()}}),e,null,[[3,30],[37,45]])})))}();return Promise.race([w.promise,x])}(e,n,(function(e,t){var n=null;if(null!=e)try{n=JSON.parse(Xn(e))}catch(i){Ta.throwError("invalid JSON",Ar.errors.SERVER_ERROR,{body:e,error:i})}return r&&(n=r(n,t)),n}))}function Ra(e,t){return t||(t={}),null==(t=Or(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){var i=null,a=!1,o=function(){return!a&&(a=!0,i&&clearTimeout(i),!0)};t.timeout&&(i=setTimeout((function(){o()&&n(new Error("timeout"))}),t.timeout));var s=t.retryLimit,u=0;!function i(){return e().then((function(e){if(void 0!==e)o()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!a){if(++u>s)return void(o()&&n(new Error("retry limit reached")));var l=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));l<t.floor&&(l=t.floor),l>t.ceiling&&(l=t.ceiling),setTimeout(i,l)}return null}),(function(e){o()&&n(e)}))}()}))}var Ia=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},ja=new Ar("abstract-provider/5.7.0"),La=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,null,[{key:"isForkEvent",value:function(e){return!(!e||!e._isForkEvent)}}]),r}(Dr),Da=function(){function e(){f(this,e),ja.checkAbstract(this instanceof e?this.constructor:void 0,e),Tr(this,"_isProvider",!0)}return m(e,[{key:"getFeeData",value:function(){return Ia(this,void 0,void 0,qe().mark((function e(){var t,r,n,i,a,o;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Cr({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(e){return null}))});case 2:return t=e.sent,r=t.block,n=t.gasPrice,i=null,a=null,o=null,r&&r.baseFeePerGas&&(i=r.baseFeePerGas,o=bn.from("1500000000"),a=r.baseFeePerGas.mul(2).add(o)),e.abrupt("return",{lastBaseFeePerGas:i,maxFeePerGas:a,maxPriorityFeePerGas:o,gasPrice:n});case 8:case"end":return e.stop()}}),e,this)})))}},{key:"addListener",value:function(e,t){return this.on(e,t)}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"isProvider",value:function(e){return!(!e||!e._isProvider)}}]),e}(),Fa=function(){function e(t){f(this,e),Tr(this,"alphabet",t),Tr(this,"base",t.length),Tr(this,"_alphabetMap",{}),Tr(this,"_leader",t.charAt(0));for(var r=0;r<t.length;r++)this._alphabetMap[t.charAt(r)]=r}return m(e,[{key:"encode",value:function(e){var t=en(e);if(0===t.length)return"";for(var r=[0],n=0;n<t.length;++n){for(var i=t[n],a=0;a<r.length;++a)i+=r[a]<<8,r[a]=i%this.base,i=i/this.base|0;for(;i>0;)r.push(i%this.base),i=i/this.base|0}for(var o="",s=0;0===t[s]&&s<t.length-1;++s)o+=this._leader;for(var u=r.length-1;u>=0;--u)o+=this.alphabet[r[u]];return o}},{key:"decode",value:function(e){if("string"!==typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var r=0;r<e.length;r++){var n=this._alphabetMap[e[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");for(var i=n,a=0;a<t.length;++a)i+=t[a]*this.base,t[a]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(var o=0;e[o]===this._leader&&o<e.length-1;++o)t.push(0);return en(new Uint8Array(t.reverse()))}}]),e}(),Ba=(new Fa("abcdefghijklmnopqrstuvwxyz234567"),new Fa("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"));function Ua(e,t){null==t&&(t=1);var r=[],n=r.forEach;return function e(t,i){n.call(t,(function(t){i>0&&Array.isArray(t)?e(t,i-1):r.push(t)}))}(e,t),r}function za(e){return function(e){var t=0;return function(){return e[t++]}}(function(e){var t=0;function r(){return e[t++]<<8|e[t++]}for(var n=r(),i=1,a=[0,1],o=1;o<n;o++)a.push(i+=r());var s=r(),u=t;t+=s;var l=0,c=0;function f(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}for(var h=Math.pow(2,31),d=h>>>1,p=d>>1,m=h-1,v=0,g=0;g<31;g++)v=v<<1|f();for(var y=[],b=0,w=h;;){for(var x=Math.floor(((v-b+1)*i-1)/w),k=0,_=n;_-k>1;){var E=k+_>>>1;x<a[E]?_=E:k=E}if(0==k)break;y.push(k);for(var M=b+Math.floor(w*a[k]/i),A=b+Math.floor(w*a[k+1]/i)-1;0==((M^A)&d);)v=v<<1&m|f(),M=M<<1&m,A=A<<1&m|1;for(;M&~A&p;)v=v&d|v<<1&m>>>1|f(),M=M<<1^d,A=(A^d)<<1|d|1;b=M,w=1+A-M}var S=n-4;return y.map((function(t){switch(t-S){case 3:return S+65792+(e[u++]<<16|e[u++]<<8|e[u++]);case 2:return S+256+(e[u++]<<8|e[u++]);case 1:return S+e[u++];default:return t-1}}))}(e))}function Ha(e){return 1&e?~e>>1:e>>1}function Ya(e,t){for(var r=Array(e),n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function Va(e,t){for(var r=Array(e),n=0,i=0;n<e;n++)r[n]=i+=Ha(t());return r}function Ga(e,t){for(var r=Ya(e(),e),n=e(),i=Ya(n,e),a=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=1+t();return r}(n,e),o=0;o<n;o++)for(var s=0;s<a[o];s++)r.push(i[o]+s);return t?r.map((function(e){return t[e]})):r}function qa(e,t,r){for(var n=Array(e).fill(void 0).map((function(){return[]})),i=0;i<t;i++)Va(e,r).forEach((function(e,t){return n[t].push(e)}));return n}function Wa(e,t){var r=1+t(),n=t(),i=function(e){for(var t=[];;){var r=e();if(0==r)break;t.push(r)}return t}(t);return Ua(qa(i.length,1+e,t).map((function(e,t){var a=e[0],o=e.slice(1);return Array(i[t]).fill(void 0).map((function(e,t){var i=t*n;return[a+t*r,o.map((function(e){return e+i}))]}))})))}function Qa(e,t){return qa(1+t(),1+e,t).map((function(e){return[e[0],e.slice(1)]}))}var Ka=za(Ea("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Ja=new Set(Ga(Ka)),Za=new Set(Ga(Ka)),Xa=function(e){for(var t=[];;){var r=e();if(0==r)break;t.push(Wa(r,e))}for(;;){var n=e()-1;if(n<0)break;t.push(Qa(n,e))}return function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}(Ua(t))}(Ka),$a=function(e){var t=Ga(e).sort((function(e,t){return e-t}));return function r(){var n=[];for(;;){var i=Ga(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort((function(e,t){return t.set.size-e.set.size}));var a=e();return{branches:n,valid:a%3,fe0f:!!(1&(a=a/3|0)),save:1==(a>>=1),check:2==a}}()}(Ka),eo=45,to=95;function ro(e){return function(e){return Jn(Zn(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn.current))}(e)}function no(e){return e.filter((function(e){return 65039!=e}))}function io(e){var t,r=E(e.split("."));try{for(r.s();!(t=r.n()).done;){var n=t.value,i=ro(n);try{for(var a=i.lastIndexOf(to)-1;a>=0;a--)if(i[a]!==to)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every((function(e){return e<128}))&&i[2]===eo&&i[3]===eo)throw new Error("invalid label extension")}catch(o){throw new Error('Invalid label "'.concat(n,'": ').concat(o.message))}}}catch(o){r.e(o)}finally{r.f()}return e}function ao(e){return io(function(e,t){var r=ro(e).reverse(),n=[];for(;r.length;){var i=oo(r);if(i)n.push.apply(n,c(t(i)));else{var a=r.pop();if(Ja.has(a))n.push(a);else if(!Za.has(a)){var o=Xa[a];if(!o)throw new Error("Disallowed codepoint: 0x".concat(a.toString(16).toUpperCase()));n.push.apply(n,c(o))}}}return io(function(e){return e.normalize("NFC")}(String.fromCodePoint.apply(String,n)))}(e,no))}function oo(e,t){var r,n,i,a=$a,o=[],s=e.length;t&&(t.length=0);for(var u=function(){var u=e[--s];if(a=null===(r=a.branches.find((function(e){return e.set.has(u)})))||void 0===r?void 0:r.node,!a)return"break";if(a.save)i=u;else if(a.check&&u===i)return"break";o.push(u),a.fe0f&&(o.push(65039),s>0&&65039==e[s-1]&&s--),a.valid&&(n=o.slice(),2==a.valid&&n.splice(1,1),t&&t.push.apply(t,c(e.slice(s).reverse())),e.length=s)};s;){if("break"===u())break}return n}var so=new Ar(qn),uo=new Uint8Array(32);function lo(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function co(e){var t=Zn(ao(e)),r=[];if(0===e.length)return r;for(var n=0,i=0;i<t.length;i++){46===t[i]&&(r.push(lo(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(lo(t.slice(n))),r}function fo(e){"string"!==typeof e&&so.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=uo,r=co(e);r.length;)t=An(tn([t,An(r.pop())]));return on(t)}uo.fill(0);var ho=new Ar("networks/5.7.1");function po(e){var t=function(t,r){null==r&&(r={});var n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(s){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(s){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(s){}if(t.PocketProvider&&"-"!==r.pocket){try{var i=new t.PocketProvider(e,r.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&n.push(i)}catch(s){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(s){}if(t.AnkrProvider&&"-"!==r.ankr)try{var a=new t.AnkrProvider(e,r.ankr);a.network&&-1===["ropsten"].indexOf(a.network.name)&&n.push(a)}catch(s){}if(0===n.length)return null;if(t.FallbackProvider){var o=1;return null!=r.quorum?o=r.quorum:"homestead"===e&&(o=2),new t.FallbackProvider(n,o)}return n[0]};return t.renetwork=function(e){return po(e)},t}function mo(e,t){var r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return mo(e,t)},r}var vo={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:po("homestead")},go={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:po("ropsten")},yo={chainId:63,name:"classicMordor",_defaultProvider:mo("https://www.ethercluster.com/mordor","classicMordor")},bo={unspecified:{chainId:0,name:"unspecified"},homestead:vo,mainnet:vo,morden:{chainId:2,name:"morden"},ropsten:go,testnet:go,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:po("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:po("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:po("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:po("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:mo("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:yo,classicTestnet:yo,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:mo("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:po("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:po("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};new Ar("sha2/5.7.0");function wo(e){return"0x"+_i().sha256().update(en(e)).digest("hex")}var xo=r(360),ko=r.n(xo),_o=new Ar(Fr),Eo=function(){function e(){f(this,e),this.formats=this.getDefaultFormats()}return m(e,[{key:"getDefaultFormats",value:function(){var t=this,r={},n=this.address.bind(this),i=this.bigNumber.bind(this),a=this.blockTag.bind(this),o=this.data.bind(this),s=this.hash.bind(this),u=this.hex.bind(this),l=this.number.bind(this),c=this.type.bind(this);return r.transaction={hash:s,type:c,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(s,null),blockNumber:e.allowNull(l,null),transactionIndex:e.allowNull(l,null),confirmations:e.allowNull(l,null),from:n,gasPrice:e.allowNull(i),maxPriorityFeePerGas:e.allowNull(i),maxFeePerGas:e.allowNull(i),gasLimit:i,to:e.allowNull(n,null),value:i,nonce:l,data:o,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(l),creates:e.allowNull(n,null),raw:e.allowNull(o)},r.transactionRequest={from:e.allowNull(n),nonce:e.allowNull(l),gasLimit:e.allowNull(i),gasPrice:e.allowNull(i),maxPriorityFeePerGas:e.allowNull(i),maxFeePerGas:e.allowNull(i),to:e.allowNull(n),value:e.allowNull(i),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(l),accessList:e.allowNull(this.accessList.bind(this),null)},r.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:s,address:n,topics:e.arrayOf(s),data:o,logIndex:l,blockHash:s},r.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(n,null),transactionIndex:l,root:e.allowNull(u),gasUsed:i,logsBloom:e.allowNull(o),blockHash:s,transactionHash:s,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:e.allowNull(l,null),cumulativeGasUsed:i,effectiveGasPrice:e.allowNull(i),status:e.allowNull(l),type:c},r.block={hash:e.allowNull(s),parentHash:s,number:l,timestamp:l,nonce:e.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:e.allowNull(n),extraData:o,transactions:e.allowNull(e.arrayOf(s)),baseFeePerGas:e.allowNull(i)},r.blockWithTransactions=Or(r.block),r.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:e.allowNull(a,void 0),toBlock:e.allowNull(a,void 0),blockHash:e.allowNull(s,void 0),address:e.allowNull(n,void 0),topics:e.allowNull(this.topics.bind(this),void 0)},r.filterLog={blockNumber:e.allowNull(l),blockHash:e.allowNull(s),transactionIndex:l,removed:e.allowNull(this.boolean.bind(this)),address:n,data:e.allowFalsish(o,"0x"),topics:e.arrayOf(s),transactionHash:s,logIndex:l},r}},{key:"accessList",value:function(e){return ya(e||[])}},{key:"number",value:function(e){return"0x"===e?0:bn.from(e).toNumber()}},{key:"type",value:function(e){return"0x"===e||null==e?0:bn.from(e).toNumber()}},{key:"bigNumber",value:function(e){return bn.from(e)}},{key:"boolean",value:function(e){if("boolean"===typeof e)return e;if("string"===typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}},{key:"hex",value:function(e,t){return"string"===typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),nn(e))?e.toLowerCase():_o.throwArgumentError("invalid hash","value",e)}},{key:"data",value:function(e,t){var r=this.hex(e,t);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+e);return r}},{key:"address",value:function(e){return Hn(e)}},{key:"callAddress",value:function(e){if(!nn(e,32))return null;var t=Hn(un(e,12));return"0x0000000000000000000000000000000000000000"===t?null:t}},{key:"contractAddress",value:function(e){return Yn(e)}},{key:"blockTag",value:function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"===typeof e||nn(e))return cn(e);throw new Error("invalid blockTag")}},{key:"hash",value:function(e,t){var r=this.hex(e,t);return 32!==sn(r)?_o.throwArgumentError("invalid hash","value",e):r}},{key:"difficulty",value:function(e){if(null==e)return null;var t=bn.from(e);try{return t.toNumber()}catch(r){}return null}},{key:"uint256",value:function(e){if(!nn(e))throw new Error("invalid uint256");return fn(e,32)}},{key:"_block",value:function(t,r){null!=t.author&&null==t.miner&&(t.miner=t.author);var n=null!=t._difficulty?t._difficulty:t.difficulty,i=e.check(r,t);return i._difficulty=null==n?null:bn.from(n),i}},{key:"block",value:function(e){return this._block(e,this.formats.block)}},{key:"blockWithTransactions",value:function(e){return this._block(e,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(t){return e.check(this.formats.transactionRequest,t)}},{key:"transactionResponse",value:function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&bn.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var r=e.check(this.formats.transaction,t);if(null!=t.chainId){var n=t.chainId;nn(n)&&(n=bn.from(n).toNumber()),r.chainId=n}else{var i=t.networkId;null==i&&null==r.v&&(i=t.chainId),nn(i)&&(i=bn.from(i).toNumber()),"number"!==typeof i&&null!=r.v&&((i=(r.v-35)/2)<0&&(i=0),i=parseInt(i)),"number"!==typeof i&&(i=0),r.chainId=i}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r}},{key:"transaction",value:function(e){return _a(e)}},{key:"receiptLog",value:function(t){return e.check(this.formats.receiptLog,t)}},{key:"receipt",value:function(t){var r=e.check(this.formats.receipt,t);if(null!=r.root)if(r.root.length<=4){var n=bn.from(r.root).toNumber();0===n||1===n?(null!=r.status&&r.status!==n&&_o.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):_o.throwArgumentError("invalid alt-root-status","value.root",r.root)}else 66!==r.root.length&&_o.throwArgumentError("invalid root hash","value.root",r.root);return null!=r.status&&(r.byzantium=!0),r}},{key:"topics",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null}},{key:"filter",value:function(t){return e.check(this.formats.filter,t)}},{key:"filterLog",value:function(t){return e.check(this.formats.filterLog,t)}}],[{key:"check",value:function(e,t){var r={};for(var n in e)try{var i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(a){throw a.checkKey=n,a.checkValue=t[n],a}return r}},{key:"allowNull",value:function(e,t){return function(r){return null==r?t:e(r)}}},{key:"allowFalsish",value:function(e,t){return function(r){return r?e(r):t}}},{key:"arrayOf",value:function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var r=[];return t.forEach((function(t){r.push(e(t))})),r}}}]),e}();var Mo=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},Ao=new Ar(Fr);function So(e){return null==e?"null":(32!==sn(e)&&Ao.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function No(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[So(e)]=!0}));var r=Object.keys(t);return r.sort(),r.join("|")}return So(e)})).join("&")}function To(e){if("string"===typeof e){if(32===sn(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+No(e);if(La.isForkEvent(e))throw Ao.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+No(e.topics||[])}throw new Error("invalid event - "+e)}function Po(){return(new Date).getTime()}function Co(e){return new Promise((function(t){setTimeout(t,e)}))}var Oo=["block","network","pending","poll"],Ro=function(){function e(t,r,n){f(this,e),Tr(this,"tag",t),Tr(this,"listener",r),Tr(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return m(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),i={};return n.length>0&&(i.topics=n),r&&"*"!==r&&(i.address=r),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||Oo.indexOf(this.tag)>=0}}]),e}(),Io={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function jo(e){return fn(bn.from(e).toHexString(),32)}function Lo(e){return Ba.encode(tn([e,un(wo(wo(e)),0,4)]))}var Do=new RegExp("^(ipfs)://(.*)$","i"),Fo=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Do,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Bo(e,t){try{return Xn(Uo(e,t))}catch(r){}return null}function Uo(e,t){if("0x"===e)return null;var r=bn.from(un(e,t,t+32)).toNumber(),n=bn.from(un(e,r,r+32)).toNumber();return un(e,r+32,r+32+n)}function zo(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Ao.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function Ho(e){var t=en(e);if(t.length>32)throw new Error("internal; should not happen");var r=new Uint8Array(32);return r.set(t,32-t.length),r}function Yo(e){if(e.length%32===0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function Vo(e){for(var t=[],r=0,n=0;n<e.length;n++)t.push(null),r+=32;for(var i=0;i<e.length;i++){var a=en(e[i]);t[i]=Ho(r),t.push(Ho(a.length)),t.push(Yo(a)),r+=32+32*Math.ceil(a.length/32)}return ln(t)}var Go=function(){function e(t,r,n,i){f(this,e),Tr(this,"provider",t),Tr(this,"name",n),Tr(this,"address",t.formatter.address(r)),Tr(this,"_resolvedAddress",i)}return m(e,[{key:"supportsWildcard",value:function(){var e=this;return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((function(e){return bn.from(e).eq(1)})).catch((function(t){if(t.code===Ar.errors.CALL_EXCEPTION)return!1;throw e._supportsEip2544=null,t}))),this._supportsEip2544}},{key:"_fetch",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n,i,a;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={to:this.address,ccipReadEnabled:!0,data:ln([e,fo(this.name),t||"0x"])},i=!1,r.next=4,this.supportsWildcard();case 4:if(!r.sent){r.next=7;break}i=!0,n.data=ln(["0x9061b923",Vo([(o=this.name,on(tn(co(o).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"),n.data])]);case 7:return r.prev=7,r.next=10,this.provider.call(n);case 10:return en(a=r.sent).length%32===4&&Ao.throwError("resolver threw error",Ar.errors.CALL_EXCEPTION,{transaction:n,data:a}),i&&(a=Uo(a,0)),r.abrupt("return",a);case 16:if(r.prev=16,r.t0=r.catch(7),r.t0.code!==Ar.errors.CALL_EXCEPTION){r.next=20;break}return r.abrupt("return",null);case 20:throw r.t0;case 21:case"end":return r.stop()}var o}),r,this,[[7,16]])})))}},{key:"_fetchBytes",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this._fetch(e,t);case 2:if(null==(n=r.sent)){r.next=5;break}return r.abrupt("return",Uo(n,0));case 5:return r.abrupt("return",null);case 6:case"end":return r.stop()}}),r,this)})))}},{key:"_getAddress",value:function(e,t){var r=Io[String(e)];if(null==r&&Ao.throwError("unsupported coin type: ".concat(e),Ar.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===r.ilk)return this.provider.formatter.address(t);var n=en(t);if(null!=r.p2pkh){var i=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){var a=parseInt(i[1],16);if(i[2].length===2*a&&a>=1&&a<=75)return Lo(tn([[r.p2pkh],"0x"+i[2]]))}}if(null!=r.p2sh){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var s=parseInt(o[1],16);if(o[2].length===2*s&&s>=1&&s<=75)return Lo(tn([[r.p2sh],"0x"+o[2]]))}}if(null!=r.prefix){var u=n[1],l=n[0];if(0===l?20!==u&&32!==u&&(l=-1):l=-1,l>=0&&n.length===2+u&&u>=1&&u<=75){var c=ko().toWords(n.slice(2));return c.unshift(l),ko().encode(r.prefix,c)}}return null}},{key:"getAddress",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16;break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de");case 5:if("0x"!==(r=t.sent)&&"0x0000000000000000000000000000000000000000000000000000000000000000"!==r){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(r));case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==Ar.errors.CALL_EXCEPTION){t.next=15;break}return t.abrupt("return",null);case 15:throw t.t0;case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",jo(e));case 18:if(null!=(n=t.sent)&&"0x"!==n){t.next=21;break}return t.abrupt("return",null);case 21:return null==(i=this._getAddress(e,n))&&Ao.throwError("invalid or unsupported coin data",Ar.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:n}),t.abrupt("return",i);case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){var t,r,n,i,a,o,s,u,l,c,f,h,d,p,m,v;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar");case 4:if(null!=(r=e.sent)){e.next=7;break}return e.abrupt("return",null);case 7:n=0;case 8:if(!(n<Fo.length)){e.next=91;break}if(null!=(i=r.match(Fo[n]))){e.next=12;break}return e.abrupt("continue",88);case 12:a=i[1].toLowerCase(),e.t0=a,e.next="https"===e.t0?16:"data"===e.t0?18:"ipfs"===e.t0?20:"erc721"===e.t0||"erc1155"===e.t0?22:88;break;case 16:return t.push({type:"url",content:r}),e.abrupt("return",{linkage:t,url:r});case 18:return t.push({type:"data",content:r}),e.abrupt("return",{linkage:t,url:r});case 20:return t.push({type:"ipfs",content:r}),e.abrupt("return",{linkage:t,url:zo(r)});case 22:if(o="erc721"===a?"0xc87b56dd":"0x0e89341c",t.push({type:a,content:r}),e.t1=this._resolvedAddress,e.t1){e.next=29;break}return e.next=28,this.getAddress();case 28:e.t1=e.sent;case 29:if(s=e.t1,2===(u=(i[2]||"").split("/")).length){e.next=33;break}return e.abrupt("return",null);case 33:return e.next=35,this.provider.formatter.address(u[0]);case 35:if(l=e.sent,c=fn(bn.from(u[1]).toHexString(),32),"erc721"!==a){e.next=48;break}return e.t2=this.provider.formatter,e.next=41,this.provider.call({to:l,data:ln(["0x6352211e",c])});case 41:if(e.t3=e.sent,f=e.t2.callAddress.call(e.t2,e.t3),s===f){e.next=45;break}return e.abrupt("return",null);case 45:t.push({type:"owner",content:f}),e.next=57;break;case 48:if("erc1155"!==a){e.next=57;break}return e.t4=bn,e.next=52,this.provider.call({to:l,data:ln(["0x00fdd58e",fn(s,32),c])});case 52:if(e.t5=e.sent,!(h=e.t4.from.call(e.t4,e.t5)).isZero()){e.next=56;break}return e.abrupt("return",null);case 56:t.push({type:"balance",content:h.toString()});case 57:return d={to:this.provider.formatter.address(u[0]),data:ln([o,c])},e.t6=Bo,e.next=61,this.provider.call(d);case 61:if(e.t7=e.sent,null!=(p=(0,e.t6)(e.t7,0))){e.next=65;break}return e.abrupt("return",null);case 65:return t.push({type:"metadata-url-base",content:p}),"erc1155"===a&&(p=p.replace("{id}",c.substring(2)),t.push({type:"metadata-url-expanded",content:p})),p.match(/^ipfs:/i)&&(p=zo(p)),t.push({type:"metadata-url",content:p}),e.next=71,Oa(p);case 71:if(m=e.sent){e.next=74;break}return e.abrupt("return",null);case 74:if(t.push({type:"metadata",content:JSON.stringify(m)}),"string"===typeof(v=m.image)){e.next=78;break}return e.abrupt("return",null);case 78:if(!v.match(/^(https:\/\/|data:)/i)){e.next=81;break}e.next=86;break;case 81:if(null!=v.match(Do)){e.next=84;break}return e.abrupt("return",null);case 84:t.push({type:"url-ipfs",content:v}),v=zo(v);case 86:return t.push({type:"url",content:v}),e.abrupt("return",{linkage:t,url:v});case 88:n++,e.next=8;break;case 91:e.next=95;break;case 93:e.prev=93,e.t8=e.catch(1);case 95:return e.abrupt("return",null);case 96:case"end":return e.stop()}}),e,this,[[1,93]])})))}},{key:"getContentHash",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){var t,r,n,i,a,o,s,u,l;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchBytes("0xbc1c58d1");case 2:if(null!=(t=e.sent)&&"0x"!==t){e.next=5;break}return e.abrupt("return",null);case 5:if(!(r=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=10;break}if(n=parseInt(r[3],16),r[4].length!==2*n){e.next=10;break}return e.abrupt("return","ipfs://"+Ba.encode("0x"+r[1]));case 10:if(!(i=t.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=15;break}if(a=parseInt(i[3],16),i[4].length!==2*a){e.next=15;break}return e.abrupt("return","ipns://"+Ba.encode("0x"+i[1]));case 15:if(!(o=t.match(/^0xe40101fa011b20([0-9a-f]*)$/))){e.next=19;break}if(64!==o[1].length){e.next=19;break}return e.abrupt("return","bzz://"+o[1]);case 19:if(!(s=t.match(/^0x90b2c605([0-9a-f]*)$/))){e.next=25;break}if(68!==s[1].length){e.next=25;break}return u={"=":"","+":"-","/":"_"},l=Ma("0x"+s[1]).replace(/[=+\/]/g,(function(e){return u[e]})),e.abrupt("return","sia://"+l);case 25:return e.abrupt("return",Ao.throwError("invalid or unsupported content hash data",Ar.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t}));case 26:case"end":return e.stop()}}),e,this)})))}},{key:"getText",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Zn(e),(r=tn([jo(64),jo(r.length),r])).length%32!==0&&(r=tn([r,fn("0x",32-e.length%32)])),t.next=5,this._fetchBytes("0x59d1d43c",on(r));case 5:if(null!=(n=t.sent)&&"0x"!==n){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",Xn(n));case 9:case"end":return t.stop()}}),t,this)})))}}]),e}(),qo=null,Wo=1,Qo=function(e){g(r,e);var t=x(r);function r(e){var n;if(f(this,r),(n=t.call(this))._events=[],n._emitted={block:-2},n.disableCcipRead=!1,n.formatter=(this instanceof r?this.constructor:void 0).getFormatter(),Tr(w(n),"anyNetwork","any"===e),n.anyNetwork&&(e=n.detectNetwork()),e instanceof Promise)n._networkPromise=e,e.catch((function(e){})),n._ready().catch((function(e){}));else{var i=Pr(this instanceof r?this.constructor:void 0,"getNetwork")(e);i?(Tr(w(n),"_network",i),n.emit("network",i,null)):Ao.throwArgumentError("invalid network","network",e)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._maxFilterBlockRange=10,n._pollingInterval=4e3,n._fastQueryDate=0,n}return m(r,[{key:"_ready",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){var t;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this._network){e.next=17;break}if(t=null,!this._networkPromise){e.next=11;break}return e.prev=3,e.next=6,this._networkPromise;case 6:t=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:if(null!=t){e.next=15;break}return e.next=14,this.detectNetwork();case 14:t=e.sent;case 15:t||Ao.throwError("no network detected",Ar.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:Tr(this,"_network",t),this.emit("network",t,null));case 17:return e.abrupt("return",this._network);case 18:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"ready",get:function(){var e=this;return Ra((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code!==Ar.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}))}},{key:"ccipReadFetch",value:function(e,t,r){return Mo(this,void 0,void 0,qe().mark((function n(){var i,a,o,s,u,l,c,f,h;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.disableCcipRead&&0!==r.length){n.next=2;break}return n.abrupt("return",null);case 2:i=e.to.toLowerCase(),a=t.toLowerCase(),o=[],s=0;case 6:if(!(s<r.length)){n.next=22;break}return u=r[s],l=u.replace("{sender}",i).replace("{data}",a),c=u.indexOf("{data}")>=0?null:JSON.stringify({data:a,sender:i}),n.next=12,Oa({url:l,errorPassThrough:!0},c,(function(e,t){return e.status=t.statusCode,e}));case 12:if(!(f=n.sent).data){n.next=15;break}return n.abrupt("return",f.data);case 15:if(h=f.message||"unknown error",!(f.status>=400&&f.status<500)){n.next=18;break}return n.abrupt("return",Ao.throwError("response not found during CCIP fetch: ".concat(h),Ar.errors.SERVER_ERROR,{url:u,errorMessage:h}));case 18:o.push(h);case 19:s++,n.next=6;break;case 22:return n.abrupt("return",Ao.throwError("error encountered during CCIP fetch: ".concat(o.map((function(e){return JSON.stringify(e)})).join(", ")),Ar.errors.SERVER_ERROR,{urls:r,errorMessages:o}));case 23:case"end":return n.stop()}}),n,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i,a,o=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return r=this._internalBlockNumber,t.prev=5,t.next=8,r;case 8:if(n=t.sent,!(Po()-n.respTime<=e)){t.next=11;break}return t.abrupt("return",n.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==r){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return i=Po(),a=Cr({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError;if(r)throw o._internalBlockNumber===a&&(o._internalBlockNumber=null),r;var n=Po();return(t=bn.from(t).toNumber())<o._maxInternalBlockNumber&&(t=o._maxInternalBlockNumber),o._maxInternalBlockNumber=t,o._setFastBlockNumber(t),{blockNumber:t,reqTime:i,respTime:n}})),this._internalBlockNumber=a,a.catch((function(e){o._internalBlockNumber===a&&(o._internalBlockNumber=null)})),t.next=26,a;case 26:return t.abrupt("return",t.sent.blockNumber);case 27:case"end":return t.stop()}}),t,this,[[5,14]])})))}},{key:"poll",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){var t,r,n,i,a=this;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Wo++,r=[],n=null,e.prev=3,e.next=6,this._getInternalBlockNumber(100+this.pollingInterval/2);case 6:n=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),this.emit("error",e.t0),e.abrupt("return");case 13:if(this._setFastBlockNumber(n),this.emit("poll",t,n),n!==this._lastBlockNumber){e.next=18;break}return this.emit("didPoll",t),e.abrupt("return");case 18:if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Ao.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",Ao.makeError("network block skew detected",Ar.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i);return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=a._emitted[e];"pending"!==t&&n-t>12&&delete a._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=a.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(a._emitted["t:"+t]=e.blockNumber,a.emit(t,e),null):null})).catch((function(e){a.emit("error",e)}));r.push(i);break;case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=n-1);var o=e.filter;o.fromBlock=e._lastBlockNumber+1,o.toBlock=n;var s=o.toBlock-a._maxFilterBlockRange;s>o.fromBlock&&(o.fromBlock=s),o.fromBlock<0&&(o.fromBlock=0);var u=a.getLogs(o).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),a._emitted["b:"+t.blockHash]=t.blockNumber,a._emitted["t:"+t.transactionHash]=t.blockNumber,a.emit(o,t)}))})).catch((function(t){a.emit("error",t),e._inflight=!1}));r.push(u)}}})),this._lastBlockNumber=n,Promise.all(r).then((function(){a.emit("didPoll",t)})).catch((function(e){a.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ao.throwError("provider does not support network detection",Ar.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){var t,r,n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(r=e.sent,t.chainId===r.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=r,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",r,t),e.next=19,Co(0);case 19:return e.abrupt("return",this._network);case 20:throw n=Ao.makeError("underlying network changed",Ar.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r}),this.emit("error",n),n;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=Po();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=Po(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,r){return Mo(this,void 0,void 0,qe().mark((function n(){return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(e,null==t?1:t,r||0,null));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(e,t,r,n){return Mo(this,void 0,void 0,qe().mark((function i(){var a,o=this;return qe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(e);case 2:if(!(((a=i.sent)?a.confirmations:0)>=t)){i.next=5;break}return i.abrupt("return",a);case 5:return i.abrupt("return",new Promise((function(i,a){var s=[],u=!1,l=function(){return!!u||(u=!0,s.forEach((function(e){e()})),!1)},c=function(e){e.confirmations<t||l()||i(e)};if(o.on(e,c),s.push((function(){o.removeListener(e,c)})),n){var f=n.startBlock,h=null,d=function r(i){return Mo(o,void 0,void 0,qe().mark((function o(){var s=this;return qe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!u){o.next=2;break}return o.abrupt("return");case 2:return o.next=4,Co(1e3);case 4:this.getTransactionCount(n.from).then((function(o){return Mo(s,void 0,void 0,qe().mark((function s(){var c,d,p,m,v,g;return qe().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!u){s.next=2;break}return s.abrupt("return");case 2:if(!(o<=n.nonce)){s.next=6;break}f=i,s.next=41;break;case 6:return s.next=8,this.getTransaction(e);case 8:if(!(c=s.sent)||null==c.blockNumber){s.next=11;break}return s.abrupt("return");case 11:null==h&&(h=f-3)<n.startBlock&&(h=n.startBlock);case 12:if(!(h<=i)){s.next=41;break}if(!u){s.next=15;break}return s.abrupt("return");case 15:return s.next=17,this.getBlockWithTransactions(h);case 17:d=s.sent,p=0;case 19:if(!(p<d.transactions.length)){s.next=38;break}if((m=d.transactions[p]).hash!==e){s.next=23;break}return s.abrupt("return");case 23:if(m.from!==n.from||m.nonce!==n.nonce){s.next=35;break}if(!u){s.next=26;break}return s.abrupt("return");case 26:return s.next=28,this.waitForTransaction(m.hash,t);case 28:if(v=s.sent,!l()){s.next=31;break}return s.abrupt("return");case 31:return g="replaced",m.data===n.data&&m.to===n.to&&m.value.eq(n.value)?g="repriced":"0x"===m.data&&m.from===m.to&&m.value.isZero()&&(g="cancelled"),a(Ao.makeError("transaction was replaced",Ar.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===g||"cancelled"===g,reason:g,replacement:this._wrapTransaction(m),hash:e,receipt:v})),s.abrupt("return");case 35:p++,s.next=19;break;case 38:h++,s.next=12;break;case 41:if(!u){s.next=43;break}return s.abrupt("return");case 43:this.once("block",r);case 44:case"end":return s.stop()}}),s,this)})))}),(function(e){u||s.once("block",r)}));case 5:case"end":return o.stop()}}),o,this)})))};if(u)return;o.once("block",d),s.push((function(){o.removeListener("block",d)}))}if("number"===typeof r&&r>0){var p=setTimeout((function(){l()||a(Ao.makeError("timeout exceeded",Ar.errors.TIMEOUT,{timeout:r}))}),r);p.unref&&p.unref(),s.push((function(){clearTimeout(p)}))}})));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){var t;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",bn.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n,i;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,Cr({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getBalance",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",bn.from(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n,i;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,Cr({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",bn.from(i).toNumber());case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n,i;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,Cr({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getCode",n);case 7:return i=r.sent,r.prev=8,r.abrupt("return",on(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,r){return Mo(this,void 0,void 0,qe().mark((function n(){var i,a;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,Cr({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return cn(e)}))});case 4:return i=n.sent,n.next=7,this.perform("getStorageAt",i);case 7:return a=n.sent,n.prev=8,n.abrupt("return",on(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,r){var n=this;if(null!=t&&32!==sn(t))throw new Error("invalid response - sendTransaction");var i=e;return null!=t&&e.hash!==t&&Ao.throwError("Transaction hash mismatch from Provider.sendTransaction.",Ar.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=function(t,i){return Mo(n,void 0,void 0,qe().mark((function n(){var a,o;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t=1),null==i&&(i=0),a=void 0,0!==t&&null!=r&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),n.next=6,this._waitForTransaction(e.hash,t,i,a);case 6:if(null!=(o=n.sent)||0!==t){n.next=9;break}return n.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&Ao.throwError("transaction failed",Ar.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),n.abrupt("return",o);case 12:case"end":return n.stop()}}),n,this)})))},i}},{key:"sendTransaction",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i,a;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return on(e)}));case 4:return r=t.sent,null==(n=this.formatter.transaction(e)).confirmations&&(n.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return i=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:r});case 13:return a=t.sent,t.abrupt("return",this._wrapTransaction(n,a,i));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=n,t.t0.transactionHash=n.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return r=t.sent,n={},["from","to"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?bn.from(e):null})))})),["type"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return null!=e?e:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?on(e):null})))})),t.t0=this.formatter,t.next=12,Cr(n);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,r={},null!=e.address&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(r[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(r[t]=n._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,Cr(r);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,r){return Mo(this,void 0,void 0,qe().mark((function n(){var i,a,o,s,u,l,c,f,h,d,p,m,v,g,y;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r>=10&&Ao.throwError("CCIP read exceeded maximum redirections",Ar.errors.SERVER_ERROR,{redirects:r,transaction:e}),i=e.to,n.next=4,this.perform("call",{transaction:e,blockTag:t});case 4:if(a=n.sent,!(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===a.substring(0,10)&&sn(a)%32===4)){n.next=31;break}for(n.prev=6,o=un(a,4),s=un(o,0,32),bn.from(s).eq(i)||Ao.throwError("CCIP Read sender did not match",Ar.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a}),u=[],l=bn.from(un(o,32,64)).toNumber(),c=bn.from(un(o,l,l+32)).toNumber(),f=un(o,l+32),h=0;h<c;h++)null==(d=Bo(f,32*h))&&Ao.throwError("CCIP Read contained corrupt URL string",Ar.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a}),u.push(d);return p=Uo(o,64),bn.from(un(o,100,128)).isZero()||Ao.throwError("CCIP Read callback selector included junk",Ar.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a}),m=un(o,96,100),v=Uo(o,128),n.next=21,this.ccipReadFetch(e,p,u);case 21:return null==(g=n.sent)&&Ao.throwError("CCIP Read disabled or provided no URLs",Ar.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:a}),y={to:i,data:ln([m,Vo([g,v])])},n.abrupt("return",this._call(y,t,r+1));case 27:if(n.prev=27,n.t0=n.catch(6),n.t0.code!==Ar.errors.SERVER_ERROR){n.next=31;break}throw n.t0;case 31:return n.prev=31,n.abrupt("return",on(a));case 35:return n.prev=35,n.t1=n.catch(31),n.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:a,error:n.t1}));case 38:case"end":return n.stop()}}),n,this,[[6,27],[31,35]])})))}},{key:"call",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,Cr({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});case 4:return n=r.sent,r.abrupt("return",this._call(n.transaction,n.blockTag,n.ccipReadEnabled?0:-1));case 6:case"end":return r.stop()}}),r,this)})))}},{key:"estimateGas",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Cr({transaction:this._getTransactionRequest(e)});case 4:return r=t.sent,t.next=7,this.perform("estimateGas",r);case 7:return n=t.sent,t.prev=8,t.abrupt("return",bn.from(n));case 12:return t.prev=12,t.t0=t.catch(8),t.abrupt("return",Ao.throwError("bad result from backend",Ar.errors.SERVER_ERROR,{method:"estimateGas",params:r,result:n,error:t.t0}));case 15:case"end":return t.stop()}}),t,this,[[8,12]])})))}},{key:"_getAddress",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return"string"!==typeof(e=t.sent)&&Ao.throwArgumentError("invalid address or ENS name","name",e),t.next=6,this.resolveName(e);case 6:return null==(r=t.sent)&&Ao.throwError("ENS name not configured",Ar.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(e),")")}),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"_getBlock",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n,i,a=this;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,e;case 4:if(e=r.sent,n=-128,i={includeTransactions:!!t},!nn(e,32)){r.next=11;break}i.blockHash=e,r.next=21;break;case 11:return r.prev=11,r.next=14,this._getBlockTag(e);case 14:i.blockTag=r.sent,nn(i.blockTag)&&(n=parseInt(i.blockTag.substring(2),16)),r.next=21;break;case 18:r.prev=18,r.t0=r.catch(11),Ao.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e);case 21:return r.abrupt("return",Ra((function(){return Mo(a,void 0,void 0,qe().mark((function e(){var r,a,o,s,u,l,c=this;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getBlock",i);case 2:if(null!=(r=e.sent)){e.next=11;break}if(null==i.blockHash){e.next=7;break}if(null!=this._emitted["b:"+i.blockHash]){e.next=7;break}return e.abrupt("return",null);case 7:if(null==i.blockTag){e.next=10;break}if(!(n>this._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}a=null,o=0;case 14:if(!(o<r.transactions.length)){e.next=31;break}if(null!=(s=r.transactions[o]).blockNumber){e.next=20;break}s.confirmations=0,e.next=28;break;case 20:if(null!=s.confirmations){e.next=28;break}if(null!=a){e.next=25;break}return e.next=24,this._getInternalBlockNumber(100+2*this.pollingInterval);case 24:a=e.sent;case 25:(u=a-s.blockNumber+1)<=0&&(u=1),s.confirmations=u;case 28:o++,e.next=14;break;case 31:return(l=this.formatter.blockWithTransactions(r)).transactions=l.transactions.map((function(e){return c._wrapTransaction(e)})),e.abrupt("return",l);case 34:return e.abrupt("return",this.formatter.block(r));case 35:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 22:case"end":return r.stop()}}),r,this,[[11,18]])})))}},{key:"getBlock",value:function(e){return this._getBlock(e,!1)}},{key:"getBlockWithTransactions",value:function(e){return this._getBlock(e,!0)}},{key:"getTransaction",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,r={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",Ra((function(){return Mo(n,void 0,void 0,qe().mark((function t(){var n,i,a,o;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransaction",r);case 2:if(null!=(n=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=(i=this.formatter.transactionResponse(n)).blockNumber){t.next=12;break}i.confirmations=0,t.next=19;break;case 12:if(null!=i.confirmations){t.next=19;break}return t.next=15,this._getInternalBlockNumber(100+2*this.pollingInterval);case 15:a=t.sent,(o=a-i.blockNumber+1)<=0&&(o=1),i.confirmations=o;case 19:return t.abrupt("return",this._wrapTransaction(i));case 20:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionReceipt",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,r={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",Ra((function(){return Mo(n,void 0,void 0,qe().mark((function t(){var n,i,a,o;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransactionReceipt",r);case 2:if(null!=(n=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=n.blockHash){t.next=9;break}return t.abrupt("return",void 0);case 9:if(null!=(i=this.formatter.receipt(n)).blockNumber){t.next=14;break}i.confirmations=0,t.next=21;break;case 14:if(null!=i.confirmations){t.next=21;break}return t.next=17,this._getInternalBlockNumber(100+2*this.pollingInterval);case 17:a=t.sent,(o=a-i.blockNumber+1)<=0&&(o=1),i.confirmations=o;case 21:return t.abrupt("return",i);case 22:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getLogs",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Cr({filter:this._getFilter(e)});case 4:return r=t.sent,t.next=7,this.perform("getLogs",r);case 7:return(n=t.sent).forEach((function(e){null==e.removed&&(e.removed=!1)})),t.abrupt("return",Eo.arrayOf(this.formatter.filterLog.bind(this.formatter))(n));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getEtherPrice",value:function(){return Mo(this,void 0,void 0,qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.abrupt("return",this.perform("getEtherPrice",{}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"_getBlockTag",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(!("number"===typeof(e=t.sent)&&e<0)){t.next=11;break}return e%1&&Ao.throwArgumentError("invalid BlockTag","blockTag",e),t.next=7,this._getInternalBlockNumber(100+2*this.pollingInterval);case 7:return r=t.sent,(r+=e)<0&&(r=0),t.abrupt("return",this.formatter.blockTag(r));case 11:return t.abrupt("return",this.formatter.blockTag(e));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"getResolver",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e;case 1:if(""!==r&&"."!==r){t.next=4;break}return t.abrupt("return",null);case 4:if("eth"===e||"eth"!==r){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,this._getResolver(r,"getResolver");case 8:if(null==(n=t.sent)){t.next=19;break}if(i=new Go(this,n,e),t.t0=r!==e,!t.t0){t.next=16;break}return t.next=15,i.supportsWildcard();case 15:t.t0=!t.sent;case 16:if(!t.t0){t.next=18;break}return t.abrupt("return",null);case 18:return t.abrupt("return",i);case 19:r=r.split(".").slice(1).join("."),t.next=1;break;case 22:case"end":return t.stop()}}),t,this)})))}},{key:"_getResolver",value:function(e,t){return Mo(this,void 0,void 0,qe().mark((function r(){var n,i;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t="ENS"),r.next=3,this.getNetwork();case 3:return(n=r.sent).ensAddress||Ao.throwError("network does not support ENS",Ar.errors.UNSUPPORTED_OPERATION,{operation:t,network:n.name}),r.prev=5,r.next=8,this.call({to:n.ensAddress,data:"0x0178b8bf"+fo(e).substring(2)});case 8:return i=r.sent,r.abrupt("return",this.formatter.callAddress(i));case 12:r.prev=12,r.t0=r.catch(5);case 14:return r.abrupt("return",null);case 15:case"end":return r.stop()}}),r,this,[[5,12]])})))}},{key:"resolveName",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,t.prev=3,t.abrupt("return",Promise.resolve(this.formatter.address(e)));case 7:if(t.prev=7,t.t0=t.catch(3),!nn(e)){t.next=11;break}throw t.t0;case 11:return"string"!==typeof e&&Ao.throwArgumentError("invalid ENS name","name",e),t.next=14,this.getResolver(e);case 14:if(r=t.sent){t.next=17;break}return t.abrupt("return",null);case 17:return t.next=19,r.getAddress();case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t,this,[[3,7]])})))}},{key:"lookupAddress",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,e=this.formatter.address(e),r=e.substring(2).toLowerCase()+".addr.reverse",t.next=7,this._getResolver(r,"lookupAddress");case 7:if(null!=(n=t.sent)){t.next=10;break}return t.abrupt("return",null);case 10:return t.t0=Bo,t.next=13,this.call({to:n,data:"0x691f3431"+fo(r).substring(2)});case 13:return t.t1=t.sent,i=(0,t.t0)(t.t1,0),t.next=17,this.resolveName(i);case 17:if(t.sent==e){t.next=20;break}return t.abrupt("return",null);case 20:return t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)})))}},{key:"getAvatar",value:function(e){return Mo(this,void 0,void 0,qe().mark((function t(){var r,n,i,a,o,s,u;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=null,!nn(e)){t.next=40;break}return n=this.formatter.address(e),i=n.substring(2).toLowerCase()+".addr.reverse",t.next=6,this._getResolver(i,"getAvatar");case 6:if(a=t.sent){t.next=9;break}return t.abrupt("return",null);case 9:return r=new Go(this,a,i),t.prev=10,t.next=13,r.getAvatar();case 13:if(!(o=t.sent)){t.next=16;break}return t.abrupt("return",o.url);case 16:t.next=22;break;case 18:if(t.prev=18,t.t0=t.catch(10),t.t0.code===Ar.errors.CALL_EXCEPTION){t.next=22;break}throw t.t0;case 22:return t.prev=22,t.t1=Bo,t.next=26,this.call({to:a,data:"0x691f3431"+fo(i).substring(2)});case 26:return t.t2=t.sent,s=(0,t.t1)(t.t2,0),t.next=30,this.getResolver(s);case 30:r=t.sent,t.next=38;break;case 33:if(t.prev=33,t.t3=t.catch(22),t.t3.code===Ar.errors.CALL_EXCEPTION){t.next=37;break}throw t.t3;case 37:return t.abrupt("return",null);case 38:t.next=45;break;case 40:return t.next=42,this.getResolver(e);case 42:if(r=t.sent){t.next=45;break}return t.abrupt("return",null);case 45:return t.next=47,r.getAvatar();case 47:if(null!=(u=t.sent)){t.next=50;break}return t.abrupt("return",null);case 50:return t.abrupt("return",u.url);case 51:case"end":return t.stop()}}),t,this,[[10,18],[22,33]])})))}},{key:"perform",value:function(e,t){return Ao.throwError(e+" not implemented",Ar.errors.NOT_IMPLEMENTED,{operation:e})}},{key:"_startEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,r){var n=new Ro(To(e),t,r);return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var a=!1,o=[],s=To(e);return this._events=this._events.filter((function(e){return e.tag!==s||(setTimeout((function(){e.listener.apply(t,n)}),0),a=!0,!e.once||(o.push(e),!1))})),o.forEach((function(e){t._stopEvent(e)})),a}},{key:"listenerCount",value:function(e){if(!e)return this._events.length;var t=To(e);return this._events.filter((function(e){return e.tag===t})).length}},{key:"listeners",value:function(e){if(null==e)return this._events.map((function(e){return e.listener}));var t=To(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))}},{key:"off",value:function(e,t){var r=this;if(null==t)return this.removeAllListeners(e);var n=[],i=!1,a=To(e);return this._events=this._events.filter((function(e){return e.tag!==a||e.listener!=t||(!!i||(i=!0,n.push(e),!1))})),n.forEach((function(e){r._stopEvent(e)})),this}},{key:"removeAllListeners",value:function(e){var t=this,r=[];if(null==e)r=this._events,this._events=[];else{var n=To(e);this._events=this._events.filter((function(e){return e.tag!==n||(r.push(e),!1)}))}return r.forEach((function(e){t._stopEvent(e)})),this}}],[{key:"getFormatter",value:function(){return null==qo&&(qo=new Eo),qo}},{key:"getNetwork",value:function(e){return function(e){if(null==e)return null;if("number"===typeof e){for(var t in bo){var r=bo[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){var n=bo[e];return null==n?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var i=bo[e.name];if(!i)return"number"!==typeof e.chainId&&ho.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==i.chainId&&ho.throwArgumentError("network chainId mismatch","network",e);var a,o=e._defaultProvider||null;return null==o&&i._defaultProvider&&(o=(a=i._defaultProvider)&&"function"===typeof a.renetwork?i._defaultProvider.renetwork(e):i._defaultProvider),{name:e.name,chainId:i.chainId,ensAddress:e.ensAddress||i.ensAddress||null,_defaultProvider:o}}(null==e?"homestead":e)}}]),r}(Da),Ko=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},Jo=new Ar(Fr),Zo=["call","estimateGas"];function Xo(e,t){if(null==e)return null;if("string"===typeof e.message&&e.message.match("reverted")){var r=nn(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"===typeof e){for(var n in e){var i=Xo(e[n],t);if(i)return i}return null}if("string"===typeof e)try{return Xo(JSON.parse(e),t)}catch(a){}return null}function $o(e,t,r){var n=r.transaction||r.signedTransaction;if("call"===e){var i=Xo(t,!0);if(i)return i.data;Jo.throwError("missing revert data in call exception; Transaction reverted without a reason string",Ar.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){var a=Xo(t.body,!1);null==a&&(a=Xo(t,!1)),a&&Jo.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ar.errors.UNPREDICTABLE_GAS_LIMIT,{reason:a.message,method:e,transaction:n,error:t})}var o=t.message;throw t.code===Ar.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?o=t.error.message:"string"===typeof t.body?o=t.body:"string"===typeof t.responseText&&(o=t.responseText),(o=(o||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Jo.throwError("insufficient funds for intrinsic transaction cost",Ar.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),o.match(/nonce (is )?too low/i)&&Jo.throwError("nonce has already been used",Ar.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),o.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Jo.throwError("replacement fee too low",Ar.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),o.match(/only replay-protected/i)&&Jo.throwError("legacy pre-eip-155 transactions not supported",Ar.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),Zo.indexOf(e)>=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Jo.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ar.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function es(e){return new Promise((function(t){setTimeout(t,e)}))}function ts(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function rs(e){return e?e.toLowerCase():e}var ns={},is=function(e){g(r,e);var t=x(r);function r(e,n,i){var a;if(f(this,r),a=t.call(this),e!==ns)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return Tr(w(a),"provider",n),null==i&&(i=0),"string"===typeof i?(Tr(w(a),"_address",a.provider.formatter.address(i)),Tr(w(a),"_index",null)):"number"===typeof i?(Tr(w(a),"_index",i),Tr(w(a),"_address",null)):Jo.throwArgumentError("invalid address or index","addressOrIndex",i),a}return m(r,[{key:"connect",value:function(e){return Jo.throwError("cannot alter JSON-RPC Signer connection",Ar.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new as(ns,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&Jo.throwError("unknown account #"+e._index,Ar.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=Or(e);var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var n=Or(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return Ko(t,void 0,void 0,qe().mark((function t(){var r;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(r=t.sent)&&Jo.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))}))),Cr({tx:Cr(e),sender:r}).then((function(r){var n=r.tx,i=r.sender;null!=n.from?n.from.toLowerCase()!==i&&Jo.throwArgumentError("from address mismatch","transaction",e):n.from=i;var a=t.provider.constructor.hexlifyTransaction(n,{from:!0});return t.provider.send("eth_sendTransaction",[a]).then((function(e){return e}),(function(e){return"string"===typeof e.message&&e.message.match(/user denied/i)&&Jo.throwError("user rejected transaction",Ar.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),$o("sendTransaction",e,a)}))}))}},{key:"signTransaction",value:function(e){return Jo.throwError("signing transactions is unsupported",Ar.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return Ko(this,void 0,void 0,qe().mark((function t(){var r,n,i=this;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return r=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return n=t.sent,t.prev=6,t.next=9,Ra((function(){return Ko(i,void 0,void 0,qe().mark((function e(){var t;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(n);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,n,r));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=n,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return Ko(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"===typeof e?Zn(e):e,t.next=3,this.getAddress();case 3:return n=t.sent,t.prev=4,t.next=7,this.provider.send("personal_sign",[on(r),n.toLowerCase()]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"===typeof t.t0.message&&t.t0.message.match(/user denied/i)&&Jo.throwError("user rejected signing",Ar.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_legacySignMessage",value:function(e){return Ko(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"===typeof e?Zn(e):e,t.next=3,this.getAddress();case 3:return n=t.sent,t.prev=4,t.next=7,this.provider.send("eth_sign",[n.toLowerCase(),on(r)]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"===typeof t.t0.message&&t.t0.message.match(/user denied/i)&&Jo.throwError("user rejected signing",Ar.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_signTypedData",value:function(e,t,r){return Ko(this,void 0,void 0,qe().mark((function n(){var i,a,o=this;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,mi.resolveNames(e,t,r,(function(e){return o.provider.resolveName(e)}));case 2:return i=n.sent,n.next=5,this.getAddress();case 5:return a=n.sent,n.prev=6,n.next=9,this.provider.send("eth_signTypedData_v4",[a.toLowerCase(),JSON.stringify(mi.getPayload(i.domain,t,i.value))]);case 9:return n.abrupt("return",n.sent);case 12:throw n.prev=12,n.t0=n.catch(6),"string"===typeof n.t0.message&&n.t0.message.match(/user denied/i)&&Jo.throwError("user rejected signing",Ar.errors.ACTION_REJECTED,{action:"_signTypedData",from:a,messageData:{domain:i.domain,types:t,value:i.value}}),n.t0;case 16:case"end":return n.stop()}}),n,this,[[6,12]])})))}},{key:"unlock",value:function(e){return Ko(this,void 0,void 0,qe().mark((function t(){var r,n;return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.provider,t.next=3,this.getAddress();case 3:return n=t.sent,t.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),r}(Vr),as=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))}}]),r}(is),os={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},ss=function(e){g(r,e);var t=x(r);function r(e,n){var i;f(this,r);var a=n;return null==a&&(a=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),i=t.call(this,a),e||(e=Pr(i.constructor,"defaultUrl")()),Tr(w(i),"connection","string"===typeof e?Object.freeze({url:e}):Object.freeze(Or(e))),i._nextId=42,i}return m(r,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return Ko(this,void 0,void 0,qe().mark((function e(){var t,r;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,es(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return r=Pr(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",r(bn.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",Jo.throwError("could not detect network",Ar.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",Jo.throwError("could not detect network",Ar.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new is(ns,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:Lr(n),provider:this});var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];var a=Oa(this.connection,JSON.stringify(n),ts).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e}));return i&&(this._cache[e]=a,setTimeout((function(){r._cache[e]=null}),0)),a}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[rs(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[rs(t.address),t.blockTag]];case"getCode":return["eth_getCode",[rs(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[rs(t.address),fn(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[Pr(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[Pr(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=rs(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return Ko(this,void 0,void 0,qe().mark((function r(){var n,i,a;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==e&&"estimateGas"!==e){r.next=8;break}if(!(n=t.transaction)||null==n.type||!bn.from(n.type).isZero()){r.next=8;break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8;break}return r.next=6,this.getFeeData();case 6:null==(i=r.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((t=Or(t)).transaction=Or(n),delete t.transaction.type);case 8:return null==(a=this.prepareRequest(e,t))&&Jo.throwError(e+" not implemented",Ar.errors.NOT_IMPLEMENTED,{operation:e}),r.prev=10,r.next=13,this.send(a[0],a[1]);case 13:return r.abrupt("return",r.sent);case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",$o(e,r.t0,t));case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),Br(y(r.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;var n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return es(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),Br(y(r.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var r,n,i=Or(os);if(t)for(var a in t)t[a]&&(i[a]=!0);n=i,(r=e)&&"object"===typeof r||Nr.throwArgumentError("invalid object","object",r),Object.keys(r).forEach((function(e){n[e]||Nr.throwArgumentError("invalid object key - "+e,"transaction:"+e,r)}));var o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=cn(bn.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=on(e[t]))})),e.accessList&&(o.accessList=ya(e.accessList)),o}}]),r}(Qo),us=new Ar(Fr),ls=1;function cs(e,t){var r="Web3LegacyFetcher";return function(e,n){var i=this,a={method:e,params:n,id:ls++,jsonrpc:"2.0"};return new Promise((function(e,n){i.emit("debug",{action:"request",fetcher:r,request:Lr(a),provider:i}),t(a,(function(t,o){if(t)return i.emit("debug",{action:"response",fetcher:r,error:t,request:a,provider:i}),n(t);if(i.emit("debug",{action:"response",fetcher:r,request:a,response:o,provider:i}),o.error){var s=new Error(o.error.message);return s.code=o.error.code,s.data=o.error.data,n(s)}e(o.result)}))}))}}var fs=function(e){g(r,e);var t=x(r);function r(e,n){var i;f(this,r),null==e&&us.throwArgumentError("missing provider","provider",e);var a=null,o=null,s=null;return"function"===typeof e?(a="unknown:",o=e):(!(a=e.host||e.path||"")&&e.isMetaMask&&(a="metamask"),s=e,e.request?(""===a&&(a="eip-1193:"),o=function(e){return function(t,r){var n=this;null==r&&(r=[]);var i={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:Lr(i),provider:this}),e.request(i).then((function(e){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:n}),e}))}}(e)):e.sendAsync?o=cs(0,e.sendAsync.bind(e)):e.send?o=cs(0,e.send.bind(e)):us.throwArgumentError("unsupported provider","provider",e),a||(a="unknown:")),Tr(w(i=t.call(this,a,n)),"jsonRpcFetchFunc",o),Tr(w(i),"provider",s),i}return m(r,[{key:"send",value:function(e,t){return this.jsonRpcFetchFunc(e,t)}}]),r}(ss),hs="abi/5.7.0",ds=new Ar(hs);var ps=function(){function e(t,r,n,i){f(this,e),this.name=t,this.type=r,this.localName=n,this.dynamic=i}return m(e,[{key:"_throwError",value:function(e,t){ds.throwArgumentError(e,this.localName,t)}}]),e}(),ms=function(){function e(t){f(this,e),Tr(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return m(e,[{key:"data",get:function(){return ln(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData(tn(e._data))}},{key:"writeBytes",value:function(e){var t=en(e),r=t.length%this.wordSize;return r&&(t=tn([t,this._padding.slice(r)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=en(bn.from(e));return t.length>this.wordSize&&ds.throwError("value out-of-bounds",Ar.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=tn([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),vs=function(){function e(t,r,n,i){f(this,e),Tr(this,"_data",en(t)),Tr(this,"wordSize",r||32),Tr(this,"_coerceFunc",n),Tr(this,"allowLoose",i),this._offset=0}return m(e,[{key:"data",get:function(){return on(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:ds.throwError("data out-of-bounds",Ar.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return bn.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),gs=function(e){g(r,e);var t=x(r);function r(e){return f(this,r),t.call(this,"address","address",e,!1)}return m(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=Hn(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return Hn(fn(e.readValue().toHexString(),20))}}]),r}(ps),ys=function(e){g(r,e);var t=x(r);function r(e){var n;return f(this,r),(n=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,n}return m(r,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),r}(ps),bs=new Ar(hs);function ws(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){var i={};n=t.map((function(e){var t=e.localName;return t||bs.throwError("cannot encode object for signature with missing names",Ar.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),i[t]&&bs.throwError("cannot encode object for signature with duplicate names",Ar.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),i[t]=!0,r[t]}))}else bs.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&bs.throwArgumentError("types/value length mismatch","tuple",r);var a=new ms(e.wordSize),o=new ms(e.wordSize),s=[];t.forEach((function(e,t){var r=n[t];if(e.dynamic){var i=o.length;e.encode(o,r);var u=a.writeUpdatableValue();s.push((function(e){u(e+i)}))}else e.encode(a,r)})),s.forEach((function(e){e(a.length)}));var u=e.appendWriter(a);return u+=e.appendWriter(o)}function xs(e,t){var r=[],n=e.subReader(0);t.forEach((function(t){var i=null;if(t.dynamic){var a=e.readValue(),o=n.subReader(a.toNumber());try{i=t.decode(o)}catch(s){if(s.code===Ar.errors.BUFFER_OVERRUN)throw s;(i=s).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(s){if(s.code===Ar.errors.BUFFER_OVERRUN)throw s;(i=s).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&r.push(i)}));var i=t.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach((function(e,t){var n=e.localName;if(n&&1===i[n]&&("length"===n&&(n="_length"),null==r[n])){var a=r[t];a instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw a}}):r[n]=a}}));for(var a=function(){var e=r[o];e instanceof Error&&Object.defineProperty(r,o,{enumerable:!0,get:function(){throw e}})},o=0;o<r.length;o++)a();return Object.freeze(r)}var ks=function(e){g(r,e);var t=x(r);function r(e,n,i){var a;f(this,r);var o=e.type+"["+(n>=0?n:"")+"]",s=-1===n||e.dynamic;return(a=t.call(this,"array",o,i,s)).coder=e,a.length=n,a}return m(r,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;r<this.length;r++)t.push(e);return t}},{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),bs.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],i=0;i<t.length;i++)n.push(this.coder);return ws(e,n,t)}},{key:"decode",value:function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&bs.throwError("insufficient data length",Ar.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n<t;n++)r.push(new ys(this.coder));return e.coerce(this.name,xs(e,r))}}]),r}(ps),_s=function(e){g(r,e);var t=x(r);function r(e){return f(this,r),t.call(this,"bool","bool",e,!1)}return m(r,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(e,t){return e.writeValue(t?1:0)}},{key:"decode",value:function(e){return e.coerce(this.type,!e.readValue().isZero())}}]),r}(ps),Es=function(e){g(r,e);var t=x(r);function r(e,n){return f(this,r),t.call(this,e,e,n,!0)}return m(r,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(e,t){t=en(t);var r=e.writeValue(t.length);return r+=e.writeBytes(t)}},{key:"decode",value:function(e){return e.readBytes(e.readValue().toNumber(),!0)}}]),r}(ps),Ms=function(e){g(r,e);var t=x(r);function r(e){return f(this,r),t.call(this,"bytes",e)}return m(r,[{key:"decode",value:function(e){return e.coerce(this.name,on(Br(y(r.prototype),"decode",this).call(this,e)))}}]),r}(Es),As=function(e){g(r,e);var t=x(r);function r(e,n){var i;f(this,r);var a="bytes"+String(e);return(i=t.call(this,a,a,n,!1)).size=e,i}return m(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(e,t){var r=en(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}},{key:"decode",value:function(e){return e.coerce(this.name,on(e.readBytes(this.size)))}}]),r}(ps),Ss=function(e){g(r,e);var t=x(r);function r(e){return f(this,r),t.call(this,"null","",e,!1)}return m(r,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}},{key:"decode",value:function(e){return e.readBytes(0),e.coerce(this.name,null)}}]),r}(ps),Ns=function(e){g(r,e);var t=x(r);function r(e,n,i){var a;f(this,r);var o=(n?"int":"uint")+8*e;return(a=t.call(this,o,o,i,!1)).size=e,a.signed=n,a}return m(r,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(e,t){var r=bn.from(t),n=bi.mask(8*e.wordSize);if(this.signed){var i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(yi).mul(vi)))&&this._throwError("value out-of-bounds",t)}else(r.lt(gi)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}},{key:"decode",value:function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}]),r}(ps),Ts=function(e){g(r,e);var t=x(r);function r(e){return f(this,r),t.call(this,"string",e)}return m(r,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(e,t){return Br(y(r.prototype),"encode",this).call(this,e,Zn(t))}},{key:"decode",value:function(e){return Xn(Br(y(r.prototype),"decode",this).call(this,e))}}]),r}(Es),Ps=function(e){g(r,e);var t=x(r);function r(e,n){var i;f(this,r);var a=!1,o=[];e.forEach((function(e){e.dynamic&&(a=!0),o.push(e.type)}));var s="tuple("+o.join(",")+")";return(i=t.call(this,"tuple",s,n,a)).coders=e,i}return m(r,[{key:"defaultValue",value:function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach((function(r,n){var i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}},{key:"encode",value:function(e,t){return ws(e,this.coders,t)}},{key:"decode",value:function(e){return e.coerce(this.name,xs(e,this.coders))}}]),r}(ps),Cs=new Ar(hs),Os={},Rs={calldata:!0,memory:!0,storage:!0},Is={calldata:!0,memory:!0};function js(e,t){if("bytes"===e||"string"===e){if(Rs[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&Is[t])return!0;return(Rs[t]||"payable"===t)&&Cs.throwArgumentError("invalid modifier","name",t),!1}function Ls(e,t){for(var r in t)Tr(e,r,t[r])}var Ds=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Fs=new RegExp(/^(.*)\[([0-9]*)\]$/),Bs=function(){function e(t,r){f(this,e),t!==Os&&Cs.throwError("use fromString",Ar.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Ls(this,r);var n=this.type.match(Fs);Ls(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return m(e,[{key:"format",value:function(e){if(e||(e=Ds.sighash),Ds[e]||Cs.throwArgumentError("invalid format type","format",e),e===Ds.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==Ds.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===Ds.full?", ":",")+")"):r+=this.type,e!==Ds.sighash&&(!0===this.indexed&&(r+=" indexed"),e===Ds.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"===typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(Os,{name:t.name||null,type:Js(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return n=function(e,t){var r=e;function n(t){Cs.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var a={type:"",name:"",state:{allowType:!0}},o=a,s=0;s<e.length;s++){var u=e[s];switch(u){case"(":o.state.allowType&&""===o.type?o.type="tuple":o.state.allowParams||n(s),o.state.allowType=!1,o.type=Js(o.type),o.components=[i(o)],o=o.components[0];break;case")":delete o.state,"indexed"===o.name&&(t||n(s),o.indexed=!0,o.name=""),js(o.type,o.name)&&(o.name=""),o.type=Js(o.type);var l=o;(o=o.parent)||n(s),delete l.parent,o.state.allowParams=!1,o.state.allowName=!0,o.state.allowArray=!0;break;case",":delete o.state,"indexed"===o.name&&(t||n(s),o.indexed=!0,o.name=""),js(o.type,o.name)&&(o.name=""),o.type=Js(o.type);var c=i(o.parent);o.parent.components.push(c),delete o.parent,o=c;break;case" ":o.state.allowType&&""!==o.type&&(o.type=Js(o.type),delete o.state.allowType,o.state.allowName=!0,o.state.allowParams=!0),o.state.allowName&&""!==o.name&&("indexed"===o.name?(t||n(s),o.indexed&&n(s),o.indexed=!0,o.name=""):js(o.type,o.name)?o.name="":o.state.allowName=!1);break;case"[":o.state.allowArray||n(s),o.type+=u,o.state.allowArray=!1,o.state.allowName=!1,o.state.readArray=!0;break;case"]":o.state.readArray||n(s),o.type+=u,o.state.readArray=!1,o.state.allowArray=!0,o.state.allowName=!0;break;default:o.state.allowType?(o.type+=u,o.state.allowParams=!0,o.state.allowArray=!0):o.state.allowName?(o.name+=u,delete o.state.allowArray):o.state.readArray?o.type+=u:n(s)}}return o.parent&&Cs.throwArgumentError("unexpected eof","param",e),delete a.state,"indexed"===o.name?(t||n(r.length-7),o.indexed&&n(r.length-7),o.indexed=!0,o.name=""):js(o.type,o.name)&&(o.name=""),a.type=Js(a.type),a}(t,!!r),e.fromObject({name:n.name,type:n.type,indexed:n.indexed,components:n.components});var n}},{key:"isParamType",value:function(e){return!(null==e||!e._isParamType)}}]),e}();function Us(e,t){return function(e){e=e.trim();for(var t=[],r="",n=0,i=0;i<e.length;i++){var a=e[i];","===a&&0===n?(t.push(r),r=""):(r+=a,"("===a?n++:")"===a&&-1===--n&&Cs.throwArgumentError("unbalanced parenthesis","value",e))}r&&t.push(r);return t}(e).map((function(e){return Bs.fromString(e,t)}))}var zs=function(){function e(t,r){f(this,e),t!==Os&&Cs.throwError("use a static from method",Ar.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Ls(this,r),this._isFragment=!0,Object.freeze(this)}return m(e,null,[{key:"from",value:function(t){return e.isFragment(t)?t:"string"===typeof t?e.fromString(t):e.fromObject(t)}},{key:"fromObject",value:function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return Ws.fromObject(t);case"event":return Hs.fromObject(t);case"constructor":return qs.fromObject(t);case"error":return Ks.fromObject(t);case"fallback":case"receive":return null}return Cs.throwArgumentError("invalid fragment object","value",t)}},{key:"fromString",value:function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Hs.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Ws.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?qs.fromString(e.trim()):"error"===e.split(" ")[0]?Ks.fromString(e.substring(5).trim()):Cs.throwArgumentError("unsupported fragment","value",e)}},{key:"isFragment",value:function(e){return!(!e||!e._isFragment)}}]),e}(),Hs=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,[{key:"format",value:function(e){if(e||(e=Ds.sighash),Ds[e]||Cs.throwArgumentError("invalid format type","format",e),e===Ds.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==Ds.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===Ds.full?", ":",")+") ",e!==Ds.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isEventFragment(e))return e;"event"!==e.type&&Cs.throwArgumentError("invalid event object","value",e);var t={name:Xs(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(Bs.fromObject):[],type:"event"};return new r(Os,t)}},{key:"fromString",value:function(e){var t=e.match($s);t||Cs.throwArgumentError("invalid event string","value",e);var n=!1;return t[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:Cs.warn("unknown modifier: "+e)}})),r.fromObject({name:t[1].trim(),anonymous:n,inputs:Us(t[2],!0),type:"event"})}},{key:"isEventFragment",value:function(e){return e&&e._isFragment&&"event"===e.type}}]),r}(zs);function Ys(e,t){t.gas=null;var r=e.split("@");return 1!==r.length?(r.length>2&&Cs.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||Cs.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=bn.from(r[1]),r[0]):e}function Vs(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function Gs(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&Cs.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&Cs.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||Cs.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&Cs.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&Cs.throwArgumentError("unable to determine stateMutability","value",e),t}var qs=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,[{key:"format",value:function(e){if(e||(e=Ds.sighash),Ds[e]||Cs.throwArgumentError("invalid format type","format",e),e===Ds.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===Ds.sighash&&Cs.throwError("cannot format a constructor for sighash",Ar.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===Ds.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e;"constructor"!==e.type&&Cs.throwArgumentError("invalid constructor object","value",e);var t=Gs(e);t.constant&&Cs.throwArgumentError("constructor cannot be constant","value",e);var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(Bs.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?bn.from(e.gas):null};return new r(Os,n)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=Ys(e,t)).match($s);return n&&"constructor"===n[1].trim()||Cs.throwArgumentError("invalid constructor string","value",e),t.inputs=Us(n[2].trim(),!1),Vs(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(zs),Ws=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,[{key:"format",value:function(e){if(e||(e=Ds.sighash),Ds[e]||Cs.throwArgumentError("invalid format type","format",e),e===Ds.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==Ds.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===Ds.full?", ":",")+") ",e!==Ds.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e;"function"!==e.type&&Cs.throwArgumentError("invalid function object","value",e);var t=Gs(e),n={type:e.type,name:Xs(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(Bs.fromObject):[],outputs:e.outputs?e.outputs.map(Bs.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?bn.from(e.gas):null};return new r(Os,n)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=Ys(e,t)).split(" returns ");n.length>2&&Cs.throwArgumentError("invalid function string","value",e);var i=n[0].match($s);if(i||Cs.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&Xs(t.name),t.inputs=Us(i[2],!1),Vs(i[3].trim(),t),n.length>1){var a=n[1].match($s);""==a[1].trim()&&""==a[3].trim()||Cs.throwArgumentError("unexpected tokens","value",e),t.outputs=Us(a[2],!1)}else t.outputs=[];return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(qs);function Qs(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||Cs.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var Ks=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,[{key:"format",value:function(e){if(e||(e=Ds.sighash),Ds[e]||Cs.throwArgumentError("invalid format type","format",e),e===Ds.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==Ds.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===Ds.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e;"error"!==e.type&&Cs.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:Xs(e.name),inputs:e.inputs?e.inputs.map(Bs.fromObject):[]};return Qs(new r(Os,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match($s);return n||Cs.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Xs(t.name),t.inputs=Us(n[2],!1),Qs(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(zs);function Js(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var Zs=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Xs(e){return e&&e.match(Zs)||Cs.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var $s=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var eu=new Ar(hs),tu=new RegExp(/^bytes([0-9]*)$/),ru=new RegExp(/^(u?int)([0-9]*)$/),nu=new(function(){function e(t){f(this,e),Tr(this,"coerceFunc",t||null)}return m(e,[{key:"_getCoder",value:function(e){var t=this;switch(e.baseType){case"address":return new gs(e.name);case"bool":return new _s(e.name);case"string":return new Ts(e.name);case"bytes":return new Ms(e.name);case"array":return new ks(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Ps((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new Ss(e.name)}var r=e.type.match(ru);if(r){var n=parseInt(r[2]||"256");return(0===n||n>256||n%8!==0)&&eu.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Ns(n/8,"int"===r[1],e.name)}if(r=e.type.match(tu)){var i=parseInt(r[1]);return(0===i||i>32)&&eu.throwArgumentError("invalid bytes length","param",e),new As(i,e.name)}return eu.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new vs(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new ms(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(Bs.from(e))}));return new Ps(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this;e.length!==t.length&&eu.throwError("types/values length mismatch",Ar.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(Bs.from(e))})),i=new Ps(n,"_"),a=this._getWriter();return i.encode(a,t),a.data}},{key:"decode",value:function(e,t,r){var n=this,i=e.map((function(e){return n._getCoder(Bs.from(e))}));return new Ps(i,"_").decode(this._getReader(en(t),r))}}]),e}()),iu=new Ar(hs),au=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r)}(Dr),ou=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r)}(Dr),su=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r)}(Dr),uu=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),r}(Dr),lu={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function cu(e,t){var r=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return r.error=t,r}var fu=function(){function e(t){var r=this;f(this,e);Tr(this,"fragments",("string"===typeof t?JSON.parse(t):t).map((function(e){return zs.from(e)})).filter((function(e){return null!=e}))),Tr(this,"_abiCoder",Pr(this instanceof e?this.constructor:void 0,"getAbiCoder")()),Tr(this,"functions",{}),Tr(this,"errors",{}),Tr(this,"events",{}),Tr(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return r.deploy?void iu.warn("duplicate definition - constructor"):void Tr(r,"deploy",e);case"function":t=r.functions;break;case"event":t=r.events;break;case"error":t=r.errors;break;default:return}var n=e.format();t[n]?iu.warn("duplicate definition - "+n):t[n]=e})),this.deploy||Tr(this,"deploy",qs.from({payable:!1,type:"constructor"})),Tr(this,"_isInterface",!0)}return m(e,[{key:"format",value:function(e){e||(e=Ds.full),e===Ds.sighash&&iu.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===Ds.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if(nn(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];iu.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===r}));return 0===n.length?iu.throwArgumentError("no matching function","name",r):n.length>1&&iu.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var i=this.functions[Ws.fromString(e).format()];return i||iu.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if(nn(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];iu.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?iu.throwArgumentError("no matching event","name",n):i.length>1&&iu.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}var a=this.events[Hs.fromString(e).format()];return a||iu.throwArgumentError("no matching event","signature",e),a}},{key:"getError",value:function(e){if(nn(e)){var t=Pr(this.constructor,"getSighash");for(var r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}iu.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===i.length?iu.throwArgumentError("no matching error","name",n):i.length>1&&iu.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}var a=this.errors[Ws.fromString(e).format()];return a||iu.throwArgumentError("no matching error","signature",e),a}},{key:"getSighash",value:function(e){if("string"===typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(Kt){throw t}}return Pr(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),Pr(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"===typeof e&&(e=this.getError(e));var r=en(t);return on(r.slice(0,4))!==this.getSighash(e)&&iu.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",on(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"===typeof e&&(e=this.getError(e)),on(tn([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var r=en(t);return on(r.slice(0,4))!==this.getSighash(e)&&iu.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",on(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),on(tn([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var r=en(t),n=null,i="",a=null,o=null,s=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(c){}break;case 4:var u=on(r.slice(0,4)),l=lu[u];if(l)a=this._abiCoder.decode(l.inputs,r.slice(4)),o=l.name,s=l.signature,l.reason&&(n=a[0]),"Error"===o?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(a[0])):"Panic"===o&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(a[0]));else try{var c=this.getError(u);a=this._abiCoder.decode(c.inputs,r.slice(4)),o=c.name,s=c.format()}catch(c){}}return iu.throwError("call revert exception"+i,Ar.errors.CALL_EXCEPTION,{method:e.format(),data:on(t),errorArgs:a,errorName:o,errorSignature:s,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),on(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this;"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&iu.throwError("too many arguments for "+e.format(),Ar.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var n=[];e.anonymous||n.push(this.getEventTopic(e));var i=function(e,t){return"string"===e.type?$n(t):"bytes"===e.type?An(on(t)):("bool"===e.type&&"boolean"===typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=bn.from(t).toHexString()),"address"===e.type&&r._abiCoder.encode(["address"],[t]),fn(on(t),32))};for(t.forEach((function(t,r){var a=e.inputs[r];a.indexed?null==t?n.push(null):"array"===a.baseType||"tuple"===a.baseType?iu.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?n.push(t.map((function(e){return i(a,e)}))):n.push(i(a,t)):null!=t&&iu.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}},{key:"encodeEventLog",value:function(e,t){var r=this;"string"===typeof e&&(e=this.getEvent(e));var n=[],i=[],a=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&iu.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var s=t[o];if(e.indexed)if("string"===e.type)n.push($n(s));else if("bytes"===e.type)n.push(An(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[s]))}else i.push(e),a.push(s)})),{data:this._abiCoder.encode(i,a),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"===typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);nn(r[0],32)&&r[0].toLowerCase()===n||iu.throwError("fragment/topic mismatch",Ar.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var i=[],a=[],o=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(Bs.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(i.push(e),o.push(!1)):(a.push(e),o.push(!1))}));var s=null!=r?this._abiCoder.decode(i,tn(r)):null,u=this._abiCoder.decode(a,t,!0),l=[],c=0,f=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)l[t]=new uu({_isIndexed:!0,hash:null});else if(o[t])l[t]=new uu({_isIndexed:!0,hash:s[f++]});else try{l[t]=s[f++]}catch(n){l[t]=n}else try{l[t]=u[c++]}catch(n){l[t]=n}if(e.name&&null==l[e.name]){var r=l[t];r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw cu("property ".concat(JSON.stringify(e.name)),r)}}):l[e.name]=r}}));for(var h=function(e){var t=l[e];t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw cu("index ".concat(e),t)}})},d=0;d<l.length;d++)h(d);return Object.freeze(l)}},{key:"parseTransaction",value:function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new ou({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:bn.from(e.value||"0")}):null}},{key:"parseLog",value:function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new au({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}},{key:"parseError",value:function(e){var t=on(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new su({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}}],[{key:"getAbiCoder",value:function(){return nu}},{key:"getAddress",value:function(e){return Hn(e)}},{key:"getSighash",value:function(e){return un($n(e.format()),0,4)}},{key:"getEventTopic",value:function(e){return $n(e.format())}},{key:"isInterface",value:function(e){return!(!e||!e._isInterface)}}]),e}(),hu=function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{u(n.next(e))}catch(oc){a(oc)}}function s(e){try{u(n.throw(e))}catch(oc){a(oc)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}u((n=n.apply(e,t||[])).next())}))},du=new Ar("contracts/5.7.0");function pu(e,t){return hu(this,void 0,void 0,qe().mark((function r(){var n,i;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t;case 2:return"string"!==typeof(n=r.sent)&&du.throwArgumentError("invalid address or ENS name","name",n),r.prev=4,r.abrupt("return",Hn(n));case 8:r.prev=8,r.t0=r.catch(4);case 10:return e||du.throwError("a provider or signer is needed to resolve ENS names",Ar.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),r.next=13,e.resolveName(n);case 13:return null==(i=r.sent)&&du.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r.abrupt("return",i);case 16:case"end":return r.stop()}}),r,null,[[4,8]])})))}function mu(e,t,r){return hu(this,void 0,void 0,qe().mark((function n(){return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=4;break}return n.next=3,Promise.all(r.map((function(r,n){return mu(e,Array.isArray(t)?t[n]:t[r.name],r)})));case 3:case 7:case 11:case 17:return n.abrupt("return",n.sent);case 4:if("address"!==r.type){n.next=8;break}return n.next=7,pu(e,t);case 8:if("tuple"!==r.type){n.next=12;break}return n.next=11,mu(e,t,r.components);case 12:if("array"!==r.baseType){n.next=18;break}if(Array.isArray(t)){n.next=15;break}return n.abrupt("return",Promise.reject(du.makeError("invalid value for array",Ar.errors.INVALID_ARGUMENT,{argument:"value",value:t})));case 15:return n.next=17,Promise.all(t.map((function(t){return mu(e,t,r.arrayChildren)})));case 18:return n.abrupt("return",t);case 19:case"end":return n.stop()}}),n)})))}function vu(e,t,r){return hu(this,void 0,void 0,qe().mark((function n(){var i,a,o,s,u,l,c,f,h,d,p=this;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={},r.length===t.inputs.length+1&&"object"===typeof r[r.length-1]&&(i=Or(r.pop())),du.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?i.from?i.from=Cr({override:pu(e.signer,i.from),signer:e.signer.getAddress()}).then((function(e){return hu(p,void 0,void 0,qe().mark((function t(){return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Hn(e.signer)!==e.override&&du.throwError("Contract with a Signer cannot override from",Ar.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):i.from=e.signer.getAddress():i.from&&(i.from=pu(e.provider,i.from)),n.next=6,Cr({args:mu(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:Cr(i)||{}});case 6:if(a=n.sent,o=e.interface.encodeFunctionData(t,a.args),s={data:o,to:a.address},null!=(u=a.overrides).nonce&&(s.nonce=bn.from(u.nonce).toNumber()),null!=u.gasLimit&&(s.gasLimit=bn.from(u.gasLimit)),null!=u.gasPrice&&(s.gasPrice=bn.from(u.gasPrice)),null!=u.maxFeePerGas&&(s.maxFeePerGas=bn.from(u.maxFeePerGas)),null!=u.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=bn.from(u.maxPriorityFeePerGas)),null!=u.from&&(s.from=u.from),null!=u.type&&(s.type=u.type),null!=u.accessList&&(s.accessList=ya(u.accessList)),null==s.gasLimit&&null!=t.gas){for(l=21e3,c=en(o),f=0;f<c.length;f++)l+=4,c[f]&&(l+=64);s.gasLimit=bn.from(t.gas).add(l)}return u.value&&((h=bn.from(u.value)).isZero()||t.payable||du.throwError("non-payable method cannot override value",Ar.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),s.value=h),u.customData&&(s.customData=Or(u.customData)),u.ccipReadEnabled&&(s.ccipReadEnabled=!!u.ccipReadEnabled),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,delete i.ccipReadEnabled,d=Object.keys(i).filter((function(e){return null!=i[e]})),d.length&&du.throwError("cannot override ".concat(d.map((function(e){return JSON.stringify(e)})).join(",")),Ar.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:d}),n.abrupt("return",s);case 36:case"end":return n.stop()}}),n)})))}function gu(e,t){var r=t.wait.bind(t);t.wait=function(t){return r(t).then((function(t){return t.events=t.logs.map((function(r){var n=Lr(r),i=null;try{i=e.interface.parseLog(r)}catch(oc){}return i&&(n.args=i.args,n.decode=function(t,r){return e.interface.decodeEventLog(i.eventFragment,t,r)},n.event=i.name,n.eventSignature=i.signature),n.removeListener=function(){return e.provider},n.getBlock=function(){return e.provider.getBlock(t.blockHash)},n.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},n.getTransactionReceipt=function(){return Promise.resolve(t)},n})),t}))}}function yu(e,t,r){var n=e.signer||e.provider;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return hu(this,void 0,void 0,qe().mark((function i(){var o,s,u,l,c;return qe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=void 0,a.length!==t.inputs.length+1||"object"!==typeof a[a.length-1]){i.next=9;break}if(null==(s=Or(a.pop())).blockTag){i.next=7;break}return i.next=6,s.blockTag;case 6:o=i.sent;case 7:delete s.blockTag,a.push(s);case 9:if(null==e.deployTransaction){i.next=12;break}return i.next=12,e._deployed(o);case 12:return i.next=14,vu(e,t,a);case 14:return u=i.sent,i.next=17,n.call(u,o);case 17:return l=i.sent,i.prev=18,c=e.interface.decodeFunctionResult(t,l),r&&1===t.outputs.length&&(c=c[0]),i.abrupt("return",c);case 24:throw i.prev=24,i.t0=i.catch(18),i.t0.code===Ar.errors.CALL_EXCEPTION&&(i.t0.address=e.address,i.t0.args=a,i.t0.transaction=u),i.t0;case 28:case"end":return i.stop()}}),i,null,[[18,24]])})))}}function bu(e,t,r){return t.constant?yu(e,t,r):function(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return hu(this,void 0,void 0,qe().mark((function r(){var i,a;return qe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.signer||du.throwError("sending a transaction requires a signer",Ar.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==e.deployTransaction){r.next=4;break}return r.next=4,e._deployed();case 4:return r.next=6,vu(e,t,n);case 6:return i=r.sent,r.next=9,e.signer.sendTransaction(i);case 9:return a=r.sent,gu(e,a),r.abrupt("return",a);case 12:case"end":return r.stop()}}),r)})))}}(e,t)}function wu(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((function(e){return Array.isArray(e)?e.join("|"):e})).join(":"):""):"*"}var xu=function(){function e(t,r){f(this,e),Tr(this,"tag",t),Tr(this,"filter",r),this._listeners=[]}return m(e,[{key:"addListener",value:function(e,t){this._listeners.push({listener:e,once:t})}},{key:"removeListener",value:function(e){var t=!1;this._listeners=this._listeners.filter((function(r){return!(!t&&r.listener===e)||(t=!0,!1)}))}},{key:"removeAllListeners",value:function(){this._listeners=[]}},{key:"listeners",value:function(){return this._listeners.map((function(e){return e.listener}))}},{key:"listenerCount",value:function(){return this._listeners.length}},{key:"run",value:function(e){var t=this,r=this.listenerCount();return this._listeners=this._listeners.filter((function(r){var n=e.slice();return setTimeout((function(){r.listener.apply(t,n)}),0),!r.once})),r}},{key:"prepareEvent",value:function(e){}},{key:"getEmit",value:function(e){return[e]}}]),e}(),ku=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.call(this,"error",null)}return m(r)}(xu),_u=function(e){g(r,e);var t=x(r);function r(e,n,i,a){var o;f(this,r);var s={address:e},u=n.getEventTopic(i);return a?(u!==a[0]&&du.throwArgumentError("topic mismatch","topics",a),s.topics=a.slice()):s.topics=[u],Tr(w(o=t.call(this,wu(s),s)),"address",e),Tr(w(o),"interface",n),Tr(w(o),"fragment",i),o}return m(r,[{key:"prepareEvent",value:function(e){var t=this;Br(y(r.prototype),"prepareEvent",this).call(this,e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=function(e,r){return t.interface.decodeEventLog(t.fragment,e,r)};try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}},{key:"getEmit",value:function(e){var t=function(e){var t=[];return function e(r,n){if(Array.isArray(n))for(var i in n){var a=r.slice();a.push(i);try{e(a,n[i])}catch(o){t.push({path:a,error:o})}}}([],e),t}(e.args);if(t.length)throw t[0].error;var r=(e.args||[]).slice();return r.push(e),r}}]),r}(xu),Eu=function(e){g(r,e);var t=x(r);function r(e,n){var i;return f(this,r),Tr(w(i=t.call(this,"*",{address:e})),"address",e),Tr(w(i),"interface",n),i}return m(r,[{key:"prepareEvent",value:function(e){var t=this;Br(y(r.prototype),"prepareEvent",this).call(this,e);try{var n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=function(e,r){return t.interface.decodeEventLog(n.eventFragment,e,r)},e.args=n.args}catch(i){}}}]),r}(xu),Mu=function(){function e(t,r,n){var i=this;f(this,e),Tr(this,"interface",Pr(this instanceof e?this.constructor:void 0,"getInterface")(r)),null==n?(Tr(this,"provider",null),Tr(this,"signer",null)):Vr.isSigner(n)?(Tr(this,"provider",n.provider||null),Tr(this,"signer",n)):Da.isProvider(n)?(Tr(this,"provider",n),Tr(this,"signer",null)):du.throwArgumentError("invalid signer or provider","signerOrProvider",n),Tr(this,"callStatic",{}),Tr(this,"estimateGas",{}),Tr(this,"functions",{}),Tr(this,"populateTransaction",{}),Tr(this,"filters",{});var a={};if(Object.keys(this.interface.events).forEach((function(e){var t=i.interface.events[e];Tr(i.filters,e,(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return{address:i.address,topics:i.interface.encodeFilterTopics(t,r)}})),a[t.name]||(a[t.name]=[]),a[t.name].push(e)})),Object.keys(a).forEach((function(e){var t=a[e];1===t.length?Tr(i.filters,e,i.filters[t[0]]):du.warn("Duplicate definition of ".concat(e," (").concat(t.join(", "),")"))})),Tr(this,"_runningEvents",{}),Tr(this,"_wrappedEmits",{}),null==t&&du.throwArgumentError("invalid contract address or ENS name","addressOrName",t),Tr(this,"address",t),this.provider)Tr(this,"resolvedAddress",pu(this.provider,t));else try{Tr(this,"resolvedAddress",Promise.resolve(Hn(t)))}catch(u){du.throwError("provider is required to use ENS name as contract address",Ar.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((function(e){}));var o={},s={};Object.keys(this.interface.functions).forEach((function(e){var t=i.interface.functions[e];if(s[e])du.warn("Duplicate ABI entry for ".concat(JSON.stringify(e)));else{s[e]=!0;var r=t.name;o["%".concat(r)]||(o["%".concat(r)]=[]),o["%".concat(r)].push(e),null==i[e]&&Tr(i,e,bu(i,t,!0)),null==i.functions[e]&&Tr(i.functions,e,bu(i,t,!1)),null==i.callStatic[e]&&Tr(i.callStatic,e,yu(i,t,!0)),null==i.populateTransaction[e]&&Tr(i.populateTransaction,e,function(e,t){return function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return vu(e,t,n)}}(i,t)),null==i.estimateGas[e]&&Tr(i.estimateGas,e,function(e,t){var r=e.signer||e.provider;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return hu(this,void 0,void 0,qe().mark((function n(){var a;return qe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r||du.throwError("estimate require a provider or signer",Ar.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),n.next=3,vu(e,t,i);case 3:return a=n.sent,n.next=6,r.estimateGas(a);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))}}(i,t))}})),Object.keys(o).forEach((function(e){var t=o[e];if(!(t.length>1)){e=e.substring(1);var r=t[0];try{null==i[e]&&Tr(i,e,i[r])}catch(oc){}null==i.functions[e]&&Tr(i.functions,e,i.functions[r]),null==i.callStatic[e]&&Tr(i.callStatic,e,i.callStatic[r]),null==i.populateTransaction[e]&&Tr(i.populateTransaction,e,i.populateTransaction[r]),null==i.estimateGas[e]&&Tr(i.estimateGas,e,i.estimateGas[r])}}))}return m(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&du.throwError("contract not deployed",Ar.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||du.throwError("sending a transactions require a signer",Ar.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=Or(e||{});return["from","to"].forEach((function(e){null!=r[e]&&du.throwError("cannot override "+e,Ar.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))}},{key:"connect",value:function(e){"string"===typeof e&&(e=new Gr(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&Tr(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new ku);if("event"===e)return this._normalizeRunningEvent(new xu("event",null));if("*"===e)return this._normalizeRunningEvent(new Eu(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new _u(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0];if("string"!==typeof r)throw new Error("invalid topic");var n=this.interface.getEvent(r);return this._normalizeRunningEvent(new _u(this.address,this.interface,n,e.topics))}catch(a){}var i={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new xu(wu(i),i))}return this._normalizeRunningEvent(new Eu(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,r){var n=this,i=Lr(t);return i.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},i.getBlock=function(){return n.provider.getBlock(t.blockHash)},i.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,r){var n=this;if(this.provider||du.throwError("events require a provider or a signer with a provider",Ar.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(r){var i=n._wrapEvent(e,r,t);if(null==i.decodeError)try{var a=e.getEmit(i);n.emit.apply(n,[e.filter].concat(c(a)))}catch(o){i.decodeError=o.error}null!=e.filter&&n.emit("event",i),null!=i.decodeError&&n.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,r){var n=this,i=this._getRunningEvent(e),a=Or(i.filter);return"string"===typeof t&&nn(t,32)?(null!=r&&du.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),a.blockHash=t):(a.fromBlock=null!=t?t:0,a.toBlock=null!=r?r:"latest"),this.provider.getLogs(a).then((function(e){return e.map((function(e){return n._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];var a=t.run(n)>0;return this._checkRunningEvents(t),a}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){if(!this.provider)return[];if(null==e){var t=[];for(var r in this._runningEvents)this._runningEvents[r].listeners().forEach((function(e){t.push(e)}));return t}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return Yn(e)}},{key:"getInterface",value:function(e){return fu.isInterface(e)?e:new fu(e)}},{key:"isIndexed",value:function(e){return uu.isIndexed(e)}}]),e}(),Au=function(e){g(r,e);var t=x(r);function r(){return f(this,r),t.apply(this,arguments)}return m(r)}(Mu),Su=new Ar(dn),Nu={},Tu=bn.from(0),Pu=bn.from(-1);function Cu(e,t,r,n){var i={fault:t,operation:r};return void 0!==n&&(i.value=n),Su.throwError(e,Ar.errors.NUMERIC_FAULT,i)}for(var Ou="0";Ou.length<256;)Ou+=Ou;function Ru(e){if("number"!==typeof e)try{e=bn.from(e).toNumber()}catch(oc){}return"number"===typeof e&&e>=0&&e<=256&&!(e%1)?"1"+Ou.substring(0,e):Su.throwArgumentError("invalid decimal size","decimals",e)}function Iu(e,t){null==t&&(t=0);var r=Ru(t),n=(e=bn.from(e)).lt(Tu);n&&(e=e.mul(Pu));for(var i=e.mod(r).toString();i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var a=e.div(r).toString();return e=1===r.length?a:a+"."+i,n&&(e="-"+e),e}function ju(e,t){null==t&&(t=0);var r=Ru(t);"string"===typeof e&&e.match(/^-?[0-9.]+$/)||Su.throwArgumentError("invalid decimal value","value",e);var n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&Su.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&Su.throwArgumentError("too many decimal points","value",e);var a=i[0],o=i[1];for(a||(a="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>r.length-1&&Cu("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length<r.length-1;)o+="0";var s=bn.from(a),u=bn.from(o),l=s.mul(r).add(u);return n&&(l=l.mul(Pu)),l}var Lu=function(){function e(t,r,n,i){f(this,e),t!==Nu&&Su.throwError("cannot use FixedFormat constructor; use FixedFormat.from",Ar.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=i,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(i),this._multiplier=Ru(i),Object.freeze(this)}return m(e,null,[{key:"from",value:function(t){if(t instanceof e)return t;"number"===typeof t&&(t="fixed128x".concat(t));var r=!0,n=128,i=18;if("string"===typeof t)if("fixed"===t);else if("ufixed"===t)r=!1;else{var a=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);a||Su.throwArgumentError("invalid fixed format","format",t),r="u"!==a[1],n=parseInt(a[2]),i=parseInt(a[3])}else if(t){var o=function(e,r,n){return null==t[e]?n:(typeof t[e]!==r&&Su.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e])};r=o("signed","boolean",r),n=o("width","number",n),i=o("decimals","number",i)}return n%8&&Su.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Su.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(Nu,r,n,i)}}]),e}(),Du=function(){function e(t,r,n,i){f(this,e),t!==Nu&&Su.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Ar.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return m(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&Su.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var r=ju(this._value,this.format.decimals),n=ju(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var r=ju(this._value,this.format.decimals),n=ju(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var r=ju(this._value,this.format.decimals),n=ju(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var r=ju(this._value,this.format.decimals),n=ju(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(Fu.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(Fu.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0);var r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&Su.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+Ou.substring(0,t),this.format),i=Bu.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){return null==e?this._hex:(e%8&&Su.throwArgumentError("invalid byte width","width",e),fn(bn.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||function(e){return null!=e&&(bn.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||nn(e)||"bigint"===typeof e||$r(e))}(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(Iu(t,r),Lu.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed");var n=Lu.from(r),i=ju(t,n.decimals);!n.signed&&i.lt(Tu)&&Cu("unsigned value cannot be negative","overflow","value",t);var a=null;a=n.signed?i.toTwos(n.width).toHexString():fn(a=i.toHexString(),n.width/8);var o=Iu(i,n.decimals);return new e(Nu,a,o,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed");var n=Lu.from(r);if(en(t).length>n.width/8)throw new Error("overflow");var i=bn.from(t);n.signed&&(i=i.fromTwos(n.width));var a=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=Iu(i,n.decimals);return new e(Nu,a,o,n)}},{key:"from",value:function(t,r){if("string"===typeof t)return e.fromString(t,r);if($r(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(n){if(n.code!==Ar.errors.INVALID_ARGUMENT)throw n}return Su.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),Fu=Du.from(1),Bu=Du.from("0.5"),Uu=new Ar("units/5.7.0"),zu=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Hu(e){return function(e,t){if("string"!==typeof e&&Uu.throwArgumentError("value must be a string","value",e),"string"===typeof t){var r=zu.indexOf(t);-1!==r&&(t=3*r)}return ju(e,null!=t?t:18)}(e,18)}var Yu,Vu=window.ethereum,Gu=vr.L,qu=mr.Mt,Wu=function(){var e=Qe(qe().mark((function e(){var t,r;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Vu.request({method:"eth_requestAccounts"});case 5:r=e.sent,rt("connectedAccount",null===(t=r[0])||void 0===t?void 0:t.toLowerCase()),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),cl(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),Qu=function(){var e=Qe(qe().mark((function e(){var t,r,n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Vu.request({method:"eth_accounts"});case 5:r=e.sent,rt("connectedAccount",null===(t=r[0])||void 0===t?void 0:t.toLowerCase()),window.ethereum.on("chainChanged",(function(e){window.location.reload()})),window.ethereum.on("accountsChanged",Qe(qe().mark((function e(){var t;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rt("connectedAccount",null===(t=r[0])||void 0===t?void 0:t.toLowerCase()),e.next=3,Qu();case 3:case"end":return e.stop()}}),e)})))),r.length?rt("connectedAccount",null===(n=r[0])||void 0===n?void 0:n.toLowerCase()):(alert("Harap sambungkan dompet."),console.log("Tidak ada akun yang ditemukan.")),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),cl(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),Ku=function(){var e=Qe(qe().mark((function e(){var t,r,n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!it("connectedAccount")){e.next=8;break}return t=new fs(Vu),r=t.getSigner(),n=new Au(Gu,qu,r),e.abrupt("return",n);case 8:return e.abrupt("return",it("contract"));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ju=function(){var e=Qe(qe().mark((function e(t){var r,n,i,a,o,s,u;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.title,n=t.description,i=t.imageURL,a=t.cost,o=t.expiresAt,s=t.category,e.prev=1,Vu){e.next=4;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 4:return e.next=6,Ku();case 6:return u=e.sent,a=Hu(a),e.next=10,u.createProject(r,n,i,s,a,o);case 10:return Yu=e.sent,e.next=13,Yu.wait();case 13:return e.next=15,$u();case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),cl(e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])})));return function(t){return e.apply(this,arguments)}}(),Zu=function(){var e=Qe(qe().mark((function e(t){var r,n,i,a,o,s;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.id,n=t.title,i=t.description,a=t.imageURL,o=t.expiresAt,e.prev=1,Vu){e.next=4;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 4:return e.next=6,Ku();case 6:return s=e.sent,e.next=9,s.updateProject(r,n,i,a,o);case 9:return Yu=e.sent,e.next=12,Yu.wait();case 12:return e.next=14,el(r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),cl(e.t0);case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t){return e.apply(this,arguments)}}(),Xu=function(){var e=Qe(qe().mark((function e(t){var r;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Ku();case 5:return r=e.sent,e.next=8,r.deleteProject(t);case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),cl(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),$u=function(){var e=Qe(qe().mark((function e(){var t,r,n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Ku();case 5:return t=e.sent,e.next=8,t.getProjects();case 8:return r=e.sent,e.next=11,t.stats();case 11:n=e.sent,rt("stats",ll(n)),rt("projects",sl(r)),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(0),cl(e.t0);case 19:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}(),el=function(){var e=Qe(qe().mark((function e(t){var r,n,i;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Ku();case 5:return r=e.sent,e.next=8,r.getProject(t);case 8:return n=e.sent,e.next=11,r.getComments(t);case 11:i=e.sent,rt("project",Ot(Ot({},sl([n])[0]),{},{comments:ol(i)})),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),alert(JSON.stringify(e.t0.message)),cl(e.t0);case 19:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t){return e.apply(this,arguments)}}(),tl=function(){var e=Qe(qe().mark((function e(t,r){var n,i;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return n=it("connectedAccount"),e.next=6,Ku();case 6:return i=e.sent,r=Hu(r),e.next=10,i.backProject(t,{from:n,value:r._hex});case 10:return Yu=e.sent,e.next=13,Yu.wait();case 13:return e.next=15,rl(t);case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(0),cl(e.t0);case 20:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(t,r){return e.apply(this,arguments)}}(),rl=function(){var e=Qe(qe().mark((function e(t){var r,n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Ku();case 5:return r=e.sent,e.next=8,r.getBackers(t);case 8:n=e.sent,rt("backers",al(n)),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),cl(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}(),nl=function(){var e=Qe(qe().mark((function e(t){var r,n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return r=it("connectedAccount"),e.next=6,Ku();case 6:return n=e.sent,e.next=9,n.payOutProject(t,{from:r});case 9:return Yu=e.sent,e.next=12,Yu.wait();case 12:return e.next=14,rl(t);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(0),cl(e.t0);case 19:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(t){return e.apply(this,arguments)}}(),il=function(){var e=Qe(qe().mark((function e(t,r){var n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,Vu){e.next=3;break}return e.abrupt("return",alert("Silahkan install Metamask"));case 3:return e.next=5,Ku();case 5:return n=e.sent,e.next=8,n.addComment(t,r);case 8:return Yu=e.sent,e.next=11,Yu.wait();case 11:return e.next=13,el(t);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),cl(e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t,r){return e.apply(this,arguments)}}(),al=function(e){return e.map((function(e){return{owner:e.owner.toLowerCase(),refunded:e.refunded,timestamp:new Date(1e3*e.timestamp.toNumber()).toJSON(),contribution:parseInt(e.contribution._hex)/Math.pow(10,18)}})).reverse()},ol=function(e){return e.map((function(e){return{commenter:e.commenter.toLowerCase(),comment:e.comment,timestamp:new Date(1e3*e.timestamp.toNumber()).toJSON()}})).reverse()},sl=function(e){return e.map((function(e){return{id:e.id.toNumber(),owner:e.owner.toLowerCase(),title:e.title,description:e.description,timestamp:new Date(e.timestamp.toNumber()).getTime(),expiresAt:new Date(e.expiresAt.toNumber()).getTime(),date:ul(1e3*e.expiresAt.toNumber()),imageURL:e.imageURL,category:e.category,raised:parseInt(e.raised._hex)/Math.pow(10,18),cost:parseInt(e.cost._hex)/Math.pow(10,18),backers:e.backers.toNumber(),status:e.status}})).reverse()},ul=function(e){var t=new Date(e),r=t.getDate()>9?t.getDate():"0".concat(t.getDate()),n=t.getMonth()+1>9?t.getMonth()+1:"0".concat(t.getMonth()+1),i=t.getFullYear();return"".concat(i,"-").concat(n,"-").concat(r)},ll=function(e){return{totalProjects:e.totalProjects.toNumber(),totalBacking:e.totalBacking.toNumber(),totalDonations:parseInt(e.totalDonations._hex)/Math.pow(10,18)}},cl=function(e){console.log(e.message)},fl=r.p+"static/media/crowd.8559590cdbd5fdf9d435.png",hl=r(7),dl=r.n(hl),pl=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ml.apply(this,arguments)}function vl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gl(e,t){return gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gl(e,t)}var yl=function(e){var r,n;function i(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(vl(t)),t.handleErrored=t.handleErrored.bind(vl(t)),t.handleChange=t.handleChange.bind(vl(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(vl(t)),t}n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,gl(r,n);var a=i.prototype;return a.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},a.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},a.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},a.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},a.executeAsync=function(){var e=this;return new Promise((function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()}))},a.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},a.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},a.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},a.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},a.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},a.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},a.componentDidMount=function(){this.explicitRender()},a.componentDidUpdate=function(){this.explicitRender()},a.handleRecaptchaRef=function(e){this.captcha=e},a.render=function(){var e=this.props,r=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,pl));return t.createElement("div",ml({},r,{ref:this.handleRecaptchaRef}))},i}(t.Component);yl.displayName="ReCAPTCHA",yl.propTypes={sitekey:dl().string.isRequired,onChange:dl().func,grecaptcha:dl().object,theme:dl().oneOf(["dark","light"]),type:dl().oneOf(["image","audio"]),tabindex:dl().number,onExpired:dl().func,onErrored:dl().func,size:dl().oneOf(["compact","normal","invisible"]),stoken:dl().string,hl:dl().string,badge:dl().oneOf(["bottomright","bottomleft","inline"]),isolated:dl().bool},yl.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var bl=r(110),wl=r.n(bl);function xl(){return xl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xl.apply(this,arguments)}var kl={},_l=0;var El="onloadcallback";function Ml(){return"undefined"!==typeof window&&window.recaptchaOptions||{}}var Al,Sl,Nl=(Al=function(){var e=Ml(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+El+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+El+"&render=explicit"},Sl=(Sl={callbackName:El,globalName:"grecaptcha",attributes:Ml().nonce?{nonce:Ml().nonce}:{}})||{},function(e){var r=e.displayName||e.name||"Component",n=function(r){var n,i;function a(e,t){var n;return(n=r.call(this,e,t)||this).state={},n.__scriptURL="",n}i=r,(n=a).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var o=a.prototype;return o.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+_l++),this.__scriptLoaderID},o.setupScriptURL=function(){return this.__scriptURL="function"===typeof Al?Al():Al,this.__scriptURL},o.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},o.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=kl[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[Sl.callbackName]},o.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=Sl,i=n.globalName,a=n.callbackName,o=n.scriptId;if(i&&"undefined"!==typeof window[i]&&(kl[t]={loaded:!0,observers:{}}),kl[t]){var s=kl[t];return s&&(s.loaded||s.errored)?void this.asyncScriptLoaderHandleLoad(s):void(s.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var u={};u[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},kl[t]={loaded:!1,observers:u};var l=document.createElement("script");for(var c in l.src=t,l.async=!0,Sl.attributes)l.setAttribute(c,Sl.attributes[c]);o&&(l.id=o);var f=function(e){if(kl[t]){var r=kl[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!==typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),l.onload=function(){var e=kl[t];e&&(e.loaded=!0,f((function(t){return!a&&(t(e),!0)})))},l.onerror=function(){var e=kl[t];e&&(e.errored=!0,f((function(t){return t(e),!0})))},document.body.appendChild(l)},o.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===Sl.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=kl[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===Sl.removeOnUnmount&&delete kl[e])},o.render=function(){var r=Sl.globalName,n=this.props,i=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(n,["asyncScriptOnLoad","forwardedRef"]);return r&&"undefined"!==typeof window&&(a[r]="undefined"!==typeof window[r]?window[r]:void 0),a.ref=i,(0,t.createElement)(e,a)},a}(t.Component),i=(0,t.forwardRef)((function(e,r){return(0,t.createElement)(n,xl({},e,{forwardedRef:r}))}));return i.displayName="AsyncScriptLoader("+r+")",i.propTypes={asyncScriptOnLoad:dl().func},wl()(i,e)})(yl),Tl=Nl,Pl=function(){var e=u(nt("createModal"),1)[0],r=u((0,t.useState)(""),2),n=r[0],i=r[1],a=u((0,t.useState)(""),2),o=a[0],s=a[1],l=u((0,t.useState)(""),2),c=l[0],f=l[1],h=u((0,t.useState)(""),2),d=(h[0],h[1]),p=u((0,t.useState)(""),2),m=(p[0],p[1]),v=u((0,t.useState)(""),2),g=v[0],y=v[1],b=u((0,t.useState)(""),2),w=b[0],x=b[1],k=u((0,t.useState)(""),2),_=k[0],E=k[1],M=u((0,t.useState)(""),2),A=M[0],S=M[1],N=u((0,t.useState)(""),2),T=N[0],P=N[1],C=u((0,t.useState)("IDR"),2),O=C[0],R=C[1],I=u((0,t.useState)(null),2),j=I[0],L=I[1],D=(0,t.useRef)(null);(0,t.useEffect)((function(){var e=function(){var e=Qe(qe().mark((function e(){var t,r,n,i,a,o;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=idr,usd");case 3:return t=e.sent,e.next=6,t.json();case 6:r=e.sent,n=r.ethereum.idr,i=r.ethereum.usd,n&&c&&(d((a=c*n).toFixed(2)),y(F(a.toFixed(2)))),i&&c&&(m((o=c*i).toFixed(2)),x(F(o.toFixed(2)))),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("Tingkat konversi terdapat kesalahan:",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}();e()}),[c]);var F=function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},B=function(){var e=Qe(qe().mark((function e(t){var r;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),n&&o&&c&&_&&A&&T&&j){e.next=3;break}return e.abrupt("return");case 3:return r={title:n,description:o,cost:c,expiresAt:(i=_,Date.parse(i)/1e3),imageURL:A,category:T},e.next=6,Ju(r);case 6:or.success("Project telah berhasil dibuat."),U();case 8:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){rt("createModal","scale-0"),z()},z=function(){i(""),f(""),d(""),m(""),y(""),x(""),s(""),S(""),E(""),P(""),L(null),D.current.reset()};return(0,mt.jsx)("div",{className:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-black bg-opacity-50 transform transition-transform duration-300 ".concat(e),onClick:function(e){e.target===e.currentTarget&&U()},children:(0,mt.jsx)("div",{className:"bg-white shadow-xl rounded-xl w-11/12 md:w-2/5 p-8",style:{maxHeight:"80vh",overflowY:"auto"},children:(0,mt.jsxs)("form",{onSubmit:B,className:"flex flex-col",children:[(0,mt.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,mt.jsx)("p",{className:"text-2xl font-semibold",children:"Tambah Project"}),(0,mt.jsx)("button",{onClick:U,type:"button",className:"text-gray-400 hover:text-gray-600 transition-colors duration-300",children:(0,mt.jsx)(Tt,{size:24})})]}),(0,mt.jsx)("div",{className:"flex justify-center items-center mb-6",children:(0,mt.jsx)("div",{className:"rounded-xl overflow-hidden h-20 w-20",children:(0,mt.jsx)("img",{src:A||fl,alt:"project title",className:"h-full w-full object-cover cursor-pointer"})})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsxs)("select",{value:T,onChange:function(e){return P(e.target.value)},className:"block w-full bg-gray-100 border border-gray-300 rounded-lg text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",required:!0,children:[(0,mt.jsx)("option",{value:"",children:"Pilih Kategori"}),(0,mt.jsx)("option",{value:"Teknologi Informasi",children:"Teknologi Informasi"}),(0,mt.jsx)("option",{value:"Keuangan",children:"Keuangan"}),(0,mt.jsx)("option",{value:"Kesehatan",children:"Kesehatan"}),(0,mt.jsx)("option",{value:"Pendidikan",children:"Pendidikan"}),(0,mt.jsx)("option",{value:"Seni dan Budaya",children:"Seni dan Budaya"}),(0,mt.jsx)("option",{value:"Lingkungan",children:"Lingkungan"})]})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",type:"text",name:"title",placeholder:"Judul",onChange:function(e){return i(e.target.value)},value:n,required:!0})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsxs)("div",{className:"flex items-center bg-gray-100 border border-gray-300 rounded-lg",children:[(0,mt.jsx)(gt,{className:"text-gray-500 ml-3"}),(0,mt.jsx)("input",{className:"block w-full bg-transparent border-0 text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",type:"number",step:1e-4,min:1e-4,name:"costETH",placeholder:"Biaya (ETH)",onChange:function(e){return f(e.target.value)},value:c,required:!0})]})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsxs)("div",{className:"flex items-center bg-gray-100 border border-gray-300 rounded-lg",children:[(0,mt.jsx)("span",{className:"text-gray-500 ml-3",children:"IDR"===O?"Rp":"$"}),(0,mt.jsx)("input",{className:"block w-full bg-transparent border-0 text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",type:"text",name:"costCurrency",placeholder:"Biaya (".concat(O,")"),value:"IDR"===O?g:w,readOnly:!0}),(0,mt.jsx)("button",{type:"button",className:"ml-4 text-sm text-blue-500 px-2",onClick:function(){R("IDR"===O?"USD":"IDR")},children:"IDR"===O?"Tampilkan USD":"Tampilkan IDR"})]})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",type:"date",name:"date",placeholder:"Tanggal Berakhir",onChange:function(e){return E(e.target.value)},value:_,required:!0})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",type:"url",name:"imageURL",placeholder:"URL Gambar",onChange:function(e){return S(e.target.value)},value:A,required:!0})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsx)("textarea",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg text-gray-700 py-2 px-3 leading-tight focus:outline-none focus:bg-white focus:border-gray-500",type:"text",name:"description",placeholder:"Deskripsi",onChange:function(e){return s(e.target.value)},value:o,required:!0,rows:"4"})}),(0,mt.jsx)("div",{className:"mb-6",children:(0,mt.jsx)(Tl,{sitekey:"6LfV__4pAAAAAPXf2ldifkouTbRjlz8nM_kUmf1t",onChange:function(e){L(e)},ref:D})}),(0,mt.jsx)("button",{type:"submit",className:"inline-block w-full px-6 py-3 bg-green-600 text-white font-medium text-lg leading-tight rounded-lg shadow-md hover:bg-green-700 transition duration-300",children:"Buat Project"})]})})})},Cl=function(){var e=u(nt("stats"),1)[0];return(0,mt.jsxs)("div",{className:"text-center bg-black text-white py-20 px-6",children:[(0,mt.jsxs)("h1",{className:"text-5xl md:text-6xl xl:text-7xl font-bold tracking-tight mb-12",children:[(0,mt.jsx)("span",{className:"capitalize",children:"Wujudkan Project Bersama"}),(0,mt.jsx)("br",{}),(0,mt.jsx)("span",{className:"uppercase text-green-600",children:"blockxstarter"})]}),(0,mt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 mt-10",children:[(0,mt.jsxs)("div",{className:"flex flex-col justify-center items-center h-32 bg-gray-800 rounded-lg shadow-lg p-4",children:[(0,mt.jsx)(Nt,{className:"text-3xl text-[#3ABEF9] mb-2"}),(0,mt.jsx)("span",{className:"text-2xl font-bold text-[#3ABEF9] leading-5",children:(null===e||void 0===e?void 0:e.totalProjects)||0}),(0,mt.jsx)("span",{className:"text-lg",children:"Total Project"})]}),(0,mt.jsxs)("div",{className:"flex flex-col justify-center items-center h-32 bg-gray-800 rounded-lg shadow-lg p-4",children:[(0,mt.jsx)(Mt,{className:"text-3xl text-[#3ABEF9] mb-2"}),(0,mt.jsx)("span",{className:"text-2xl font-bold text-[#3ABEF9] leading-5",children:(null===e||void 0===e?void 0:e.totalBacking)||0}),(0,mt.jsx)("span",{className:"text-lg",children:"Total Dukungan"})]}),(0,mt.jsxs)("div",{className:"flex flex-col justify-center items-center h-32 bg-gray-800 rounded-lg shadow-lg p-4",children:[(0,mt.jsx)(_t,{className:"text-3xl text-[#3ABEF9] mb-2"}),(0,mt.jsxs)("span",{className:"text-2xl font-bold text-[#3ABEF9] leading-5",children:[(null===e||void 0===e?void 0:e.totalDonations)||0," ETH"]}),(0,mt.jsx)("span",{className:"text-lg",children:"Total Donasi"})]})]})]})},Ol=r(309),Rl=r.n(Ol),Il=function(e){var t=e.project,r=(new Date).getTime()>Number((null===t||void 0===t?void 0:t.expiresAt)+"000");return(0,mt.jsx)("div",{id:"projects",className:"rounded-lg shadow-lg bg-white hover:shadow-xl transition duration-300",children:(0,mt.jsxs)(Ye,{to:"/projects/"+t.id,className:"block",children:[(0,mt.jsx)("div",{className:"overflow-hidden rounded-t-lg",children:(0,mt.jsx)("img",{src:t.imageURL,alt:t.title,className:"h-64 w-full object-cover transform hover:scale-105 transition duration-300"})}),(0,mt.jsxs)("div",{className:"p-4",children:[(0,mt.jsx)("h5",{className:"text-xl font-semibold mb-2",children:at(t.title,25,0,28)}),(0,mt.jsxs)("div",{className:"flex items-center mb-3",children:[(0,mt.jsx)(Rl(),{className:"rounded-full shadow-md",string:t.owner,size:15}),(0,mt.jsx)("small",{className:"text-gray-700 ml-2",children:at(t.owner,4,4,11)})]}),(0,mt.jsx)("small",{className:"text-gray-500 block mb-3",children:r?"Berakhir":"".concat(ot(t.expiresAt)," tersisa")}),(0,mt.jsx)("div",{className:"w-full bg-gray-200 h-2 rounded-full overflow-hidden mb-3",children:(0,mt.jsx)("div",{className:"bg-green-600 h-full text-xs font-medium text-green-100 text-center leading-none",style:{width:"".concat(t.raised/t.cost*100,"%")}})}),(0,mt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,mt.jsxs)("div",{children:[(0,mt.jsxs)("small",{className:"text-sm font-bold",children:[t.raised," ETH Terkumpul (",(t.raised/t.cost*100).toFixed(2),"%)"]}),(0,mt.jsxs)("small",{className:"text-xs flex items-center text-gray-500 mt-1",children:[(0,mt.jsx)(gt,{className:"mr-1"}),(0,mt.jsxs)("span",{children:[t.cost," ETH"]})]})]}),(0,mt.jsx)("small",{className:"text-sm font-bold ".concat(r?"text-red-500":0===t.status?"text-blue-500":1===t.status?"text-green-500":2===t.status?"text-orange-500":3===t.status?"text-gray-600":"text-purple-500"),children:r?"Berakhir":0===t.status?"Terbuka":1===t.status?"Diterima":2===t.status?"Dikembalikan":3===t.status?"Dihapus":"Dibayar"})]}),(0,mt.jsxs)("div",{className:"flex justify-between items-center text-sm font-bold",children:[(0,mt.jsxs)("small",{children:[t.backers," Dukungan",(t.backers,"")]}),(0,mt.jsx)("small",{className:"text-gray-500",children:(0,mt.jsx)("span",{className:"bg-gray-200 text-gray-700 rounded-full px-2 py-1 text-xs font-semibold",children:t.category})})]})]})]})})},jl=function(e){var r=e.projects,n=u((0,t.useState)(4),2),i=n[0],a=n[1],o=u((0,t.useState)(4),1)[0],s=u((0,t.useState)([]),2),l=s[0],c=s[1],f=u((0,t.useState)(null),2),h=f[0],d=f[1];return(0,t.useEffect)((function(){c(h?r.filter((function(e){return e.category===h})).slice(0,i):r.slice(0,i))}),[r,i,h]),(0,t.useEffect)((function(){var e=function(){window.innerHeight+window.scrollY>=document.body.offsetHeight-100&&r.length>l.length&&a(i+o)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[i,l,r,o]),(0,mt.jsxs)("div",{className:"flex flex-col px-6 mb-7",children:[(0,mt.jsx)("div",{className:"flex justify-center gap-4 mb-5 py-3 flex-wrap",children:["Semua","Teknologi Informasi","Keuangan","Kesehatan","Pendidikan","Seni dan Budaya","Lingkungan"].map((function(e,t){return(0,mt.jsx)("button",{className:"text-sm font-medium py-1.5 px-4 rounded-full shadow-md transition-transform duration-300 ".concat(h===("Semua"===e?null:e)?"bg-blue-600 text-white transform scale-105":"bg-white text-blue-600 border border-blue-600 hover:bg-blue-100"),onClick:function(){return function(e){d(e),a(4)}("Semua"===e?null:e)},children:e},t)}))}),(0,mt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:l.map((function(e,t){return(0,mt.jsx)(Il,{project:e},t)}))})]})},Ll=r.p+"static/media/logo.c113459be1a6e40014fa.png",Dl=function(){var e=u(nt("connectedAccount"),1)[0],r=u((0,t.useState)(!1),2),n=r[0],i=r[1],a=ye();return(0,mt.jsxs)("header",{className:"flex justify-between items-center h-24 max-w-[1940px] mx-auto px-4 bg-black",children:[(0,mt.jsx)(Ye,{to:"/",children:(0,mt.jsx)("img",{src:Ll,alt:"/",style:{width:"200px",height:"auto"}})}),(0,mt.jsxs)("div",{className:"flex space-x-4 justify-center relative",children:[(0,mt.jsxs)("button",{type:"button",className:"inline-flex items-center px-4 py-2 text-white bg-[#2e3033] border border-[#2e3033] rounded-md transition duration-300 hover:bg-[#0e0f10] hover:border-[#0e0f10]",onClick:function(){i(!n)},children:[(0,mt.jsx)(kt,{}),(0,mt.jsx)("span",{className:"ml-2",children:"Menu"})]}),n&&(0,mt.jsxs)("div",{className:"absolute z-10 top-full left-0 w-48 bg-white border rounded shadow-md",onMouseLeave:function(){i(!1)},children:[(0,mt.jsxs)(Ye,{to:"/",className:"block px-4 py-2 text-gray-800 hover:bg-gray-200",children:[(0,mt.jsx)(At,{className:"inline-block mr-2"})," Halaman Utama"]}),(0,mt.jsxs)(Ye,{to:"/projects",className:"block px-4 py-2 text-gray-800 hover:bg-gray-200",children:[(0,mt.jsx)(Nt,{className:"inline-block mr-2"})," Project"]}),(0,mt.jsxs)("button",{type:"button",className:"block px-4 py-2 text-gray-800 hover:bg-gray-200 w-full text-left",onClick:function(){rt("createModal","scale-100"),a("/projects")},children:[(0,mt.jsx)(St,{className:"inline-block mr-2"})," Tambah Project"]})]}),e?(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-[#8c6dfd] text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-[#5E1675]",children:at(e,4,4,11)}):(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-[#8c6dfd] text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-[#5E1675]",onClick:Wu,children:"Hubungkan Wallet"})]})]})},Fl=function(){var e=u(nt("projects"),1)[0];return(0,t.useEffect)((function(){var e=function(){var e=Qe(qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$u();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(Dl,{}),(0,mt.jsx)(Cl,{}),(0,mt.jsx)(jl,{projects:e}),(0,mt.jsx)(Pl,{}),(0,mt.jsx)(vt,{})]})},Bl=function(e){var r=e.project,n=u(nt("backModal"),1)[0],i=u((0,t.useState)(""),2),a=i[0],o=i[1],s=u((0,t.useState)({idr:null,usd:null}),2),l=s[0],c=s[1],f=u((0,t.useState)(""),2),h=f[0],d=f[1],p=u((0,t.useState)("idr"),2),m=p[0],v=p[1];(0,t.useEffect)((function(){var e=function(){var e=Qe(qe().mark((function e(){var t,r;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=idr,usd");case 3:return t=e.sent,e.next=6,t.json();case 6:r=e.sent,c({idr:r.ethereum.idr,usd:r.ethereum.usd}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Tingkat konversi terdapat kesalahan:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,t.useEffect)((function(){if(l[m]&&a){var e=(parseFloat(a)*l[m]).toLocaleString("idr"===m?"id-ID":"en-US",{style:"currency",currency:m.toUpperCase()});d(e)}else d("")}),[a,l,m]);var g=function(){var e=Qe(qe().mark((function e(t){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),a){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,tl(null===r||void 0===r?void 0:r.id,a);case 5:or.success("Project telah berhasil didukung."),rt("backModal","scale-0");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,mt.jsx)("div",{id:"modal-overlay",className:"fixed top-0 left-0 w-screen h-screen flex\n items-center justify-center bg-black bg-opacity-50\n transform transition-transform duration-300 ".concat(n),onClick:function(e){"modal-overlay"===e.target.id&&rt("backModal","scale-0")},children:(0,mt.jsx)("div",{className:"bg-white shadow-xl shadow-black rounded-xl w-11/12 md:w-2/5 h-7/12 p-6",children:(0,mt.jsxs)("form",{onSubmit:g,className:"flex flex-col",children:[(0,mt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,mt.jsx)("p",{className:"font-semibold",children:null===r||void 0===r?void 0:r.title}),(0,mt.jsx)("button",{onClick:function(){return rt("backModal","scale-0")},type:"button",className:"border-0 bg-transparent focus:outline-none",children:(0,mt.jsx)(Tt,{})})]}),(0,mt.jsx)("div",{className:"flex justify-center items-center mt-5",children:(0,mt.jsx)("div",{className:"rounded-xl overflow-hidden h-20 w-20",children:(0,mt.jsx)("img",{src:(null===r||void 0===r?void 0:r.imageURL)||fl,alt:null===r||void 0===r?void 0:r.title,className:"h-full w-full object-cover cursor-pointer"})})}),(0,mt.jsxs)("div",{className:"flex justify-between items-center bg-gray-300 rounded-xl mt-5",children:[(0,mt.jsx)(gt,{className:"text-gray-500 text-xl mx-2"}),(0,mt.jsx)("input",{className:"block w-full bg-transparent border-0 text-sm text-slate-500 focus:outline-none focus:ring-0",type:"number",step:1e-4,min:1e-4,name:"amount",placeholder:"Jumlah (ETH)",onChange:function(e){return o(e.target.value)},value:a,required:!0}),(0,mt.jsxs)("select",{className:"block bg-transparent border-0 text-sm text-slate-500 focus:outline-none focus:ring-0",onChange:function(e){return v(e.target.value)},value:m,children:[(0,mt.jsx)("option",{value:"idr",children:"IDR"}),(0,mt.jsx)("option",{value:"usd",children:"USD"})]})]}),h&&(0,mt.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:h}),(0,mt.jsx)("button",{type:"submit",className:"inline-block px-6 py-2.5 bg-green-600 text-white font-medium text-md leading-tight rounded-full shadow-md hover:bg-green-700 mt-5",children:"Dukung Project"})]})})})},Ul=function(e){var r,n=e.project,i=u(nt("connectedAccount"),1)[0],a=u((0,t.useState)(""),2),o=a[0],s=a[1],l=(new Date).getTime()>Number((null===n||void 0===n?void 0:n.expiresAt)+"000"),c=function(){var e=Qe(qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==o.trim()){e.next=3;break}return alert("Komentar tidak boleh kosong"),e.abrupt("return");case 3:return e.next=5,il(n.id,o);case 5:s(""),rt("project",Ot({},n));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,mt.jsx)("div",{className:"pt-16 mb-5 px-6 flex justify-center bg-gray-100",children:(0,mt.jsx)("div",{className:"w-full max-w-screen-xl bg-white shadow-lg rounded-lg p-6",children:(0,mt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,mt.jsxs)("div",{className:"md:col-span-2",children:[(0,mt.jsx)("img",{src:null===n||void 0===n?void 0:n.imageURL,alt:null===n||void 0===n?void 0:n.title,className:"rounded-xl w-full mb-4 object-contain",style:{maxHeight:"400px"}}),(0,mt.jsxs)("div",{className:"flex flex-col mt-4",children:[(0,mt.jsx)("h5",{className:"text-gray-900 text-3xl font-semibold mb-2",children:null===n||void 0===n?void 0:n.title}),(0,mt.jsx)("small",{className:"text-gray-500 ".concat(l?"text-red-500":""),children:l?"Berakhir":ot(n.expiresAt)+" tersisa"})]}),(0,mt.jsxs)("div",{className:"flex justify-between items-center w-full mt-2",children:[(0,mt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,mt.jsx)(Rl(),{className:"rounded-full shadow-md",string:null===n||void 0===n?void 0:n.owner,size:30}),null!==n&&void 0!==n&&n.owner?(0,mt.jsx)("small",{className:"text-gray-700 font-medium",children:at(null===n||void 0===n?void 0:n.owner)}):null,(0,mt.jsxs)("small",{className:"text-gray-500 font-bold",children:[null===n||void 0===n?void 0:n.backers," Dukungan"]})]}),(0,mt.jsx)("div",{className:"font-bold text-sm",children:l?(0,mt.jsx)("small",{className:"text-red-500",children:"Berakhir"}):0===(null===n||void 0===n?void 0:n.status)?(0,mt.jsx)("small",{className:"text-blue-500",children:"Terbuka"}):1===(null===n||void 0===n?void 0:n.status)?(0,mt.jsx)("small",{className:"text-green-500",children:"Diterima"}):2===(null===n||void 0===n?void 0:n.status)?(0,mt.jsx)("small",{className:"text-orange-500",children:"Dikembalikan"}):3===(null===n||void 0===n?void 0:n.status)?(0,mt.jsx)("small",{className:"text-gray-600",children:"Dihapus"}):(0,mt.jsx)("small",{className:"text-purple-500",children:"Dibayar"})})]}),(0,mt.jsx)("p",{className:"text-base text-gray-700 font-light mt-4",children:null===n||void 0===n?void 0:n.description}),(0,mt.jsx)("div",{className:"w-full overflow-hidden bg-gray-300 rounded-full mt-4",children:(0,mt.jsx)("div",{className:"bg-green-600 text-xs font-medium text-green-100 text-center p-0.5 leading-none rounded-full",style:{width:"".concat((null===n||void 0===n?void 0:n.raised)/(null===n||void 0===n?void 0:n.cost)*100,"%")}})}),(0,mt.jsxs)("div",{className:"flex justify-between items-center font-bold mt-2",children:[(0,mt.jsxs)("small",{children:[null===n||void 0===n?void 0:n.raised," ETH Terkumpul"]}),(0,mt.jsxs)("small",{className:"flex items-center",children:[(0,mt.jsx)(gt,{}),(0,mt.jsxs)("span",{className:"ml-1",children:[null===n||void 0===n?void 0:n.cost," ETH"]})]})]}),(0,mt.jsx)("div",{className:"flex flex-col sm:flex-row justify-start items-center space-x-2 mt-4",children:l?(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-gray-400 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md cursor-not-allowed",children:"Project Ditutup"}):(0,mt.jsxs)(mt.Fragment,{children:[i!==(null===n||void 0===n?void 0:n.owner)&&0===(null===n||void 0===n?void 0:n.status)&&(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-green-600 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-green-700",onClick:function(){return rt("backModal","scale-100")},children:"Dukung Project"}),i===(null===n||void 0===n?void 0:n.owner)&&3!==(null===n||void 0===n?void 0:n.status)&&(0,mt.jsx)(mt.Fragment,{children:1===(null===n||void 0===n?void 0:n.status)?(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-orange-600 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-orange-700",onClick:function(){return nl(null===n||void 0===n?void 0:n.id)},children:"Cairkan Dana"}):4!==(null===n||void 0===n?void 0:n.status)?(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-gray-600 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-gray-700",onClick:function(){return rt("updateModal","scale-100")},children:"Edit"}),(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-red-600 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-red-700",onClick:function(){return rt("deleteModal","scale-100")},children:"Hapus"})]}):(0,mt.jsx)("button",{type:"button",className:"inline-block px-6 py-2.5 bg-gray-400 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md cursor-not-allowed",children:"Project Ditutup"})})]})}),(0,mt.jsx)("div",{className:"mt-4",children:(0,mt.jsxs)("small",{className:"text-gray-500 font-semibold uppercase tracking-wide",children:["Kategori:",(0,mt.jsx)("span",{className:"ml-1 text-gray-900 font-bold",children:null===n||void 0===n?void 0:n.category})]})})]}),(0,mt.jsxs)("div",{className:"md:col-span-1 mt-6 md:mt-0",children:[(0,mt.jsx)("h3",{className:"text-lg font-semibold mb-4",children:"Dukungan Komentar"}),(0,mt.jsxs)("div",{className:"space-y-4 h-96 overflow-y-auto",children:[3!==(null===n||void 0===n?void 0:n.status)&&4!==(null===n||void 0===n?void 0:n.status)&&((null===n||void 0===n||null===(r=n.comments)||void 0===r?void 0:r.length)>0?null===n||void 0===n?void 0:n.comments.map((function(e,t){return(0,mt.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,mt.jsx)(Rl(),{className:"rounded-full shadow-md",string:e.commenter,size:30}),(0,mt.jsx)("div",{className:"flex-1",children:(0,mt.jsxs)("div",{className:"p-4 rounded-lg ".concat(e.commenter===n.owner?"bg-blue-100":"bg-gray-100"),children:[(0,mt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,mt.jsxs)("h4",{className:"text-sm font-semibold",children:[at(e.commenter,4,4,11),e.commenter===n.owner&&(0,mt.jsx)("span",{className:"ml-2 text-xs text-blue-600 font-bold",children:"(Pemilik)"})]}),(0,mt.jsx)("small",{className:"text-gray-500",children:new Date(e.timestamp).toLocaleString()})]}),(0,mt.jsx)("p",{className:"text-gray-700 mt-2",children:e.comment})]})})]},t)})):(0,mt.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,mt.jsx)("p",{className:"text-gray-500",children:"Belum ada komentar untuk project ini."})})),(3===(null===n||void 0===n?void 0:n.status)||4===(null===n||void 0===n?void 0:n.status))&&(0,mt.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,mt.jsxs)("p",{className:"text-gray-500",children:["Komentar tidak tersedia karena project telah ",3===(null===n||void 0===n?void 0:n.status)?"dihapus":"dibayar","."]})})]}),(0,mt.jsx)("div",{className:"mt-6",children:3!==(null===n||void 0===n?void 0:n.status)&&4!==(null===n||void 0===n?void 0:n.status)&&i&&!l&&(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)("textarea",{className:"w-full p-4 bg-gray-100 rounded-lg",rows:"4",placeholder:"Tambahkan komentar",value:o,onChange:function(e){return s(e.target.value)}}),(0,mt.jsxs)("div",{className:"flex items-center mt-2",children:[(0,mt.jsx)("button",{className:"px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded-full shadow-md hover:bg-blue-700",onClick:c,children:"Tambah Komentar"}),i!==n.owner&&(0,mt.jsx)(Et,{className:"ml-2 text-grey-500 cursor-pointer",title:"Hanya pengguna yang telah mendukung project ini yang dapat menambahkan komentar"})]})]})})]})]})})})},zl=function(e){var t=e.project,r=u(nt("deleteModal"),1)[0],n=ye(),i=function(){var e=Qe(qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xu(null===t||void 0===t?void 0:t.id);case 2:or.success("Project telah berhasil dihapus."),rt("deleteModal","scale-0"),n(Ul);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){rt("deleteModal","scale-0")};return(0,mt.jsx)("div",{className:"fixed top-0 left-0 w-screen h-screen flex items-center justify-center bg-black bg-opacity-50 transform transition-transform duration-300 ".concat(r),onClick:a,children:(0,mt.jsx)("div",{className:"bg-white shadow-xl rounded-xl w-11/12 md:w-2/5 h-auto p-6 transform transition-transform duration-300",onClick:function(e){return e.stopPropagation()},children:(0,mt.jsxs)("div",{className:"flex flex-col",children:[(0,mt.jsxs)("div",{className:"flex justify-between items-center border-b pb-3 mb-4",children:[(0,mt.jsx)("p",{className:"text-lg font-semibold text-gray-800",children:null===t||void 0===t?void 0:t.title}),(0,mt.jsx)("button",{onClick:a,type:"button",className:"border-0 bg-transparent text-gray-600 hover:text-gray-900 focus:outline-none",children:(0,mt.jsx)(Tt,{size:20})})]}),(0,mt.jsx)("div",{className:"flex justify-center items-center mt-5",children:(0,mt.jsx)("div",{className:"rounded-xl overflow-hidden h-20 w-20 border",children:(0,mt.jsx)("img",{src:(null===t||void 0===t?void 0:t.imageURL)||fl,alt:null===t||void 0===t?void 0:t.title,className:"h-full w-full object-cover"})})}),(0,mt.jsxs)("div",{className:"flex flex-col justify-center items-center text-center mt-5",children:[(0,mt.jsx)("p",{className:"text-lg text-gray-700",children:"Anda yakin ingin menghapus proyek ini?"}),(0,mt.jsx)("small",{className:"text-red-500 mt-1",children:"Tindakan ini tidak dapat diurungkan."})]}),(0,mt.jsx)("button",{className:"inline-block px-6 py-2.5 bg-red-600 text-white font-medium text-md leading-tight rounded-full shadow-md hover:bg-red-700 focus:outline-none transition duration-150 ease-in-out mt-5",onClick:i,children:"Hapus Project"})]})})})},Hl=r(431),Yl=r.n(Hl),Vl=(r(68),function(e){var t=e.backer;return(0,mt.jsxs)("tr",{className:"hover:bg-gray-50",children:[(0,mt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,mt.jsxs)("div",{className:"flex items-center",children:[(0,mt.jsx)(Rl(),{className:"h-8 w-8 rounded-full",string:t.owner,size:25}),(0,mt.jsxs)("div",{className:"ml-4",children:[(0,mt.jsx)("div",{className:"text-sm font-medium text-gray-900",children:at(t.owner,4,4,11)}),(0,mt.jsxs)("a",{href:"https://sepolia.etherscan.io/address/".concat(t.owner),target:"_blank",rel:"noopener noreferrer",className:"text-sm text-blue-500 hover:underline flex items-center mt-1",children:[(0,mt.jsx)("span",{children:"Lihat di Etherscan"}),(0,mt.jsx)(xt,{className:"ml-1"})]})]})]})}),(0,mt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,mt.jsxs)("div",{className:"flex items-center",children:[(0,mt.jsx)(gt,{className:"h-4 w-4 text-gray-400"}),(0,mt.jsxs)("div",{className:"ml-2 text-sm text-gray-900",children:[t.contribution," ETH"]})]})}),(0,mt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,mt.jsx)("span",{className:t.refunded?"px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800":"px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800",children:t.refunded?"Ya":"Tidak"})}),(0,mt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:(0,mt.jsx)(Yl(),{locale:"id",fromNow:!0,children:t.timestamp})})]})}),Gl=function(e){var t=e.backers;return(0,mt.jsx)("div",{className:"flex flex-col justify-center items-start w-full px-6 mx-auto",children:(0,mt.jsx)("div",{className:"overflow-hidden shadow-md rounded-md w-full mb-10",children:(0,mt.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,mt.jsx)("thead",{className:"bg-gray-50",children:(0,mt.jsxs)("tr",{children:[(0,mt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Dukungan"}),(0,mt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Donasi"}),(0,mt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Pengembalian"}),(0,mt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Waktu"})]})}),(0,mt.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map((function(e,t){return(0,mt.jsx)(Vl,{backer:e},t)}))})]})})})},ql=function(e){var r=e.project,n=u(nt("updateModal"),1)[0],i=u((0,t.useState)(null===r||void 0===r?void 0:r.title),2),a=i[0],o=i[1],s=u((0,t.useState)(null===r||void 0===r?void 0:r.description),2),l=s[0],c=s[1],f=u((0,t.useState)(null===r||void 0===r?void 0:r.date),2),h=f[0],d=f[1],p=u((0,t.useState)(null===r||void 0===r?void 0:r.imageURL),2),m=p[0],v=p[1],g=u((0,t.useState)(null===r||void 0===r?void 0:r.category),1)[0],y=(0,t.useRef)(null),b=function(){var e=Qe(qe().mark((function e(t){var n;return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),a&&l&&h&&m&&g){e.next=3;break}return e.abrupt("return");case 3:return n={id:null===r||void 0===r?void 0:r.id,title:a,description:l,expiresAt:(i=h,Date.parse(i)/1e3),imageURL:m,category:g},e.next=6,Zu(n);case 6:or.success("Project telah berhasil diupdate."),w();case 8:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),w=function(){rt("updateModal","scale-0")},x=function(e){y.current&&!y.current.contains(e.target)&&w()};return(0,t.useEffect)((function(){return document.addEventListener("mousedown",x),function(){document.removeEventListener("mousedown",x)}}),[]),(0,mt.jsx)("div",{className:"fixed top-0 left-0 w-screen h-screen flex\n items-center justify-center bg-black bg-opacity-50\n transform transition-transform duration-300 ".concat(n),children:(0,mt.jsx)("div",{ref:y,className:"bg-white shadow-xl shadow-black rounded-xl w-11/12 md:w-2/5 p-8 transform transition-transform duration-500",children:(0,mt.jsxs)("form",{onSubmit:b,className:"flex flex-col space-y-5",children:[(0,mt.jsxs)("div",{className:"flex justify-between items-center mb-4",children:[(0,mt.jsx)("h2",{className:"text-xl font-semibold text-gray-700",children:"Edit Project"}),(0,mt.jsx)("button",{onClick:w,type:"button",className:"text-gray-500 hover:text-gray-700 transition-colors",children:(0,mt.jsx)(Tt,{size:20})})]}),(0,mt.jsx)("div",{className:"flex justify-center items-center",children:(0,mt.jsx)("div",{className:"rounded-xl overflow-hidden h-20 w-20",children:(0,mt.jsx)("img",{src:m||fl,alt:"project title",className:"h-full w-full object-cover"})})}),(0,mt.jsx)("div",{className:"relative",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg px-4 py-2 text-gray-700 focus:outline-none focus:border-blue-500",type:"text",name:"title",placeholder:"Judul",onChange:function(e){return o(e.target.value)},value:a,required:!0})}),(0,mt.jsx)("div",{className:"relative",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg px-4 py-2 text-gray-700 focus:outline-none focus:border-blue-500",type:"date",name:"date",placeholder:"Expires",onChange:function(e){return d(e.target.value)},value:h,required:!0})}),(0,mt.jsx)("div",{className:"relative",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg px-4 py-2 text-gray-700 focus:outline-none focus:border-blue-500",type:"url",name:"imageURL",placeholder:"URL Gambar",onChange:function(e){return v(e.target.value)},value:m,required:!0})}),(0,mt.jsx)("div",{className:"relative",children:(0,mt.jsx)("input",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg px-4 py-2 text-gray-700 focus:outline-none focus:border-blue-500",type:"text",name:"category",placeholder:"Kategori",value:g,readOnly:!0})}),(0,mt.jsx)("div",{className:"relative",children:(0,mt.jsx)("textarea",{className:"block w-full bg-gray-100 border border-gray-300 rounded-lg px-4 py-2 text-gray-700 focus:outline-none focus:border-blue-500",name:"description",placeholder:"Deskripsi",onChange:function(e){return c(e.target.value)},value:l,required:!0})}),(0,mt.jsx)("button",{type:"submit",className:"w-full px-6 py-2.5 bg-gray-600 text-white font-medium text-md leading-tight rounded-lg shadow-md hover:bg-gray-700 transition-colors",children:"Edit"})]})})})},Wl=function(){var e=function(){var e=t.useContext(de).matches,r=e[e.length-1];return r?r.params:{}}().id,r=u((0,t.useState)(!1),2),n=r[0],i=r[1],a=u(nt("project"),1)[0],o=u(nt("backers"),1)[0];return(0,t.useEffect)((function(){var t=function(){var t=Qe(qe().mark((function t(){return qe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,el(e);case 2:return t.next=4,rl(e);case 4:i(!0);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[]),n?(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(Dl,{}),(0,mt.jsx)(Ul,{project:a}),(0,mt.jsx)(ql,{project:a}),(0,mt.jsx)(zl,{project:a}),(0,mt.jsx)(Bl,{project:a}),(0,mt.jsx)(Gl,{backers:o})]}):null};function Ql(e){return ht({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]})(e)}function Kl(e){return ht({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]})(e)}var Jl=function(){var e=u((0,t.useState)(!1),2),r=e[0],n=e[1],i=function(){n(!r)};return(0,mt.jsxs)("div",{className:"sticky top-0 z-50 flex justify-between items-center h-24 w-full max-w-[1940px] mx-auto px-4 bg-[#000300] text-white",children:[(0,mt.jsx)("img",{src:Ll,alt:"Logo",style:{width:"200px",height:"auto"}}),(0,mt.jsxs)("ul",{className:"hidden md:flex",children:[(0,mt.jsx)("li",{className:"p-4",children:(0,mt.jsx)(Ye,{to:"/",children:"Halaman Utama"})}),(0,mt.jsx)("li",{className:"p-4",children:(0,mt.jsx)(Ye,{to:"/projects",children:"Semua Projects"})})]}),(0,mt.jsx)("div",{onClick:i,className:"block md:hidden",children:r?(0,mt.jsx)(Ql,{size:20}):(0,mt.jsx)(Kl,{size:20})}),(0,mt.jsxs)("div",{className:r?"fixed left-0 top-0 w-[60%] h-full border-r border-r-gray-900 bg-[#000300] ease-in-out duration-500":"fixed left-[-100%] ease-in-out duration-500",children:[(0,mt.jsx)("img",{src:Ll,alt:"Logo",style:{width:"200px",height:"auto"},className:"p-4"}),(0,mt.jsxs)("ul",{className:"uppercase p-4",children:[(0,mt.jsx)("li",{className:"p-4 border-b border-gray-600",children:(0,mt.jsx)(Ye,{to:"/",onClick:i,children:"Halaman Utama"})}),(0,mt.jsx)("li",{className:"p-4 border-b border-gray-600",children:(0,mt.jsx)(Ye,{to:"/projects",onClick:i,children:"Semua Projects"})})]})]})]})},Zl=r.p+"static/media/gambar1.296084dbca65a169b9ef.png",Xl=function(){return(0,mt.jsx)("div",{className:"w-full bg-white py-16 px-4",children:(0,mt.jsxs)("div",{className:"max-w-[1248px] mx-auto grid md:grid-cols-2",children:[(0,mt.jsx)("img",{className:"w-[500px] mx-auto my-4 p-5",src:Zl,alt:"/"}),(0,mt.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,mt.jsx)("p",{className:"text-[#00cf79] font-bold",children:"SISTEM CROWDFUNDING BERTEKNOLOGI BLOCKCHAIN"}),(0,mt.jsx)("h1",{className:"md:text-4xl sm:text-3xl text-2xl font-bold py-2",children:"Kelebihan Crowdfunding Blockchain?"}),(0,mt.jsx)("p",{children:"Blocxstarter berbasis crowdfunding blockchain menawarkan transparansi tinggi, keamanan kuat, dan menghilangkan perantara atau pihak ketiga. Jaringan terdesentralisasi ini memungkinkan akses global, memberikan peluang bagi pengguna untuk menjangkau investor di seluruh dunia. Dengan smart contracts, dana dikelola otomatis berdasarkan kesepakatan yang telah ditetapkan, memberikan perlindungan tambahan bagi investor. Selain itu, token yang diterbitkan dapat diperdagangkan, memberikan likuiditas dan model partisipasi yang lebih demokratis. Secara keseluruhan, blockchain membawa inovasi dan efisiensi baru ke dalam model crowdfunding, menjadikannya pilihan yang lebih menarik dan terpercaya."}),(0,mt.jsx)("button",{className:"bg-black text-[#8c6dfd] w-[200px] rounded-md font-medium my-6 mx-auto md:mx-0 py-3",children:(0,mt.jsx)(Ye,{to:"/projects",children:"Mulai Sekarang"})})]})]})})},$l=function(){var e=u((0,t.useState)(""),2),r=e[0],n=e[1];return(0,mt.jsx)("div",{className:"w-full py-16 text-white px-4 bg-black",children:(0,mt.jsxs)("div",{className:"max-w-[1240px] mx-auto grid lg:grid-cols-3",children:[(0,mt.jsxs)("div",{className:"lg:col-span-2 my-4",children:[(0,mt.jsx)("h1",{className:"md:text-4xl sm:text-3xl text-2xl font-bold py-2",children:"Ingin informasi lebih detail?"}),(0,mt.jsx)("p",{children:"Dapat menghubungi via email."})]}),(0,mt.jsx)("div",{className:"my-4",children:(0,mt.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-between w-full",children:[(0,mt.jsx)("input",{className:"p-3 flex w-full rounded-md text-black",type:"email",placeholder:"Masukkan Email",value:r,onChange:function(e){n(e.target.value)}}),(0,mt.jsx)("button",{className:"bg-[#00df9a] text-black rounded-md font-medium w-[200px] ml-4 my-6 px-6 py-3",onClick:function(){r&&r.includes("@")?window.location.href="https://mail.google.com/mail/?view=cm&fs=1&to=developerfaiz@gmail.com":alert("Mohon masukkan alamat email yang valid.")},children:"Kirim Email"})]})})]})})},ec=r.p+"static/media/gambar2.7b305f6850ce809a4b77.png",tc=function(){return(0,mt.jsx)("div",{className:"w-full bg-white py-16 px-4",children:(0,mt.jsxs)("div",{className:"max-w-[1248px] mx-auto grid md:grid-cols-2",children:[(0,mt.jsx)("img",{className:"w-[500px] mx-auto my-4 p-5",src:ec,alt:"/",style:{borderRadius:"10%"}}),(0,mt.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,mt.jsx)("p",{className:"text-[#00cf79] font-bold",children:"SISTEM CROWDFUNDING BERTEKNOLOGI BLOCKCHAIN"}),(0,mt.jsx)("h1",{className:"md:text-4xl sm:text-3xl text-2xl font-bold py-2",children:"Apa Itu Blockchain?"}),(0,mt.jsx)("p",{children:"Blockchain adalah teknologi penyimpanan data yang terdesentralisasi dan aman, terdiri dari blok-blok yang saling terhubung dan diamankan dengan kriptografi. Setiap blok mencatat transaksi dan terhubung dengan blok sebelumnya, sehingga sulit diubah tanpa konsensus mayoritas dalam jaringan. Teknologi ini transparan karena semua peserta dapat melihat semua transaksi, dan desentralisasi memastikan tidak ada otoritas tunggal yang mengontrol jaringan. Keamanan dijamin oleh teknik kriptografi, membuat data tahan terhadap manipulasi. Selain itu, blockchain memungkinkan penggunaan smart contracts untuk otomatisasi proses bisnis. Pertama dikenal melalui Bitcoin, blockchain memiliki aplikasi luas di berbagai industri, seperti keuangan, logistik, dan kesehatan."})]})]})})},rc=r.p+"static/media/block.28912e0d5fb5aac2a32a.png",nc=function(){return(0,mt.jsxs)("div",{className:"max-w-[1940px] mx-auto bg-black py-16 px-4 grid lg:grid-cols-3 gap-8 text-gray-300",children:[(0,mt.jsxs)("div",{children:[(0,mt.jsx)("img",{src:rc,alt:"/",style:{width:"250px",height:"auto"}}),(0,mt.jsx)("p",{className:"py-4",children:"Selamat datang di BlockXStarter! Platform antara para pencari dana dan proyek-proyek berbasis blockchain."}),(0,mt.jsxs)("div",{className:"flex justify-between md:w-[75%] my-6",children:[(0,mt.jsx)(yt,{size:30}),(0,mt.jsx)(bt,{size:30}),(0,mt.jsx)(wt,{size:30})]})]}),(0,mt.jsxs)("div",{className:"lg:col-span-2 flex justify-between mt-6",children:[(0,mt.jsxs)("div",{children:[(0,mt.jsx)("h6",{className:"font-medium text-gray-400",children:"Kontak Kami"}),(0,mt.jsxs)("ul",{children:[(0,mt.jsx)("li",{className:"py-2 text-sm",children:"Email: support@blockxstarter.blockchain"}),(0,mt.jsx)("li",{className:"py-2 text-sm",children:"Telepon: +62 896 5624 5757"})]})]}),(0,mt.jsxs)("div",{children:[(0,mt.jsx)("h6",{className:"font-medium text-gray-400",children:"Tautan Cepat"}),(0,mt.jsxs)("ul",{children:[(0,mt.jsx)("li",{className:"py-2 text-sm",children:"Beranda"}),(0,mt.jsx)("li",{className:"py-2 text-sm",children:"Proyek"})]})]}),(0,mt.jsxs)("div",{children:[(0,mt.jsx)("h6",{className:"font-medium text-gray-400",children:"Legal"}),(0,mt.jsxs)("ul",{children:[(0,mt.jsx)("li",{className:"py-2 text-sm",children:"Kebijakan Privasi"}),(0,mt.jsx)("li",{className:"py-2 text-sm",children:"Syarat & Ketentuan"})]})]})]})]})};function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}var ac={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,smartBackspace:!0,shuffle:!1,backDelay:700,fadeOut:!1,fadeOutClass:"typed-fade-out",fadeOutDelay:500,loop:!1,loopCount:1/0,showCursor:!0,cursorChar:"|",autoInsertCss:!0,attr:null,bindInputFocusEvents:!1,contentType:"html",onBegin:function(e){},onComplete:function(e){},preStringTyped:function(e,t){},onStringTyped:function(e,t){},onLastStringBackspaced:function(e){},onTypingPaused:function(e,t){},onTypingResumed:function(e,t){},onReset:function(e){},onStop:function(e,t){},onStart:function(e,t){},onDestroy:function(e){}},oc=new(function(){function e(){}var t=e.prototype;return t.load=function(e,t,r){if(e.el="string"==typeof r?document.querySelector(r):r,e.options=ic({},ac,t),e.isInput="input"===e.el.tagName.toLowerCase(),e.attr=e.options.attr,e.bindInputFocusEvents=e.options.bindInputFocusEvents,e.showCursor=!e.isInput&&e.options.showCursor,e.cursorChar=e.options.cursorChar,e.cursorBlinking=!0,e.elContent=e.attr?e.el.getAttribute(e.attr):e.el.textContent,e.contentType=e.options.contentType,e.typeSpeed=e.options.typeSpeed,e.startDelay=e.options.startDelay,e.backSpeed=e.options.backSpeed,e.smartBackspace=e.options.smartBackspace,e.backDelay=e.options.backDelay,e.fadeOut=e.options.fadeOut,e.fadeOutClass=e.options.fadeOutClass,e.fadeOutDelay=e.options.fadeOutDelay,e.isPaused=!1,e.strings=e.options.strings.map((function(e){return e.trim()})),e.stringsElement="string"==typeof e.options.stringsElement?document.querySelector(e.options.stringsElement):e.options.stringsElement,e.stringsElement){e.strings=[],e.stringsElement.style.cssText="clip: rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;";var n=Array.prototype.slice.apply(e.stringsElement.children),i=n.length;if(i)for(var a=0;a<i;a+=1)e.strings.push(n[a].innerHTML.trim())}for(var o in e.strPos=0,e.currentElContent=this.getCurrentElContent(e),e.currentElContent&&e.currentElContent.length>0&&(e.strPos=e.currentElContent.length-1,e.strings.unshift(e.currentElContent)),e.sequence=[],e.strings)e.sequence[o]=o;e.arrayPos=0,e.stopNum=0,e.loop=e.options.loop,e.loopCount=e.options.loopCount,e.curLoop=0,e.shuffle=e.options.shuffle,e.pause={status:!1,typewrite:!0,curString:"",curStrPos:0},e.typingComplete=!1,e.autoInsertCss=e.options.autoInsertCss,e.autoInsertCss&&(this.appendCursorAnimationCss(e),this.appendFadeOutAnimationCss(e))},t.getCurrentElContent=function(e){return e.attr?e.el.getAttribute(e.attr):e.isInput?e.el.value:"html"===e.contentType?e.el.innerHTML:e.el.textContent},t.appendCursorAnimationCss=function(e){var t="data-typed-js-cursor-css";if(e.showCursor&&!document.querySelector("["+t+"]")){var r=document.createElement("style");r.setAttribute(t,"true"),r.innerHTML="\n .typed-cursor{\n opacity: 1;\n }\n .typed-cursor.typed-cursor--blink{\n animation: typedjsBlink 0.7s infinite;\n -webkit-animation: typedjsBlink 0.7s infinite;\n animation: typedjsBlink 0.7s infinite;\n }\n @keyframes typedjsBlink{\n 50% { opacity: 0.0; }\n }\n @-webkit-keyframes typedjsBlink{\n 0% { opacity: 1; }\n 50% { opacity: 0.0; }\n 100% { opacity: 1; }\n }\n ",document.body.appendChild(r)}},t.appendFadeOutAnimationCss=function(e){var t="data-typed-fadeout-js-css";if(e.fadeOut&&!document.querySelector("["+t+"]")){var r=document.createElement("style");r.setAttribute(t,"true"),r.innerHTML="\n .typed-fade-out{\n opacity: 0;\n transition: opacity .25s;\n }\n .typed-cursor.typed-cursor--blink.typed-fade-out{\n -webkit-animation: 0;\n animation: 0;\n }\n ",document.body.appendChild(r)}},e}()),sc=new(function(){function e(){}var t=e.prototype;return t.typeHtmlChars=function(e,t,r){if("html"!==r.contentType)return t;var n=e.substring(t).charAt(0);if("<"===n||"&"===n){var i;for(i="<"===n?">":";";e.substring(t+1).charAt(0)!==i&&!(1+ ++t>e.length););t++}return t},t.backSpaceHtmlChars=function(e,t,r){if("html"!==r.contentType)return t;var n=e.substring(t).charAt(0);if(">"===n||";"===n){var i;for(i=">"===n?"<":"&";e.substring(t-1).charAt(0)!==i&&!(--t<0););t--}return t},e}()),uc=function(){function e(e,t){oc.load(this,t,e),this.begin()}var t=e.prototype;return t.toggle=function(){this.pause.status?this.start():this.stop()},t.stop=function(){this.typingComplete||this.pause.status||(this.toggleBlinking(!0),this.pause.status=!0,this.options.onStop(this.arrayPos,this))},t.start=function(){this.typingComplete||this.pause.status&&(this.pause.status=!1,this.pause.typewrite?this.typewrite(this.pause.curString,this.pause.curStrPos):this.backspace(this.pause.curString,this.pause.curStrPos),this.options.onStart(this.arrayPos,this))},t.destroy=function(){this.reset(!1),this.options.onDestroy(this)},t.reset=function(e){void 0===e&&(e=!0),clearInterval(this.timeout),this.replaceText(""),this.cursor&&this.cursor.parentNode&&(this.cursor.parentNode.removeChild(this.cursor),this.cursor=null),this.strPos=0,this.arrayPos=0,this.curLoop=0,e&&(this.insertCursor(),this.options.onReset(this),this.begin())},t.begin=function(){var e=this;this.options.onBegin(this),this.typingComplete=!1,this.shuffleStringsIfNeeded(this),this.insertCursor(),this.bindInputFocusEvents&&this.bindFocusEvents(),this.timeout=setTimeout((function(){0===e.strPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],e.strPos):e.backspace(e.strings[e.sequence[e.arrayPos]],e.strPos)}),this.startDelay)},t.typewrite=function(e,t){var r=this;this.fadeOut&&this.el.classList.contains(this.fadeOutClass)&&(this.el.classList.remove(this.fadeOutClass),this.cursor&&this.cursor.classList.remove(this.fadeOutClass));var n=this.humanizer(this.typeSpeed),i=1;!0!==this.pause.status?this.timeout=setTimeout((function(){t=sc.typeHtmlChars(e,t,r);var n=0,a=e.substring(t);if("^"===a.charAt(0)&&/^\^\d+/.test(a)){var o=1;o+=(a=/\d+/.exec(a)[0]).length,n=parseInt(a),r.temporaryPause=!0,r.options.onTypingPaused(r.arrayPos,r),e=e.substring(0,t)+e.substring(t+o),r.toggleBlinking(!0)}if("`"===a.charAt(0)){for(;"`"!==e.substring(t+i).charAt(0)&&(i++,!(t+i>e.length)););var s=e.substring(0,t),u=e.substring(s.length+1,t+i),l=e.substring(t+i+1);e=s+u+l,i--}r.timeout=setTimeout((function(){r.toggleBlinking(!1),t>=e.length?r.doneTyping(e,t):r.keepTyping(e,t,i),r.temporaryPause&&(r.temporaryPause=!1,r.options.onTypingResumed(r.arrayPos,r))}),n)}),n):this.setPauseStatus(e,t,!0)},t.keepTyping=function(e,t,r){0===t&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this));var n=e.substring(0,t+=r);this.replaceText(n),this.typewrite(e,t)},t.doneTyping=function(e,t){var r=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){r.backspace(e,t)}),this.backDelay))},t.backspace=function(e,t){var r=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var n=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){t=sc.backSpaceHtmlChars(e,t,r);var n=e.substring(0,t);if(r.replaceText(n),r.smartBackspace){var i=r.strings[r.arrayPos+1];r.stopNum=i&&n===i.substring(0,t)?t:0}t>r.stopNum?(t--,r.backspace(e,t)):t<=r.stopNum&&(r.arrayPos++,r.arrayPos===r.strings.length?(r.arrayPos=0,r.options.onLastStringBackspaced(),r.shuffleStringsIfNeeded(),r.begin()):r.typewrite(r.strings[r.sequence[r.arrayPos]],t))}),n)}else this.setPauseStatus(e,t,!1)},t.complete=function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0},t.setPauseStatus=function(e,t,r){this.pause.typewrite=r,this.pause.curString=e,this.pause.curStrPos=t},t.toggleBlinking=function(e){this.cursor&&(this.pause.status||this.cursorBlinking!==e&&(this.cursorBlinking=e,e?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))},t.humanizer=function(e){return Math.round(Math.random()*e/2)+e},t.shuffleStringsIfNeeded=function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))},t.initFadeOut=function(){var e=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){e.arrayPos++,e.replaceText(""),e.strings.length>e.arrayPos?e.typewrite(e.strings[e.sequence[e.arrayPos]],0):(e.typewrite(e.strings[0],0),e.arrayPos=0)}),this.fadeOutDelay)},t.replaceText=function(e){this.attr?this.el.setAttribute(this.attr,e):this.isInput?this.el.value=e:"html"===this.contentType?this.el.innerHTML=e:this.el.textContent=e},t.bindFocusEvents=function(){var e=this;this.isInput&&(this.el.addEventListener("focus",(function(t){e.stop()})),this.el.addEventListener("blur",(function(t){e.el.value&&0!==e.el.value.length||e.start()})))},t.insertCursor=function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.setAttribute("aria-hidden",!0),this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))},e}(),lc=["style","className","typedRef","parseRef","stopped","children","startWhenVisible"],cc=(0,t.memo)((function(e){var r=e.style,n=e.className,i=e.typedRef,a=e.parseRef,o=e.stopped,s=e.children,l=e.startWhenVisible,f=Pt(e,lc),h=(0,t.useRef)(null),d=(0,t.useMemo)((function(){var e;return[].concat(c(Object.values(f).filter((function(e){return"boolean"===typeof e||"number"===typeof e||"string"===typeof e}))),[null===(e=f.strings)||void 0===e?void 0:e.join(",")])}),[f]);(0,t.useEffect)((function(){var e=a&&a(h)||h.current,t=new uc(e,Ot({},f));if((o||l)&&(null===t||void 0===t||t.stop()),l){var r=new IntersectionObserver((function(e){u(e,1)[0].isIntersecting&&(null===t||void 0===t||t.start(),r.disconnect())}));r.observe(e)}return i&&t&&i(t),function(){t.destroy()}}),d);var p=s?t.cloneElement(s,{ref:h}):t.createElement("span",{style:r,ref:h});return t.createElement("span",{style:r,className:n,"data-testid":"react-typed"},p)})),fc=function(){return(0,mt.jsx)("div",{className:"text-white bg-black",children:(0,mt.jsxs)("div",{className:"max-w-[800px] mt-[-48px] w-full h-screen mx-auto text-center flex flex-col justify-center",children:[(0,mt.jsx)("p",{className:"text-[#00cf79] font-bold p-2",children:"BlockXStarter"}),(0,mt.jsx)("h1",{className:"md:text-7xl sm:text-6xl text-4xl font-bold md:py-6",children:"Wujudkan Project Anda Menjadi Nyata"}),(0,mt.jsxs)("div",{className:"flex justify-center items-center",children:[(0,mt.jsx)("p",{className:"md:text-5xl sm:text-4xl text-xl font-bold py-4",children:"Sistem"}),(0,mt.jsx)(cc,{className:"md:text-5xl sm:text-4xl text-xl font-bold md:pl-4 pl-2",strings:["KONSENSUS","IMMUTABLE","TRANSPARAN","DESENTRALISASI"],typeSpeed:120,backSpeed:140,loop:!0})]}),(0,mt.jsx)("button",{className:"bg-[#8c6dfd] w-[200px] rounded-md font-medium my-6 mx-auto py-3 text-black hover:bg-[#5E1675]",children:(0,mt.jsx)(Ye,{to:"/projects",children:"Mulai Sekarang \u27a4"})})]})})},hc=function(){return(0,mt.jsxs)(mt.Fragment,{children:[(0,mt.jsx)(Jl,{}),(0,mt.jsx)(fc,{}),(0,mt.jsx)(Xl,{}),(0,mt.jsx)($l,{}),(0,mt.jsx)(tc,{}),(0,mt.jsx)(nc,{})]})},dc=function(){var e=u((0,t.useState)(!1),2),r=e[0],n=e[1];return(0,t.useEffect)((function(){var e=function(){var e=Qe(qe().mark((function e(){return qe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qu();case 2:console.log("Blockchain dimuat"),n(!0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,mt.jsxs)("div",{className:"min-h-screen relative",children:[r?(0,mt.jsxs)(Ie,{children:[(0,mt.jsx)(Oe,{path:"/",element:(0,mt.jsx)(hc,{})}),(0,mt.jsx)(Oe,{path:"projects",element:(0,mt.jsx)(Fl,{})}),(0,mt.jsx)(Oe,{path:"/projects/:id",element:(0,mt.jsx)(Wl,{})})]}):null,(0,mt.jsx)(pr,{position:"bottom-center",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"dark"})]})};n.createRoot(document.getElementById("root")).render((0,mt.jsx)(Ue,{children:(0,mt.jsx)(dc,{})}))}()}();
//# sourceMappingURL=main.ed7d9119.js.map