=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,Me=new Uint8Array(D);N!==R;){for(var k=w[N],Ae=0,Ie=D-1;(k!==0||Ae>>0,Me[Ie]=k%m>>>0,k=k/m>>>0;if(k!==0)throw new Error("Non-zero carry");P=Ae,N++}for(var Ee=D-P;Ee!==D&&Me[Ee]===0;)Ee++;for(var Le=x.repeat(E);Ee>>0,D=new Uint8Array(R);E255)return;var k=t[Me];if(k===255)return;for(var Ae=0,Ie=R-1;(k!==0||Ae>>0,D[Ie]=k%256>>>0,k=k/256>>>0;if(k!==0)throw new Error("Non-zero carry");N=Ae,E++}for(var Ee=R-N;Ee!==R&&D[Ee]===0;)Ee++;var Le=qr.allocUnsafe(P+(R-Ee));Le.fill(0,0,P);for(var q=P;Ee!==R;)Le[q++]=D[Ee++];return Le}function M(w){var E=g(w);if(E)return E;throw new Error("Non-base"+m+" character")}return{encode:y,decodeUnsafe:g,decode:M}}var Un=$n,On=Un,Fn="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",Kn=On(Fn),m0=Kn,Hn=ut.Buffer,Gn=function(f){function t(a){var m=f(a);return m0.encode(Hn.concat([a,m],a.length+4))}function n(a){var m=a.slice(0,-4),x=a.slice(-4),_=f(m);if(!(x[0]^_[0]|x[1]^_[1]|x[2]^_[2]|x[3]^_[3]))return m}function h(a){var m=m0.decodeUnsafe(a);if(m)return n(m)}function d(a){var m=m0.decode(a),x=n(m);if(!x)throw new Error("Invalid checksum");return x}return{encode:t,decode:d,decodeUnsafe:h}},j0=L0,Zn=Gn;function Wn(f){var t=j0("sha256").update(f).digest();return j0("sha256").update(t).digest()}var Jn=Zn(Wn),Fr="qpzry9x8gf2tvdw0s3jn54khce6mua7l",E0={};for(var Vr=0;Vr>25;return(f&33554431)<<5^-(t>>0&1)&996825010^-(t>>1&1)&642813549^-(t>>2&1)&513874426^-(t>>3&1)&1027748829^-(t>>4&1)&705979059}function kf(f){for(var t=1,n=0;n126)return"Invalid prefix ("+f+")";t=Zt(t)^h>>5}for(t=Zt(t),n=0;nn)throw new TypeError("Exceeds length limit");f=f.toLowerCase();var h=kf(f);if(typeof h=="string")throw new Error(h);for(var d=f+"1",a=0;a>5)throw new Error("Non 5-bit word");h=Zt(h)^m,d+=Fr.charAt(m)}for(a=0;a<6;++a)h=Zt(h);for(h^=1,a=0;a<6;++a){var x=h>>(5-a)*5&31;d+=Fr.charAt(x)}return d}function $f(f,t){if(t=t||90,f.length<8)return f+" too short";if(f.length>t)return"Exceeds length limit";var n=f.toLowerCase(),h=f.toUpperCase();if(f!==n&&f!==h)return"Mixed-case string "+f;f=n;var d=f.lastIndexOf("1");if(d===-1)return"No separator character for "+f;if(d===0)return"Missing prefix for "+f;var a=f.slice(0,d),m=f.slice(d+1);if(m.length<6)return"Data too short";var x=kf(a);if(typeof x=="string")return x;for(var _=[],A=0;A=m.length)&&_.push(g)}return x!==1?"Invalid checksum for "+f:{prefix:a,words:_}}function Qn(){var f=$f.apply(null,arguments);if(typeof f=="object")return f}function jn(f){var t=$f.apply(null,arguments);if(typeof t=="object")return t;throw new Error(t)}function n0(f,t,n,h){for(var d=0,a=0,m=(1<=n;)a-=n,x.push(d>>a&m);if(h)a>0&&x.push(d<=t)return"Excess padding";if(d<=n)throw RangeError(h)};var ar={},nh=ut.Buffer;function hh(f){if(f.length<8||f.length>72||f[0]!==48||f[1]!==f.length-2||f[2]!==2)return!1;var t=f[3];if(t===0||5+t>=f.length||f[4+t]!==2)return!1;var n=f[5+t];return!(n===0||6+t+n!==f.length||f[4]&128||t>1&&f[4]===0&&!(f[5]&128)||f[t+6]&128||n>1&&f[t+6]===0&&!(f[t+7]&128))}function sh(f){if(f.length<8)throw new Error("DER sequence length is too short");if(f.length>72)throw new Error("DER sequence length is too long");if(f[0]!==48)throw new Error("Expected DER sequence");if(f[1]!==f.length-2)throw new Error("DER sequence length is invalid");if(f[2]!==2)throw new Error("Expected DER integer");var t=f[3];if(t===0)throw new Error("R length is zero");if(5+t>=f.length)throw new Error("R length is too long");if(f[4+t]!==2)throw new Error("Expected DER integer (2)");var n=f[5+t];if(n===0)throw new Error("S length is zero");if(6+t+n!==f.length)throw new Error("S length is invalid");if(f[4]&128)throw new Error("R value is negative");if(t>1&&f[4]===0&&!(f[5]&128))throw new Error("R value excessively padded");if(f[t+6]&128)throw new Error("S value is negative");if(n>1&&f[t+6]===0&&!(f[t+7]&128))throw new Error("S value excessively padded");return{r:f.slice(4,4+t),s:f.slice(6+t)}}function dh(f,t){var n=f.length,h=t.length;if(n===0)throw new Error("R length is zero");if(h===0)throw new Error("S length is zero");if(n>33)throw new Error("R length is too long");if(h>33)throw new Error("S length is too long");if(f[0]&128)throw new Error("R value is negative");if(t[0]&128)throw new Error("S value is negative");if(n>1&&f[0]===0&&!(f[1]&128))throw new Error("R value excessively padded");if(h>1&&t[0]===0&&!(t[1]&128))throw new Error("S value excessively padded");var d=nh.allocUnsafe(6+n+h);return d[0]=48,d[1]=d.length-2,d[2]=2,d[3]=f.length,f.copy(d,4),d[4+n]=2,d[5+n]=t.length,t.copy(d,6+n),d}var oh={check:hh,decode:sh,encode:dh},We=ut.Buffer,Uf=oh,uh=We.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),ch=We.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);ar.privateKeyExport=function(f,t,n){var h=We.from(n?uh:ch);return f.copy(h,n?8:9),t.copy(h,n?181:214),h};ar.privateKeyImport=function(f){var t=f.length,n=0;if(!(t2)&&!(t1?f[n+h-2]<<8:0);if(n+=h,!(t32||t1&&t[h]===0&&!(t[h+1]&128);--n,++h);for(var d=We.concat([We.from([0]),f.s]),a=33,m=0;a>1&&d[m]===0&&!(d[m+1]&128);--a,++m);return Uf.encode(t.slice(h),d.slice(m))};ar.signatureImport=function(f){var t=We.alloc(32,0),n=We.alloc(32,0);try{var h=Uf.decode(f);if(h.r.length===33&&h.r[0]===0&&(h.r=h.r.slice(1)),h.r.length>32)throw new Error("R length is too long");if(h.s.length===33&&h.s[0]===0&&(h.s=h.s.slice(1)),h.s.length>32)throw new Error("S length is too long")}catch{return}return h.r.copy(t,32-h.r.length),h.s.copy(n,32-h.s.length),{r:t,s:n}};ar.signatureImportLax=function(f){var t=We.alloc(32,0),n=We.alloc(32,0),h=f.length,d=0;if(f[d++]===48){var a=f[d++];if(!(a&128&&(d+=a-128,d>h))&&f[d++]===2){var m=f[d++];if(m&128){if(a=m-128,d+a>h)return;for(;a>0&&f[d]===0;d+=1,a-=1);for(m=0;a>0;d+=1,a-=1)m=(m<<8)+f[d]}if(!(m>h-d)){var x=d;if(d+=m,f[d++]===2){var _=f[d++];if(_&128){if(a=_-128,d+a>h)return;for(;a>0&&f[d]===0;d+=1,a-=1);for(_=0;a>0;d+=1,a-=1)_=(_<<8)+f[d]}if(!(_>h-d)){var A=d;for(d+=_;m>0&&f[x]===0;m-=1,x+=1);if(!(m>32)){var y=f.slice(x,x+m);for(y.copy(t,32-y.length);_>0&&f[A]===0;_-=1,A+=1);if(!(_>32)){var g=f.slice(A,A+_);return g.copy(n,32-g.length),{r:t,s:n}}}}}}}}};const lh="compressed should be a boolean",vh="private key should be a Buffer",bh="private key length is invalid",ph="private key range is invalid",xh="tweak out of range or resulting private key is invalid",mh="tweak out of range",gh="couldn't export to DER format",_h="couldn't import from DER format",yh="public keys should be an Array",Mh="public keys Array should have at least 1 element",wh="public key should be a Buffer",Ah="public key length is invalid",Eh="the public key could not be parsed or is invalid",Ih="private was invalid, try again",Sh="tweak out of range or resulting public key is invalid",Lh="tweak out of range",Ph="the sum of the public keys is not valid",Bh="scalar was invalid (zero or overflow)",Rh="signature should be a Buffer",Nh="signature length is invalid",Th="couldn't parse signature",Ch="couldn't parse DER signature",Dh="couldn't serialize signature to DER format",zh="nonce generation function failed or private key is invalid",qh="couldn't recover public key from signature",Vh="message should be a Buffer",Yh="message length is invalid",kh="options should be an Object",$h="options.data should be a Buffer",Uh="options.data length is invalid",Oh="options.noncefn should be a Function",Fh="recovery should be a Number",Kh="recovery should have value between -1 and 4",Hh="tweak should be a Buffer",Gh="tweak length is invalid",Of={COMPRESSED_TYPE_INVALID:lh,EC_PRIVATE_KEY_TYPE_INVALID:vh,EC_PRIVATE_KEY_LENGTH_INVALID:bh,EC_PRIVATE_KEY_RANGE_INVALID:ph,EC_PRIVATE_KEY_TWEAK_ADD_FAIL:xh,EC_PRIVATE_KEY_TWEAK_MUL_FAIL:mh,EC_PRIVATE_KEY_EXPORT_DER_FAIL:gh,EC_PRIVATE_KEY_IMPORT_DER_FAIL:_h,EC_PUBLIC_KEYS_TYPE_INVALID:yh,EC_PUBLIC_KEYS_LENGTH_INVALID:Mh,EC_PUBLIC_KEY_TYPE_INVALID:wh,EC_PUBLIC_KEY_LENGTH_INVALID:Ah,EC_PUBLIC_KEY_PARSE_FAIL:Eh,EC_PUBLIC_KEY_CREATE_FAIL:Ih,EC_PUBLIC_KEY_TWEAK_ADD_FAIL:Sh,EC_PUBLIC_KEY_TWEAK_MUL_FAIL:Lh,EC_PUBLIC_KEY_COMBINE_FAIL:Ph,ECDH_FAIL:Bh,ECDSA_SIGNATURE_TYPE_INVALID:Rh,ECDSA_SIGNATURE_LENGTH_INVALID:Nh,ECDSA_SIGNATURE_PARSE_FAIL:Th,ECDSA_SIGNATURE_PARSE_DER_FAIL:Ch,ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:Dh,ECDSA_SIGN_FAIL:zh,ECDSA_RECOVER_FAIL:qh,MSG32_TYPE_INVALID:Vh,MSG32_LENGTH_INVALID:Yh,OPTIONS_TYPE_INVALID:kh,OPTIONS_DATA_TYPE_INVALID:$h,OPTIONS_DATA_LENGTH_INVALID:Uh,OPTIONS_NONCEFN_TYPE_INVALID:Oh,RECOVERY_ID_TYPE_INVALID:Fh,RECOVERY_ID_VALUE_INVALID:Kh,TWEAK_TYPE_INVALID:Hh,TWEAK_LENGTH_INVALID:Gh};var C=Qe,Rr=ar,T=Of;function bt(f,t){return f===void 0?t:(C.isBoolean(f,T.COMPRESSED_TYPE_INVALID),f)}var Zh=function(f){return{privateKeyVerify:function(t){return C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),t.length===32&&f.privateKeyVerify(t)},privateKeyExport:function(t,n){C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),C.isBufferLength(t,32,T.EC_PRIVATE_KEY_LENGTH_INVALID),n=bt(n,!0);var h=f.privateKeyExport(t,n);return Rr.privateKeyExport(t,h,n)},privateKeyImport:function(t){if(C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),t=Rr.privateKeyImport(t),t&&t.length===32&&f.privateKeyVerify(t))return t;throw new Error(T.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(t){return C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),C.isBufferLength(t,32,T.EC_PRIVATE_KEY_LENGTH_INVALID),f.privateKeyNegate(t)},privateKeyModInverse:function(t){return C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),C.isBufferLength(t,32,T.EC_PRIVATE_KEY_LENGTH_INVALID),f.privateKeyModInverse(t)},privateKeyTweakAdd:function(t,n){return C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),C.isBufferLength(t,32,T.EC_PRIVATE_KEY_LENGTH_INVALID),C.isBuffer(n,T.TWEAK_TYPE_INVALID),C.isBufferLength(n,32,T.TWEAK_LENGTH_INVALID),f.privateKeyTweakAdd(t,n)},privateKeyTweakMul:function(t,n){return C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),C.isBufferLength(t,32,T.EC_PRIVATE_KEY_LENGTH_INVALID),C.isBuffer(n,T.TWEAK_TYPE_INVALID),C.isBufferLength(n,32,T.TWEAK_LENGTH_INVALID),f.privateKeyTweakMul(t,n)},publicKeyCreate:function(t,n){return C.isBuffer(t,T.EC_PRIVATE_KEY_TYPE_INVALID),C.isBufferLength(t,32,T.EC_PRIVATE_KEY_LENGTH_INVALID),n=bt(n,!0),f.publicKeyCreate(t,n)},publicKeyConvert:function(t,n){return C.isBuffer(t,T.EC_PUBLIC_KEY_TYPE_INVALID),C.isBufferLength2(t,33,65,T.EC_PUBLIC_KEY_LENGTH_INVALID),n=bt(n,!0),f.publicKeyConvert(t,n)},publicKeyVerify:function(t){return C.isBuffer(t,T.EC_PUBLIC_KEY_TYPE_INVALID),f.publicKeyVerify(t)},publicKeyTweakAdd:function(t,n,h){return C.isBuffer(t,T.EC_PUBLIC_KEY_TYPE_INVALID),C.isBufferLength2(t,33,65,T.EC_PUBLIC_KEY_LENGTH_INVALID),C.isBuffer(n,T.TWEAK_TYPE_INVALID),C.isBufferLength(n,32,T.TWEAK_LENGTH_INVALID),h=bt(h,!0),f.publicKeyTweakAdd(t,n,h)},publicKeyTweakMul:function(t,n,h){return C.isBuffer(t,T.EC_PUBLIC_KEY_TYPE_INVALID),C.isBufferLength2(t,33,65,T.EC_PUBLIC_KEY_LENGTH_INVALID),C.isBuffer(n,T.TWEAK_TYPE_INVALID),C.isBufferLength(n,32,T.TWEAK_LENGTH_INVALID),h=bt(h,!0),f.publicKeyTweakMul(t,n,h)},publicKeyCombine:function(t,n){C.isArray(t,T.EC_PUBLIC_KEYS_TYPE_INVALID),C.isLengthGTZero(t,T.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var h=0;h0?e:i},a.min=function(e,i){return e.cmp(i)<0?e:i},a.prototype._init=function(e,i,s){if(typeof e=="number")return this._initNumber(e,i,s);if(typeof e=="object")return this._initArray(e,i,s);i==="hex"&&(i=16),h(i===(i|0)&&i>=2&&i<=36),e=e.toString().replace(/\s+/g,"");var o=0;e[0]==="-"&&(o++,this.negative=1),o=0;o-=3)b=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[l]|=b<>>26-p&67108863,p+=24,p>=26&&(p-=26,l++);else if(s==="le")for(o=0,l=0;o>>26-p&67108863,p+=24,p>=26&&(p-=26,l++);return this.strip()};function x(v,e){var i=v.charCodeAt(e);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function _(v,e,i){var s=x(v,i);return i-1>=e&&(s|=x(v,i-1)<<4),s}a.prototype._parseHex=function(e,i,s){this.length=Math.ceil((e.length-i)/6),this.words=new Array(this.length);for(var o=0;o=i;o-=2)p=_(e,i,o)<=18?(l-=18,b+=1,this.words[b]|=p>>>26):l+=8;else{var u=e.length-i;for(o=u%2===0?i+1:i;o=18?(l-=18,b+=1,this.words[b]|=p>>>26):l+=8}this.strip()};function A(v,e,i,s){for(var o=0,l=Math.min(v.length,i),b=e;b=49?o+=p-49+10:p>=17?o+=p-17+10:o+=p}return o}a.prototype._parseBase=function(e,i,s){this.words=[0],this.length=1;for(var o=0,l=1;l<=67108863;l*=i)o++;o--,l=l/i|0;for(var b=e.length-s,p=b%o,u=Math.min(b,b-p)+s,r=0,c=s;c1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var y=["","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"],g=[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],M=[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,i){e=e||10,i=i|0||1;var s;if(e===16||e==="hex"){s="";for(var o=0,l=0,b=0;b>>24-o&16777215,o+=2,o>=26&&(o-=26,b--),l!==0||b!==this.length-1?s=y[6-u.length]+u+s:s=u+s}for(l!==0&&(s=l.toString(16)+s);s.length%i!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}if(e===(e|0)&&e>=2&&e<=36){var r=g[e],c=M[e];s="";var I=this.clone();for(I.negative=0;!I.isZero();){var S=I.modn(c).toString(e);I=I.idivn(c),I.isZero()?s=S+s:s=y[r-S.length]+S+s}for(this.isZero()&&(s="0"+s);s.length%i!==0;)s="0"+s;return this.negative!==0&&(s="-"+s),s}h(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=this.words[1]*67108864:this.length===3&&this.words[2]===1?e+=4503599627370496+this.words[1]*67108864:this.length>2&&h(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,i){return h(typeof m<"u"),this.toArrayLike(m,e,i)},a.prototype.toArray=function(e,i){return this.toArrayLike(Array,e,i)},a.prototype.toArrayLike=function(e,i,s){var o=this.byteLength(),l=s||Math.max(1,o);h(o<=l,"byte array longer than desired length"),h(l>0,"Requested array length <= 0"),this.strip();var b=i==="le",p=new e(l),u,r,c=this.clone();if(b){for(r=0;!c.isZero();r++)u=c.andln(255),c.iushrn(8),p[r]=u;for(;r=4096&&(s+=13,i>>>=13),i>=64&&(s+=7,i>>>=7),i>=8&&(s+=4,i>>>=4),i>=2&&(s+=2,i>>>=2),s+i},a.prototype._zeroBits=function(e){if(e===0)return 26;var i=e,s=0;return i&8191||(s+=13,i>>>=13),i&127||(s+=7,i>>>=7),i&15||(s+=4,i>>>=4),i&3||(s+=2,i>>>=2),i&1||s++,s},a.prototype.bitLength=function(){var e=this.words[this.length-1],i=this._countBits(e);return(this.length-1)*26+i};function w(v){for(var e=new Array(v.bitLength()),i=0;i>>o}return e}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,i=0;ie.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 i;this.length>e.length?i=e:i=this;for(var s=0;se.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 i,s;this.length>e.length?(i=this,s=e):(i=e,s=this);for(var o=0;oe.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){h(typeof e=="number"&&e>=0);var i=Math.ceil(e/26)|0,s=e%26;this._expand(i),s>0&&i--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-s),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,i){h(typeof e=="number"&&e>=0);var s=e/26|0,o=e%26;return this._expand(s+1),i?this.words[s]=this.words[s]|1<e.length?(s=this,o=e):(s=e,o=this);for(var l=0,b=0;b>>26;for(;l!==0&&b>>26;if(this.length=s.length,l!==0)this.words[this.length]=l,this.length++;else if(s!==this)for(;be.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var i=this.iadd(e);return e.negative=1,i._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var s=this.cmp(e);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;var o,l;s>0?(o=this,l=e):(o=e,l=this);for(var b=0,p=0;p>26,this.words[p]=i&67108863;for(;b!==0&&p>26,this.words[p]=i&67108863;if(b===0&&p>>26,I=u&67108863,S=Math.min(r,e.length-1),L=Math.max(0,r-v.length+1);L<=S;L++){var B=r-L|0;o=v.words[B]|0,l=e.words[L]|0,b=o*l+I,c+=b/67108864|0,I=b&67108863}i.words[r]=I|0,u=c|0}return u!==0?i.words[r]=u|0:i.length--,i.strip()}var P=function(e,i,s){var o=e.words,l=i.words,b=s.words,p=0,u,r,c,I=o[0]|0,S=I&8191,L=I>>>13,B=o[1]|0,z=B&8191,V=B>>>13,Ce=o[2]|0,Y=Ce&8191,$=Ce>>>13,nr=o[3]|0,U=nr&8191,O=nr>>>13,hr=o[4]|0,F=hr&8191,K=hr>>>13,sr=o[5]|0,H=sr&8191,G=sr>>>13,dr=o[6]|0,Z=dr&8191,W=dr>>>13,or=o[7]|0,J=or&8191,X=or>>>13,ur=o[8]|0,Q=ur&8191,j=ur>>>13,cr=o[9]|0,ee=cr&8191,te=cr>>>13,lr=l[0]|0,re=lr&8191,fe=lr>>>13,vr=l[1]|0,ie=vr&8191,ae=vr>>>13,br=l[2]|0,ne=br&8191,he=br>>>13,pr=l[3]|0,se=pr&8191,de=pr>>>13,xr=l[4]|0,oe=xr&8191,ue=xr>>>13,mr=l[5]|0,ce=mr&8191,le=mr>>>13,gr=l[6]|0,ve=gr&8191,be=gr>>>13,_r=l[7]|0,pe=_r&8191,xe=_r>>>13,yr=l[8]|0,me=yr&8191,ge=yr>>>13,Mr=l[9]|0,_e=Mr&8191,ye=Mr>>>13;s.negative=e.negative^i.negative,s.length=19,u=Math.imul(S,re),r=Math.imul(S,fe),r=r+Math.imul(L,re)|0,c=Math.imul(L,fe);var yt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,u=Math.imul(z,re),r=Math.imul(z,fe),r=r+Math.imul(V,re)|0,c=Math.imul(V,fe),u=u+Math.imul(S,ie)|0,r=r+Math.imul(S,ae)|0,r=r+Math.imul(L,ie)|0,c=c+Math.imul(L,ae)|0;var Mt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,u=Math.imul(Y,re),r=Math.imul(Y,fe),r=r+Math.imul($,re)|0,c=Math.imul($,fe),u=u+Math.imul(z,ie)|0,r=r+Math.imul(z,ae)|0,r=r+Math.imul(V,ie)|0,c=c+Math.imul(V,ae)|0,u=u+Math.imul(S,ne)|0,r=r+Math.imul(S,he)|0,r=r+Math.imul(L,ne)|0,c=c+Math.imul(L,he)|0;var wt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,u=Math.imul(U,re),r=Math.imul(U,fe),r=r+Math.imul(O,re)|0,c=Math.imul(O,fe),u=u+Math.imul(Y,ie)|0,r=r+Math.imul(Y,ae)|0,r=r+Math.imul($,ie)|0,c=c+Math.imul($,ae)|0,u=u+Math.imul(z,ne)|0,r=r+Math.imul(z,he)|0,r=r+Math.imul(V,ne)|0,c=c+Math.imul(V,he)|0,u=u+Math.imul(S,se)|0,r=r+Math.imul(S,de)|0,r=r+Math.imul(L,se)|0,c=c+Math.imul(L,de)|0;var At=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(At>>>26)|0,At&=67108863,u=Math.imul(F,re),r=Math.imul(F,fe),r=r+Math.imul(K,re)|0,c=Math.imul(K,fe),u=u+Math.imul(U,ie)|0,r=r+Math.imul(U,ae)|0,r=r+Math.imul(O,ie)|0,c=c+Math.imul(O,ae)|0,u=u+Math.imul(Y,ne)|0,r=r+Math.imul(Y,he)|0,r=r+Math.imul($,ne)|0,c=c+Math.imul($,he)|0,u=u+Math.imul(z,se)|0,r=r+Math.imul(z,de)|0,r=r+Math.imul(V,se)|0,c=c+Math.imul(V,de)|0,u=u+Math.imul(S,oe)|0,r=r+Math.imul(S,ue)|0,r=r+Math.imul(L,oe)|0,c=c+Math.imul(L,ue)|0;var Et=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,u=Math.imul(H,re),r=Math.imul(H,fe),r=r+Math.imul(G,re)|0,c=Math.imul(G,fe),u=u+Math.imul(F,ie)|0,r=r+Math.imul(F,ae)|0,r=r+Math.imul(K,ie)|0,c=c+Math.imul(K,ae)|0,u=u+Math.imul(U,ne)|0,r=r+Math.imul(U,he)|0,r=r+Math.imul(O,ne)|0,c=c+Math.imul(O,he)|0,u=u+Math.imul(Y,se)|0,r=r+Math.imul(Y,de)|0,r=r+Math.imul($,se)|0,c=c+Math.imul($,de)|0,u=u+Math.imul(z,oe)|0,r=r+Math.imul(z,ue)|0,r=r+Math.imul(V,oe)|0,c=c+Math.imul(V,ue)|0,u=u+Math.imul(S,ce)|0,r=r+Math.imul(S,le)|0,r=r+Math.imul(L,ce)|0,c=c+Math.imul(L,le)|0;var It=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(It>>>26)|0,It&=67108863,u=Math.imul(Z,re),r=Math.imul(Z,fe),r=r+Math.imul(W,re)|0,c=Math.imul(W,fe),u=u+Math.imul(H,ie)|0,r=r+Math.imul(H,ae)|0,r=r+Math.imul(G,ie)|0,c=c+Math.imul(G,ae)|0,u=u+Math.imul(F,ne)|0,r=r+Math.imul(F,he)|0,r=r+Math.imul(K,ne)|0,c=c+Math.imul(K,he)|0,u=u+Math.imul(U,se)|0,r=r+Math.imul(U,de)|0,r=r+Math.imul(O,se)|0,c=c+Math.imul(O,de)|0,u=u+Math.imul(Y,oe)|0,r=r+Math.imul(Y,ue)|0,r=r+Math.imul($,oe)|0,c=c+Math.imul($,ue)|0,u=u+Math.imul(z,ce)|0,r=r+Math.imul(z,le)|0,r=r+Math.imul(V,ce)|0,c=c+Math.imul(V,le)|0,u=u+Math.imul(S,ve)|0,r=r+Math.imul(S,be)|0,r=r+Math.imul(L,ve)|0,c=c+Math.imul(L,be)|0;var St=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(St>>>26)|0,St&=67108863,u=Math.imul(J,re),r=Math.imul(J,fe),r=r+Math.imul(X,re)|0,c=Math.imul(X,fe),u=u+Math.imul(Z,ie)|0,r=r+Math.imul(Z,ae)|0,r=r+Math.imul(W,ie)|0,c=c+Math.imul(W,ae)|0,u=u+Math.imul(H,ne)|0,r=r+Math.imul(H,he)|0,r=r+Math.imul(G,ne)|0,c=c+Math.imul(G,he)|0,u=u+Math.imul(F,se)|0,r=r+Math.imul(F,de)|0,r=r+Math.imul(K,se)|0,c=c+Math.imul(K,de)|0,u=u+Math.imul(U,oe)|0,r=r+Math.imul(U,ue)|0,r=r+Math.imul(O,oe)|0,c=c+Math.imul(O,ue)|0,u=u+Math.imul(Y,ce)|0,r=r+Math.imul(Y,le)|0,r=r+Math.imul($,ce)|0,c=c+Math.imul($,le)|0,u=u+Math.imul(z,ve)|0,r=r+Math.imul(z,be)|0,r=r+Math.imul(V,ve)|0,c=c+Math.imul(V,be)|0,u=u+Math.imul(S,pe)|0,r=r+Math.imul(S,xe)|0,r=r+Math.imul(L,pe)|0,c=c+Math.imul(L,xe)|0;var Lt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,u=Math.imul(Q,re),r=Math.imul(Q,fe),r=r+Math.imul(j,re)|0,c=Math.imul(j,fe),u=u+Math.imul(J,ie)|0,r=r+Math.imul(J,ae)|0,r=r+Math.imul(X,ie)|0,c=c+Math.imul(X,ae)|0,u=u+Math.imul(Z,ne)|0,r=r+Math.imul(Z,he)|0,r=r+Math.imul(W,ne)|0,c=c+Math.imul(W,he)|0,u=u+Math.imul(H,se)|0,r=r+Math.imul(H,de)|0,r=r+Math.imul(G,se)|0,c=c+Math.imul(G,de)|0,u=u+Math.imul(F,oe)|0,r=r+Math.imul(F,ue)|0,r=r+Math.imul(K,oe)|0,c=c+Math.imul(K,ue)|0,u=u+Math.imul(U,ce)|0,r=r+Math.imul(U,le)|0,r=r+Math.imul(O,ce)|0,c=c+Math.imul(O,le)|0,u=u+Math.imul(Y,ve)|0,r=r+Math.imul(Y,be)|0,r=r+Math.imul($,ve)|0,c=c+Math.imul($,be)|0,u=u+Math.imul(z,pe)|0,r=r+Math.imul(z,xe)|0,r=r+Math.imul(V,pe)|0,c=c+Math.imul(V,xe)|0,u=u+Math.imul(S,me)|0,r=r+Math.imul(S,ge)|0,r=r+Math.imul(L,me)|0,c=c+Math.imul(L,ge)|0;var Pt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,u=Math.imul(ee,re),r=Math.imul(ee,fe),r=r+Math.imul(te,re)|0,c=Math.imul(te,fe),u=u+Math.imul(Q,ie)|0,r=r+Math.imul(Q,ae)|0,r=r+Math.imul(j,ie)|0,c=c+Math.imul(j,ae)|0,u=u+Math.imul(J,ne)|0,r=r+Math.imul(J,he)|0,r=r+Math.imul(X,ne)|0,c=c+Math.imul(X,he)|0,u=u+Math.imul(Z,se)|0,r=r+Math.imul(Z,de)|0,r=r+Math.imul(W,se)|0,c=c+Math.imul(W,de)|0,u=u+Math.imul(H,oe)|0,r=r+Math.imul(H,ue)|0,r=r+Math.imul(G,oe)|0,c=c+Math.imul(G,ue)|0,u=u+Math.imul(F,ce)|0,r=r+Math.imul(F,le)|0,r=r+Math.imul(K,ce)|0,c=c+Math.imul(K,le)|0,u=u+Math.imul(U,ve)|0,r=r+Math.imul(U,be)|0,r=r+Math.imul(O,ve)|0,c=c+Math.imul(O,be)|0,u=u+Math.imul(Y,pe)|0,r=r+Math.imul(Y,xe)|0,r=r+Math.imul($,pe)|0,c=c+Math.imul($,xe)|0,u=u+Math.imul(z,me)|0,r=r+Math.imul(z,ge)|0,r=r+Math.imul(V,me)|0,c=c+Math.imul(V,ge)|0,u=u+Math.imul(S,_e)|0,r=r+Math.imul(S,ye)|0,r=r+Math.imul(L,_e)|0,c=c+Math.imul(L,ye)|0;var Bt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,u=Math.imul(ee,ie),r=Math.imul(ee,ae),r=r+Math.imul(te,ie)|0,c=Math.imul(te,ae),u=u+Math.imul(Q,ne)|0,r=r+Math.imul(Q,he)|0,r=r+Math.imul(j,ne)|0,c=c+Math.imul(j,he)|0,u=u+Math.imul(J,se)|0,r=r+Math.imul(J,de)|0,r=r+Math.imul(X,se)|0,c=c+Math.imul(X,de)|0,u=u+Math.imul(Z,oe)|0,r=r+Math.imul(Z,ue)|0,r=r+Math.imul(W,oe)|0,c=c+Math.imul(W,ue)|0,u=u+Math.imul(H,ce)|0,r=r+Math.imul(H,le)|0,r=r+Math.imul(G,ce)|0,c=c+Math.imul(G,le)|0,u=u+Math.imul(F,ve)|0,r=r+Math.imul(F,be)|0,r=r+Math.imul(K,ve)|0,c=c+Math.imul(K,be)|0,u=u+Math.imul(U,pe)|0,r=r+Math.imul(U,xe)|0,r=r+Math.imul(O,pe)|0,c=c+Math.imul(O,xe)|0,u=u+Math.imul(Y,me)|0,r=r+Math.imul(Y,ge)|0,r=r+Math.imul($,me)|0,c=c+Math.imul($,ge)|0,u=u+Math.imul(z,_e)|0,r=r+Math.imul(z,ye)|0,r=r+Math.imul(V,_e)|0,c=c+Math.imul(V,ye)|0;var Rt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u=Math.imul(ee,ne),r=Math.imul(ee,he),r=r+Math.imul(te,ne)|0,c=Math.imul(te,he),u=u+Math.imul(Q,se)|0,r=r+Math.imul(Q,de)|0,r=r+Math.imul(j,se)|0,c=c+Math.imul(j,de)|0,u=u+Math.imul(J,oe)|0,r=r+Math.imul(J,ue)|0,r=r+Math.imul(X,oe)|0,c=c+Math.imul(X,ue)|0,u=u+Math.imul(Z,ce)|0,r=r+Math.imul(Z,le)|0,r=r+Math.imul(W,ce)|0,c=c+Math.imul(W,le)|0,u=u+Math.imul(H,ve)|0,r=r+Math.imul(H,be)|0,r=r+Math.imul(G,ve)|0,c=c+Math.imul(G,be)|0,u=u+Math.imul(F,pe)|0,r=r+Math.imul(F,xe)|0,r=r+Math.imul(K,pe)|0,c=c+Math.imul(K,xe)|0,u=u+Math.imul(U,me)|0,r=r+Math.imul(U,ge)|0,r=r+Math.imul(O,me)|0,c=c+Math.imul(O,ge)|0,u=u+Math.imul(Y,_e)|0,r=r+Math.imul(Y,ye)|0,r=r+Math.imul($,_e)|0,c=c+Math.imul($,ye)|0;var Nt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u=Math.imul(ee,se),r=Math.imul(ee,de),r=r+Math.imul(te,se)|0,c=Math.imul(te,de),u=u+Math.imul(Q,oe)|0,r=r+Math.imul(Q,ue)|0,r=r+Math.imul(j,oe)|0,c=c+Math.imul(j,ue)|0,u=u+Math.imul(J,ce)|0,r=r+Math.imul(J,le)|0,r=r+Math.imul(X,ce)|0,c=c+Math.imul(X,le)|0,u=u+Math.imul(Z,ve)|0,r=r+Math.imul(Z,be)|0,r=r+Math.imul(W,ve)|0,c=c+Math.imul(W,be)|0,u=u+Math.imul(H,pe)|0,r=r+Math.imul(H,xe)|0,r=r+Math.imul(G,pe)|0,c=c+Math.imul(G,xe)|0,u=u+Math.imul(F,me)|0,r=r+Math.imul(F,ge)|0,r=r+Math.imul(K,me)|0,c=c+Math.imul(K,ge)|0,u=u+Math.imul(U,_e)|0,r=r+Math.imul(U,ye)|0,r=r+Math.imul(O,_e)|0,c=c+Math.imul(O,ye)|0;var Tt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,u=Math.imul(ee,oe),r=Math.imul(ee,ue),r=r+Math.imul(te,oe)|0,c=Math.imul(te,ue),u=u+Math.imul(Q,ce)|0,r=r+Math.imul(Q,le)|0,r=r+Math.imul(j,ce)|0,c=c+Math.imul(j,le)|0,u=u+Math.imul(J,ve)|0,r=r+Math.imul(J,be)|0,r=r+Math.imul(X,ve)|0,c=c+Math.imul(X,be)|0,u=u+Math.imul(Z,pe)|0,r=r+Math.imul(Z,xe)|0,r=r+Math.imul(W,pe)|0,c=c+Math.imul(W,xe)|0,u=u+Math.imul(H,me)|0,r=r+Math.imul(H,ge)|0,r=r+Math.imul(G,me)|0,c=c+Math.imul(G,ge)|0,u=u+Math.imul(F,_e)|0,r=r+Math.imul(F,ye)|0,r=r+Math.imul(K,_e)|0,c=c+Math.imul(K,ye)|0;var Ct=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,u=Math.imul(ee,ce),r=Math.imul(ee,le),r=r+Math.imul(te,ce)|0,c=Math.imul(te,le),u=u+Math.imul(Q,ve)|0,r=r+Math.imul(Q,be)|0,r=r+Math.imul(j,ve)|0,c=c+Math.imul(j,be)|0,u=u+Math.imul(J,pe)|0,r=r+Math.imul(J,xe)|0,r=r+Math.imul(X,pe)|0,c=c+Math.imul(X,xe)|0,u=u+Math.imul(Z,me)|0,r=r+Math.imul(Z,ge)|0,r=r+Math.imul(W,me)|0,c=c+Math.imul(W,ge)|0,u=u+Math.imul(H,_e)|0,r=r+Math.imul(H,ye)|0,r=r+Math.imul(G,_e)|0,c=c+Math.imul(G,ye)|0;var Dt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,u=Math.imul(ee,ve),r=Math.imul(ee,be),r=r+Math.imul(te,ve)|0,c=Math.imul(te,be),u=u+Math.imul(Q,pe)|0,r=r+Math.imul(Q,xe)|0,r=r+Math.imul(j,pe)|0,c=c+Math.imul(j,xe)|0,u=u+Math.imul(J,me)|0,r=r+Math.imul(J,ge)|0,r=r+Math.imul(X,me)|0,c=c+Math.imul(X,ge)|0,u=u+Math.imul(Z,_e)|0,r=r+Math.imul(Z,ye)|0,r=r+Math.imul(W,_e)|0,c=c+Math.imul(W,ye)|0;var zt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(zt>>>26)|0,zt&=67108863,u=Math.imul(ee,pe),r=Math.imul(ee,xe),r=r+Math.imul(te,pe)|0,c=Math.imul(te,xe),u=u+Math.imul(Q,me)|0,r=r+Math.imul(Q,ge)|0,r=r+Math.imul(j,me)|0,c=c+Math.imul(j,ge)|0,u=u+Math.imul(J,_e)|0,r=r+Math.imul(J,ye)|0,r=r+Math.imul(X,_e)|0,c=c+Math.imul(X,ye)|0;var qt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(qt>>>26)|0,qt&=67108863,u=Math.imul(ee,me),r=Math.imul(ee,ge),r=r+Math.imul(te,me)|0,c=Math.imul(te,ge),u=u+Math.imul(Q,_e)|0,r=r+Math.imul(Q,ye)|0,r=r+Math.imul(j,_e)|0,c=c+Math.imul(j,ye)|0;var Vt=(p+u|0)+((r&8191)<<13)|0;p=(c+(r>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,u=Math.imul(ee,_e),r=Math.imul(ee,ye),r=r+Math.imul(te,_e)|0,c=Math.imul(te,ye);var Yt=(p+u|0)+((r&8191)<<13)|0;return p=(c+(r>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,b[0]=yt,b[1]=Mt,b[2]=wt,b[3]=At,b[4]=Et,b[5]=It,b[6]=St,b[7]=Lt,b[8]=Pt,b[9]=Bt,b[10]=Rt,b[11]=Nt,b[12]=Tt,b[13]=Ct,b[14]=Dt,b[15]=zt,b[16]=qt,b[17]=Vt,b[18]=Yt,p!==0&&(b[19]=p,s.length++),s};Math.imul||(P=E);function N(v,e,i){i.negative=e.negative^v.negative,i.length=v.length+e.length;for(var s=0,o=0,l=0;l>>26)|0,o+=b>>>26,b&=67108863}i.words[l]=p,s=b,b=o}return s!==0?i.words[l]=s:i.length--,i.strip()}function R(v,e,i){var s=new D;return s.mulp(v,e,i)}a.prototype.mulTo=function(e,i){var s,o=this.length+e.length;return this.length===10&&e.length===10?s=P(this,e,i):o<63?s=E(this,e,i):o<1024?s=N(this,e,i):s=R(this,e,i),s};function D(v,e){this.x=v,this.y=e}D.prototype.makeRBT=function(e){for(var i=new Array(e),s=a.prototype._countBits(e)-1,o=0;o>=1;return o},D.prototype.permute=function(e,i,s,o,l,b){for(var p=0;p>>1)l++;return 1<>>13,s[2*b+1]=l&8191,l=l>>>13;for(b=2*i;b>=26,i+=o/67108864|0,i+=l>>>26,this.words[s]=l&67108863}return i!==0&&(this.words[s]=i,this.length++),this.length=e===0?1:this.length,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 i=w(e);if(i.length===0)return new a(1);for(var s=this,o=0;o=0);var i=e%26,s=(e-i)/26,o=67108863>>>26-i<<26-i,l;if(i!==0){var b=0;for(l=0;l>>26-i}b&&(this.words[l]=b,this.length++)}if(s!==0){for(l=this.length-1;l>=0;l--)this.words[l+s]=this.words[l];for(l=0;l=0);var o;i?o=(i-i%26)/26:o=0;var l=e%26,b=Math.min((e-l)/26,this.length),p=67108863^67108863>>>l<b)for(this.length-=b,r=0;r=0&&(c!==0||r>=o);r--){var I=this.words[r]|0;this.words[r]=c<<26-l|I>>>l,c=I&p}return u&&c!==0&&(u.words[u.length++]=c),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,i,s){return h(this.negative===0),this.iushrn(e,i,s)},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){h(typeof e=="number"&&e>=0);var i=e%26,s=(e-i)/26,o=1<=0);var i=e%26,s=(e-i)/26;if(h(this.negative===0,"imaskn works only with positive numbers"),this.length<=s)return this;if(i!==0&&s++,this.length=Math.min(s,this.length),i!==0){var o=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},a.prototype.isubn=function(e){if(h(typeof e=="number"),h(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(u/67108864|0),this.words[l+s]=b&67108863}for(;l>26,this.words[l+s]=b&67108863;if(p===0)return this.strip();for(h(p===-1),p=0,l=0;l>26,this.words[l]=b&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,i){var s=this.length-e.length,o=this.clone(),l=e,b=l.words[l.length-1]|0,p=this._countBits(b);s=26-p,s!==0&&(l=l.ushln(s),o.iushln(s),b=l.words[l.length-1]|0);var u=o.length-l.length,r;if(i!=="mod"){r=new a(null),r.length=u+1,r.words=new Array(r.length);for(var c=0;c=0;S--){var L=(o.words[l.length+S]|0)*67108864+(o.words[l.length+S-1]|0);for(L=Math.min(L/b|0,67108863),o._ishlnsubmul(l,L,S);o.negative!==0;)L--,o.negative=0,o._ishlnsubmul(l,1,S),o.isZero()||(o.negative^=1);r&&(r.words[S]=L)}return r&&r.strip(),o.strip(),i!=="div"&&s!==0&&o.iushrn(s),{div:r||null,mod:o}},a.prototype.divmod=function(e,i,s){if(h(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var o,l,b;return this.negative!==0&&e.negative===0?(b=this.neg().divmod(e,i),i!=="mod"&&(o=b.div.neg()),i!=="div"&&(l=b.mod.neg(),s&&l.negative!==0&&l.iadd(e)),{div:o,mod:l}):this.negative===0&&e.negative!==0?(b=this.divmod(e.neg(),i),i!=="mod"&&(o=b.div.neg()),{div:o,mod:b.mod}):this.negative&e.negative?(b=this.neg().divmod(e.neg(),i),i!=="div"&&(l=b.mod.neg(),s&&l.negative!==0&&l.isub(e)),{div:b.div,mod:l}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?i==="div"?{div:this.divn(e.words[0]),mod:null}:i==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,i)},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 i=this.divmod(e);if(i.mod.isZero())return i.div;var s=i.div.negative!==0?i.mod.isub(e):i.mod,o=e.ushrn(1),l=e.andln(1),b=s.cmp(o);return b<0||l===1&&b===0?i.div:i.div.negative!==0?i.div.isubn(1):i.div.iaddn(1)},a.prototype.modn=function(e){h(e<=67108863);for(var i=(1<<26)%e,s=0,o=this.length-1;o>=0;o--)s=(i*s+(this.words[o]|0))%e;return s},a.prototype.idivn=function(e){h(e<=67108863);for(var i=0,s=this.length-1;s>=0;s--){var o=(this.words[s]|0)+i*67108864;this.words[s]=o/e|0,i=o%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){h(e.negative===0),h(!e.isZero());var i=this,s=e.clone();i.negative!==0?i=i.umod(e):i=i.clone();for(var o=new a(1),l=new a(0),b=new a(0),p=new a(1),u=0;i.isEven()&&s.isEven();)i.iushrn(1),s.iushrn(1),++u;for(var r=s.clone(),c=i.clone();!i.isZero();){for(var I=0,S=1;!(i.words[0]&S)&&I<26;++I,S<<=1);if(I>0)for(i.iushrn(I);I-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(r),l.isub(c)),o.iushrn(1),l.iushrn(1);for(var L=0,B=1;!(s.words[0]&B)&&L<26;++L,B<<=1);if(L>0)for(s.iushrn(L);L-- >0;)(b.isOdd()||p.isOdd())&&(b.iadd(r),p.isub(c)),b.iushrn(1),p.iushrn(1);i.cmp(s)>=0?(i.isub(s),o.isub(b),l.isub(p)):(s.isub(i),b.isub(o),p.isub(l))}return{a:b,b:p,gcd:s.iushln(u)}},a.prototype._invmp=function(e){h(e.negative===0),h(!e.isZero());var i=this,s=e.clone();i.negative!==0?i=i.umod(e):i=i.clone();for(var o=new a(1),l=new a(0),b=s.clone();i.cmpn(1)>0&&s.cmpn(1)>0;){for(var p=0,u=1;!(i.words[0]&u)&&p<26;++p,u<<=1);if(p>0)for(i.iushrn(p);p-- >0;)o.isOdd()&&o.iadd(b),o.iushrn(1);for(var r=0,c=1;!(s.words[0]&c)&&r<26;++r,c<<=1);if(r>0)for(s.iushrn(r);r-- >0;)l.isOdd()&&l.iadd(b),l.iushrn(1);i.cmp(s)>=0?(i.isub(s),o.isub(l)):(s.isub(i),l.isub(o))}var I;return i.cmpn(1)===0?I=o:I=l,I.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 i=this.clone(),s=e.clone();i.negative=0,s.negative=0;for(var o=0;i.isEven()&&s.isEven();o++)i.iushrn(1),s.iushrn(1);do{for(;i.isEven();)i.iushrn(1);for(;s.isEven();)s.iushrn(1);var l=i.cmp(s);if(l<0){var b=i;i=s,s=b}else if(l===0||s.cmpn(1)===0)break;i.isub(s)}while(!0);return s.iushln(o)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){h(typeof e=="number");var i=e%26,s=(e-i)/26,o=1<>>26,p&=67108863,this.words[b]=p}return l!==0&&(this.words[b]=l,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;this.strip();var s;if(this.length>1)s=1;else{i&&(e=-e),h(e<=67108863,"Number is too big");var o=this.words[0]|0;s=o===e?0:oe.length)return 1;if(this.length=0;s--){var o=this.words[s]|0,l=e.words[s]|0;if(o!==l){ol&&(i=1);break}}return i},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},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 this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},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 this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new q(e)},a.prototype.toRed=function(e){return h(!this.red,"Already a number in reduction context"),h(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return h(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 h(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return h(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return h(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return h(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return h(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return h(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return h(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return h(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return h(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return h(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return h(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return h(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var Me={k256:null,p224:null,p192:null,p25519:null};function k(v,e){this.name=v,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},k.prototype.ireduce=function(e){var i=e,s;do this.split(i,this.tmp),i=this.imulK(i),i=i.iadd(this.tmp),s=i.bitLength();while(s>this.n);var o=s0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},k.prototype.split=function(e,i){e.iushrn(this.n,0,i)},k.prototype.imulK=function(e){return e.imul(this.k)};function Ae(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}d(Ae,k),Ae.prototype.split=function(e,i){for(var s=4194303,o=Math.min(e.length,9),l=0;l>>22,b=p}b>>>=22,e.words[l-10]=b,b===0&&e.length>10?e.length-=10:e.length-=9},Ae.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var i=0,s=0;s>>=26,e.words[s]=l,i=o}return i!==0&&(e.words[e.length++]=i),e},a._prime=function(e){if(Me[e])return Me[e];var i;if(e==="k256")i=new Ae;else if(e==="p224")i=new Ie;else if(e==="p192")i=new Ee;else if(e==="p25519")i=new Le;else throw new Error("Unknown prime "+e);return Me[e]=i,i};function q(v){if(typeof v=="string"){var e=a._prime(v);this.m=e.p,this.prime=e}else h(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}q.prototype._verify1=function(e){h(e.negative===0,"red works only with positives"),h(e.red,"red works only with red numbers")},q.prototype._verify2=function(e,i){h((e.negative|i.negative)===0,"red works only with positives"),h(e.red&&e.red===i.red,"red works only with red numbers")},q.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},q.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},q.prototype.add=function(e,i){this._verify2(e,i);var s=e.add(i);return s.cmp(this.m)>=0&&s.isub(this.m),s._forceRed(this)},q.prototype.iadd=function(e,i){this._verify2(e,i);var s=e.iadd(i);return s.cmp(this.m)>=0&&s.isub(this.m),s},q.prototype.sub=function(e,i){this._verify2(e,i);var s=e.sub(i);return s.cmpn(0)<0&&s.iadd(this.m),s._forceRed(this)},q.prototype.isub=function(e,i){this._verify2(e,i);var s=e.isub(i);return s.cmpn(0)<0&&s.iadd(this.m),s},q.prototype.shl=function(e,i){return this._verify1(e),this.imod(e.ushln(i))},q.prototype.imul=function(e,i){return this._verify2(e,i),this.imod(e.imul(i))},q.prototype.mul=function(e,i){return this._verify2(e,i),this.imod(e.mul(i))},q.prototype.isqr=function(e){return this.imul(e,e.clone())},q.prototype.sqr=function(e){return this.mul(e,e)},q.prototype.sqrt=function(e){if(e.isZero())return e.clone();var i=this.m.andln(3);if(h(i%2===1),i===3){var s=this.m.add(new a(1)).iushrn(2);return this.pow(e,s)}for(var o=this.m.subn(1),l=0;!o.isZero()&&o.andln(1)===0;)l++,o.iushrn(1);h(!o.isZero());var b=new a(1).toRed(this),p=b.redNeg(),u=this.m.subn(1).iushrn(1),r=this.m.bitLength();for(r=new a(2*r*r).toRed(this);this.pow(r,u).cmp(p)!==0;)r.redIAdd(p);for(var c=this.pow(r,o),I=this.pow(e,o.addn(1).iushrn(1)),S=this.pow(e,o),L=l;S.cmp(b)!==0;){for(var B=S,z=0;B.cmp(b)!==0;z++)B=B.redSqr();h(z=0;l--){for(var c=i.words[l],I=r-1;I>=0;I--){var S=c>>I&1;if(b!==o[0]&&(b=this.sqr(b)),S===0&&p===0){u=0;continue}p<<=1,p|=S,u++,!(u!==s&&(l!==0||I!==0))&&(b=this.mul(b,o[p]),u=0,p=0)}r=26}return b},q.prototype.convertTo=function(e){var i=e.umod(this.m);return i===e?i.clone():i},q.prototype.convertFrom=function(e){var i=e.clone();return i.red=null,i},a.mont=function(e){return new Be(e)};function Be(v){q.call(this,v),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)}d(Be,q),Be.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Be.prototype.convertFrom=function(e){var i=this.imod(e.mul(this.rinv));return i.red=null,i},Be.prototype.imul=function(e,i){if(e.isZero()||i.isZero())return e.words[0]=0,e.length=1,e;var s=e.imul(i),o=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=s.isub(o).iushrn(this.shift),b=l;return l.cmp(this.m)>=0?b=l.isub(this.m):l.cmpn(0)<0&&(b=l.iadd(this.m)),b._forceRed(this)},Be.prototype.mul=function(e,i){if(e.isZero()||i.isZero())return new a(0)._forceRed(this);var s=e.mul(i),o=s.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),l=s.isub(o).iushrn(this.shift),b=l;return l.cmp(this.m)>=0?b=l.isub(this.m):l.cmpn(0)<0&&(b=l.iadd(this.m)),b._forceRed(this)},Be.prototype.invm=function(e){var i=this.imod(e._invmp(this.m).mul(this.r2));return i._forceRed(this)}})(f,af)})(z0);var Wh=z0.exports;(function(f){var t=ut.Buffer,n=L0,h=Wh,d=lf.ec,a=Of,m=new d("secp256k1"),x=m.curve;function _(g,M){var w=new h(M);if(w.cmp(x.p)>=0)return null;w=w.toRed(x.red);var E=w.redSqr().redIMul(w).redIAdd(x.b).redSqrt();g===3!==E.isOdd()&&(E=E.redNeg());const P=w.redSqr().redIMul(w);return E.redSqr().redISub(P.redIAdd(x.b)).isZero()?m.keyPair({pub:{x:w,y:E}}):null}function A(g,M,w){var E=new h(M),P=new h(w);if(E.cmp(x.p)>=0||P.cmp(x.p)>=0||(E=E.toRed(x.red),P=P.toRed(x.red),(g===6||g===7)&&P.isOdd()!==(g===7)))return null;var N=E.redSqr().redIMul(E);return P.redSqr().redISub(N.redIAdd(x.b)).isZero()?m.keyPair({pub:{x:E,y:P}}):null}function y(g){var M=g[0];switch(M){case 2:case 3:return g.length!==33?null:_(M,g.slice(1,33));case 4:case 6:case 7:return g.length!==65?null:A(M,g.slice(1,33),g.slice(33,65));default:return null}}f.privateKeyVerify=function(g){var M=new h(g);return M.cmp(x.n)<0&&!M.isZero()},f.privateKeyExport=function(g,M){var w=new h(g);if(w.cmp(x.n)>=0||w.isZero())throw new Error(a.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return t.from(m.keyFromPrivate(g).getPublic(M,!0))},f.privateKeyNegate=function(g){var M=new h(g);return M.isZero()?t.alloc(32):x.n.sub(M).umod(x.n).toArrayLike(t,"be",32)},f.privateKeyModInverse=function(g){var M=new h(g);if(M.cmp(x.n)>=0||M.isZero())throw new Error(a.EC_PRIVATE_KEY_RANGE_INVALID);return M.invm(x.n).toArrayLike(t,"be",32)},f.privateKeyTweakAdd=function(g,M){var w=new h(M);if(w.cmp(x.n)>=0)throw new Error(a.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(w.iadd(new h(g)),w.cmp(x.n)>=0&&w.isub(x.n),w.isZero())throw new Error(a.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return w.toArrayLike(t,"be",32)},f.privateKeyTweakMul=function(g,M){var w=new h(M);if(w.cmp(x.n)>=0||w.isZero())throw new Error(a.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return w.imul(new h(g)),w.cmp(x.n)&&(w=w.umod(x.n)),w.toArrayLike(t,"be",32)},f.publicKeyCreate=function(g,M){var w=new h(g);if(w.cmp(x.n)>=0||w.isZero())throw new Error(a.EC_PUBLIC_KEY_CREATE_FAIL);return t.from(m.keyFromPrivate(g).getPublic(M,!0))},f.publicKeyConvert=function(g,M){var w=y(g);if(w===null)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);return t.from(w.getPublic(M,!0))},f.publicKeyVerify=function(g){return y(g)!==null},f.publicKeyTweakAdd=function(g,M,w){var E=y(g);if(E===null)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);if(M=new h(M),M.cmp(x.n)>=0)throw new Error(a.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);var P=x.g.mul(M).add(E.pub);if(P.isInfinity())throw new Error(a.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return t.from(P.encode(!0,w))},f.publicKeyTweakMul=function(g,M,w){var E=y(g);if(E===null)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);if(M=new h(M),M.cmp(x.n)>=0||M.isZero())throw new Error(a.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return t.from(E.pub.mul(M).encode(!0,w))},f.publicKeyCombine=function(g,M){for(var w=new Array(g.length),E=0;E=0||w.cmp(x.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);var E=t.from(g);return w.cmp(m.nh)===1&&x.n.sub(w).toArrayLike(t,"be",32).copy(E,32),E},f.signatureExport=function(g){var M=g.slice(0,32),w=g.slice(32,64);if(new h(M).cmp(x.n)>=0||new h(w).cmp(x.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);return{r:M,s:w}},f.signatureImport=function(g){var M=new h(g.r);M.cmp(x.n)>=0&&(M=new h(0));var w=new h(g.s);return w.cmp(x.n)>=0&&(w=new h(0)),t.concat([M.toArrayLike(t,"be",32),w.toArrayLike(t,"be",32)])},f.sign=function(g,M,w,E){if(typeof w=="function"){var P=w;w=function(D){var Me=P(g,M,null,E,D);if(!t.isBuffer(Me)||Me.length!==32)throw new Error(a.ECDSA_SIGN_FAIL);return new h(Me)}}var N=new h(M);if(N.cmp(x.n)>=0||N.isZero())throw new Error(a.ECDSA_SIGN_FAIL);var R=m.sign(g,M,{canonical:!0,k:w,pers:E});return{signature:t.concat([R.r.toArrayLike(t,"be",32),R.s.toArrayLike(t,"be",32)]),recovery:R.recoveryParam}},f.verify=function(g,M,w){var E={r:M.slice(0,32),s:M.slice(32,64)},P=new h(E.r),N=new h(E.s);if(P.cmp(x.n)>=0||N.cmp(x.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);if(N.cmp(m.nh)===1||P.isZero()||N.isZero())return!1;var R=y(w);if(R===null)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);return m.verify(g,E,{x:R.pub.x,y:R.pub.y})},f.recover=function(g,M,w,E){var P={r:M.slice(0,32),s:M.slice(32,64)},N=new h(P.r),R=new h(P.s);if(N.cmp(x.n)>=0||R.cmp(x.n)>=0)throw new Error(a.ECDSA_SIGNATURE_PARSE_FAIL);try{if(N.isZero()||R.isZero())throw new Error;var D=m.recoverPubKey(g,P,w);return t.from(D.encode(!0,E))}catch{throw new Error(a.ECDSA_RECOVER_FAIL)}},f.ecdh=function(g,M){var w=f.ecdhUnsafe(g,M,!0);return n("sha256").update(w).digest()},f.ecdhUnsafe=function(g,M,w){var E=y(g);if(E===null)throw new Error(a.EC_PUBLIC_KEY_PARSE_FAIL);var P=new h(M);if(P.cmp(x.n)>=0||P.isZero())throw new Error(a.ECDH_FAIL);return t.from(E.pub.mul(P).encode(!0,w))}})(Ff);var Jh=Zh(Ff);const _0=Jn,ef=ih,Yr=ah,Kf=L0,q0=Jh,tf=ii,xt={P2WPKH:"p2wpkh",P2SH_P2WPKH:"p2sh(p2wpkh)"};function I0(f){return Kf("sha256").update(f).digest()}function Xh(f){return I0(I0(f))}function Hf(f){return Kf("ripemd160").update(I0(f)).digest()}function Gf(f,t,n,h){return h!==void 0?(t+=8,h===xt.P2WPKH&&(t+=4)):n&&(t+=4),Buffer.concat([Buffer.alloc(1,t+27),f])}function Qh(f){if(f.length!==65)throw new Error("Invalid signature length");const t=f.readUInt8(0)-27;if(t>15||t<0)throw new Error("Invalid signature parameter");return{compressed:!!(t&12),segwitType:t&8?t&4?xt.P2WPKH:xt.P2SH_P2WPKH:null,recovery:t&3,signature:f.slice(1)}}function s0(f,t){t=t||`Bitcoin Signed Message:
+`,Buffer.isBuffer(t)||(t=Buffer.from(t,"utf8")),Buffer.isBuffer(f)||(f=Buffer.from(f,"utf8"));const n=tf.encodingLength(f.length),h=Buffer.allocUnsafe(t.length+n+f.length);return t.copy(h,0),tf.encode(f.length,h,t.length),f.copy(h,t.length+n),Xh(h)}function Zf(f,t){typeof f=="object"&&t===void 0&&(t=f,f=void 0);let{segwitType:n,extraEntropy:h}=t||{};if(n&&(typeof n=="string"||n instanceof String)&&(n=n.toLowerCase()),n&&n!==xt.P2SH_P2WPKH&&n!==xt.P2WPKH)throw new Error('Unrecognized segwitType: use "'+xt.P2SH_P2WPKH+'" or "'+xt.P2WPKH+'"');return{messagePrefixArg:f,segwitType:n,extraEntropy:h}}function Wf(f){return f&&typeof f.sign=="function"}function jh(f,t,n,h,d){const{messagePrefixArg:a,segwitType:m,extraEntropy:x}=Zf(h,d),_=s0(f,a),A=Wf(t)?t.sign(_,x):q0.sign(_,t,{data:x});return Gf(A.signature,A.recovery,n,m)}function es(f,t,n,h,d){let a,m,x;return Promise.resolve().then(()=>{({messagePrefixArg:a,segwitType:m,extraEntropy:x}=Zf(h,d));const _=s0(f,a);return Wf(t)?t.sign(_,x):q0.sign(_,t,{data:x})}).then(_=>Gf(_.signature,_.recovery,n,m))}function rf(f){const t=Buffer.concat([Buffer.from("0014","hex"),f]);return Hf(t)}function ff(f){const t=ef.decode(f),n=ef.fromWords(t.words.slice(1));return Buffer.from(n)}function ts(f,t,n,h,d){Buffer.isBuffer(n)||(n=Buffer.from(n,"base64"));const a=Qh(n);if(d&&!a.compressed)throw new Error("checkSegwitAlways can only be used with a compressed pubkey signature flagbyte");const m=s0(f,h),x=q0.recover(m,a.signature,a.recovery,a.compressed),_=Hf(x);let A,y;if(a.segwitType)a.segwitType===xt.P2SH_P2WPKH?(A=rf(_),y=_0.decode(t).slice(1)):(A=_,y=ff(t));else if(d)try{return y=ff(t),Yr(_,y)}catch{const M=rf(_);return y=_0.decode(t).slice(1),Yr(_,y)||Yr(M,y)}else A=_,y=_0.decode(t).slice(1);return Yr(A,y)}var Jf={magicHash:s0,sign:jh,signAsync:es,verify:ts};const rs=Qf(Jf),as=ri({__proto__:null,default:rs},[Jf]);export{as as i};
diff --git a/dist/assets/index-Cr5N_0pd.js b/dist/assets/index-Cr5N_0pd.js
new file mode 100644
index 0000000..567f492
--- /dev/null
+++ b/dist/assets/index-Cr5N_0pd.js
@@ -0,0 +1,8205 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/swaps-2zeCrlxq.js","assets/index-DUeQylCA.js","assets/send-Ncb2jADE.js","assets/ui-CTdGiFlJ.js","assets/email-OHUMhOV6.js","assets/index-CqL7mnh0.js","assets/index-COonna6N.js"])))=>i.map(i=>d[i]);
+function ZAe(t,e){for(var n=0;nr[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zy(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Pse={exports:{}},G4={},kse={exports:{}},Hn={};/**
+ * @license React
+ * react.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var TS=Symbol.for("react.element"),YAe=Symbol.for("react.portal"),XAe=Symbol.for("react.fragment"),QAe=Symbol.for("react.strict_mode"),JAe=Symbol.for("react.profiler"),eIe=Symbol.for("react.provider"),tIe=Symbol.for("react.context"),nIe=Symbol.for("react.forward_ref"),rIe=Symbol.for("react.suspense"),sIe=Symbol.for("react.memo"),iIe=Symbol.for("react.lazy"),EG=Symbol.iterator;function oIe(t){return t===null||typeof t!="object"?null:(t=EG&&t[EG]||t["@@iterator"],typeof t=="function"?t:null)}var Rse={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ose=Object.assign,$se={};function U1(t,e,n){this.props=t,this.context=e,this.refs=$se,this.updater=n||Rse}U1.prototype.isReactComponent={};U1.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)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,t,e,"setState")};U1.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Dse(){}Dse.prototype=U1.prototype;function qU(t,e,n){this.props=t,this.context=e,this.refs=$se,this.updater=n||Rse}var KU=qU.prototype=new Dse;KU.constructor=qU;Ose(KU,U1.prototype);KU.isPureReactComponent=!0;var CG=Array.isArray,Mse=Object.prototype.hasOwnProperty,GU={current:null},Lse={key:!0,ref:!0,__self:!0,__source:!0};function Bse(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)Mse.call(e,r)&&!Lse.hasOwnProperty(r)&&(s[r]=e[r]);var a=arguments.length-2;if(a===1)s.children=n;else if(1>>1,re=L[Y];if(0>>1;Ys(ve,H))Ees(oe,ve)?(L[Y]=oe,L[Ee]=H,Y=Ee):(L[Y]=ve,L[fe]=H,Y=fe);else if(Ees(oe,H))L[Y]=oe,L[Ee]=H,Y=Ee;else break e}}return P}function s(L,P){var H=L.sortIndex-P.sortIndex;return H!==0?H:L.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(L){for(var P=n(l);P!==null;){if(P.callback===null)r(l);else if(P.startTime<=L)r(l),P.sortIndex=P.expirationTime,e(c,P);else break;P=n(l)}}function A(L){if(y=!1,E(L),!m)if(n(c)!==null)m=!0,T(_);else{var P=n(l);P!==null&&U(A,P.startTime-L)}}function _(L,P){m=!1,y&&(y=!1,v(W),W=-1),p=!0;var H=f;try{for(E(P),d=n(c);d!==null&&(!(d.expirationTime>P)||L&&!R());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,f=d.priorityLevel;var re=Y(d.expirationTime<=P);P=t.unstable_now(),typeof re=="function"?d.callback=re:d===n(c)&&r(c),E(P)}else r(c);d=n(c)}if(d!==null)var de=!0;else{var fe=n(l);fe!==null&&U(A,fe.startTime-P),de=!1}return de}finally{d=null,f=H,p=!1}}var k=!1,B=null,W=-1,S=5,$=-1;function R(){return!(t.unstable_now()-$L||125Y?(L.sortIndex=H,e(l,L),n(c)===null&&L===n(l)&&(y?(v(W),W=-1):y=!0,U(A,H-Y))):(L.sortIndex=re,e(c,L),m||p||(m=!0,T(_))),L},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(L){var P=f;return function(){var H=f;f=P;try{return L.apply(this,arguments)}finally{f=H}}}})(Vse);Wse.exports=Vse;var yIe=Wse.exports;/**
+ * @license React
+ * react-dom.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var wIe=I,Uc=yIe;function at(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),J9=Object.prototype.hasOwnProperty,bIe=/^[: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]*$/,SG={},AG={};function vIe(t){return J9.call(AG,t)?!0:J9.call(SG,t)?!1:bIe.test(t)?AG[t]=!0:(SG[t]=!0,!1)}function xIe(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function EIe(t,e,n,r){if(e===null||typeof e>"u"||xIe(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function la(t,e,n,r,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var qi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){qi[t]=new la(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];qi[e]=new la(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){qi[t]=new la(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){qi[t]=new la(t,2,!1,t,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(t){qi[t]=new la(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){qi[t]=new la(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){qi[t]=new la(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){qi[t]=new la(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){qi[t]=new la(t,5,!1,t.toLowerCase(),null,!1,!1)});var YU=/[\-:]([a-z])/g;function XU(t){return t[1].toUpperCase()}"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(t){var e=t.replace(YU,XU);qi[e]=new la(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(YU,XU);qi[e]=new la(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(YU,XU);qi[e]=new la(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){qi[t]=new la(t,1,!1,t.toLowerCase(),null,!1,!1)});qi.xlinkHref=new la("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){qi[t]=new la(t,1,!1,t.toLowerCase(),null,!0,!0)});function QU(t,e,n,r){var s=qi.hasOwnProperty(e)?qi[e]:null;(s!==null?s.type!==0:r||!(2a||s[o]!==i[a]){var c=`
+`+s[o].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{fO=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?$2(t):""}function CIe(t){switch(t.tag){case 5:return $2(t.type);case 16:return $2("Lazy");case 13:return $2("Suspense");case 19:return $2("SuspenseList");case 0:case 2:case 15:return t=hO(t.type,!1),t;case 11:return t=hO(t.type.render,!1),t;case 1:return t=hO(t.type,!0),t;default:return""}}function rM(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ib:return"Fragment";case Ab:return"Portal";case eM:return"Profiler";case JU:return"StrictMode";case tM:return"Suspense";case nM:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Kse:return(t.displayName||"Context")+".Consumer";case qse:return(t._context.displayName||"Context")+".Provider";case eF:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case tF:return e=t.displayName||null,e!==null?e:rM(t.type)||"Memo";case lg:e=t._payload,t=t._init;try{return rM(t(e))}catch{}}return null}function _Ie(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rM(e);case 8:return e===JU?"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(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function n0(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Zse(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function SIe(t){var e=Zse(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function F5(t){t._valueTracker||(t._valueTracker=SIe(t))}function Yse(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Zse(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function C6(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function sM(t,e){var n=e.checked;return vs({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function TG(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=n0(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Xse(t,e){e=e.checked,e!=null&&QU(t,"checked",e,!1)}function iM(t,e){Xse(t,e);var n=n0(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?oM(t,e.type,n):e.hasOwnProperty("defaultValue")&&oM(t,e.type,n0(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function NG(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function oM(t,e,n){(e!=="number"||C6(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var D2=Array.isArray;function Xb(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=j5.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function qE(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var iE={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},AIe=["Webkit","ms","Moz","O"];Object.keys(iE).forEach(function(t){AIe.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),iE[e]=iE[t]})});function tie(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||iE.hasOwnProperty(t)&&iE[t]?(""+e).trim():e+"px"}function nie(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=tie(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var IIe=vs({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 lM(t,e){if(e){if(IIe[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(at(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(at(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(at(61))}if(e.style!=null&&typeof e.style!="object")throw Error(at(62))}}function uM(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 dM=null;function nF(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fM=null,Qb=null,Jb=null;function RG(t){if(t=kS(t)){if(typeof fM!="function")throw Error(at(280));var e=t.stateNode;e&&(e=J4(e),fM(t.stateNode,t.type,e))}}function rie(t){Qb?Jb?Jb.push(t):Jb=[t]:Qb=t}function sie(){if(Qb){var t=Qb,e=Jb;if(Jb=Qb=null,RG(t),e)for(t=0;t>>=0,t===0?32:31-(BIe(t)/UIe|0)|0}var z5=64,W5=4194304;function M2(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function I6(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=M2(a):(i&=o,i!==0&&(r=M2(i)))}else o=n&~s,o!==0?r=M2(o):i!==0&&(r=M2(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function NS(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ju(e),t[e]=n}function WIe(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=aE),jG=" ",zG=!1;function _ie(t,e){switch(t){case"keyup":return y6e.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sie(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Tb=!1;function b6e(t,e){switch(t){case"compositionend":return Sie(e);case"keypress":return e.which!==32?null:(zG=!0,jG);case"textInput":return t=e.data,t===jG&&zG?null:t;default:return null}}function v6e(t,e){if(Tb)return t==="compositionend"||!uF&&_ie(t,e)?(t=Eie(),_I=aF=Ag=null,Tb=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qG(n)}}function Nie(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nie(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Pie(){for(var t=window,e=C6();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=C6(t.document)}return e}function dF(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function N6e(t){var e=Pie(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Nie(n.ownerDocument.documentElement,n)){if(r!==null&&dF(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=KG(n,i);var o=KG(n,r);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nb=null,wM=null,lE=null,bM=!1;function GG(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bM||Nb==null||Nb!==C6(r)||(r=Nb,"selectionStart"in r&&dF(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),lE&&QE(lE,r)||(lE=r,r=P6(wM,"onSelect"),0Rb||(t.current=SM[Rb],SM[Rb]=null,Rb--)}function es(t,e){Rb++,SM[Rb]=t.current,t.current=e}var r0={},Io=T0(r0),Ha=T0(!1),Jm=r0;function _v(t,e){var n=t.type.contextTypes;if(!n)return r0;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function qa(t){return t=t.childContextTypes,t!=null}function R6(){as(Ha),as(Io)}function tZ(t,e,n){if(Io.current!==r0)throw Error(at(168));es(Io,e),es(Ha,n)}function Uie(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(at(108,_Ie(t)||"Unknown",s));return vs({},n,r)}function O6(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||r0,Jm=Io.current,es(Io,t),es(Ha,Ha.current),!0}function nZ(t,e,n){var r=t.stateNode;if(!r)throw Error(at(169));n?(t=Uie(t,e,Jm),r.__reactInternalMemoizedMergedChildContext=t,as(Ha),as(Io),es(Io,t)):as(Ha),es(Ha,n)}var uh=null,eP=!1,IO=!1;function Fie(t){uh===null?uh=[t]:uh.push(t)}function j6e(t){eP=!0,Fie(t)}function N0(){if(!IO&&uh!==null){IO=!0;var t=0,e=Mr;try{var n=uh;for(Mr=1;t>=o,s-=o,mh=1<<32-ju(e)+s|n<W?(S=B,B=null):S=B.sibling;var $=f(v,B,E[W],A);if($===null){B===null&&(B=S);break}t&&B&&$.alternate===null&&e(v,B),x=i($,x,W),k===null?_=$:k.sibling=$,k=$,B=S}if(W===E.length)return n(v,B),hs&&sm(v,W),_;if(B===null){for(;WW?(S=B,B=null):S=B.sibling;var R=f(v,B,$.value,A);if(R===null){B===null&&(B=S);break}t&&B&&R.alternate===null&&e(v,B),x=i(R,x,W),k===null?_=R:k.sibling=R,k=R,B=S}if($.done)return n(v,B),hs&&sm(v,W),_;if(B===null){for(;!$.done;W++,$=E.next())$=d(v,$.value,A),$!==null&&(x=i($,x,W),k===null?_=$:k.sibling=$,k=$);return hs&&sm(v,W),_}for(B=r(v,B);!$.done;W++,$=E.next())$=p(B,v,W,$.value,A),$!==null&&(t&&$.alternate!==null&&B.delete($.key===null?W:$.key),x=i($,x,W),k===null?_=$:k.sibling=$,k=$);return t&&B.forEach(function(M){return e(v,M)}),hs&&sm(v,W),_}function b(v,x,E,A){if(typeof E=="object"&&E!==null&&E.type===Ib&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case U5:e:{for(var _=E.key,k=x;k!==null;){if(k.key===_){if(_=E.type,_===Ib){if(k.tag===7){n(v,k.sibling),x=s(k,E.props.children),x.return=v,v=x;break e}}else if(k.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===lg&&iZ(_)===k.type){n(v,k.sibling),x=s(k,E.props),x.ref=qx(v,k,E),x.return=v,v=x;break e}n(v,k);break}else e(v,k);k=k.sibling}E.type===Ib?(x=Um(E.props.children,v.mode,A,E.key),x.return=v,v=x):(A=RI(E.type,E.key,E.props,null,v.mode,A),A.ref=qx(v,x,E),A.return=v,v=A)}return o(v);case Ab:e:{for(k=E.key;x!==null;){if(x.key===k)if(x.tag===4&&x.stateNode.containerInfo===E.containerInfo&&x.stateNode.implementation===E.implementation){n(v,x.sibling),x=s(x,E.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else e(v,x);x=x.sibling}x=DO(E,v.mode,A),x.return=v,v=x}return o(v);case lg:return k=E._init,b(v,x,k(E._payload),A)}if(D2(E))return m(v,x,E,A);if(jx(E))return y(v,x,E,A);Y5(v,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,x!==null&&x.tag===6?(n(v,x.sibling),x=s(x,E),x.return=v,v=x):(n(v,x),x=$O(E,v.mode,A),x.return=v,v=x),o(v)):n(v,x)}return b}var Av=Vie(!0),Hie=Vie(!1),M6=T0(null),L6=null,Db=null,gF=null;function mF(){gF=Db=L6=null}function yF(t){var e=M6.current;as(M6),t._currentValue=e}function TM(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function tv(t,e){L6=t,gF=Db=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Fa=!0),t.firstContext=null)}function Ul(t){var e=t._currentValue;if(gF!==t)if(t={context:t,memoizedValue:e,next:null},Db===null){if(L6===null)throw Error(at(308));Db=t,L6.dependencies={lanes:0,firstContext:t}}else Db=Db.next=t;return e}var gm=null;function wF(t){gm===null?gm=[t]:gm.push(t)}function qie(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,wF(e)):(n.next=s.next,s.next=n),e.interleaved=n,Bh(t,r)}function Bh(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var ug=!1;function bF(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kie(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Sh(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function jg(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,ar&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,Bh(t,n)}return s=r.interleaved,s===null?(e.next=e,wF(r)):(e.next=s.next,s.next=e),r.interleaved=e,Bh(t,n)}function AI(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,sF(t,n)}}function oZ(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function B6(t,e,n,r){var s=t.updateQueue;ug=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?i=l:o.next=l,o=c;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(i!==null){var d=s.baseState;o=0,u=l=c=null,a=i;do{var f=a.lane,p=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=t,y=a;switch(f=e,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(p,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,f=typeof m=="function"?m.call(p,d,f):m,f==null)break e;d=vs({},d,f);break e;case 2:ug=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=s.effects,f===null?s.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;f=a,a=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(u===null&&(c=d),s.baseState=c,s.firstBaseUpdate=l,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);ny|=o,t.lanes=o,t.memoizedState=d}}function aZ(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=NO.transition;NO.transition={};try{t(!1),e()}finally{Mr=n,NO.transition=r}}function uoe(){return Fl().memoizedState}function H6e(t,e,n){var r=Wg(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},doe(t))foe(e,n);else if(n=qie(t,e,n,r),n!==null){var s=ea();zu(n,t,r,s),hoe(n,e,r)}}function q6e(t,e,n){var r=Wg(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(doe(t))foe(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Ju(a,o)){var c=e.interleaved;c===null?(s.next=s,wF(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}n=qie(t,e,s,r),n!==null&&(s=ea(),zu(n,t,r,s),hoe(n,e,r))}}function doe(t){var e=t.alternate;return t===ws||e!==null&&e===ws}function foe(t,e){uE=F6=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function hoe(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,sF(t,n)}}var j6={readContext:Ul,useCallback:ro,useContext:ro,useEffect:ro,useImperativeHandle:ro,useInsertionEffect:ro,useLayoutEffect:ro,useMemo:ro,useReducer:ro,useRef:ro,useState:ro,useDebugValue:ro,useDeferredValue:ro,useTransition:ro,useMutableSource:ro,useSyncExternalStore:ro,useId:ro,unstable_isNewReconciler:!1},K6e={readContext:Ul,useCallback:function(t,e){return Dd().memoizedState=[t,e===void 0?null:e],t},useContext:Ul,useEffect:lZ,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,TI(4194308,4,ioe.bind(null,e,t),n)},useLayoutEffect:function(t,e){return TI(4194308,4,t,e)},useInsertionEffect:function(t,e){return TI(4,2,t,e)},useMemo:function(t,e){var n=Dd();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Dd();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=H6e.bind(null,ws,t),[r.memoizedState,t]},useRef:function(t){var e=Dd();return t={current:t},e.memoizedState=t},useState:cZ,useDebugValue:IF,useDeferredValue:function(t){return Dd().memoizedState=t},useTransition:function(){var t=cZ(!1),e=t[0];return t=V6e.bind(null,t[1]),Dd().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=ws,s=Dd();if(hs){if(n===void 0)throw Error(at(407));n=n()}else{if(n=e(),bi===null)throw Error(at(349));ty&30||Xie(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,lZ(Jie.bind(null,r,i,t),[t]),r.flags|=2048,oC(9,Qie.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Dd(),e=bi.identifierPrefix;if(hs){var n=yh,r=mh;n=(r&~(1<<32-ju(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=sC++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[zd]=e,t[tC]=r,Coe(t,e,!1,!1),e.stateNode=t;e:{switch(o=uM(n,r),n){case"dialog":ss("cancel",t),ss("close",t),s=r;break;case"iframe":case"object":case"embed":ss("load",t),s=r;break;case"video":case"audio":for(s=0;sNv&&(e.flags|=128,r=!0,Kx(i,!1),e.lanes=4194304)}else{if(!r)if(t=U6(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Kx(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!hs)return so(e),null}else 2*Os()-i.renderingStartTime>Nv&&n!==1073741824&&(e.flags|=128,r=!0,Kx(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Os(),e.sibling=null,n=ys.current,es(ys,r?n&1|2:n&1),e):(so(e),null);case 22:case 23:return OF(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ac&1073741824&&(so(e),e.subtreeFlags&6&&(e.flags|=8192)):so(e),null;case 24:return null;case 25:return null}throw Error(at(156,e.tag))}function tTe(t,e){switch(hF(e),e.tag){case 1:return qa(e.type)&&R6(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Iv(),as(Ha),as(Io),EF(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return xF(e),null;case 13:if(as(ys),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(at(340));Sv()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return as(ys),null;case 4:return Iv(),null;case 10:return yF(e.type._context),null;case 22:case 23:return OF(),null;case 24:return null;default:return null}}var Q5=!1,_o=!1,nTe=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function Mb(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Cs(t,e,r)}else n.current=null}function LM(t,e,n){try{n()}catch(r){Cs(t,e,r)}}var vZ=!1;function rTe(t,e){if(vM=T6,t=Pie(),dF(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,a=-1,c=-1,l=0,u=0,d=t,f=null;t:for(;;){for(var p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===t)break t;if(f===n&&++l===s&&(a=o),f===i&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(xM={focusedElem:t,selectionRange:n},T6=!1,Ot=e;Ot!==null;)if(e=Ot,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ot=t;else for(;Ot!==null;){e=Ot;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,b=m.memoizedState,v=e.stateNode,x=v.getSnapshotBeforeUpdate(e.elementType===e.type?y:Iu(e.type,y),b);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var E=e.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(at(163))}}catch(A){Cs(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,Ot=t;break}Ot=e.return}return m=vZ,vZ=!1,m}function dE(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&LM(e,n,i)}s=s.next}while(s!==r)}}function rP(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function BM(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Aoe(t){var e=t.alternate;e!==null&&(t.alternate=null,Aoe(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[zd],delete e[tC],delete e[_M],delete e[U6e],delete e[F6e])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Ioe(t){return t.tag===5||t.tag===3||t.tag===4}function xZ(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ioe(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function UM(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=k6));else if(r!==4&&(t=t.child,t!==null))for(UM(t,e,n),t=t.sibling;t!==null;)UM(t,e,n),t=t.sibling}function FM(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(FM(t,e,n),t=t.sibling;t!==null;)FM(t,e,n),t=t.sibling}var Di=null,ku=!1;function Dp(t,e,n){for(n=n.child;n!==null;)Toe(t,e,n),n=n.sibling}function Toe(t,e,n){if(Zd&&typeof Zd.onCommitFiberUnmount=="function")try{Zd.onCommitFiberUnmount(Z4,n)}catch{}switch(n.tag){case 5:_o||Mb(n,e);case 6:var r=Di,s=ku;Di=null,Dp(t,e,n),Di=r,ku=s,Di!==null&&(ku?(t=Di,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Di.removeChild(n.stateNode));break;case 18:Di!==null&&(ku?(t=Di,n=n.stateNode,t.nodeType===8?AO(t.parentNode,n):t.nodeType===1&&AO(t,n),YE(t)):AO(Di,n.stateNode));break;case 4:r=Di,s=ku,Di=n.stateNode.containerInfo,ku=!0,Dp(t,e,n),Di=r,ku=s;break;case 0:case 11:case 14:case 15:if(!_o&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&LM(n,e,o),s=s.next}while(s!==r)}Dp(t,e,n);break;case 1:if(!_o&&(Mb(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Cs(n,e,a)}Dp(t,e,n);break;case 21:Dp(t,e,n);break;case 22:n.mode&1?(_o=(r=_o)||n.memoizedState!==null,Dp(t,e,n),_o=r):Dp(t,e,n);break;default:Dp(t,e,n)}}function EZ(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new nTe),e.forEach(function(r){var s=fTe.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function fu(t,e){var n=e.deletions;if(n!==null)for(var r=0;rs&&(s=o),r&=~i}if(r=s,r=Os()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*iTe(r/1960))-r,10t?16:t,Ig===null)var r=!1;else{if(t=Ig,Ig=null,V6=0,ar&6)throw Error(at(331));var s=ar;for(ar|=4,Ot=t.current;Ot!==null;){var i=Ot,o=i.child;if(Ot.flags&16){var a=i.deletions;if(a!==null){for(var c=0;cOs()-kF?Bm(t,0):PF|=n),Ka(t,e)}function Moe(t,e){e===0&&(t.mode&1?(e=W5,W5<<=1,!(W5&130023424)&&(W5=4194304)):e=1);var n=ea();t=Bh(t,e),t!==null&&(NS(t,e,n),Ka(t,n))}function dTe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Moe(t,n)}function fTe(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(at(314))}r!==null&&r.delete(e),Moe(t,n)}var Loe;Loe=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ha.current)Fa=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Fa=!1,J6e(t,e,n);Fa=!!(t.flags&131072)}else Fa=!1,hs&&e.flags&1048576&&jie(e,D6,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;NI(t,e),t=e.pendingProps;var s=_v(e,Io.current);tv(e,n),s=_F(null,e,r,t,s,n);var i=SF();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,qa(r)?(i=!0,O6(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,bF(e),s.updater=nP,e.stateNode=s,s._reactInternals=e,PM(e,r,t,n),e=OM(null,e,r,!0,i,n)):(e.tag=0,hs&&i&&fF(e),qo(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(NI(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=pTe(r),t=Iu(r,t),s){case 0:e=RM(null,e,r,t,n);break e;case 1:e=yZ(null,e,r,t,n);break e;case 11:e=gZ(null,e,r,t,n);break e;case 14:e=mZ(null,e,r,Iu(r.type,t),n);break e}throw Error(at(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Iu(r,s),RM(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Iu(r,s),yZ(t,e,r,s,n);case 3:e:{if(voe(e),t===null)throw Error(at(387));r=e.pendingProps,i=e.memoizedState,s=i.element,Kie(t,e),B6(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Tv(Error(at(423)),e),e=wZ(t,e,r,n,s);break e}else if(r!==s){s=Tv(Error(at(424)),e),e=wZ(t,e,r,n,s);break e}else for(Oc=Fg(e.stateNode.containerInfo.firstChild),Mc=e,hs=!0,Ru=null,n=Hie(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sv(),r===s){e=Uh(t,e,n);break e}qo(t,e,r,n)}e=e.child}return e;case 5:return Gie(e),t===null&&IM(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,EM(r,s)?o=null:i!==null&&EM(r,i)&&(e.flags|=32),boe(t,e),qo(t,e,o,n),e.child;case 6:return t===null&&IM(e),null;case 13:return xoe(t,e,n);case 4:return vF(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Av(e,null,r,n):qo(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Iu(r,s),gZ(t,e,r,s,n);case 7:return qo(t,e,e.pendingProps,n),e.child;case 8:return qo(t,e,e.pendingProps.children,n),e.child;case 12:return qo(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,es(M6,r._currentValue),r._currentValue=o,i!==null)if(Ju(i.value,o)){if(i.children===s.children&&!Ha.current){e=Uh(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Sh(-1,n&-n),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),TM(i.return,n,e),a.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(at(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),TM(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}qo(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,tv(e,n),s=Ul(s),r=r(s),e.flags|=1,qo(t,e,r,n),e.child;case 14:return r=e.type,s=Iu(r,e.pendingProps),s=Iu(r.type,s),mZ(t,e,r,s,n);case 15:return yoe(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:Iu(r,s),NI(t,e),e.tag=1,qa(r)?(t=!0,O6(e)):t=!1,tv(e,n),poe(e,r,s),PM(e,r,s,n),OM(null,e,r,!0,t,n);case 19:return Eoe(t,e,n);case 22:return woe(t,e,n)}throw Error(at(156,e.tag))};function Boe(t,e){return die(t,e)}function hTe(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pl(t,e,n,r){return new hTe(t,e,n,r)}function DF(t){return t=t.prototype,!(!t||!t.isReactComponent)}function pTe(t){if(typeof t=="function")return DF(t)?1:0;if(t!=null){if(t=t.$$typeof,t===eF)return 11;if(t===tF)return 14}return 2}function Vg(t,e){var n=t.alternate;return n===null?(n=Pl(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function RI(t,e,n,r,s,i){var o=2;if(r=t,typeof t=="function")DF(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ib:return Um(n.children,s,i,e);case JU:o=8,s|=8;break;case eM:return t=Pl(12,n,e,s|2),t.elementType=eM,t.lanes=i,t;case tM:return t=Pl(13,n,e,s),t.elementType=tM,t.lanes=i,t;case nM:return t=Pl(19,n,e,s),t.elementType=nM,t.lanes=i,t;case Gse:return iP(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case qse:o=10;break e;case Kse:o=9;break e;case eF:o=11;break e;case tF:o=14;break e;case lg:o=16,r=null;break e}throw Error(at(130,t==null?t:typeof t,""))}return e=Pl(o,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function Um(t,e,n,r){return t=Pl(7,t,r,e),t.lanes=n,t}function iP(t,e,n,r){return t=Pl(22,t,r,e),t.elementType=Gse,t.lanes=n,t.stateNode={isHidden:!1},t}function $O(t,e,n){return t=Pl(6,t,null,e),t.lanes=n,t}function DO(t,e,n){return e=Pl(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function gTe(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gO(0),this.expirationTimes=gO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gO(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function MF(t,e,n,r,s,i,o,a,c){return t=new gTe(t,e,n,a,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Pl(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bF(i),t}function mTe(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zoe)}catch(t){console.error(t)}}zoe(),zse.exports=Kc;var Qy=zse.exports;const Woe=Zi(Qy);var Voe,PZ=Qy;Voe=PZ.createRoot,PZ.hydrateRoot;const xTe=1,ETe=1e6;let MO=0;function CTe(){return MO=(MO+1)%Number.MAX_SAFE_INTEGER,MO.toString()}const LO=new Map,kZ=t=>{if(LO.has(t))return;const e=setTimeout(()=>{LO.delete(t),pE({type:"REMOVE_TOAST",toastId:t})},ETe);LO.set(t,e)},_Te=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,xTe)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?kZ(n):t.toasts.forEach(r=>{kZ(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},OI=[];let $I={toasts:[]};function pE(t){$I=_Te($I,t),OI.forEach(e=>{e($I)})}function STe({...t}){const e=CTe(),n=s=>pE({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>pE({type:"DISMISS_TOAST",toastId:e});return pE({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function xf(){const[t,e]=I.useState($I);return I.useEffect(()=>(OI.push(e),()=>{const n=OI.indexOf(e);n>-1&&OI.splice(n,1)}),[t]),{...t,toast:STe,dismiss:n=>pE({type:"DISMISS_TOAST",toastId:n})}}function vt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t?.(s),n===!1||!s.defaultPrevented)return e?.(s)}}function ATe(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function uP(...t){return e=>t.forEach(n=>ATe(n,e))}function ir(...t){return I.useCallback(uP(...t),t)}function ITe(t,e=[]){let n=[];function r(i,o){const a=I.createContext(o),c=n.length;n=[...n,o];function l(d){const{scope:f,children:p,...m}=d,y=f?.[t][c]||a,b=I.useMemo(()=>m,Object.values(m));return w.jsx(y.Provider,{value:b,children:p})}function u(d,f){const p=f?.[t][c]||a,m=I.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=n.map(o=>I.createContext(o));return function(a){const c=a?.[t]||i;return I.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[r,TTe(s,...e)]}function TTe(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return I.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}var Fh=I.forwardRef((t,e)=>{const{children:n,...r}=t,s=I.Children.toArray(n),i=s.find(NTe);if(i){const o=i.props.children,a=s.map(c=>c===i?I.Children.count(o)>1?I.Children.only(null):I.isValidElement(o)?o.props.children:null:c);return w.jsx(HM,{...r,ref:e,children:I.isValidElement(o)?I.cloneElement(o,void 0,a):null})}return w.jsx(HM,{...r,ref:e,children:n})});Fh.displayName="Slot";var HM=I.forwardRef((t,e)=>{const{children:n,...r}=t;if(I.isValidElement(n)){const s=kTe(n);return I.cloneElement(n,{...PTe(r,n.props),ref:e?uP(e,s):s})}return I.Children.count(n)>1?I.Children.only(null):null});HM.displayName="SlotClone";var FF=({children:t})=>w.jsx(w.Fragment,{children:t});function NTe(t){return I.isValidElement(t)&&t.type===FF}function PTe(t,e){const n={...e};for(const r in e){const s=t[r],i=e[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function kTe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function dP(t){const e=t+"CollectionProvider",[n,r]=ITe(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:m,children:y}=p,b=qe.useRef(null),v=qe.useRef(new Map).current;return w.jsx(s,{scope:m,itemMap:v,collectionRef:b,children:y})};o.displayName=e;const a=t+"CollectionSlot",c=qe.forwardRef((p,m)=>{const{scope:y,children:b}=p,v=i(a,y),x=ir(m,v.collectionRef);return w.jsx(Fh,{ref:x,children:b})});c.displayName=a;const l=t+"CollectionItemSlot",u="data-radix-collection-item",d=qe.forwardRef((p,m)=>{const{scope:y,children:b,...v}=p,x=qe.useRef(null),E=ir(m,x),A=i(l,y);return qe.useEffect(()=>(A.itemMap.set(x,{ref:x,...v}),()=>void A.itemMap.delete(x))),w.jsx(Fh,{[u]:"",ref:E,children:b})});d.displayName=l;function f(p){const m=i(t+"CollectionConsumer",p);return qe.useCallback(()=>{const b=m.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(m.itemMap.values()).sort((A,_)=>v.indexOf(A.ref.current)-v.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:c,ItemSlot:d},f,r]}function RTe(t,e){const n=I.createContext(e),r=i=>{const{children:o,...a}=i,c=I.useMemo(()=>a,Object.values(a));return w.jsx(n.Provider,{value:c,children:o})};r.displayName=t+"Provider";function s(i){const o=I.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,s]}function pp(t,e=[]){let n=[];function r(i,o){const a=I.createContext(o),c=n.length;n=[...n,o];const l=d=>{const{scope:f,children:p,...m}=d,y=f?.[t]?.[c]||a,b=I.useMemo(()=>m,Object.values(m));return w.jsx(y.Provider,{value:b,children:p})};l.displayName=i+"Provider";function u(d,f){const p=f?.[t]?.[c]||a,m=I.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[l,u]}const s=()=>{const i=n.map(o=>I.createContext(o));return function(a){const c=a?.[t]||i;return I.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[r,OTe(s,...e)]}function OTe(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return I.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}var $Te=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],gn=$Te.reduce((t,e)=>{const n=I.forwardRef((r,s)=>{const{asChild:i,...o}=r,a=i?Fh:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(a,{...o,ref:s})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function jF(t,e){t&&Qy.flushSync(()=>t.dispatchEvent(e))}function To(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...n)=>e.current?.(...n),[])}function DTe(t,e=globalThis?.document){const n=To(t);I.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var MTe="DismissableLayer",qM="dismissableLayer.update",LTe="dismissableLayer.pointerDownOutside",BTe="dismissableLayer.focusOutside",RZ,Hoe=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),z1=I.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,l=I.useContext(Hoe),[u,d]=I.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=I.useState({}),m=ir(e,B=>d(B)),y=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=y.indexOf(b),x=u?y.indexOf(u):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,A=x>=v,_=FTe(B=>{const W=B.target,S=[...l.branches].some($=>$.contains(W));!A||S||(s?.(B),o?.(B),B.defaultPrevented||a?.())},f),k=jTe(B=>{const W=B.target;[...l.branches].some($=>$.contains(W))||(i?.(B),o?.(B),B.defaultPrevented||a?.())},f);return DTe(B=>{x===l.layers.size-1&&(r?.(B),!B.defaultPrevented&&a&&(B.preventDefault(),a()))},f),I.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(RZ=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),OZ(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=RZ)}},[u,f,n,l]),I.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),OZ())},[u,l]),I.useEffect(()=>{const B=()=>p({});return document.addEventListener(qM,B),()=>document.removeEventListener(qM,B)},[]),w.jsx(gn.div,{...c,ref:m,style:{pointerEvents:E?A?"auto":"none":void 0,...t.style},onFocusCapture:vt(t.onFocusCapture,k.onFocusCapture),onBlurCapture:vt(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:vt(t.onPointerDownCapture,_.onPointerDownCapture)})});z1.displayName=MTe;var UTe="DismissableLayerBranch",qoe=I.forwardRef((t,e)=>{const n=I.useContext(Hoe),r=I.useRef(null),s=ir(e,r);return I.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(gn.div,{...t,ref:s})});qoe.displayName=UTe;function FTe(t,e=globalThis?.document){const n=To(t),r=I.useRef(!1),s=I.useRef(()=>{});return I.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Koe(LTe,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function jTe(t,e=globalThis?.document){const n=To(t),r=I.useRef(!1);return I.useEffect(()=>{const s=i=>{i.target&&!r.current&&Koe(BTe,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function OZ(){const t=new CustomEvent(qM);document.dispatchEvent(t)}function Koe(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?jF(s,i):s.dispatchEvent(i)}var zTe=z1,WTe=qoe,No=globalThis?.document?I.useLayoutEffect:()=>{},VTe="Portal",OS=I.forwardRef((t,e)=>{const{container:n,...r}=t,[s,i]=I.useState(!1);No(()=>i(!0),[]);const o=n||s&&globalThis?.document?.body;return o?Woe.createPortal(w.jsx(gn.div,{...r,ref:e}),o):null});OS.displayName=VTe;function HTe(t,e){return I.useReducer((n,r)=>e[n][r]??n,t)}var ud=t=>{const{present:e,children:n}=t,r=qTe(e),s=typeof n=="function"?n({present:r.isPresent}):I.Children.only(n),i=ir(r.ref,KTe(s));return typeof n=="function"||r.isPresent?I.cloneElement(s,{ref:i}):null};ud.displayName="Presence";function qTe(t){const[e,n]=I.useState(),r=I.useRef({}),s=I.useRef(t),i=I.useRef("none"),o=t?"mounted":"unmounted",[a,c]=HTe(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const l=tA(r.current);i.current=a==="mounted"?l:"none"},[a]),No(()=>{const l=r.current,u=s.current;if(u!==t){const f=i.current,p=tA(l);t?c("MOUNT"):p==="none"||l?.display==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),No(()=>{if(e){let l;const u=e.ownerDocument.defaultView??window,d=p=>{const y=tA(r.current).includes(p.animationName);if(p.target===e&&y&&(c("ANIMATION_END"),!s.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",l=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=p=>{p.target===e&&(i.current=tA(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{u.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:I.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function tA(t){return t?.animationName||"none"}function KTe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function jh({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,s]=GTe({defaultProp:e,onChange:n}),i=t!==void 0,o=i?t:r,a=To(n),c=I.useCallback(l=>{if(i){const d=typeof l=="function"?l(t):l;d!==t&&a(d)}else s(l)},[i,t,s,a]);return[o,c]}function GTe({defaultProp:t,onChange:e}){const n=I.useState(t),[r]=n,s=I.useRef(r),i=To(e);return I.useEffect(()=>{s.current!==r&&(i(r),s.current=r)},[r,s,i]),n}var ZTe="VisuallyHidden",$S=I.forwardRef((t,e)=>w.jsx(gn.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));$S.displayName=ZTe;var YTe=$S,zF="ToastProvider",[WF,XTe,QTe]=dP("Toast"),[Goe,ekt]=pp("Toast",[QTe]),[JTe,fP]=Goe(zF),Zoe=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,c]=I.useState(null),[l,u]=I.useState(0),d=I.useRef(!1),f=I.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zF}\`. Expected non-empty \`string\`.`),w.jsx(WF.Provider,{scope:e,children:w.jsx(JTe,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:l,viewport:a,onViewportChange:c,onToastAdd:I.useCallback(()=>u(p=>p+1),[]),onToastRemove:I.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:o})})};Zoe.displayName=zF;var Yoe="ToastViewport",eNe=["F8"],KM="toast.viewportPause",GM="toast.viewportResume",Xoe=I.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=eNe,label:s="Notifications ({hotkey})",...i}=t,o=fP(Yoe,n),a=XTe(n),c=I.useRef(null),l=I.useRef(null),u=I.useRef(null),d=I.useRef(null),f=ir(e,d,o.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=o.toastCount>0;I.useEffect(()=>{const b=v=>{r.length!==0&&r.every(E=>v[E]||v.code===E)&&d.current?.focus()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),I.useEffect(()=>{const b=c.current,v=d.current;if(m&&b&&v){const x=()=>{if(!o.isClosePausedRef.current){const k=new CustomEvent(KM);v.dispatchEvent(k),o.isClosePausedRef.current=!0}},E=()=>{if(o.isClosePausedRef.current){const k=new CustomEvent(GM);v.dispatchEvent(k),o.isClosePausedRef.current=!1}},A=k=>{!b.contains(k.relatedTarget)&&E()},_=()=>{b.contains(document.activeElement)||E()};return b.addEventListener("focusin",x),b.addEventListener("focusout",A),b.addEventListener("pointermove",x),b.addEventListener("pointerleave",_),window.addEventListener("blur",x),window.addEventListener("focus",E),()=>{b.removeEventListener("focusin",x),b.removeEventListener("focusout",A),b.removeEventListener("pointermove",x),b.removeEventListener("pointerleave",_),window.removeEventListener("blur",x),window.removeEventListener("focus",E)}}},[m,o.isClosePausedRef]);const y=I.useCallback(({tabbingDirection:b})=>{const x=a().map(E=>{const A=E.ref.current,_=[A,...hNe(A)];return b==="forwards"?_:_.reverse()});return(b==="forwards"?x.reverse():x).flat()},[a]);return I.useEffect(()=>{const b=d.current;if(b){const v=x=>{const E=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!E){const _=document.activeElement,k=x.shiftKey;if(x.target===b&&k){l.current?.focus();return}const S=y({tabbingDirection:k?"backwards":"forwards"}),$=S.findIndex(R=>R===_);BO(S.slice($+1))?x.preventDefault():k?l.current?.focus():u.current?.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,y]),w.jsxs(WTe,{ref:c,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:m?void 0:"none"},children:[m&&w.jsx(ZM,{ref:l,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"forwards"});BO(b)}}),w.jsx(WF.Slot,{scope:n,children:w.jsx(gn.ol,{tabIndex:-1,...i,ref:f})}),m&&w.jsx(ZM,{ref:u,onFocusFromOutsideViewport:()=>{const b=y({tabbingDirection:"backwards"});BO(b)}})]})});Xoe.displayName=Yoe;var Qoe="ToastFocusProxy",ZM=I.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=fP(Qoe,n);return w.jsx($S,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{const a=o.relatedTarget;!i.viewport?.contains(a)&&r()}})});ZM.displayName=Qoe;var hP="Toast",tNe="toast.swipeStart",nNe="toast.swipeMove",rNe="toast.swipeCancel",sNe="toast.swipeEnd",Joe=I.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=t,[a=!0,c]=jh({prop:r,defaultProp:s,onChange:i});return w.jsx(ud,{present:n||a,children:w.jsx(aNe,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:To(t.onPause),onResume:To(t.onResume),onSwipeStart:vt(t.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:vt(t.onSwipeMove,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:vt(t.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:vt(t.onSwipeEnd,l=>{const{x:u,y:d}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});Joe.displayName=hP;var[iNe,oNe]=Goe(hP,{onClose(){}}),aNe=I.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...m}=t,y=fP(hP,n),[b,v]=I.useState(null),x=ir(e,z=>v(z)),E=I.useRef(null),A=I.useRef(null),_=s||y.duration,k=I.useRef(0),B=I.useRef(_),W=I.useRef(0),{onToastAdd:S,onToastRemove:$}=y,R=To(()=>{b?.contains(document.activeElement)&&y.viewport?.focus(),o()}),M=I.useCallback(z=>{!z||z===1/0||(window.clearTimeout(W.current),k.current=new Date().getTime(),W.current=window.setTimeout(R,z))},[R]);I.useEffect(()=>{const z=y.viewport;if(z){const N=()=>{M(B.current),l?.()},T=()=>{const U=new Date().getTime()-k.current;B.current=B.current-U,window.clearTimeout(W.current),c?.()};return z.addEventListener(KM,T),z.addEventListener(GM,N),()=>{z.removeEventListener(KM,T),z.removeEventListener(GM,N)}}},[y.viewport,_,c,l,M]),I.useEffect(()=>{i&&!y.isClosePausedRef.current&&M(_)},[i,_,y.isClosePausedRef,M]),I.useEffect(()=>(S(),()=>$()),[S,$]);const j=I.useMemo(()=>b?oae(b):null,[b]);return y.viewport?w.jsxs(w.Fragment,{children:[j&&w.jsx(cNe,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:j}),w.jsx(iNe,{scope:n,onClose:R,children:Qy.createPortal(w.jsx(WF.ItemSlot,{scope:n,children:w.jsx(zTe,{asChild:!0,onEscapeKeyDown:vt(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||R(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:w.jsx(gn.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...m,ref:x,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:vt(t.onKeyDown,z=>{z.key==="Escape"&&(a?.(z.nativeEvent),z.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:vt(t.onPointerDown,z=>{z.button===0&&(E.current={x:z.clientX,y:z.clientY})}),onPointerMove:vt(t.onPointerMove,z=>{if(!E.current)return;const N=z.clientX-E.current.x,T=z.clientY-E.current.y,U=!!A.current,L=["left","right"].includes(y.swipeDirection),P=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,H=L?P(0,N):0,Y=L?0:P(0,T),re=z.pointerType==="touch"?10:2,de={x:H,y:Y},fe={originalEvent:z,delta:de};U?(A.current=de,nA(nNe,d,fe,{discrete:!1})):$Z(de,y.swipeDirection,re)?(A.current=de,nA(tNe,u,fe,{discrete:!1}),z.target.setPointerCapture(z.pointerId)):(Math.abs(N)>re||Math.abs(T)>re)&&(E.current=null)}),onPointerUp:vt(t.onPointerUp,z=>{const N=A.current,T=z.target;if(T.hasPointerCapture(z.pointerId)&&T.releasePointerCapture(z.pointerId),A.current=null,E.current=null,N){const U=z.currentTarget,L={originalEvent:z,delta:N};$Z(N,y.swipeDirection,y.swipeThreshold)?nA(sNe,p,L,{discrete:!0}):nA(rNe,f,L,{discrete:!0}),U.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),cNe=t=>{const{__scopeToast:e,children:n,...r}=t,s=fP(hP,e),[i,o]=I.useState(!1),[a,c]=I.useState(!1);return dNe(()=>o(!0)),I.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:w.jsx(OS,{asChild:!0,children:w.jsx($S,{...r,children:i&&w.jsxs(w.Fragment,{children:[s.label," ",n]})})})},lNe="ToastTitle",eae=I.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return w.jsx(gn.div,{...r,ref:e})});eae.displayName=lNe;var uNe="ToastDescription",tae=I.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return w.jsx(gn.div,{...r,ref:e})});tae.displayName=uNe;var nae="ToastAction",rae=I.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?w.jsx(iae,{altText:n,asChild:!0,children:w.jsx(VF,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${nae}\`. Expected non-empty \`string\`.`),null)});rae.displayName=nae;var sae="ToastClose",VF=I.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=oNe(sae,n);return w.jsx(iae,{asChild:!0,children:w.jsx(gn.button,{type:"button",...r,ref:e,onClick:vt(t.onClick,s.onClose)})})});VF.displayName=sae;var iae=I.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return w.jsx(gn.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function oae(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),fNe(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...oae(r))}}),e}function nA(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?jF(s,i):s.dispatchEvent(i)}var $Z=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};function dNe(t=()=>{}){const e=To(t);No(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function fNe(t){return t.nodeType===t.ELEMENT_NODE}function hNe(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function BO(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var pNe=Zoe,aae=Xoe,cae=Joe,lae=eae,uae=tae,dae=rae,fae=VF;function hae(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;etypeof t=="boolean"?`${t}`:t===0?"0":t,MZ=pae,pP=(t,e)=>n=>{var r;if(e?.variants==null)return MZ(t,n?.class,n?.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(l=>{const u=n?.[l],d=i?.[l];if(u===null)return null;const f=DZ(u)||DZ(d);return s[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((l,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(m=>{let[y,b]=m;return Array.isArray(b)?b.includes({...i,...a}[y]):{...i,...a}[y]===b})?[...l,d,f]:l},[]);return MZ(t,o,c,n?.class,n?.className)};/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const gNe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gae=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var mNe={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const yNe=I.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>I.createElement("svg",{ref:c,...mNe,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:gae("lucide",s),...a},[...o.map(([l,u])=>I.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Xt=(t,e)=>{const n=I.forwardRef(({className:r,...s},i)=>I.createElement(yNe,{ref:i,iconNode:e,className:gae(`lucide-${gNe(t)}`,r),...s}));return n.displayName=`${t}`,n};/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const gP=Xt("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const DI=Xt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const mP=Xt("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const mae=Xt("Bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const wNe=Xt("BookmarkCheck",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2Z",key:"169p4p"}],["path",{d:"m9 10 2 2 4-4",key:"1gnqz4"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Fm=Xt("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const yae=Xt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const wae=Xt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const bNe=Xt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const vNe=Xt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const YM=Xt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const cC=Xt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const xNe=Xt("CircleSlash",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ENe=Xt("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const bae=Xt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const CNe=Xt("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const W1=Xt("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const vae=Xt("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const LZ=Xt("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const _Ne=Xt("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const SNe=Xt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ANe=Xt("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const K6=Xt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const XM=Xt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const INe=Xt("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const QM=Xt("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const xae=Xt("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const BZ=Xt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const TNe=Xt("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Xd=Xt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const NNe=Xt("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const PNe=Xt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const MI=Xt("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const s0=Xt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Eae=Xt("PanelsTopLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const kNe=Xt("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const HF=Xt("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const RNe=Xt("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ONe=Xt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const JM=Xt("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const UZ=Xt("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const zh=Xt("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const $Ne=Xt("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const DNe=Xt("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const yP=Xt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const lC=Xt("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const G6=Xt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const FZ=Xt("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Cae=Xt("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const gE=Xt("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const MNe=Xt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const LNe=Xt("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
+ * @license lucide-react v0.462.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const wP=Xt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),qF="-",BNe=t=>{const e=FNe(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(qF);return a[0]===""&&a.length!==1&&a.shift(),_ae(a,e)||UNe(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},_ae=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?_ae(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(qF);return e.validators.find(({validator:o})=>o(i))?.classGroupId},jZ=/^\[(.+)\]$/,UNe=t=>{if(jZ.test(t)){const e=jZ.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},FNe=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return zNe(Object.entries(t.classGroups),n).forEach(([i,o])=>{eL(o,r,i,e)}),r},eL=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:zZ(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(jNe(s)){eL(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{eL(o,zZ(e,i),n,r)})})},zZ=(t,e)=>{let n=t;return e.split(qF).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},jNe=t=>t.isThemeGetter,zNe=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[e+o,a])):i);return[n,s]}):t,WNe=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},Sae="!",VNe=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,o=a=>{const c=[];let l=0,u=0,d;for(let b=0;bu?d-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},HNe=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},qNe=t=>({cache:WNe(t.cacheSize),parseClassName:VNe(t),...BNe(t)}),KNe=/\s+/,GNe=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],o=t.trim().split(KNe);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(l);let m=!!p,y=r(m?f.substring(0,p):f);if(!y){if(!m){a=l+(a.length>0?" "+a:a);continue}if(y=r(f),!y){a=l+(a.length>0?" "+a:a);continue}m=!1}const b=HNe(u).join(":"),v=d?b+Sae:b,x=v+y;if(i.includes(x))continue;i.push(x);const E=s(y,m);for(let A=0;A0?" "+a:a)}return a};function ZNe(){let t=0,e,n,r="";for(;t{if(typeof t=="string")return t;let e,n="";for(let r=0;rd(u),t());return n=qNe(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=GNe(c,n);return s(c,u),u}return function(){return i(ZNe.apply(null,arguments))}}const ns=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Iae=/^\[(?:([a-z-]+):)?(.+)\]$/i,XNe=/^\d+\/\d+$/,QNe=new Set(["px","full","screen"]),JNe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e4e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,t4e=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,n4e=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,r4e=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jf=t=>rv(t)||QNe.has(t)||XNe.test(t),Mp=t=>V1(t,"length",d4e),rv=t=>!!t&&!Number.isNaN(Number(t)),UO=t=>V1(t,"number",rv),Zx=t=>!!t&&Number.isInteger(Number(t)),s4e=t=>t.endsWith("%")&&rv(t.slice(0,-1)),On=t=>Iae.test(t),Lp=t=>JNe.test(t),i4e=new Set(["length","size","percentage"]),o4e=t=>V1(t,i4e,Tae),a4e=t=>V1(t,"position",Tae),c4e=new Set(["image","url"]),l4e=t=>V1(t,c4e,h4e),u4e=t=>V1(t,"",f4e),Yx=()=>!0,V1=(t,e,n)=>{const r=Iae.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},d4e=t=>e4e.test(t)&&!t4e.test(t),Tae=()=>!1,f4e=t=>n4e.test(t),h4e=t=>r4e.test(t),p4e=()=>{const t=ns("colors"),e=ns("spacing"),n=ns("blur"),r=ns("brightness"),s=ns("borderColor"),i=ns("borderRadius"),o=ns("borderSpacing"),a=ns("borderWidth"),c=ns("contrast"),l=ns("grayscale"),u=ns("hueRotate"),d=ns("invert"),f=ns("gap"),p=ns("gradientColorStops"),m=ns("gradientColorStopPositions"),y=ns("inset"),b=ns("margin"),v=ns("opacity"),x=ns("padding"),E=ns("saturate"),A=ns("scale"),_=ns("sepia"),k=ns("skew"),B=ns("space"),W=ns("translate"),S=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",On,e],M=()=>[On,e],j=()=>["",jf,Mp],z=()=>["auto",rv,On],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],T=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",On],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[rv,On];return{cacheSize:500,separator:":",theme:{colors:[Yx],spacing:[jf,Mp],blur:["none","",Lp,On],brightness:Y(),borderColor:[t],borderRadius:["none","","full",Lp,On],borderSpacing:M(),borderWidth:j(),contrast:Y(),grayscale:P(),hueRotate:Y(),invert:P(),gap:M(),gradientColorStops:[t],gradientColorStopPositions:[s4e,Mp],inset:R(),margin:R(),opacity:Y(),padding:M(),saturate:Y(),scale:Y(),sepia:P(),skew:Y(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",On]}],container:["container"],columns:[{columns:[Lp]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),On]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zx,On]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",On]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",Zx,On]}],"grid-cols":[{"grid-cols":[Yx]}],"col-start-end":[{col:["auto",{span:["full",Zx,On]},On]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Yx]}],"row-start-end":[{row:["auto",{span:[Zx,On]},On]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",On]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",On]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",On,e]}],"min-w":[{"min-w":[On,e,"min","max","fit"]}],"max-w":[{"max-w":[On,e,"none","full","min","max","fit","prose",{screen:[Lp]},Lp]}],h:[{h:[On,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[On,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[On,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[On,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Lp,Mp]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",UO]}],"font-family":[{font:[Yx]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",On]}],"line-clamp":[{"line-clamp":["none",rv,UO]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jf,On]}],"list-image":[{"list-image":["none",On]}],"list-style-type":[{list:["none","disc","decimal",On]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...T(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jf,Mp]}],"underline-offset":[{"underline-offset":["auto",jf,On]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",On]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",On]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),a4e]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",o4e]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},l4e]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...T(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:T()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...T()]}],"outline-offset":[{"outline-offset":[jf,On]}],"outline-w":[{outline:[jf,Mp]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[jf,Mp]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Lp,u4e]}],"shadow-color":[{shadow:[Yx]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Lp,On]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[E]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",On]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",On]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",On]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Zx,On]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",On]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",On]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",On]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[jf,Mp,UO]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},g4e=YNe(p4e);function Dt(...t){return g4e(pae(t))}function FO(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function jO(t){const e=new Uint8Array(t.length/2);for(let n=0;nw.jsx(aae,{ref:n,className:Dt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...e}));Nae.displayName=aae.displayName;const w4e=pP("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Pae=I.forwardRef(({className:t,variant:e,...n},r)=>w.jsx(cae,{ref:r,className:Dt(w4e({variant:e}),t),...n}));Pae.displayName=cae.displayName;const b4e=I.forwardRef(({className:t,...e},n)=>w.jsx(dae,{ref:n,className:Dt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));b4e.displayName=dae.displayName;const kae=I.forwardRef(({className:t,...e},n)=>w.jsx(fae,{ref:n,className:Dt("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:w.jsx(wP,{className:"h-4 w-4"})}));kae.displayName=fae.displayName;const Rae=I.forwardRef(({className:t,...e},n)=>w.jsx(lae,{ref:n,className:Dt("text-sm font-semibold",t),...e}));Rae.displayName=lae.displayName;const Oae=I.forwardRef(({className:t,...e},n)=>w.jsx(uae,{ref:n,className:Dt("text-sm opacity-90",t),...e}));Oae.displayName=uae.displayName;function v4e(){const{toasts:t}=xf();return w.jsxs(y4e,{children:[t.map(function({id:e,title:n,description:r,action:s,...i}){return w.jsxs(Pae,{...i,children:[w.jsxs("div",{className:"grid gap-1",children:[n&&w.jsx(Rae,{children:n}),r&&w.jsx(Oae,{children:r})]}),s,w.jsx(kae,{})]},e)}),w.jsx(Nae,{})]})}var WZ=["light","dark"],x4e="(prefers-color-scheme: dark)",E4e=I.createContext(void 0),C4e={setTheme:t=>{},themes:[]},_4e=()=>{var t;return(t=I.useContext(E4e))!=null?t:C4e};I.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:a,nonce:c})=>{let l=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(m=>`'${m}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=s?WZ.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(m,y=!1,b=!0)=>{let v=o?o[m]:m,x=y?m+"|| ''":`'${v}'`,E="";return s&&b&&!y&&WZ.includes(m)&&(E+=`d.style.colorScheme = '${m}';`),n==="class"?y||v?E+=`c.add(${x})`:E+="null":v&&(E+=`d[s](n,${x})`),E},p=t?`!function(){${u}${f(t)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${e}');if('system'===e||(!e&&${l})){var t='${x4e}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}${l?"":"else{"+f(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${e}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${f(o?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${d}}catch(t){}}();`;return I.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var S4e=t=>{switch(t){case"success":return T4e;case"info":return P4e;case"warning":return N4e;case"error":return k4e;default:return null}},A4e=Array(12).fill(0),I4e=({visible:t})=>qe.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},qe.createElement("div",{className:"sonner-spinner"},A4e.map((e,n)=>qe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),T4e=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),N4e=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),P4e=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),k4e=qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},qe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),R4e=()=>{let[t,e]=qe.useState(document.hidden);return qe.useEffect(()=>{let n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t},tL=1,O4e=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;let{message:r,...s}=e,i=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:tL++,o=this.toasts.find(c=>c.id===i),a=e.dismissible===void 0?!0:e.dismissible;return o?this.toasts=this.toasts.map(c=>c.id===i?(this.publish({...c,...e,id:i,title:r}),{...c,...e,id:i,dismissible:a,title:r}):c):this.addToast({title:r,...s,dismissible:a,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),this.subscribers.forEach(n=>n({id:e,dismiss:!0})),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));let s=e instanceof Promise?e:e(),i=r!==void 0;return s.then(async o=>{if(D4e(o)&&!o.ok){i=!1;let a=typeof n.error=="function"?await n.error(`HTTP error! status: ${o.status}`):n.error,c=typeof n.description=="function"?await n.description(`HTTP error! status: ${o.status}`):n.description;this.create({id:r,type:"error",message:a,description:c})}else if(n.success!==void 0){i=!1;let a=typeof n.success=="function"?await n.success(o):n.success,c=typeof n.description=="function"?await n.description(o):n.description;this.create({id:r,type:"success",message:a,description:c})}}).catch(async o=>{if(n.error!==void 0){i=!1;let a=typeof n.error=="function"?await n.error(o):n.error,c=typeof n.description=="function"?await n.description(o):n.description;this.create({id:r,type:"error",message:a,description:c})}}).finally(()=>{var o;i&&(this.dismiss(r),r=void 0),(o=n.finally)==null||o.call(n)}),r},this.custom=(e,n)=>{let r=n?.id||tL++;return this.create({jsx:e(r),id:r,...n}),r},this.subscribers=[],this.toasts=[]}},Sc=new O4e,$4e=(t,e)=>{let n=e?.id||tL++;return Sc.addToast({title:t,...e,id:n}),n},D4e=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",M4e=$4e,L4e=()=>Sc.toasts;Object.assign(M4e,{success:Sc.success,info:Sc.info,warning:Sc.warning,error:Sc.error,custom:Sc.custom,message:Sc.message,promise:Sc.promise,dismiss:Sc.dismiss,loading:Sc.loading},{getHistory:L4e});function B4e(t,{insertAt:e}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t))}B4e(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
+`);function rA(t){return t.label!==void 0}var U4e=3,F4e="32px",j4e=4e3,z4e=356,W4e=14,V4e=20,H4e=200;function q4e(...t){return t.filter(Boolean).join(" ")}var K4e=t=>{var e,n,r,s,i,o,a,c,l,u;let{invert:d,toast:f,unstyled:p,interacting:m,setHeights:y,visibleToasts:b,heights:v,index:x,toasts:E,expanded:A,removeToast:_,defaultRichColors:k,closeButton:B,style:W,cancelButtonStyle:S,actionButtonStyle:$,className:R="",descriptionClassName:M="",duration:j,position:z,gap:N,loadingIcon:T,expandByDefault:U,classNames:L,icons:P,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:Y,cn:re}=t,[de,fe]=qe.useState(!1),[ve,Ee]=qe.useState(!1),[oe,Oe]=qe.useState(!1),[je,V]=qe.useState(!1),[we,Ae]=qe.useState(0),[Ie,ge]=qe.useState(0),Me=qe.useRef(null),be=qe.useRef(null),pe=x===0,J=x+1<=b,ie=f.type,ae=f.dismissible!==!1,Pe=f.className||"",$e=f.descriptionClassName||"",Re=qe.useMemo(()=>v.findIndex(bt=>bt.toastId===f.id)||0,[v,f.id]),ut=qe.useMemo(()=>{var bt;return(bt=f.closeButton)!=null?bt:B},[f.closeButton,B]),Je=qe.useMemo(()=>f.duration||j||j4e,[f.duration,j]),ft=qe.useRef(0),Z=qe.useRef(0),O=qe.useRef(0),F=qe.useRef(null),[ne,he]=z.split("-"),Te=qe.useMemo(()=>v.reduce((bt,Gn,Zn)=>Zn>=Re?bt:bt+Gn.height,0),[v,Re]),Fe=R4e(),Bt=f.invert||d,vn=ie==="loading";Z.current=qe.useMemo(()=>Re*N+Te,[Re,Te]),qe.useEffect(()=>{fe(!0)},[]),qe.useLayoutEffect(()=>{if(!de)return;let bt=be.current,Gn=bt.style.height;bt.style.height="auto";let Zn=bt.getBoundingClientRect().height;bt.style.height=Gn,ge(Zn),y(Ls=>Ls.find(Is=>Is.toastId===f.id)?Ls.map(Is=>Is.toastId===f.id?{...Is,height:Zn}:Is):[{toastId:f.id,height:Zn,position:f.position},...Ls])},[de,f.title,f.description,y,f.id]);let Kt=qe.useCallback(()=>{Ee(!0),Ae(Z.current),y(bt=>bt.filter(Gn=>Gn.toastId!==f.id)),setTimeout(()=>{_(f)},H4e)},[f,_,y,Z]);qe.useEffect(()=>{if(f.promise&&ie==="loading"||f.duration===1/0||f.type==="loading")return;let bt,Gn=Je;return A||m||Y&&Fe?(()=>{if(O.current{var Zn;(Zn=f.onAutoClose)==null||Zn.call(f,f),Kt()},Gn)),()=>clearTimeout(bt)},[A,m,U,f,Je,Kt,f.promise,ie,Y,Fe]),qe.useEffect(()=>{let bt=be.current;if(bt){let Gn=bt.getBoundingClientRect().height;return ge(Gn),y(Zn=>[{toastId:f.id,height:Gn,position:f.position},...Zn]),()=>y(Zn=>Zn.filter(Ls=>Ls.toastId!==f.id))}},[y,f.id]),qe.useEffect(()=>{f.delete&&Kt()},[Kt,f.delete]);function Dn(){return P!=null&&P.loading?qe.createElement("div",{className:"sonner-loader","data-visible":ie==="loading"},P.loading):T?qe.createElement("div",{className:"sonner-loader","data-visible":ie==="loading"},T):qe.createElement(I4e,{visible:ie==="loading"})}return qe.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:be,className:re(R,Pe,L?.toast,(e=f?.classNames)==null?void 0:e.toast,L?.default,L?.[ie],(n=f?.classNames)==null?void 0:n[ie]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:k,"data-styled":!(f.jsx||f.unstyled||p),"data-mounted":de,"data-promise":!!f.promise,"data-removed":ve,"data-visible":J,"data-y-position":ne,"data-x-position":he,"data-index":x,"data-front":pe,"data-swiping":oe,"data-dismissible":ae,"data-type":ie,"data-invert":Bt,"data-swipe-out":je,"data-expanded":!!(A||U&&de),style:{"--index":x,"--toasts-before":x,"--z-index":E.length-x,"--offset":`${ve?we:Z.current}px`,"--initial-height":U?"auto":`${Ie}px`,...W,...f.style},onPointerDown:bt=>{vn||!ae||(Me.current=new Date,Ae(Z.current),bt.target.setPointerCapture(bt.pointerId),bt.target.tagName!=="BUTTON"&&(Oe(!0),F.current={x:bt.clientX,y:bt.clientY}))},onPointerUp:()=>{var bt,Gn,Zn,Ls;if(je||!ae)return;F.current=null;let Is=Number(((bt=be.current)==null?void 0:bt.style.getPropertyValue("--swipe-amount").replace("px",""))||0),ha=new Date().getTime()-((Gn=Me.current)==null?void 0:Gn.getTime()),iu=Math.abs(Is)/ha;if(Math.abs(Is)>=V4e||iu>.11){Ae(Z.current),(Zn=f.onDismiss)==null||Zn.call(f,f),Kt(),V(!0);return}(Ls=be.current)==null||Ls.style.setProperty("--swipe-amount","0px"),Oe(!1)},onPointerMove:bt=>{var Gn;if(!F.current||!ae)return;let Zn=bt.clientY-F.current.y,Ls=bt.clientX-F.current.x,Is=(ne==="top"?Math.min:Math.max)(0,Zn),ha=bt.pointerType==="touch"?10:2;Math.abs(Is)>ha?(Gn=be.current)==null||Gn.style.setProperty("--swipe-amount",`${Zn}px`):Math.abs(Ls)>ha&&(F.current=null)}},ut&&!f.jsx?qe.createElement("button",{"aria-label":H,"data-disabled":vn,"data-close-button":!0,onClick:vn||!ae?()=>{}:()=>{var bt;Kt(),(bt=f.onDismiss)==null||bt.call(f,f)},className:re(L?.closeButton,(s=f?.classNames)==null?void 0:s.closeButton)},qe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},qe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),qe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,f.jsx||qe.isValidElement(f.title)?f.jsx||f.title:qe.createElement(qe.Fragment,null,ie||f.icon||f.promise?qe.createElement("div",{"data-icon":"",className:re(L?.icon,(i=f?.classNames)==null?void 0:i.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Dn():null,f.type!=="loading"?f.icon||P?.[ie]||S4e(ie):null):null,qe.createElement("div",{"data-content":"",className:re(L?.content,(o=f?.classNames)==null?void 0:o.content)},qe.createElement("div",{"data-title":"",className:re(L?.title,(a=f?.classNames)==null?void 0:a.title)},f.title),f.description?qe.createElement("div",{"data-description":"",className:re(M,$e,L?.description,(c=f?.classNames)==null?void 0:c.description)},f.description):null),qe.isValidElement(f.cancel)?f.cancel:f.cancel&&rA(f.cancel)?qe.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||S,onClick:bt=>{var Gn,Zn;rA(f.cancel)&&ae&&((Zn=(Gn=f.cancel).onClick)==null||Zn.call(Gn,bt),Kt())},className:re(L?.cancelButton,(l=f?.classNames)==null?void 0:l.cancelButton)},f.cancel.label):null,qe.isValidElement(f.action)?f.action:f.action&&rA(f.action)?qe.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||$,onClick:bt=>{var Gn,Zn;rA(f.action)&&(bt.defaultPrevented||((Zn=(Gn=f.action).onClick)==null||Zn.call(Gn,bt),Kt()))},className:re(L?.actionButton,(u=f?.classNames)==null?void 0:u.actionButton)},f.action.label):null))};function VZ(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}var G4e=t=>{let{invert:e,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:s,closeButton:i,className:o,offset:a,theme:c="light",richColors:l,duration:u,style:d,visibleToasts:f=U4e,toastOptions:p,dir:m=VZ(),gap:y=W4e,loadingIcon:b,icons:v,containerAriaLabel:x="Notifications",pauseWhenPageIsHidden:E,cn:A=q4e}=t,[_,k]=qe.useState([]),B=qe.useMemo(()=>Array.from(new Set([n].concat(_.filter(Y=>Y.position).map(Y=>Y.position)))),[_,n]),[W,S]=qe.useState([]),[$,R]=qe.useState(!1),[M,j]=qe.useState(!1),[z,N]=qe.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),T=qe.useRef(null),U=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=qe.useRef(null),P=qe.useRef(!1),H=qe.useCallback(Y=>{var re;(re=_.find(de=>de.id===Y.id))!=null&&re.delete||Sc.dismiss(Y.id),k(de=>de.filter(({id:fe})=>fe!==Y.id))},[_]);return qe.useEffect(()=>Sc.subscribe(Y=>{if(Y.dismiss){k(re=>re.map(de=>de.id===Y.id?{...de,delete:!0}:de));return}setTimeout(()=>{Woe.flushSync(()=>{k(re=>{let de=re.findIndex(fe=>fe.id===Y.id);return de!==-1?[...re.slice(0,de),{...re[de],...Y},...re.slice(de+1)]:[Y,...re]})})})}),[]),qe.useEffect(()=>{if(c!=="system"){N(c);return}c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?N("dark"):N("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:Y})=>{N(Y?"dark":"light")})},[c]),qe.useEffect(()=>{_.length<=1&&R(!1)},[_]),qe.useEffect(()=>{let Y=re=>{var de,fe;r.every(ve=>re[ve]||re.code===ve)&&(R(!0),(de=T.current)==null||de.focus()),re.code==="Escape"&&(document.activeElement===T.current||(fe=T.current)!=null&&fe.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[r]),qe.useEffect(()=>{if(T.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,P.current=!1)}},[T.current]),_.length?qe.createElement("section",{"aria-label":`${x} ${U}`,tabIndex:-1},B.map((Y,re)=>{var de;let[fe,ve]=Y.split("-");return qe.createElement("ol",{key:Y,dir:m==="auto"?VZ():m,tabIndex:-1,ref:T,className:o,"data-sonner-toaster":!0,"data-theme":z,"data-y-position":fe,"data-x-position":ve,style:{"--front-toast-height":`${((de=W[0])==null?void 0:de.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||F4e,"--width":`${z4e}px`,"--gap":`${y}px`,...d},onBlur:Ee=>{P.current&&!Ee.currentTarget.contains(Ee.relatedTarget)&&(P.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:Ee=>{Ee.target instanceof HTMLElement&&Ee.target.dataset.dismissible==="false"||P.current||(P.current=!0,L.current=Ee.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{M||R(!1)},onPointerDown:Ee=>{Ee.target instanceof HTMLElement&&Ee.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},_.filter(Ee=>!Ee.position&&re===0||Ee.position===Y).map((Ee,oe)=>{var Oe,je;return qe.createElement(K4e,{key:Ee.id,icons:v,index:oe,toast:Ee,defaultRichColors:l,duration:(Oe=p?.duration)!=null?Oe:u,className:p?.className,descriptionClassName:p?.descriptionClassName,invert:e,visibleToasts:f,closeButton:(je=p?.closeButton)!=null?je:i,interacting:M,position:Y,style:p?.style,unstyled:p?.unstyled,classNames:p?.classNames,cancelButtonStyle:p?.cancelButtonStyle,actionButtonStyle:p?.actionButtonStyle,removeToast:H,toasts:_.filter(V=>V.position==Ee.position),heights:W.filter(V=>V.position==Ee.position),setHeights:S,expandByDefault:s,gap:y,loadingIcon:b,expanded:$,pauseWhenPageIsHidden:E,cn:A})}))})):null};const Z4e=({...t})=>{const{theme:e="system"}=_4e();return w.jsx(G4e,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};var Y4e=Fse.useId||(()=>{}),X4e=0;function Wu(t){const[e,n]=I.useState(Y4e());return No(()=>{n(r=>r??String(X4e++))},[t]),e?`radix-${e}`:""}const Q4e=["top","right","bottom","left"],i0=Math.min,Pc=Math.max,Z6=Math.round,sA=Math.floor,o0=t=>({x:t,y:t}),J4e={left:"right",right:"left",bottom:"top",top:"bottom"},ePe={start:"end",end:"start"};function nL(t,e,n){return Pc(t,i0(e,n))}function Wh(t,e){return typeof t=="function"?t(e):t}function Vh(t){return t.split("-")[0]}function H1(t){return t.split("-")[1]}function KF(t){return t==="x"?"y":"x"}function GF(t){return t==="y"?"height":"width"}function a0(t){return["top","bottom"].includes(Vh(t))?"y":"x"}function ZF(t){return KF(a0(t))}function tPe(t,e,n){n===void 0&&(n=!1);const r=H1(t),s=ZF(t),i=GF(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Y6(o)),[o,Y6(o)]}function nPe(t){const e=Y6(t);return[rL(t),e,rL(e)]}function rL(t){return t.replace(/start|end/g,e=>ePe[e])}function rPe(t,e,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?i:o;default:return[]}}function sPe(t,e,n,r){const s=H1(t);let i=rPe(Vh(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(rL)))),i}function Y6(t){return t.replace(/left|right|bottom|top/g,e=>J4e[e])}function iPe(t){return{top:0,right:0,bottom:0,left:0,...t}}function $ae(t){return typeof t!="number"?iPe(t):{top:t,right:t,bottom:t,left:t}}function X6(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function HZ(t,e,n){let{reference:r,floating:s}=t;const i=a0(e),o=ZF(e),a=GF(o),c=Vh(e),l=i==="y",u=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,f=r[a]/2-s[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(H1(e)){case"start":p[o]-=f*(n&&l?-1:1);break;case"end":p[o]+=f*(n&&l?-1:1);break}return p}const oPe=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:d}=HZ(l,r,c),f=r,p={},m=0;for(let y=0;y({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Wh(t,e)||{};if(l==null)return{};const d=$ae(u),f={x:n,y:r},p=ZF(s),m=GF(p),y=await o.getDimensions(l),b=p==="y",v=b?"top":"left",x=b?"bottom":"right",E=b?"clientHeight":"clientWidth",A=i.reference[m]+i.reference[p]-f[p]-i.floating[m],_=f[p]-i.reference[p],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let B=k?k[E]:0;(!B||!await(o.isElement==null?void 0:o.isElement(k)))&&(B=a.floating[E]||i.floating[m]);const W=A/2-_/2,S=B/2-y[m]/2-1,$=i0(d[v],S),R=i0(d[x],S),M=$,j=B-y[m]-R,z=B/2-y[m]/2+W,N=nL(M,z,j),T=!c.arrow&&H1(s)!=null&&z!==N&&i.reference[m]/2-(zz<=0)){var R,M;const z=(((R=i.flip)==null?void 0:R.index)||0)+1,N=B[z];if(N)return{data:{index:z,overflows:$},reset:{placement:N}};let T=(M=$.filter(U=>U.overflows[0]<=0).sort((U,L)=>U.overflows[1]-L.overflows[1])[0])==null?void 0:M.placement;if(!T)switch(p){case"bestFit":{var j;const U=(j=$.filter(L=>{if(k){const P=a0(L.placement);return P===x||P==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(P=>P>0).reduce((P,H)=>P+H,0)]).sort((L,P)=>L[1]-P[1])[0])==null?void 0:j[0];U&&(T=U);break}case"initialPlacement":T=a;break}if(s!==T)return{reset:{placement:T}}}return{}}}};function qZ(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function KZ(t){return Q4e.some(e=>t[e]>=0)}const lPe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=Wh(t,e);switch(r){case"referenceHidden":{const i=await uC(e,{...s,elementContext:"reference"}),o=qZ(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:KZ(o)}}}case"escaped":{const i=await uC(e,{...s,altBoundary:!0}),o=qZ(i,n.floating);return{data:{escapedOffsets:o,escaped:KZ(o)}}}default:return{}}}}};async function uPe(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Vh(n),a=H1(n),c=a0(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=Wh(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const dPe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await uPe(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},fPe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:v,y:x}=b;return{x:v,y:x}}},...c}=Wh(t,e),l={x:n,y:r},u=await uC(e,c),d=a0(Vh(s)),f=KF(d);let p=l[f],m=l[d];if(i){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=p+u[b],E=p-u[v];p=nL(x,p,E)}if(o){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",x=m+u[b],E=m-u[v];m=nL(x,m,E)}const y=a.fn({...e,[f]:p,[d]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:i,[d]:o}}}}}},hPe=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Wh(t,e),u={x:n,y:r},d=a0(s),f=KF(d);let p=u[f],m=u[d];const y=Wh(a,e),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const E=f==="y"?"height":"width",A=i.reference[f]-i.floating[E]+b.mainAxis,_=i.reference[f]+i.reference[E]-b.mainAxis;p_&&(p=_)}if(l){var v,x;const E=f==="y"?"width":"height",A=["top","left"].includes(Vh(s)),_=i.reference[d]-i.floating[E]+(A&&((v=o.offset)==null?void 0:v[d])||0)+(A?0:b.crossAxis),k=i.reference[d]+i.reference[E]+(A?0:((x=o.offset)==null?void 0:x[d])||0)-(A?b.crossAxis:0);m<_?m=_:m>k&&(m=k)}return{[f]:p,[d]:m}}}},pPe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:c=()=>{},...l}=Wh(t,e),u=await uC(e,l),d=Vh(s),f=H1(s),p=a0(s)==="y",{width:m,height:y}=i.floating;let b,v;d==="top"||d==="bottom"?(b=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,b=f==="end"?"top":"bottom");const x=y-u.top-u.bottom,E=m-u.left-u.right,A=i0(y-u[b],x),_=i0(m-u[v],E),k=!e.middlewareData.shift;let B=A,W=_;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(W=E),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(B=x),k&&!f){const $=Pc(u.left,0),R=Pc(u.right,0),M=Pc(u.top,0),j=Pc(u.bottom,0);p?W=m-2*($!==0||R!==0?$+R:Pc(u.left,u.right)):B=y-2*(M!==0||j!==0?M+j:Pc(u.top,u.bottom))}await c({...e,availableWidth:W,availableHeight:B});const S=await o.getDimensions(a.floating);return m!==S.width||y!==S.height?{reset:{rects:!0}}:{}}}};function bP(){return typeof window<"u"}function q1(t){return Dae(t)?(t.nodeName||"").toLowerCase():"#document"}function Lc(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ef(t){var e;return(e=(Dae(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Dae(t){return bP()?t instanceof Node||t instanceof Lc(t).Node:!1}function ed(t){return bP()?t instanceof Element||t instanceof Lc(t).Element:!1}function af(t){return bP()?t instanceof HTMLElement||t instanceof Lc(t).HTMLElement:!1}function GZ(t){return!bP()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Lc(t).ShadowRoot}function DS(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=td(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function gPe(t){return["table","td","th"].includes(q1(t))}function vP(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function YF(t){const e=XF(),n=ed(t)?td(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function mPe(t){let e=c0(t);for(;af(e)&&!Pv(e);){if(YF(e))return e;if(vP(e))return null;e=c0(e)}return null}function XF(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Pv(t){return["html","body","#document"].includes(q1(t))}function td(t){return Lc(t).getComputedStyle(t)}function xP(t){return ed(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function c0(t){if(q1(t)==="html")return t;const e=t.assignedSlot||t.parentNode||GZ(t)&&t.host||Ef(t);return GZ(e)?e.host:e}function Mae(t){const e=c0(t);return Pv(e)?t.ownerDocument?t.ownerDocument.body:t.body:af(e)&&DS(e)?e:Mae(e)}function dC(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Mae(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=Lc(s);if(i){const a=sL(o);return e.concat(o,o.visualViewport||[],DS(s)?s:[],a&&n?dC(a):[])}return e.concat(s,dC(s,[],n))}function sL(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Lae(t){const e=td(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=af(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=Z6(n)!==i||Z6(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function QF(t){return ed(t)?t:t.contextElement}function sv(t){const e=QF(t);if(!af(e))return o0(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=Lae(e);let o=(i?Z6(n.width):n.width)/r,a=(i?Z6(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const yPe=o0(0);function Bae(t){const e=Lc(t);return!XF()||!e.visualViewport?yPe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function wPe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Lc(t)?!1:e}function sy(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=QF(t);let o=o0(1);e&&(r?ed(r)&&(o=sv(r)):o=sv(t));const a=wPe(i,n,r)?Bae(i):o0(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,d=s.height/o.y;if(i){const f=Lc(i),p=r&&ed(r)?Lc(r):r;let m=f,y=sL(m);for(;y&&r&&p!==m;){const b=sv(y),v=y.getBoundingClientRect(),x=td(y),E=v.left+(y.clientLeft+parseFloat(x.paddingLeft))*b.x,A=v.top+(y.clientTop+parseFloat(x.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=E,l+=A,m=Lc(y),y=sL(m)}}return X6({width:u,height:d,x:c,y:l})}function bPe(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=Ef(r),a=e?vP(e.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=o0(1);const u=o0(0),d=af(r);if((d||!d&&!i)&&((q1(r)!=="body"||DS(o))&&(c=xP(r)),af(r))){const f=sy(r);l=sv(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function vPe(t){return Array.from(t.getClientRects())}function iL(t,e){const n=xP(t).scrollLeft;return e?e.left+n:sy(Ef(t)).left+n}function xPe(t){const e=Ef(t),n=xP(t),r=t.ownerDocument.body,s=Pc(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Pc(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+iL(t);const a=-n.scrollTop;return td(r).direction==="rtl"&&(o+=Pc(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function EPe(t,e){const n=Lc(t),r=Ef(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=XF();(!l||l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function CPe(t,e){const n=sy(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=af(t)?sv(t):o0(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,l=r*i.y;return{width:o,height:a,x:c,y:l}}function ZZ(t,e,n){let r;if(e==="viewport")r=EPe(t,n);else if(e==="document")r=xPe(Ef(t));else if(ed(e))r=CPe(e,n);else{const s=Bae(t);r={...e,x:e.x-s.x,y:e.y-s.y}}return X6(r)}function Uae(t,e){const n=c0(t);return n===e||!ed(n)||Pv(n)?!1:td(n).position==="fixed"||Uae(n,e)}function _Pe(t,e){const n=e.get(t);if(n)return n;let r=dC(t,[],!1).filter(a=>ed(a)&&q1(a)!=="body"),s=null;const i=td(t).position==="fixed";let o=i?c0(t):t;for(;ed(o)&&!Pv(o);){const a=td(o),c=YF(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||DS(o)&&!c&&Uae(t,o))?r=r.filter(u=>u!==o):s=a,o=c0(o)}return e.set(t,r),r}function SPe(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?vP(e)?[]:_Pe(e,this._c):[].concat(n),r],a=o[0],c=o.reduce((l,u)=>{const d=ZZ(e,u,s);return l.top=Pc(d.top,l.top),l.right=i0(d.right,l.right),l.bottom=i0(d.bottom,l.bottom),l.left=Pc(d.left,l.left),l},ZZ(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function APe(t){const{width:e,height:n}=Lae(t);return{width:e,height:n}}function IPe(t,e,n){const r=af(e),s=Ef(e),i=n==="fixed",o=sy(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=o0(0);if(r||!r&&!i)if((q1(e)!=="body"||DS(s))&&(a=xP(e)),r){const p=sy(e,!0,i,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else s&&(c.x=iL(s));let l=0,u=0;if(s&&!r&&!i){const p=s.getBoundingClientRect();u=p.top+a.scrollTop,l=p.left+a.scrollLeft-iL(s,p)}const d=o.left+a.scrollLeft-c.x-l,f=o.top+a.scrollTop-c.y-u;return{x:d,y:f,width:o.width,height:o.height}}function zO(t){return td(t).position==="static"}function YZ(t,e){if(!af(t)||td(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Ef(t)===n&&(n=n.ownerDocument.body),n}function Fae(t,e){const n=Lc(t);if(vP(t))return n;if(!af(t)){let s=c0(t);for(;s&&!Pv(s);){if(ed(s)&&!zO(s))return s;s=c0(s)}return n}let r=YZ(t,e);for(;r&&gPe(r)&&zO(r);)r=YZ(r,e);return r&&Pv(r)&&zO(r)&&!YF(r)?n:r||mPe(t)||n}const TPe=async function(t){const e=this.getOffsetParent||Fae,n=this.getDimensions,r=await n(t.floating);return{reference:IPe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NPe(t){return td(t).direction==="rtl"}const PPe={convertOffsetParentRelativeRectToViewportRelativeRect:bPe,getDocumentElement:Ef,getClippingRect:SPe,getOffsetParent:Fae,getElementRects:TPe,getClientRects:vPe,getDimensions:APe,getScale:sv,isElement:ed,isRTL:NPe};function kPe(t,e){let n=null,r;const s=Ef(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:d,height:f}=t.getBoundingClientRect();if(a||e(),!d||!f)return;const p=sA(u),m=sA(s.clientWidth-(l+d)),y=sA(s.clientHeight-(u+f)),b=sA(l),x={rootMargin:-p+"px "+-m+"px "+-y+"px "+-b+"px",threshold:Pc(0,i0(1,c))||1};let E=!0;function A(_){const k=_[0].intersectionRatio;if(k!==c){if(!E)return o();k?o(!1,k):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(A,{...x,root:s.ownerDocument})}catch{n=new IntersectionObserver(A,x)}n.observe(t)}return o(!0),i}function RPe(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=QF(t),u=s||i?[...l?dC(l):[],...dC(e)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?kPe(l,n):null;let f=-1,p=null;o&&(p=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(e)})),n()}),l&&!c&&p.observe(l),p.observe(e));let m,y=c?sy(t):null;c&&b();function b(){const v=sy(t);y&&(v.x!==y.x||v.y!==y.y||v.width!==y.width||v.height!==y.height)&&n(),y=v,m=requestAnimationFrame(b)}return n(),()=>{var v;u.forEach(x=>{s&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d?.(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const OPe=dPe,$Pe=fPe,DPe=cPe,MPe=pPe,LPe=lPe,XZ=aPe,BPe=hPe,UPe=(t,e,n)=>{const r=new Map,s={platform:PPe,...n},i={...s.platform,_c:r};return oPe(t,e,{...s,platform:i})};var LI=typeof document<"u"?I.useLayoutEffect:I.useEffect;function Q6(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Q6(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!Q6(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function jae(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function QZ(t,e){const n=jae(t);return Math.round(e*n)/n}function WO(t){const e=I.useRef(t);return LI(()=>{e.current=t}),e}function FPe(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,d]=I.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=I.useState(r);Q6(f,r)||p(r);const[m,y]=I.useState(null),[b,v]=I.useState(null),x=I.useCallback(L=>{L!==k.current&&(k.current=L,y(L))},[]),E=I.useCallback(L=>{L!==B.current&&(B.current=L,v(L))},[]),A=i||m,_=o||b,k=I.useRef(null),B=I.useRef(null),W=I.useRef(u),S=c!=null,$=WO(c),R=WO(s),M=WO(l),j=I.useCallback(()=>{if(!k.current||!B.current)return;const L={placement:e,strategy:n,middleware:f};R.current&&(L.platform=R.current),UPe(k.current,B.current,L).then(P=>{const H={...P,isPositioned:M.current!==!1};z.current&&!Q6(W.current,H)&&(W.current=H,Qy.flushSync(()=>{d(H)}))})},[f,e,n,R,M]);LI(()=>{l===!1&&W.current.isPositioned&&(W.current.isPositioned=!1,d(L=>({...L,isPositioned:!1})))},[l]);const z=I.useRef(!1);LI(()=>(z.current=!0,()=>{z.current=!1}),[]),LI(()=>{if(A&&(k.current=A),_&&(B.current=_),A&&_){if($.current)return $.current(A,_,j);j()}},[A,_,j,$,S]);const N=I.useMemo(()=>({reference:k,floating:B,setReference:x,setFloating:E}),[x,E]),T=I.useMemo(()=>({reference:A,floating:_}),[A,_]),U=I.useMemo(()=>{const L={position:n,left:0,top:0};if(!T.floating)return L;const P=QZ(T.floating,u.x),H=QZ(T.floating,u.y);return a?{...L,transform:"translate("+P+"px, "+H+"px)",...jae(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:H}},[n,a,T.floating,u.x,u.y]);return I.useMemo(()=>({...u,update:j,refs:N,elements:T,floatingStyles:U}),[u,j,N,T,U])}const jPe=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?XZ({element:r.current,padding:s}).fn(n):{}:r?XZ({element:r,padding:s}).fn(n):{}}}},zPe=(t,e)=>({...OPe(t),options:[t,e]}),WPe=(t,e)=>({...$Pe(t),options:[t,e]}),VPe=(t,e)=>({...BPe(t),options:[t,e]}),HPe=(t,e)=>({...DPe(t),options:[t,e]}),qPe=(t,e)=>({...MPe(t),options:[t,e]}),KPe=(t,e)=>({...LPe(t),options:[t,e]}),GPe=(t,e)=>({...jPe(t),options:[t,e]});var ZPe="Arrow",zae=I.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return w.jsx(gn.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});zae.displayName=ZPe;var YPe=zae;function XPe(t,e=[]){let n=[];function r(i,o){const a=I.createContext(o),c=n.length;n=[...n,o];function l(d){const{scope:f,children:p,...m}=d,y=f?.[t][c]||a,b=I.useMemo(()=>m,Object.values(m));return w.jsx(y.Provider,{value:b,children:p})}function u(d,f){const p=f?.[t][c]||a,m=I.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=n.map(o=>I.createContext(o));return function(a){const c=a?.[t]||i;return I.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[r,QPe(s,...e)]}function QPe(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:l})=>{const d=c(i)[`__scope${l}`];return{...a,...d}},{});return I.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function Wae(t){const[e,n]=I.useState(void 0);return No(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var JF="Popper",[Vae,K1]=XPe(JF),[JPe,Hae]=Vae(JF),qae=t=>{const{__scopePopper:e,children:n}=t,[r,s]=I.useState(null);return w.jsx(JPe,{scope:e,anchor:r,onAnchorChange:s,children:n})};qae.displayName=JF;var Kae="PopperAnchor",Gae=I.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=Hae(Kae,n),o=I.useRef(null),a=ir(e,o);return I.useEffect(()=>{i.onAnchorChange(r?.current||o.current)}),r?null:w.jsx(gn.div,{...s,ref:a})});Gae.displayName=Kae;var ej="PopperContent",[eke,tke]=Vae(ej),Zae=I.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...y}=t,b=Hae(ej,n),[v,x]=I.useState(null),E=ir(e,oe=>x(oe)),[A,_]=I.useState(null),k=Wae(A),B=k?.width??0,W=k?.height??0,S=r+(i!=="center"?"-"+i:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(l)?l:[l],M=R.length>0,j={padding:$,boundary:R.filter(rke),altBoundary:M},{refs:z,floatingStyles:N,placement:T,isPositioned:U,middlewareData:L}=FPe({strategy:"fixed",placement:S,whileElementsMounted:(...oe)=>RPe(...oe,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[zPe({mainAxis:s+W,alignmentAxis:o}),c&&WPe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?VPe():void 0,...j}),c&&HPe({...j}),qPe({...j,apply:({elements:oe,rects:Oe,availableWidth:je,availableHeight:V})=>{const{width:we,height:Ae}=Oe.reference,Ie=oe.floating.style;Ie.setProperty("--radix-popper-available-width",`${je}px`),Ie.setProperty("--radix-popper-available-height",`${V}px`),Ie.setProperty("--radix-popper-anchor-width",`${we}px`),Ie.setProperty("--radix-popper-anchor-height",`${Ae}px`)}}),A&&GPe({element:A,padding:a}),ske({arrowWidth:B,arrowHeight:W}),f&&KPe({strategy:"referenceHidden",...j})]}),[P,H]=Qae(T),Y=To(m);No(()=>{U&&Y?.()},[U,Y]);const re=L.arrow?.x,de=L.arrow?.y,fe=L.arrow?.centerOffset!==0,[ve,Ee]=I.useState();return No(()=>{v&&Ee(window.getComputedStyle(v).zIndex)},[v]),w.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:U?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:w.jsx(eke,{scope:n,placedSide:P,onArrowChange:_,arrowX:re,arrowY:de,shouldHideArrow:fe,children:w.jsx(gn.div,{"data-side":P,"data-align":H,...y,ref:E,style:{...y.style,animation:U?void 0:"none"}})})})});Zae.displayName=ej;var Yae="PopperArrow",nke={top:"bottom",right:"left",bottom:"top",left:"right"},Xae=I.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=tke(Yae,r),o=nke[i.placedSide];return w.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:w.jsx(YPe,{...s,ref:n,style:{...s.style,display:"block"}})})});Xae.displayName=Yae;function rke(t){return t!==null}var ske=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:s}=e,o=s.arrow?.centerOffset!==0,a=o?0:t.arrowWidth,c=o?0:t.arrowHeight,[l,u]=Qae(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(s.arrow?.x??0)+a/2,p=(s.arrow?.y??0)+c/2;let m="",y="";return l==="bottom"?(m=o?d:`${f}px`,y=`${-c}px`):l==="top"?(m=o?d:`${f}px`,y=`${r.floating.height+c}px`):l==="right"?(m=`${-c}px`,y=o?d:`${p}px`):l==="left"&&(m=`${r.floating.width+c}px`,y=o?d:`${p}px`),{data:{x:m,y}}}});function Qae(t){const[e,n="center"]=t.split("-");return[e,n]}var tj=qae,nj=Gae,rj=Zae,sj=Xae,[EP,nkt]=pp("Tooltip",[K1]),CP=K1(),Jae="TooltipProvider",ike=700,oL="tooltip.open",[oke,ij]=EP(Jae),ece=t=>{const{__scopeTooltip:e,delayDuration:n=ike,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,[o,a]=I.useState(!0),c=I.useRef(!1),l=I.useRef(0);return I.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),w.jsx(oke,{scope:e,isOpenDelayed:o,delayDuration:n,onOpen:I.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:I.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:I.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:i})};ece.displayName=Jae;var _P="Tooltip",[ake,SP]=EP(_P),tce=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=ij(_P,t.__scopeTooltip),l=CP(e),[u,d]=I.useState(null),f=Wu(),p=I.useRef(0),m=o??c.disableHoverableContent,y=a??c.delayDuration,b=I.useRef(!1),[v=!1,x]=jh({prop:r,defaultProp:s,onChange:B=>{B?(c.onOpen(),document.dispatchEvent(new CustomEvent(oL))):c.onClose(),i?.(B)}}),E=I.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),A=I.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,x(!0)},[x]),_=I.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),k=I.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,x(!0),p.current=0},y)},[y,x]);return I.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),w.jsx(tj,{...l,children:w.jsx(ake,{scope:e,contentId:f,open:v,stateAttribute:E,trigger:u,onTriggerChange:d,onTriggerEnter:I.useCallback(()=>{c.isOpenDelayed?k():A()},[c.isOpenDelayed,k,A]),onTriggerLeave:I.useCallback(()=>{m?_():(window.clearTimeout(p.current),p.current=0)},[_,m]),onOpen:A,onClose:_,disableHoverableContent:m,children:n})})};tce.displayName=_P;var aL="TooltipTrigger",nce=I.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=SP(aL,n),i=ij(aL,n),o=CP(n),a=I.useRef(null),c=ir(e,a,s.onTriggerChange),l=I.useRef(!1),u=I.useRef(!1),d=I.useCallback(()=>l.current=!1,[]);return I.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(nj,{asChild:!0,...o,children:w.jsx(gn.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:vt(t.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:vt(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:vt(t.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:vt(t.onFocus,()=>{l.current||s.onOpen()}),onBlur:vt(t.onBlur,s.onClose),onClick:vt(t.onClick,s.onClose)})})});nce.displayName=aL;var cke="TooltipPortal",[rkt,lke]=EP(cke,{forceMount:void 0}),kv="TooltipContent",rce=I.forwardRef((t,e)=>{const n=lke(kv,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,o=SP(kv,t.__scopeTooltip);return w.jsx(ud,{present:r||o.open,children:o.disableHoverableContent?w.jsx(sce,{side:s,...i,ref:e}):w.jsx(uke,{side:s,...i,ref:e})})}),uke=I.forwardRef((t,e)=>{const n=SP(kv,t.__scopeTooltip),r=ij(kv,t.__scopeTooltip),s=I.useRef(null),i=ir(e,s),[o,a]=I.useState(null),{trigger:c,onClose:l}=n,u=s.current,{onPointerInTransitChange:d}=r,f=I.useCallback(()=>{a(null),d(!1)},[d]),p=I.useCallback((m,y)=>{const b=m.currentTarget,v={x:m.clientX,y:m.clientY},x=pke(v,b.getBoundingClientRect()),E=gke(v,x),A=mke(y.getBoundingClientRect()),_=wke([...E,...A]);a(_),d(!0)},[d]);return I.useEffect(()=>()=>f(),[f]),I.useEffect(()=>{if(c&&u){const m=b=>p(b,u),y=b=>p(b,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",y)}}},[c,u,p,f]),I.useEffect(()=>{if(o){const m=y=>{const b=y.target,v={x:y.clientX,y:y.clientY},x=c?.contains(b)||u?.contains(b),E=!yke(v,o);x?f():E&&(f(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,f]),w.jsx(sce,{...t,ref:i})}),[dke,fke]=EP(_P,{isInside:!1}),sce=I.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=SP(kv,n),l=CP(n),{onClose:u}=c;return I.useEffect(()=>(document.addEventListener(oL,u),()=>document.removeEventListener(oL,u)),[u]),I.useEffect(()=>{if(c.trigger){const d=f=>{f.target?.contains(c.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,u]),w.jsx(z1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:w.jsxs(rj,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(FF,{children:r}),w.jsx(dke,{scope:n,isInside:!0,children:w.jsx(YTe,{id:c.contentId,role:"tooltip",children:s||r})})]})})});rce.displayName=kv;var ice="TooltipArrow",hke=I.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=CP(n);return fke(ice,n).isInside?null:w.jsx(sj,{...s,...r,ref:e})});hke.displayName=ice;function pke(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gke(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function mke(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function yke(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,o=e.length-1;ir!=u>r&&n<(l-a)*(r-c)/(u-c)+a&&(s=!s)}return s}function wke(t){const e=t.slice();return e.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),bke(e)}function bke(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var vke=ece,xke=tce,Eke=nce,oce=rce;const ace=vke,jm=xke,zm=Eke,Hg=I.forwardRef(({className:t,sideOffset:e=4,...n},r)=>w.jsx(oce,{ref:r,sideOffset:e,className:Dt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n}));Hg.displayName=oce.displayName;var AP=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},IP=typeof window>"u"||"Deno"in globalThis;function Tu(){}function Cke(t,e){return typeof t=="function"?t(e):t}function _ke(t){return typeof t=="number"&&t>=0&&t!==1/0}function Ske(t,e){return Math.max(t+(e||0)-Date.now(),0)}function cL(t,e){return typeof t=="function"?t(e):t}function Ake(t,e){return typeof t=="function"?t(e):t}function JZ(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==oj(o,e.options))return!1}else if(!hC(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function eY(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(fC(e.options.mutationKey)!==fC(i))return!1}else if(!hC(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function oj(t,e){return(e?.queryKeyHashFn||fC)(t)}function fC(t){return JSON.stringify(t,(e,n)=>lL(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function hC(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>hC(t[n],e[n])):!1}function cce(t,e){if(t===e)return t;const n=tY(t)&&tY(e);if(n||lL(t)&&lL(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{},c=new Set(r);let l=0;for(let u=0;u{setTimeout(e,t)})}function Tke(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?cce(t,e):e}function Nke(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function Pke(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var aj=Symbol();function lce(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===aj?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var kke=class extends AP{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!IP&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},uce=new kke,Rke=class extends AP{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!IP&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},J6=new Rke;function Oke(){let t,e;const n=new Promise((s,i)=>{t=s,e=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function $ke(t){return Math.min(1e3*2**t,3e4)}function dce(t){return(t??"online")==="online"?J6.isOnline():!0}var fce=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function VO(t){return t instanceof fce}function hce(t){let e=!1,n=0,r=!1,s;const i=Oke(),o=y=>{r||(f(new fce(y)),t.abort?.())},a=()=>{e=!0},c=()=>{e=!1},l=()=>uce.isFocused()&&(t.networkMode==="always"||J6.isOnline())&&t.canRun(),u=()=>dce(t.networkMode)&&t.canRun(),d=y=>{r||(r=!0,t.onSuccess?.(y),s?.(),i.resolve(y))},f=y=>{r||(r=!0,t.onError?.(y),s?.(),i.reject(y))},p=()=>new Promise(y=>{s=b=>{(r||l())&&y(b)},t.onPause?.()}).then(()=>{s=void 0,r||t.onContinue?.()}),m=()=>{if(r)return;let y;const b=n===0?t.initialPromise:void 0;try{y=b??t.fn()}catch(v){y=Promise.reject(v)}Promise.resolve(y).then(d).catch(v=>{if(r)return;const x=t.retry??(IP?0:3),E=t.retryDelay??$ke,A=typeof E=="function"?E(n,v):E,_=x===!0||typeof x=="number"&&nl()?void 0:p()).then(()=>{e?f(v):m()})})};return{promise:i,cancel:o,continue:()=>(s?.(),i),cancelRetry:a,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Dke=t=>setTimeout(t,0);function Mke(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=Dke;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var Go=Mke(),pce=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_ke(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(IP?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},Lke=class extends pce{#e;#t;#n;#s;#i;#a;#o;constructor(t){super(),this.#o=!1,this.#a=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#s=t.client,this.#n=this.#s.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=Uke(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(t){this.options={...this.#a,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=Tke(this.state.data,t,this.options);return this.#r({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#r({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(Tu).catch(Tu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>Ake(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===aj||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>cL(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Ske(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#i&&(this.#o?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#r({type:"invalidate"})}fetch(t,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(l=>l.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const c=lce(this.options,e),u=(()=>{const d={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(d),d})();return this.#o=!1,this.options.persister?this.options.persister(c,u,this):c(u)},o=(()=>{const c={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return r(c),c})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#r({type:"fetch",meta:o.fetchOptions?.meta});const a=c=>{VO(c)&&c.silent||this.#r({type:"error",error:c}),VO(c)||(this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#i=hce({initialPromise:e?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:c=>{if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(l){a(l);return}this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,l)=>{this.#r({type:"failed",failureCount:c,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:()=>{this.#r({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#i.start()}#r(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Bke(n.data,this.options),fetchMeta:t.meta??null};case"success":return this.#t=void 0,{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return VO(r)&&r.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Go.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function Bke(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dce(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Uke(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Fke=class extends AP{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const r=e.queryKey,s=e.queryHash??oj(r,e);let i=this.get(s);return i||(i=new Lke({client:t,queryKey:r,queryHash:s,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(i)),i}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Go.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>JZ(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>JZ(t,n)):e}notify(t){Go.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Go.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Go.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},jke=class extends pce{#e;#t;#n;constructor(t){super(),this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#e=[],this.state=t.state||zke(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#s({type:"continue"})};this.#n=hce({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(s,i)=>{this.#s({type:"failed",failureCount:s,error:i})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)e();else{this.#s({type:"pending",variables:t,isPaused:r}),await this.#t.config.onMutate?.(t,this);const i=await this.options.onMutate?.(t);i!==this.state.context&&this.#s({type:"pending",context:i,variables:t,isPaused:r})}const s=await this.#n.start();return await this.#t.config.onSuccess?.(s,t,this.state.context,this),await this.options.onSuccess?.(s,t,this.state.context),await this.#t.config.onSettled?.(s,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(s,null,t,this.state.context),this.#s({type:"success",data:s}),s}catch(s){try{throw await this.#t.config.onError?.(s,t,this.state.context,this),await this.options.onError?.(s,t,this.state.context),await this.#t.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,s,t,this.state.context),s}finally{this.#s({type:"error",error:s})}}finally{this.#t.runNext(this)}}#s(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Go.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function zke(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Wke=class extends AP{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const r=new jke({mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);const e=iA(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=iA(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=iA(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(s=>s.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=iA(t);return typeof e=="string"?this.#t.get(e)?.find(r=>r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Go.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>eY(e,n))}findAll(t={}){return this.getAll().filter(e=>eY(t,e))}notify(t){Go.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Go.batch(()=>Promise.all(t.map(e=>e.continue().catch(Tu))))}};function iA(t){return t.options.scope?.id}function rY(t){return{onFetch:(e,n)=>{const r=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const l=async()=>{let u=!1;const d=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(e.signal.aborted?u=!0:e.signal.addEventListener("abort",()=>{u=!0}),e.signal)})},f=lce(e.options,e.fetchOptions),p=async(m,y,b)=>{if(u)return Promise.reject();if(y==null&&m.pages.length)return Promise.resolve(m);const x=(()=>{const k={client:e.client,queryKey:e.queryKey,pageParam:y,direction:b?"backward":"forward",meta:e.options.meta};return d(k),k})(),E=await f(x),{maxPages:A}=e.options,_=b?Pke:Nke;return{pages:_(m.pages,E,A),pageParams:_(m.pageParams,y,A)}};if(s&&i.length){const m=s==="backward",y=m?Vke:sY,b={pages:i,pageParams:o},v=y(r,b);a=await p(b,v,m)}else{const m=t??i.length;do{const y=c===0?o[0]??r.initialPageParam:sY(r,a);if(c>0&&y==null)break;a=await p(a,y),c++}while(ce.options.persister?.(l,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=l}}}function sY(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function Vke(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var Hke=class{#e;#t;#n;#s;#i;#a;#o;#r;constructor(t={}){this.#e=t.queryCache||new Fke,this.#t=t.mutationCache||new Wke,this.#n=t.defaultOptions||{},this.#s=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=uce.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#r=J6.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#r?.(),this.#r=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(cL(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=this.#e.get(r.queryHash)?.state.data,o=Cke(e,i);if(o!==void 0)return this.#e.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return Go.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Go.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return Go.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Go.batch(()=>this.#e.findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then(Tu).catch(Tu)}invalidateQueries(t,e={}){return Go.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Go.batch(()=>this.#e.findAll(t).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Tu)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Tu)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(cL(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Tu).catch(Tu)}fetchInfiniteQuery(t){return t.behavior=rY(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Tu).catch(Tu)}ensureInfiniteQueryData(t){return t.behavior=rY(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return J6.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#s.set(fC(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#s.values()],n={};return e.forEach(r=>{hC(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){this.#i.set(fC(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#i.values()],n={};return e.forEach(r=>{hC(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=oj(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===aj&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},qke=I.createContext(void 0),Kke=({client:t,children:e})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),w.jsx(qke.Provider,{value:t,children:e}));/**
+ * @remix-run/router v1.20.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function pC(){return pC=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function gce(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Zke(){return Math.random().toString(36).substr(2,8)}function oY(t,e){return{usr:t.state,key:t.key,idx:e}}function uL(t,e,n,r){return n===void 0&&(n=null),pC({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?G1(e):e,{state:n,key:e&&e.key||r||Zke()})}function eT(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function G1(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Yke(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,a=Tg.Pop,c=null,l=u();l==null&&(l=0,o.replaceState(pC({},o.state,{idx:l}),""));function u(){return(o.state||{idx:null}).idx}function d(){a=Tg.Pop;let b=u(),v=b==null?null:b-l;l=b,c&&c({action:a,location:y.location,delta:v})}function f(b,v){a=Tg.Push;let x=uL(y.location,b,v);l=u()+1;let E=oY(x,l),A=y.createHref(x);try{o.pushState(E,"",A)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;s.location.assign(A)}i&&c&&c({action:a,location:y.location,delta:1})}function p(b,v){a=Tg.Replace;let x=uL(y.location,b,v);l=u();let E=oY(x,l),A=y.createHref(x);o.replaceState(E,"",A),i&&c&&c({action:a,location:y.location,delta:0})}function m(b){let v=s.location.origin!=="null"?s.location.origin:s.location.href,x=typeof b=="string"?b:eT(b);return x=x.replace(/ $/,"%20"),Ks(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let y={get action(){return a},get location(){return t(s,o)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(iY,d),c=b,()=>{s.removeEventListener(iY,d),c=null}},createHref(b){return e(s,b)},createURL:m,encodeLocation(b){let v=m(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:p,go(b){return o.go(b)}};return y}var aY;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(aY||(aY={}));function Xke(t,e,n){return n===void 0&&(n="/"),Qke(t,e,n,!1)}function Qke(t,e,n,r){let s=typeof e=="string"?G1(e):e,i=cj(s.pathname||"/",n);if(i==null)return null;let o=mce(t);Jke(o);let a=null;for(let c=0;a==null&&c{let c={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(Ks(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let l=qg([r,c.relativePath]),u=n.concat(c);i.children&&i.children.length>0&&(Ks(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),mce(i.children,e,u,l)),!(i.path==null&&!i.index)&&e.push({path:l,score:o8e(l,i.index),routesMeta:u})};return t.forEach((i,o)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))s(i,o);else for(let c of yce(i.path))s(i,o,c)}),e}function yce(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=yce(r.join("/")),a=[];return a.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&a.push(...o),a.map(c=>t.startsWith("/")&&c===""?"/":c)}function Jke(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:a8e(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const e8e=/^:[\w-]+$/,t8e=3,n8e=2,r8e=1,s8e=10,i8e=-2,cY=t=>t==="*";function o8e(t,e){let n=t.split("/"),r=n.length;return n.some(cY)&&(r+=i8e),e&&(r+=n8e),n.filter(s=>!cY(s)).reduce((s,i)=>s+(e8e.test(i)?t8e:i===""?r8e:s8e),r)}function a8e(t,e){return t.length===e.length&&t.slice(0,-1).every((r,s)=>r===e[s])?t[t.length-1]-e[e.length-1]:0}function c8e(t,e,n){let{routesMeta:r}=t,s={},i="/",o=[];for(let a=0;a{let{paramName:f,isOptional:p}=u;if(f==="*"){let y=a[d]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=a[d];return p&&!m?l[f]=void 0:l[f]=(m||"").replace(/%2F/g,"/"),l},{}),pathname:i,pathnameBase:o,pattern:t}}function l8e(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),gce(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,c)=>(r.push({paramName:a,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,e?void 0:"i"),r]}function u8e(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return gce(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function cj(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function d8e(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:s=""}=typeof t=="string"?G1(t):t;return{pathname:n?n.startsWith("/")?n:f8e(n,e):e,search:g8e(r),hash:m8e(s)}}function f8e(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function HO(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function h8e(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function wce(t,e){let n=h8e(t);return e?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bce(t,e,n,r){r===void 0&&(r=!1);let s;typeof t=="string"?s=G1(t):(s=pC({},t),Ks(!s.pathname||!s.pathname.includes("?"),HO("?","pathname","search",s)),Ks(!s.pathname||!s.pathname.includes("#"),HO("#","pathname","hash",s)),Ks(!s.search||!s.search.includes("#"),HO("#","search","hash",s)));let i=t===""||s.pathname==="",o=i?"/":s.pathname,a;if(o==null)a=n;else{let d=e.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;s.pathname=f.join("/")}a=d>=0?e[d]:"/"}let c=d8e(s,a),l=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const qg=t=>t.join("/").replace(/\/\/+/g,"/"),p8e=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),g8e=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,m8e=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function y8e(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const vce=["post","put","patch","delete"];new Set(vce);const w8e=["get",...vce];new Set(w8e);/**
+ * React Router v6.27.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function gC(){return gC=Object.assign?Object.assign.bind():function(t){for(var e=1;e{a.current=!0}),I.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let d=bce(l,JSON.parse(o),i,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:qg([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,o,i,t])}function Cce(){let{matches:t}=I.useContext(P0),e=t[t.length-1];return e?e.params:{}}function _ce(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=I.useContext(Jy),{matches:s}=I.useContext(P0),{pathname:i}=Z1(),o=JSON.stringify(wce(s,r.v7_relativeSplatPath));return I.useMemo(()=>bce(t,JSON.parse(o),i,n==="path"),[t,o,i,n])}function E8e(t,e){return C8e(t,e)}function C8e(t,e,n,r){MS()||Ks(!1);let{navigator:s}=I.useContext(Jy),{matches:i}=I.useContext(P0),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let l=Z1(),u;if(e){var d;let b=typeof e=="string"?G1(e):e;c==="/"||(d=b.pathname)!=null&&d.startsWith(c)||Ks(!1),u=b}else u=l;let f=u.pathname||"/",p=f;if(c!=="/"){let b=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let m=Xke(t,{pathname:p}),y=T8e(m&&m.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:qg([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:qg([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return e&&y?I.createElement(TP.Provider,{value:{location:gC({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Tg.Pop}},y):y}function _8e(){let t=R8e(),e=y8e(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},e),n?I.createElement("pre",{style:s},n):null,null)}const S8e=I.createElement(_8e,null);class A8e extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?I.createElement(P0.Provider,{value:this.props.routeContext},I.createElement(xce.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function I8e(t){let{routeContext:e,match:n,children:r}=t,s=I.useContext(lj);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(P0.Provider,{value:e},r)}function T8e(t,e,n,r){var s;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var i;if(!n)return null;if(n.errors)t=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let o=t,a=(s=n)==null?void 0:s.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);u>=0||Ks(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,l=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let p,m=!1,y=null,b=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||S8e,c&&(l<0&&f===0?(m=!0,b=null):l===f&&(m=!0,b=d.route.hydrateFallbackElement||null)));let v=e.concat(o.slice(0,f+1)),x=()=>{let E;return p?E=y:m?E=b:d.route.Component?E=I.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=u,I.createElement(I8e,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:E})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?I.createElement(A8e,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var Sce=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Sce||{}),tT=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(tT||{});function N8e(t){let e=I.useContext(lj);return e||Ks(!1),e}function P8e(t){let e=I.useContext(b8e);return e||Ks(!1),e}function k8e(t){let e=I.useContext(P0);return e||Ks(!1),e}function Ace(t){let e=k8e(),n=e.matches[e.matches.length-1];return n.route.id||Ks(!1),n.route.id}function R8e(){var t;let e=I.useContext(xce),n=P8e(tT.UseRouteError),r=Ace(tT.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function O8e(){let{router:t}=N8e(Sce.UseNavigateStable),e=Ace(tT.UseNavigateStable),n=I.useRef(!1);return Ece(()=>{n.current=!0}),I.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?t.navigate(s):t.navigate(s,gC({fromRouteId:e},i)))},[t,e])}function ag(t){Ks(!1)}function $8e(t){let{basename:e="/",children:n=null,location:r,navigationType:s=Tg.Pop,navigator:i,static:o=!1,future:a}=t;MS()&&Ks(!1);let c=e.replace(/^\/*/,"/"),l=I.useMemo(()=>({basename:c,navigator:i,static:o,future:gC({v7_relativeSplatPath:!1},a)}),[c,a,i,o]);typeof r=="string"&&(r=G1(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:m="default"}=r,y=I.useMemo(()=>{let b=cj(u,c);return b==null?null:{location:{pathname:b,search:d,hash:f,state:p,key:m},navigationType:s}},[c,u,d,f,p,m,s]);return y==null?null:I.createElement(Jy.Provider,{value:l},I.createElement(TP.Provider,{children:n,value:y}))}function D8e(t){let{children:e,location:n}=t;return E8e(dL(e),n)}new Promise(()=>{});function dL(t,e){e===void 0&&(e=[]);let n=[];return I.Children.forEach(t,(r,s)=>{if(!I.isValidElement(r))return;let i=[...e,s];if(r.type===I.Fragment){n.push.apply(n,dL(r.props.children,i));return}r.type!==ag&&Ks(!1),!r.props.index||!r.props.children||Ks(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=dL(r.props.children,i)),n.push(o)}),n}/**
+ * React Router DOM v6.27.0
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function fL(){return fL=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(n[s]=t[s]);return n}function L8e(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function B8e(t,e){return t.button===0&&(!e||e==="_self")&&!L8e(t)}const U8e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],F8e="6";try{window.__reactRouterVersion=F8e}catch{}const j8e="startTransition",uY=Fse[j8e];function z8e(t){let{basename:e,children:n,future:r,window:s}=t,i=I.useRef();i.current==null&&(i.current=Gke({window:s,v5Compat:!0}));let o=i.current,[a,c]=I.useState({action:o.action,location:o.location}),{v7_startTransition:l}=r||{},u=I.useCallback(d=>{l&&uY?uY(()=>c(d)):c(d)},[c,l]);return I.useLayoutEffect(()=>o.listen(u),[o,u]),I.createElement($8e,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const W8e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",V8e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ks=I.forwardRef(function(e,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:a,target:c,to:l,preventScrollReset:u,viewTransition:d}=e,f=M8e(e,U8e),{basename:p}=I.useContext(Jy),m,y=!1;if(typeof l=="string"&&V8e.test(l)&&(m=l,W8e))try{let E=new URL(window.location.href),A=l.startsWith("//")?new URL(E.protocol+l):new URL(l),_=cj(A.pathname,p);A.origin===E.origin&&_!=null?l=_+A.search+A.hash:y=!0}catch{}let b=v8e(l,{relative:s}),v=H8e(l,{replace:o,state:a,target:c,preventScrollReset:u,relative:s,viewTransition:d});function x(E){r&&r(E),E.defaultPrevented||v(E)}return I.createElement("a",fL({},f,{href:m||b,onClick:y||i?r:x,ref:n,target:c}))});var dY;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(dY||(dY={}));var fY;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(fY||(fY={}));function H8e(t,e){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:a}=e===void 0?{}:e,c=NP(),l=Z1(),u=_ce(t,{relative:o});return I.useCallback(d=>{if(B8e(d,n)){d.preventDefault();let f=r!==void 0?r:eT(l)===eT(u);c(t,{replace:f,state:s,preventScrollReset:i,relative:o,viewTransition:a})}},[l,c,u,r,s,n,t,i,o,a])}var Ct=(t=>(t.WALLET_UNCONNECTED="wallet-unconnected",t.WALLET_CONNECTED="wallet-connected",t.ENS_ORDINAL_VERIFIED="ens-ordinal-verified",t))(Ct||{}),_l=(t=>(t.CALL_SIGN="call-sign",t.WALLET_ADDRESS="wallet-address",t))(_l||{});const q8e="modulepreload",K8e=function(t){return"/"+t},hY={},et=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=o?.nonce||o?.getAttribute("nonce");s=Promise.allSettled(n.map(c=>{if(c=K8e(c),c in hY)return;hY[c]=!0;const l=c.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":q8e,l||(d.as="script"),d.crossOrigin="",d.href=c,a&&d.setAttribute("nonce",a),document.head.appendChild(d),l)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})},nT=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],hL=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],Ice=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],skt=[...Ice,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],G8e=[...Ice,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],ikt=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],okt=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],Tce=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],pY=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],akt=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}];function cf(t,{includeName:e=!1}={}){if(t.type!=="function"&&t.type!=="event"&&t.type!=="error")throw new oRe(t.type);return`${t.name}(${PP(t.inputs,{includeName:e})})`}function PP(t,{includeName:e=!1}={}){return t?t.map(n=>Z8e(n,{includeName:e})).join(e?", ":","):""}function Z8e(t,{includeName:e}){return t.type.startsWith("tuple")?`(${PP(t.components,{includeName:e})})${t.type.slice(5)}`:t.type+(e&&t.name?` ${t.name}`:"")}function Hh(t,{strict:e=!0}={}){return!t||typeof t!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")}function Hs(t){return Hh(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const Nce="2.37.1";let qO={getDocsUrl:({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,version:`viem@${Nce}`},ot=class pL extends Error{constructor(e,n={}){const r=n.cause instanceof pL?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof pL&&n.cause.docsPath||n.docsPath,i=qO.getDocsUrl?.({...n,docsPath:s}),o=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...qO.version?[`Version: ${qO.version}`]:[]].join(`
+`);super(o,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=s,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=Nce}walk(e){return Pce(this,e)}};function Pce(t,e){return e?.(t)?t:t&&typeof t=="object"&&"cause"in t&&t.cause!==void 0?Pce(t.cause,e):e?null:t}class Y8e extends ot{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
+`),{docsPath:e,name:"AbiConstructorNotFoundError"})}}class gY extends ot{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
+`),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class kce extends ot{constructor({data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
+`),{metaMessages:[`Params: (${PP(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=n,this.size=r}}class kP extends ot{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class X8e extends ot{constructor({expectedLength:e,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${n}`].join(`
+`),{name:"AbiEncodingArrayLengthMismatchError"})}}class Q8e extends ot{constructor({expectedSize:e,value:n}){super(`Size of bytes "${n}" (bytes${Hs(n)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class J8e extends ot{constructor({expectedLength:e,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${n}`].join(`
+`),{name:"AbiEncodingLengthMismatchError"})}}class eRe extends ot{constructor(e,{docsPath:n}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
+`),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class mY extends ot{constructor(e,{docsPath:n}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
+`),{docsPath:n,name:"AbiErrorNotFoundError"})}}class Rce extends ot{constructor(e,{docsPath:n}){super([`Encoded error signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`].join(`
+`),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class tRe extends ot{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class Oce extends ot{constructor(e,{docsPath:n}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(`
+`),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class ckt extends ot{constructor(e,{docsPath:n}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
+`),{docsPath:n,name:"AbiEventNotFoundError"})}}class Rv extends ot{constructor(e,{docsPath:n}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
+`),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class $ce extends ot{constructor(e,{docsPath:n}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
+`),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class nRe extends ot{constructor(e,{docsPath:n}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(`
+`),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class rRe extends ot{constructor(e,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${cf(e.abiItem)}\`, and`,`\`${n.type}\` in \`${cf(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let lkt=class extends ot{constructor({expectedSize:e,givenSize:n}){super(`Expected bytes${e}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}};class gL extends ot{constructor({abiItem:e,data:n,params:r,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`
+`),{metaMessages:[`Params: (${PP(r,{includeName:!0})})`,`Data: ${n} (${s} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=n,this.params=r,this.size=s}}class Dce extends ot{constructor({abiItem:e,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${cf(e,{includeName:!0})}".`].join(`
+`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class sRe extends ot{constructor(e,{docsPath:n}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
+`),{docsPath:n,name:"InvalidAbiEncodingType"})}}class iRe extends ot{constructor(e,{docsPath:n}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
+`),{docsPath:n,name:"InvalidAbiDecodingType"})}}let Mce=class extends ot{constructor(e){super([`Value "${e}" is not a valid array.`].join(`
+`),{name:"InvalidArrayError"})}};class oRe extends ot{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
+`),{name:"InvalidDefinitionTypeError"})}}class fkt extends ot{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}let iy=class extends ot{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},Lce=class extends ot{constructor({offset:e,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},Bce=class extends ot{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};class yY extends ot{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}function Y1(t,{dir:e,size:n=32}={}){return typeof t=="string"?Kg(t,{dir:e,size:n}):aRe(t,{dir:e,size:n})}function Kg(t,{dir:e,size:n=32}={}){if(n===null)return t;const r=t.replace("0x","");if(r.length>n*2)throw new Bce({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[e==="right"?"padEnd":"padStart"](n*2,"0")}`}function aRe(t,{dir:e,size:n=32}={}){if(n===null)return t;if(t.length>n)throw new Bce({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let s=0;se)throw new uRe({givenSize:Hs(t),maxSize:e})}function l0(t,e={}){const{signed:n}=e;e.size&&Yl(t,{size:e.size});const r=BigInt(t);if(!n)return r;const s=(t.length-2)/2,i=(1n<e.toString(16).padStart(2,"0"));function Ov(t,e={}){return typeof t=="number"||typeof t=="bigint"?$n(t,e):typeof t=="string"?$v(t,e):typeof t=="boolean"?jce(t,e):Po(t,e)}function jce(t,e={}){const n=`0x${Number(t)}`;return typeof e.size=="number"?(Yl(n,{size:e.size}),Y1(n,{size:e.size})):n}function Po(t,e={}){let n="";for(let s=0;si||s=zf.zero&&t<=zf.nine)return t-zf.zero;if(t>=zf.A&&t<=zf.F)return t-(zf.A-10);if(t>=zf.a&&t<=zf.f)return t-(zf.a-10)}function nd(t,e={}){let n=t;e.size&&(Yl(n,{size:e.size}),n=Y1(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const s=r.length/2,i=new Uint8Array(s);for(let o=0,a=0;o>bY&oA)}:{h:Number(t>>bY&oA)|0,l:Number(t&oA)|0}}function Wce(t,e=!1){const n=t.length;let r=new Uint32Array(n),s=new Uint32Array(n);for(let i=0;it>>>n,xY=(t,e,n)=>t<<32-n|e>>>n,jw=(t,e,n)=>t>>>n|e<<32-n,zw=(t,e,n)=>t<<32-n|e>>>n,aA=(t,e,n)=>t<<64-n|e>>>n-32,cA=(t,e,n)=>t>>>n-32|e<<64-n,wRe=(t,e,n)=>t<>>32-n,bRe=(t,e,n)=>e<>>32-n,vRe=(t,e,n)=>e<>>64-n,xRe=(t,e,n)=>t<>>64-n;function Wf(t,e,n,r){const s=(e>>>0)+(r>>>0);return{h:t+n+(s/2**32|0)|0,l:s|0}}const ERe=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),CRe=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,_Re=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),SRe=(t,e,n,r,s)=>e+n+r+s+(t/2**32|0)|0,ARe=(t,e,n,r,s)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(s>>>0),IRe=(t,e,n,r,s,i)=>e+n+r+s+i+(t/2**32|0)|0,Ww=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function uj(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function u0(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function jl(t,...e){if(!uj(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function OP(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");u0(t.outputLen),u0(t.blockLen)}function ay(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function dj(t,e){jl(t);const n=e.outputLen;if(t.length>>e}function NRe(t,e){return t<>>32-e>>>0}const fj=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function hj(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const Hce=fj?t=>t:t=>hj(t),PRe=Hce;function qce(t){for(let e=0;e