@coinflowlabs/vue 1.4.3 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,23 @@
1
- (function(ge,qt){typeof exports=="object"&&typeof module<"u"?qt(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],qt):(ge=typeof globalThis<"u"?globalThis:ge||self,qt(ge.VueTypeWriter={},ge.Vue))})(this,function(ge,qt){"use strict";var Sc=(r=>(r.USER="user",r.BUSINESS="business",r))(Sc||{}),Ac=(r=>(r.ASAP="asap",r.SAME_DAY="same_day",r.STANDARD="standard",r.CARD="card",r.IBAN="iban",r.PIX="pix",r.EFT="eft",r.VENMO="venmo",r.PAYPAL="paypal",r))(Ac||{}),Ic=(r=>(r.Credits="Credits",r.USDC="USDC",r.Bank="Bank",r))(Ic||{}),kc=(r=>(r.Rounded="rounded",r.Sharp="sharp",r.Pill="pill",r))(kc||{}),Oc=(r=>(r.NoPreference="NoPreference",r.Frictionless="Frictionless",r.Challenge="Challenge",r))(Oc||{}),Tc=(r=>(r.card="card",r.ach="ach",r.fasterPayments="fasterPayments",r.sepa="sepa",r.pix="pix",r.usdc="usdc",r.googlePay="googlePay",r.applePay="applePay",r.credits="credits",r.crypto="crypto",r.instantBankTransfer="instantBankTransfer",r))(Tc||{});const bd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",instantBankTransfer:"Instant Bank Transfer"};var di=(r=>(r.VISA="VISA",r.MASTERCARD="MSTR",r.AMEX="AMEX",r.DISCOVER="DISC",r))(di||{});function Vi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Cs(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var e=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}),e}var Bs={},Wi={},Nc;function _d(){if(Nc)return Wi;Nc=1,Wi.byteLength=d,Wi.toByteArray=v,Wi.fromByteArray=C;for(var r=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;t[45]=62,t[95]=63;function u(N){var B=N.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=N.indexOf("=");M===-1&&(M=B);var F=M===B?0:4-M%4;return[M,F]}function d(N){var B=u(N),M=B[0],F=B[1];return(M+F)*3/4-F}function l(N,B,M){return(B+M)*3/4-M}function v(N){var B,M=u(N),F=M[0],G=M[1],Q=new e(l(N,F,G)),et=0,ct=G>0?F-4:F,ft;for(ft=0;ft<ct;ft+=4)B=t[N.charCodeAt(ft)]<<18|t[N.charCodeAt(ft+1)]<<12|t[N.charCodeAt(ft+2)]<<6|t[N.charCodeAt(ft+3)],Q[et++]=B>>16&255,Q[et++]=B>>8&255,Q[et++]=B&255;return G===2&&(B=t[N.charCodeAt(ft)]<<2|t[N.charCodeAt(ft+1)]>>4,Q[et++]=B&255),G===1&&(B=t[N.charCodeAt(ft)]<<10|t[N.charCodeAt(ft+1)]<<4|t[N.charCodeAt(ft+2)]>>2,Q[et++]=B>>8&255,Q[et++]=B&255),Q}function S(N){return r[N>>18&63]+r[N>>12&63]+r[N>>6&63]+r[N&63]}function O(N,B,M){for(var F,G=[],Q=B;Q<M;Q+=3)F=(N[Q]<<16&16711680)+(N[Q+1]<<8&65280)+(N[Q+2]&255),G.push(S(F));return G.join("")}function C(N){for(var B,M=N.length,F=M%3,G=[],Q=16383,et=0,ct=M-F;et<ct;et+=Q)G.push(O(N,et,et+Q>ct?ct:et+Q));return F===1?(B=N[M-1],G.push(r[B>>2]+r[B<<4&63]+"==")):F===2&&(B=(N[M-2]<<8)+N[M-1],G.push(r[B>>10]+r[B>>4&63]+r[B<<2&63]+"=")),G.join("")}return Wi}var xo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var xc;function Ed(){return xc||(xc=1,xo.read=function(r,t,e,n,o){var i,u,d=o*8-n-1,l=(1<<d)-1,v=l>>1,S=-7,O=e?o-1:0,C=e?-1:1,N=r[t+O];for(O+=C,i=N&(1<<-S)-1,N>>=-S,S+=d;S>0;i=i*256+r[t+O],O+=C,S-=8);for(u=i&(1<<-S)-1,i>>=-S,S+=n;S>0;u=u*256+r[t+O],O+=C,S-=8);if(i===0)i=1-v;else{if(i===l)return u?NaN:(N?-1:1)*(1/0);u=u+Math.pow(2,n),i=i-v}return(N?-1:1)*u*Math.pow(2,i-n)},xo.write=function(r,t,e,n,o,i){var u,d,l,v=i*8-o-1,S=(1<<v)-1,O=S>>1,C=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:i-1,B=n?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,u=S):(u=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-u))<1&&(u--,l*=2),u+O>=1?t+=C/l:t+=C*Math.pow(2,1-O),t*l>=2&&(u++,l/=2),u+O>=S?(d=0,u=S):u+O>=1?(d=(t*l-1)*Math.pow(2,o),u=u+O):(d=t*Math.pow(2,O-1)*Math.pow(2,o),u=0));o>=8;r[e+N]=d&255,N+=B,d/=256,o-=8);for(u=u<<o|d,v+=o;v>0;r[e+N]=u&255,N+=B,u/=256,v-=8);r[e+N-B]|=M*128}),xo}/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */var Lc;function Ps(){return Lc||(Lc=1,function(r){const t=_d(),e=Ed(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=d,r.SlowBuffer=Q,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,d.TYPED_ARRAY_SUPPORT=i(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(U,R),U.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function u(U){if(U>o)throw new RangeError('The value "'+U+'" is invalid for option "size"');const R=new Uint8Array(U);return Object.setPrototypeOf(R,d.prototype),R}function d(U,R,k){if(typeof U=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(U)}return l(U,R,k)}d.poolSize=8192;function l(U,R,k){if(typeof U=="string")return C(U,R);if(ArrayBuffer.isView(U))return B(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(mt(U,ArrayBuffer)||U&&mt(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mt(U,SharedArrayBuffer)||U&&mt(U.buffer,SharedArrayBuffer)))return M(U,R,k);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=U.valueOf&&U.valueOf();if(A!=null&&A!==U)return d.from(A,R,k);const V=F(U);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return d.from(U[Symbol.toPrimitive]("string"),R,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}d.from=function(U,R,k){return l(U,R,k)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function v(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function S(U,R,k){return v(U),U<=0?u(U):R!==void 0?typeof k=="string"?u(U).fill(R,k):u(U).fill(R):u(U)}d.alloc=function(U,R,k){return S(U,R,k)};function O(U){return v(U),u(U<0?0:G(U)|0)}d.allocUnsafe=function(U){return O(U)},d.allocUnsafeSlow=function(U){return O(U)};function C(U,R){if((typeof R!="string"||R==="")&&(R="utf8"),!d.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const k=et(U,R)|0;let A=u(k);const V=A.write(U,R);return V!==k&&(A=A.slice(0,V)),A}function N(U){const R=U.length<0?0:G(U.length)|0,k=u(R);for(let A=0;A<R;A+=1)k[A]=U[A]&255;return k}function B(U){if(mt(U,Uint8Array)){const R=new Uint8Array(U);return M(R.buffer,R.byteOffset,R.byteLength)}return N(U)}function M(U,R,k){if(R<0||U.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<R+(k||0))throw new RangeError('"length" is outside of buffer bounds');let A;return R===void 0&&k===void 0?A=new Uint8Array(U):k===void 0?A=new Uint8Array(U,R):A=new Uint8Array(U,R,k),Object.setPrototypeOf(A,d.prototype),A}function F(U){if(d.isBuffer(U)){const R=G(U.length)|0,k=u(R);return k.length===0||U.copy(k,0,0,R),k}if(U.length!==void 0)return typeof U.length!="number"||vt(U.length)?u(0):N(U);if(U.type==="Buffer"&&Array.isArray(U.data))return N(U.data)}function G(U){if(U>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return U|0}function Q(U){return+U!=U&&(U=0),d.alloc(+U)}d.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==d.prototype},d.compare=function(R,k){if(mt(R,Uint8Array)&&(R=d.from(R,R.offset,R.byteLength)),mt(k,Uint8Array)&&(k=d.from(k,k.offset,k.byteLength)),!d.isBuffer(R)||!d.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===k)return 0;let A=R.length,V=k.length;for(let W=0,it=Math.min(A,V);W<it;++W)if(R[W]!==k[W]){A=R[W],V=k[W];break}return A<V?-1:V<A?1:0},d.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(R,k){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return d.alloc(0);let A;if(k===void 0)for(k=0,A=0;A<R.length;++A)k+=R[A].length;const V=d.allocUnsafe(k);let W=0;for(A=0;A<R.length;++A){let it=R[A];if(mt(it,Uint8Array))W+it.length>V.length?(d.isBuffer(it)||(it=d.from(it)),it.copy(V,W)):Uint8Array.prototype.set.call(V,it,W);else if(d.isBuffer(it))it.copy(V,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=it.length}return V};function et(U,R){if(d.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||mt(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const k=U.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&k===0)return 0;let V=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return xe(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return H(U).length;default:if(V)return A?-1:xe(U).length;R=(""+R).toLowerCase(),V=!0}}d.byteLength=et;function ct(U,R,k){let A=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,R>>>=0,k<=R))return"";for(U||(U="utf8");;)switch(U){case"hex":return X(this,R,k);case"utf8":case"utf-8":return h(this,R,k);case"ascii":return Z(this,R,k);case"latin1":case"binary":return j(this,R,k);case"base64":return q(this,R,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,R,k);default:if(A)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),A=!0}}d.prototype._isBuffer=!0;function ft(U,R,k){const A=U[R];U[R]=U[k],U[k]=A}d.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<R;k+=2)ft(this,k,k+1);return this},d.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<R;k+=4)ft(this,k,k+3),ft(this,k+1,k+2);return this},d.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<R;k+=8)ft(this,k,k+7),ft(this,k+1,k+6),ft(this,k+2,k+5),ft(this,k+3,k+4);return this},d.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?h(this,0,R):ct.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(R){if(!d.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:d.compare(this,R)===0},d.prototype.inspect=function(){let R="";const k=r.INSPECT_MAX_BYTES;return R=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(R+=" ... "),"<Buffer "+R+">"},n&&(d.prototype[n]=d.prototype.inspect),d.prototype.compare=function(R,k,A,V,W){if(mt(R,Uint8Array)&&(R=d.from(R,R.offset,R.byteLength)),!d.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(k===void 0&&(k=0),A===void 0&&(A=R?R.length:0),V===void 0&&(V=0),W===void 0&&(W=this.length),k<0||A>R.length||V<0||W>this.length)throw new RangeError("out of range index");if(V>=W&&k>=A)return 0;if(V>=W)return-1;if(k>=A)return 1;if(k>>>=0,A>>>=0,V>>>=0,W>>>=0,this===R)return 0;let it=W-V,Lt=A-k;const Ct=Math.min(it,Lt),Dt=this.slice(V,W),Mt=R.slice(k,A);for(let rt=0;rt<Ct;++rt)if(Dt[rt]!==Mt[rt]){it=Dt[rt],Lt=Mt[rt];break}return it<Lt?-1:Lt<it?1:0};function ot(U,R,k,A,V){if(U.length===0)return-1;if(typeof k=="string"?(A=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,vt(k)&&(k=V?0:U.length-1),k<0&&(k=U.length+k),k>=U.length){if(V)return-1;k=U.length-1}else if(k<0)if(V)k=0;else return-1;if(typeof R=="string"&&(R=d.from(R,A)),d.isBuffer(R))return R.length===0?-1:bt(U,R,k,A,V);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(U,R,k):Uint8Array.prototype.lastIndexOf.call(U,R,k):bt(U,[R],k,A,V);throw new TypeError("val must be string, number or Buffer")}function bt(U,R,k,A,V){let W=1,it=U.length,Lt=R.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(U.length<2||R.length<2)return-1;W=2,it/=2,Lt/=2,k/=2}function Ct(Mt,rt){return W===1?Mt[rt]:Mt.readUInt16BE(rt*W)}let Dt;if(V){let Mt=-1;for(Dt=k;Dt<it;Dt++)if(Ct(U,Dt)===Ct(R,Mt===-1?0:Dt-Mt)){if(Mt===-1&&(Mt=Dt),Dt-Mt+1===Lt)return Mt*W}else Mt!==-1&&(Dt-=Dt-Mt),Mt=-1}else for(k+Lt>it&&(k=it-Lt),Dt=k;Dt>=0;Dt--){let Mt=!0;for(let rt=0;rt<Lt;rt++)if(Ct(U,Dt+rt)!==Ct(R,rt)){Mt=!1;break}if(Mt)return Dt}return-1}d.prototype.includes=function(R,k,A){return this.indexOf(R,k,A)!==-1},d.prototype.indexOf=function(R,k,A){return ot(this,R,k,A,!0)},d.prototype.lastIndexOf=function(R,k,A){return ot(this,R,k,A,!1)};function Rt(U,R,k,A){k=Number(k)||0;const V=U.length-k;A?(A=Number(A),A>V&&(A=V)):A=V;const W=R.length;A>W/2&&(A=W/2);let it;for(it=0;it<A;++it){const Lt=parseInt(R.substr(it*2,2),16);if(vt(Lt))return it;U[k+it]=Lt}return it}function At(U,R,k,A){return lt(xe(R,U.length-k),U,k,A)}function gt(U,R,k,A){return lt(y(R),U,k,A)}function wt(U,R,k,A){return lt(H(R),U,k,A)}function kt(U,R,k,A){return lt(P(R,U.length-k),U,k,A)}d.prototype.write=function(R,k,A,V){if(k===void 0)V="utf8",A=this.length,k=0;else if(A===void 0&&typeof k=="string")V=k,A=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite(A)?(A=A>>>0,V===void 0&&(V="utf8")):(V=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const W=this.length-k;if((A===void 0||A>W)&&(A=W),R.length>0&&(A<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let it=!1;for(;;)switch(V){case"hex":return Rt(this,R,k,A);case"utf8":case"utf-8":return At(this,R,k,A);case"ascii":case"latin1":case"binary":return gt(this,R,k,A);case"base64":return wt(this,R,k,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,R,k,A);default:if(it)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),it=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(U,R,k){return R===0&&k===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(R,k))}function h(U,R,k){k=Math.min(U.length,k);const A=[];let V=R;for(;V<k;){const W=U[V];let it=null,Lt=W>239?4:W>223?3:W>191?2:1;if(V+Lt<=k){let Ct,Dt,Mt,rt;switch(Lt){case 1:W<128&&(it=W);break;case 2:Ct=U[V+1],(Ct&192)===128&&(rt=(W&31)<<6|Ct&63,rt>127&&(it=rt));break;case 3:Ct=U[V+1],Dt=U[V+2],(Ct&192)===128&&(Dt&192)===128&&(rt=(W&15)<<12|(Ct&63)<<6|Dt&63,rt>2047&&(rt<55296||rt>57343)&&(it=rt));break;case 4:Ct=U[V+1],Dt=U[V+2],Mt=U[V+3],(Ct&192)===128&&(Dt&192)===128&&(Mt&192)===128&&(rt=(W&15)<<18|(Ct&63)<<12|(Dt&63)<<6|Mt&63,rt>65535&&rt<1114112&&(it=rt))}}it===null?(it=65533,Lt=1):it>65535&&(it-=65536,A.push(it>>>10&1023|55296),it=56320|it&1023),A.push(it),V+=Lt}return D(A)}const T=4096;function D(U){const R=U.length;if(R<=T)return String.fromCharCode.apply(String,U);let k="",A=0;for(;A<R;)k+=String.fromCharCode.apply(String,U.slice(A,A+=T));return k}function Z(U,R,k){let A="";k=Math.min(U.length,k);for(let V=R;V<k;++V)A+=String.fromCharCode(U[V]&127);return A}function j(U,R,k){let A="";k=Math.min(U.length,k);for(let V=R;V<k;++V)A+=String.fromCharCode(U[V]);return A}function X(U,R,k){const A=U.length;(!R||R<0)&&(R=0),(!k||k<0||k>A)&&(k=A);let V="";for(let W=R;W<k;++W)V+=xt[U[W]];return V}function at(U,R,k){const A=U.slice(R,k);let V="";for(let W=0;W<A.length-1;W+=2)V+=String.fromCharCode(A[W]+A[W+1]*256);return V}d.prototype.slice=function(R,k){const A=this.length;R=~~R,k=k===void 0?A:~~k,R<0?(R+=A,R<0&&(R=0)):R>A&&(R=A),k<0?(k+=A,k<0&&(k=0)):k>A&&(k=A),k<R&&(k=R);const V=this.subarray(R,k);return Object.setPrototypeOf(V,d.prototype),V};function K(U,R,k){if(U%1!==0||U<0)throw new RangeError("offset is not uint");if(U+R>k)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=this[R],W=1,it=0;for(;++it<k&&(W*=256);)V+=this[R+it]*W;return V},d.prototype.readUintBE=d.prototype.readUIntBE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=this[R+--k],W=1;for(;k>0&&(W*=256);)V+=this[R+--k]*W;return V},d.prototype.readUint8=d.prototype.readUInt8=function(R,k){return R=R>>>0,k||K(R,1,this.length),this[R]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(R,k){return R=R>>>0,k||K(R,2,this.length),this[R]|this[R+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(R,k){return R=R>>>0,k||K(R,2,this.length),this[R]<<8|this[R+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(R,k){return R=R>>>0,k||K(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(R,k){return R=R>>>0,k||K(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},d.prototype.readBigUInt64LE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=k+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,W=this[++R]+this[++R]*2**8+this[++R]*2**16+A*2**24;return BigInt(V)+(BigInt(W)<<BigInt(32))}),d.prototype.readBigUInt64BE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=k*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],W=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A;return(BigInt(V)<<BigInt(32))+BigInt(W)}),d.prototype.readIntLE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=this[R],W=1,it=0;for(;++it<k&&(W*=256);)V+=this[R+it]*W;return W*=128,V>=W&&(V-=Math.pow(2,8*k)),V},d.prototype.readIntBE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=k,W=1,it=this[R+--V];for(;V>0&&(W*=256);)it+=this[R+--V]*W;return W*=128,it>=W&&(it-=Math.pow(2,8*k)),it},d.prototype.readInt8=function(R,k){return R=R>>>0,k||K(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},d.prototype.readInt16LE=function(R,k){R=R>>>0,k||K(R,2,this.length);const A=this[R]|this[R+1]<<8;return A&32768?A|4294901760:A},d.prototype.readInt16BE=function(R,k){R=R>>>0,k||K(R,2,this.length);const A=this[R+1]|this[R]<<8;return A&32768?A|4294901760:A},d.prototype.readInt32LE=function(R,k){return R=R>>>0,k||K(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},d.prototype.readInt32BE=function(R,k){return R=R>>>0,k||K(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},d.prototype.readBigInt64LE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(A<<24);return(BigInt(V)<<BigInt(32))+BigInt(k+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),d.prototype.readBigInt64BE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=(k<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(V)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A)}),d.prototype.readFloatLE=function(R,k){return R=R>>>0,k||K(R,4,this.length),e.read(this,R,!0,23,4)},d.prototype.readFloatBE=function(R,k){return R=R>>>0,k||K(R,4,this.length),e.read(this,R,!1,23,4)},d.prototype.readDoubleLE=function(R,k){return R=R>>>0,k||K(R,8,this.length),e.read(this,R,!0,52,8)},d.prototype.readDoubleBE=function(R,k){return R=R>>>0,k||K(R,8,this.length),e.read(this,R,!1,52,8)};function p(U,R,k,A,V,W){if(!d.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>V||R<W)throw new RangeError('"value" argument is out of bounds');if(k+A>U.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(R,k,A,V){if(R=+R,k=k>>>0,A=A>>>0,!V){const Lt=Math.pow(2,8*A)-1;p(this,R,k,A,Lt,0)}let W=1,it=0;for(this[k]=R&255;++it<A&&(W*=256);)this[k+it]=R/W&255;return k+A},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(R,k,A,V){if(R=+R,k=k>>>0,A=A>>>0,!V){const Lt=Math.pow(2,8*A)-1;p(this,R,k,A,Lt,0)}let W=A-1,it=1;for(this[k+W]=R&255;--W>=0&&(it*=256);)this[k+W]=R/it&255;return k+A},d.prototype.writeUint8=d.prototype.writeUInt8=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,1,255,0),this[k]=R&255,k+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,65535,0),this[k]=R&255,this[k+1]=R>>>8,k+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,65535,0),this[k]=R>>>8,this[k+1]=R&255,k+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,4294967295,0),this[k+3]=R>>>24,this[k+2]=R>>>16,this[k+1]=R>>>8,this[k]=R&255,k+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,4294967295,0),this[k]=R>>>24,this[k+1]=R>>>16,this[k+2]=R>>>8,this[k+3]=R&255,k+4};function E(U,R,k,A,V){ue(R,A,V,U,k,7);let W=Number(R&BigInt(4294967295));U[k++]=W,W=W>>8,U[k++]=W,W=W>>8,U[k++]=W,W=W>>8,U[k++]=W;let it=Number(R>>BigInt(32)&BigInt(4294967295));return U[k++]=it,it=it>>8,U[k++]=it,it=it>>8,U[k++]=it,it=it>>8,U[k++]=it,k}function z(U,R,k,A,V){ue(R,A,V,U,k,7);let W=Number(R&BigInt(4294967295));U[k+7]=W,W=W>>8,U[k+6]=W,W=W>>8,U[k+5]=W,W=W>>8,U[k+4]=W;let it=Number(R>>BigInt(32)&BigInt(4294967295));return U[k+3]=it,it=it>>8,U[k+2]=it,it=it>>8,U[k+1]=it,it=it>>8,U[k]=it,k+8}d.prototype.writeBigUInt64LE=Gt(function(R,k=0){return E(this,R,k,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Gt(function(R,k=0){return z(this,R,k,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(R,k,A,V){if(R=+R,k=k>>>0,!V){const Ct=Math.pow(2,8*A-1);p(this,R,k,A,Ct-1,-Ct)}let W=0,it=1,Lt=0;for(this[k]=R&255;++W<A&&(it*=256);)R<0&&Lt===0&&this[k+W-1]!==0&&(Lt=1),this[k+W]=(R/it>>0)-Lt&255;return k+A},d.prototype.writeIntBE=function(R,k,A,V){if(R=+R,k=k>>>0,!V){const Ct=Math.pow(2,8*A-1);p(this,R,k,A,Ct-1,-Ct)}let W=A-1,it=1,Lt=0;for(this[k+W]=R&255;--W>=0&&(it*=256);)R<0&&Lt===0&&this[k+W+1]!==0&&(Lt=1),this[k+W]=(R/it>>0)-Lt&255;return k+A},d.prototype.writeInt8=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,1,127,-128),R<0&&(R=255+R+1),this[k]=R&255,k+1},d.prototype.writeInt16LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,32767,-32768),this[k]=R&255,this[k+1]=R>>>8,k+2},d.prototype.writeInt16BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,32767,-32768),this[k]=R>>>8,this[k+1]=R&255,k+2},d.prototype.writeInt32LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,2147483647,-2147483648),this[k]=R&255,this[k+1]=R>>>8,this[k+2]=R>>>16,this[k+3]=R>>>24,k+4},d.prototype.writeInt32BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[k]=R>>>24,this[k+1]=R>>>16,this[k+2]=R>>>8,this[k+3]=R&255,k+4},d.prototype.writeBigInt64LE=Gt(function(R,k=0){return E(this,R,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Gt(function(R,k=0){return z(this,R,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $(U,R,k,A,V,W){if(k+A>U.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function dt(U,R,k,A,V){return R=+R,k=k>>>0,V||$(U,R,k,4),e.write(U,R,k,A,23,4),k+4}d.prototype.writeFloatLE=function(R,k,A){return dt(this,R,k,!0,A)},d.prototype.writeFloatBE=function(R,k,A){return dt(this,R,k,!1,A)};function _t(U,R,k,A,V){return R=+R,k=k>>>0,V||$(U,R,k,8),e.write(U,R,k,A,52,8),k+8}d.prototype.writeDoubleLE=function(R,k,A){return _t(this,R,k,!0,A)},d.prototype.writeDoubleBE=function(R,k,A){return _t(this,R,k,!1,A)},d.prototype.copy=function(R,k,A,V){if(!d.isBuffer(R))throw new TypeError("argument should be a Buffer");if(A||(A=0),!V&&V!==0&&(V=this.length),k>=R.length&&(k=R.length),k||(k=0),V>0&&V<A&&(V=A),V===A||R.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),R.length-k<V-A&&(V=R.length-k+A);const W=V-A;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,A,V):Uint8Array.prototype.set.call(R,this.subarray(A,V),k),W},d.prototype.fill=function(R,k,A,V){if(typeof R=="string"){if(typeof k=="string"?(V=k,k=0,A=this.length):typeof A=="string"&&(V=A,A=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!d.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(R.length===1){const it=R.charCodeAt(0);(V==="utf8"&&it<128||V==="latin1")&&(R=it)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(k<0||this.length<k||this.length<A)throw new RangeError("Out of range index");if(A<=k)return this;k=k>>>0,A=A===void 0?this.length:A>>>0,R||(R=0);let W;if(typeof R=="number")for(W=k;W<A;++W)this[W]=R;else{const it=d.isBuffer(R)?R:d.from(R,V),Lt=it.length;if(Lt===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(W=0;W<A-k;++W)this[W+k]=it[W%Lt]}return this};const Ut={};function Pt(U,R,k){Ut[U]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}Pt("ERR_BUFFER_OUT_OF_BOUNDS",function(U){return U?`${U} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Pt("ERR_INVALID_ARG_TYPE",function(U,R){return`The "${U}" argument must be of type number. Received type ${typeof R}`},TypeError),Pt("ERR_OUT_OF_RANGE",function(U,R,k){let A=`The value of "${U}" is out of range.`,V=k;return Number.isInteger(k)&&Math.abs(k)>2**32?V=ve(String(k)):typeof k=="bigint"&&(V=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(V=ve(V)),V+="n"),A+=` It must be ${R}. Received ${V}`,A},RangeError);function ve(U){let R="",k=U.length;const A=U[0]==="-"?1:0;for(;k>=A+4;k-=3)R=`_${U.slice(k-3,k)}${R}`;return`${U.slice(0,k)}${R}`}function pe(U,R,k){_e(R,"offset"),(U[R]===void 0||U[R+k]===void 0)&&we(R,U.length-(k+1))}function ue(U,R,k,A,V,W){if(U>k||U<R){const it=typeof R=="bigint"?"n":"";let Lt;throw R===0||R===BigInt(0)?Lt=`>= 0${it} and < 2${it} ** ${(W+1)*8}${it}`:Lt=`>= -(2${it} ** ${(W+1)*8-1}${it}) and < 2 ** ${(W+1)*8-1}${it}`,new Ut.ERR_OUT_OF_RANGE("value",Lt,U)}pe(A,V,W)}function _e(U,R){if(typeof U!="number")throw new Ut.ERR_INVALID_ARG_TYPE(R,"number",U)}function we(U,R,k){throw Math.floor(U)!==U?(_e(U,k),new Ut.ERR_OUT_OF_RANGE("offset","an integer",U)):R<0?new Ut.ERR_BUFFER_OUT_OF_BOUNDS:new Ut.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,U)}const Ee=/[^+/0-9A-Za-z-_]/g;function je(U){if(U=U.split("=")[0],U=U.trim().replace(Ee,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function xe(U,R){R=R||1/0;let k;const A=U.length;let V=null;const W=[];for(let it=0;it<A;++it){if(k=U.charCodeAt(it),k>55295&&k<57344){if(!V){if(k>56319){(R-=3)>-1&&W.push(239,191,189);continue}else if(it+1===A){(R-=3)>-1&&W.push(239,191,189);continue}V=k;continue}if(k<56320){(R-=3)>-1&&W.push(239,191,189),V=k;continue}k=(V-55296<<10|k-56320)+65536}else V&&(R-=3)>-1&&W.push(239,191,189);if(V=null,k<128){if((R-=1)<0)break;W.push(k)}else if(k<2048){if((R-=2)<0)break;W.push(k>>6|192,k&63|128)}else if(k<65536){if((R-=3)<0)break;W.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((R-=4)<0)break;W.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return W}function y(U){const R=[];for(let k=0;k<U.length;++k)R.push(U.charCodeAt(k)&255);return R}function P(U,R){let k,A,V;const W=[];for(let it=0;it<U.length&&!((R-=2)<0);++it)k=U.charCodeAt(it),A=k>>8,V=k%256,W.push(V),W.push(A);return W}function H(U){return t.toByteArray(je(U))}function lt(U,R,k,A){let V;for(V=0;V<A&&!(V+k>=R.length||V>=U.length);++V)R[V+k]=U[V];return V}function mt(U,R){return U instanceof R||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===R.name}function vt(U){return U!==U}const xt=function(){const U="0123456789abcdef",R=new Array(256);for(let k=0;k<16;++k){const A=k*16;for(let V=0;V<16;++V)R[A+V]=U[k]+U[V]}return R}();function Gt(U){return typeof BigInt>"u"?te:U}function te(){throw new Error("BigInt not supported")}}(Bs)),Bs}var me=Ps();function Lo(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`positive integer expected, not ${r}`)}function Rd(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function zi(r,...t){if(!Rd(r))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(r.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${r.length}`)}function Sd(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Lo(r.outputLen),Lo(r.blockLen)}function hi(r,t=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(t&&r.finished)throw new Error("Hash#digest() has already been called")}function Cc(r,t){zi(r);const e=t.outputLen;if(r.length<e)throw new Error(`digestInto() expects output buffer of length at least ${e}`)}const Ms=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ad=r=>new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4)),Ds=r=>new DataView(r.buffer,r.byteOffset,r.byteLength),sr=(r,t)=>r<<32-t|r>>>t,Bc=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,Id=r=>r<<24&4278190080|r<<8&16711680|r>>>8&65280|r>>>24&255;function Pc(r){for(let t=0;t<r.length;t++)r[t]=Id(r[t])}function kd(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}function Co(r){return typeof r=="string"&&(r=kd(r)),zi(r),r}function Od(...r){let t=0;for(let n=0;n<r.length;n++){const o=r[n];zi(o),t+=o.length}const e=new Uint8Array(t);for(let n=0,o=0;n<r.length;n++){const i=r[n];e.set(i,o),o+=i.length}return e}class Us{clone(){return this._cloneInto()}}function Fs(r){const t=n=>r().update(Co(n)).digest(),e=r();return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=()=>r(),t}function Mc(r=32){if(Ms&&typeof Ms.getRandomValues=="function")return Ms.getRandomValues(new Uint8Array(r));throw new Error("crypto.getRandomValues must be defined")}function Td(r,t,e,n){if(typeof r.setBigUint64=="function")return r.setBigUint64(t,e,n);const o=BigInt(32),i=BigInt(4294967295),u=Number(e>>o&i),d=Number(e&i),l=n?4:0,v=n?0:4;r.setUint32(t+l,u,n),r.setUint32(t+v,d,n)}const Nd=(r,t,e)=>r&t^~r&e,xd=(r,t,e)=>r&t^r&e^t&e;class Dc extends Us{constructor(t,e,n,o){super(),this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Ds(this.buffer)}update(t){hi(this);const{view:e,buffer:n,blockLen:o}=this;t=Co(t);const i=t.length;for(let u=0;u<i;){const d=Math.min(o-this.pos,i-u);if(d===o){const l=Ds(t);for(;o<=i-u;u+=o)this.process(l,u);continue}n.set(t.subarray(u,u+d),this.pos),this.pos+=d,u+=d,this.pos===o&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){hi(this),Cc(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:o,isLE:i}=this;let{pos:u}=this;e[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>o-u&&(this.process(n,0),u=0);for(let O=u;O<o;O++)e[O]=0;Td(n,o-8,BigInt(this.length*8),i),this.process(n,0);const d=Ds(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const v=l/4,S=this.get();if(v>S.length)throw new Error("_sha2: outputLen bigger than state");for(let O=0;O<v;O++)d.setUint32(4*O,S[O],i)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:o,finished:i,destroyed:u,pos:d}=this;return t.length=o,t.pos=d,t.finished=i,t.destroyed=u,o%e&&t.buffer.set(n),t}}const Bo=BigInt(2**32-1),Hs=BigInt(32);function Uc(r,t=!1){return t?{h:Number(r&Bo),l:Number(r>>Hs&Bo)}:{h:Number(r>>Hs&Bo)|0,l:Number(r&Bo)|0}}function Fc(r,t=!1){let e=new Uint32Array(r.length),n=new Uint32Array(r.length);for(let o=0;o<r.length;o++){const{h:i,l:u}=Uc(r[o],t);[e[o],n[o]]=[i,u]}return[e,n]}const Ld=(r,t)=>BigInt(r>>>0)<<Hs|BigInt(t>>>0),Cd=(r,t,e)=>r>>>e,Bd=(r,t,e)=>r<<32-e|t>>>e,Pd=(r,t,e)=>r>>>e|t<<32-e,Md=(r,t,e)=>r<<32-e|t>>>e,Dd=(r,t,e)=>r<<64-e|t>>>e-32,Ud=(r,t,e)=>r>>>e-32|t<<64-e,Fd=(r,t)=>t,Hd=(r,t)=>r,Hc=(r,t,e)=>r<<e|t>>>32-e,Vc=(r,t,e)=>t<<e|r>>>32-e,Wc=(r,t,e)=>t<<e-32|r>>>64-e,zc=(r,t,e)=>r<<e-32|t>>>64-e;function Vd(r,t,e,n){const o=(t>>>0)+(n>>>0);return{h:r+e+(o/2**32|0)|0,l:o|0}}const Ie={fromBig:Uc,split:Fc,toBig:Ld,shrSH:Cd,shrSL:Bd,rotrSH:Pd,rotrSL:Md,rotrBH:Dd,rotrBL:Ud,rotr32H:Fd,rotr32L:Hd,rotlSH:Hc,rotlSL:Vc,rotlBH:Wc,rotlBL:zc,add:Vd,add3L:(r,t,e)=>(r>>>0)+(t>>>0)+(e>>>0),add3H:(r,t,e,n)=>t+e+n+(r/2**32|0)|0,add4L:(r,t,e,n)=>(r>>>0)+(t>>>0)+(e>>>0)+(n>>>0),add4H:(r,t,e,n,o)=>t+e+n+o+(r/2**32|0)|0,add5H:(r,t,e,n,o,i)=>t+e+n+o+i+(r/2**32|0)|0,add5L:(r,t,e,n,o)=>(r>>>0)+(t>>>0)+(e>>>0)+(n>>>0)+(o>>>0)},[Wd,zd]=Ie.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),Nr=new Uint32Array(80),xr=new Uint32Array(80);class Gd extends Dc{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:n,Bl:o,Ch:i,Cl:u,Dh:d,Dl:l,Eh:v,El:S,Fh:O,Fl:C,Gh:N,Gl:B,Hh:M,Hl:F}=this;return[t,e,n,o,i,u,d,l,v,S,O,C,N,B,M,F]}set(t,e,n,o,i,u,d,l,v,S,O,C,N,B,M,F){this.Ah=t|0,this.Al=e|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=u|0,this.Dh=d|0,this.Dl=l|0,this.Eh=v|0,this.El=S|0,this.Fh=O|0,this.Fl=C|0,this.Gh=N|0,this.Gl=B|0,this.Hh=M|0,this.Hl=F|0}process(t,e){for(let et=0;et<16;et++,e+=4)Nr[et]=t.getUint32(e),xr[et]=t.getUint32(e+=4);for(let et=16;et<80;et++){const ct=Nr[et-15]|0,ft=xr[et-15]|0,ot=Ie.rotrSH(ct,ft,1)^Ie.rotrSH(ct,ft,8)^Ie.shrSH(ct,ft,7),bt=Ie.rotrSL(ct,ft,1)^Ie.rotrSL(ct,ft,8)^Ie.shrSL(ct,ft,7),Rt=Nr[et-2]|0,At=xr[et-2]|0,gt=Ie.rotrSH(Rt,At,19)^Ie.rotrBH(Rt,At,61)^Ie.shrSH(Rt,At,6),wt=Ie.rotrSL(Rt,At,19)^Ie.rotrBL(Rt,At,61)^Ie.shrSL(Rt,At,6),kt=Ie.add4L(bt,wt,xr[et-7],xr[et-16]),q=Ie.add4H(kt,ot,gt,Nr[et-7],Nr[et-16]);Nr[et]=q|0,xr[et]=kt|0}let{Ah:n,Al:o,Bh:i,Bl:u,Ch:d,Cl:l,Dh:v,Dl:S,Eh:O,El:C,Fh:N,Fl:B,Gh:M,Gl:F,Hh:G,Hl:Q}=this;for(let et=0;et<80;et++){const ct=Ie.rotrSH(O,C,14)^Ie.rotrSH(O,C,18)^Ie.rotrBH(O,C,41),ft=Ie.rotrSL(O,C,14)^Ie.rotrSL(O,C,18)^Ie.rotrBL(O,C,41),ot=O&N^~O&M,bt=C&B^~C&F,Rt=Ie.add5L(Q,ft,bt,zd[et],xr[et]),At=Ie.add5H(Rt,G,ct,ot,Wd[et],Nr[et]),gt=Rt|0,wt=Ie.rotrSH(n,o,28)^Ie.rotrBH(n,o,34)^Ie.rotrBH(n,o,39),kt=Ie.rotrSL(n,o,28)^Ie.rotrBL(n,o,34)^Ie.rotrBL(n,o,39),q=n&i^n&d^i&d,h=o&u^o&l^u&l;G=M|0,Q=F|0,M=N|0,F=B|0,N=O|0,B=C|0,{h:O,l:C}=Ie.add(v|0,S|0,At|0,gt|0),v=d|0,S=l|0,d=i|0,l=u|0,i=n|0,u=o|0;const T=Ie.add3L(gt,kt,h);n=Ie.add3H(T,At,wt,q),o=T|0}({h:n,l:o}=Ie.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:u}=Ie.add(this.Bh|0,this.Bl|0,i|0,u|0),{h:d,l}=Ie.add(this.Ch|0,this.Cl|0,d|0,l|0),{h:v,l:S}=Ie.add(this.Dh|0,this.Dl|0,v|0,S|0),{h:O,l:C}=Ie.add(this.Eh|0,this.El|0,O|0,C|0),{h:N,l:B}=Ie.add(this.Fh|0,this.Fl|0,N|0,B|0),{h:M,l:F}=Ie.add(this.Gh|0,this.Gl|0,M|0,F|0),{h:G,l:Q}=Ie.add(this.Hh|0,this.Hl|0,G|0,Q|0),this.set(n,o,i,u,d,l,v,S,O,C,N,B,M,F,G,Q)}roundClean(){Nr.fill(0),xr.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Kd=Fs(()=>new Gd);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Gc=BigInt(0),Po=BigInt(1),jd=BigInt(2);function Yr(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function Gi(r){if(!Yr(r))throw new Error("Uint8Array expected")}const Yd=Array.from({length:256},(r,t)=>t.toString(16).padStart(2,"0"));function qr(r){Gi(r);let t="";for(let e=0;e<r.length;e++)t+=Yd[r[e]];return t}function Kc(r){const t=r.toString(16);return t.length&1?`0${t}`:t}function Vs(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);return BigInt(r===""?"0":`0x${r}`)}const br={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function jc(r){if(r>=br._0&&r<=br._9)return r-br._0;if(r>=br._A&&r<=br._F)return r-(br._A-10);if(r>=br._a&&r<=br._f)return r-(br._a-10)}function pi(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);const t=r.length,e=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(e);for(let o=0,i=0;o<e;o++,i+=2){const u=jc(r.charCodeAt(i)),d=jc(r.charCodeAt(i+1));if(u===void 0||d===void 0){const l=r[i]+r[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[o]=u*16+d}return n}function $r(r){return Vs(qr(r))}function gi(r){return Gi(r),Vs(qr(Uint8Array.from(r).reverse()))}function mi(r,t){return pi(r.toString(16).padStart(t*2,"0"))}function Ki(r,t){return mi(r,t).reverse()}function qd(r){return pi(Kc(r))}function _n(r,t,e){let n;if(typeof t=="string")try{n=pi(t)}catch(i){throw new Error(`${r} must be valid hex string, got "${t}". Cause: ${i}`)}else if(Yr(t))n=Uint8Array.from(t);else throw new Error(`${r} must be hex string or Uint8Array`);const o=n.length;if(typeof e=="number"&&o!==e)throw new Error(`${r} expected ${e} bytes, got ${o}`);return n}function Zr(...r){let t=0;for(let n=0;n<r.length;n++){const o=r[n];Gi(o),t+=o.length}const e=new Uint8Array(t);for(let n=0,o=0;n<r.length;n++){const i=r[n];e.set(i,o),o+=i.length}return e}function $d(r,t){if(r.length!==t.length)return!1;let e=0;for(let n=0;n<r.length;n++)e|=r[n]^t[n];return e===0}function Zd(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}function Xd(r){let t;for(t=0;r>Gc;r>>=Po,t+=1);return t}function Jd(r,t){return r>>BigInt(t)&Po}function Qd(r,t,e){return r|(e?Po:Gc)<<BigInt(t)}const Ws=r=>(jd<<BigInt(r-1))-Po,zs=r=>new Uint8Array(r),Yc=r=>Uint8Array.from(r);function qc(r,t,e){if(typeof r!="number"||r<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof e!="function")throw new Error("hmacFn must be a function");let n=zs(r),o=zs(r),i=0;const u=()=>{n.fill(1),o.fill(0),i=0},d=(...O)=>e(o,n,...O),l=(O=zs())=>{o=d(Yc([0]),O),n=d(),O.length!==0&&(o=d(Yc([1]),O),n=d())},v=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let O=0;const C=[];for(;O<t;){n=d();const N=n.slice();C.push(N),O+=n.length}return Zr(...C)};return(O,C)=>{u(),l(O);let N;for(;!(N=C(v()));)l();return u(),N}}const th={bigint:r=>typeof r=="bigint",function:r=>typeof r=="function",boolean:r=>typeof r=="boolean",string:r=>typeof r=="string",stringOrUint8Array:r=>typeof r=="string"||Yr(r),isSafeInteger:r=>Number.isSafeInteger(r),array:r=>Array.isArray(r),field:(r,t)=>t.Fp.isValid(r),hash:r=>typeof r=="function"&&Number.isSafeInteger(r.outputLen)};function vi(r,t,e={}){const n=(o,i,u)=>{const d=th[i];if(typeof d!="function")throw new Error(`Invalid validator "${i}", expected function`);const l=r[o];if(!(u&&l===void 0)&&!d(l,r))throw new Error(`Invalid param ${String(o)}=${l} (${typeof l}), expected ${i}`)};for(const[o,i]of Object.entries(t))n(o,i,!1);for(const[o,i]of Object.entries(e))n(o,i,!0);return r}const eh=Object.freeze(Object.defineProperty({__proto__:null,abytes:Gi,bitGet:Jd,bitLen:Xd,bitMask:Ws,bitSet:Qd,bytesToHex:qr,bytesToNumberBE:$r,bytesToNumberLE:gi,concatBytes:Zr,createHmacDrbg:qc,ensureBytes:_n,equalBytes:$d,hexToBytes:pi,hexToNumber:Vs,isBytes:Yr,numberToBytesBE:mi,numberToBytesLE:Ki,numberToHexUnpadded:Kc,numberToVarBytesBE:qd,utf8ToBytes:Zd,validateObject:vi},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Rn=BigInt(0),nn=BigInt(1),Xr=BigInt(2),nh=BigInt(3),Gs=BigInt(4),$c=BigInt(5),Zc=BigInt(8);BigInt(9),BigInt(16);function en(r,t){const e=r%t;return e>=Rn?e:t+e}function rh(r,t,e){if(e<=Rn||t<Rn)throw new Error("Expected power/modulo > 0");if(e===nn)return Rn;let n=nn;for(;t>Rn;)t&nn&&(n=n*r%e),r=r*r%e,t>>=nn;return n}function cn(r,t,e){let n=r;for(;t-- >Rn;)n*=n,n%=e;return n}function Ks(r,t){if(r===Rn||t<=Rn)throw new Error(`invert: expected positive integers, got n=${r} mod=${t}`);let e=en(r,t),n=t,o=Rn,i=nn;for(;e!==Rn;){const d=n/e,l=n%e,v=o-i*d;n=e,e=l,o=i,i=v}if(n!==nn)throw new Error("invert: does not exist");return en(o,t)}function ih(r){const t=(r-nn)/Xr;let e,n,o;for(e=r-nn,n=0;e%Xr===Rn;e/=Xr,n++);for(o=Xr;o<r&&rh(o,t,r)!==r-nn;o++);if(n===1){const u=(r+nn)/Gs;return function(l,v){const S=l.pow(v,u);if(!l.eql(l.sqr(S),v))throw new Error("Cannot find square root");return S}}const i=(e+nn)/Xr;return function(d,l){if(d.pow(l,t)===d.neg(d.ONE))throw new Error("Cannot find square root");let v=n,S=d.pow(d.mul(d.ONE,o),e),O=d.pow(l,i),C=d.pow(l,e);for(;!d.eql(C,d.ONE);){if(d.eql(C,d.ZERO))return d.ZERO;let N=1;for(let M=d.sqr(C);N<v&&!d.eql(M,d.ONE);N++)M=d.sqr(M);const B=d.pow(S,nn<<BigInt(v-N-1));S=d.sqr(B),O=d.mul(O,B),C=d.mul(C,S),v=N}return O}}function oh(r){if(r%Gs===nh){const t=(r+nn)/Gs;return function(n,o){const i=n.pow(o,t);if(!n.eql(n.sqr(i),o))throw new Error("Cannot find square root");return i}}if(r%Zc===$c){const t=(r-$c)/Zc;return function(n,o){const i=n.mul(o,Xr),u=n.pow(i,t),d=n.mul(o,u),l=n.mul(n.mul(d,Xr),u),v=n.mul(d,n.sub(l,n.ONE));if(!n.eql(n.sqr(v),o))throw new Error("Cannot find square root");return v}}return ih(r)}const sh=(r,t)=>(en(r,t)&nn)===nn,ah=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ch(r){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},e=ah.reduce((n,o)=>(n[o]="function",n),t);return vi(r,e)}function uh(r,t,e){if(e<Rn)throw new Error("Expected power > 0");if(e===Rn)return r.ONE;if(e===nn)return t;let n=r.ONE,o=t;for(;e>Rn;)e&nn&&(n=r.mul(n,o)),o=r.sqr(o),e>>=nn;return n}function lh(r,t){const e=new Array(t.length),n=t.reduce((i,u,d)=>r.is0(u)?i:(e[d]=i,r.mul(i,u)),r.ONE),o=r.inv(n);return t.reduceRight((i,u,d)=>r.is0(u)?i:(e[d]=r.mul(i,e[d]),r.mul(i,u)),o),e}function Xc(r,t){const e=t!==void 0?t:r.toString(2).length,n=Math.ceil(e/8);return{nBitLength:e,nByteLength:n}}function Jc(r,t,e=!1,n={}){if(r<=Rn)throw new Error(`Expected Field ORDER > 0, got ${r}`);const{nBitLength:o,nByteLength:i}=Xc(r,t);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=oh(r),d=Object.freeze({ORDER:r,BITS:o,BYTES:i,MASK:Ws(o),ZERO:Rn,ONE:nn,create:l=>en(l,r),isValid:l=>{if(typeof l!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof l}`);return Rn<=l&&l<r},is0:l=>l===Rn,isOdd:l=>(l&nn)===nn,neg:l=>en(-l,r),eql:(l,v)=>l===v,sqr:l=>en(l*l,r),add:(l,v)=>en(l+v,r),sub:(l,v)=>en(l-v,r),mul:(l,v)=>en(l*v,r),pow:(l,v)=>uh(d,l,v),div:(l,v)=>en(l*Ks(v,r),r),sqrN:l=>l*l,addN:(l,v)=>l+v,subN:(l,v)=>l-v,mulN:(l,v)=>l*v,inv:l=>Ks(l,r),sqrt:n.sqrt||(l=>u(d,l)),invertBatch:l=>lh(d,l),cmov:(l,v,S)=>S?v:l,toBytes:l=>e?Ki(l,i):mi(l,i),fromBytes:l=>{if(l.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${l.length}`);return e?gi(l):$r(l)}});return Object.freeze(d)}function Qc(r){if(typeof r!="bigint")throw new Error("field order must be bigint");const t=r.toString(2).length;return Math.ceil(t/8)}function tu(r){const t=Qc(r);return t+Math.ceil(t/2)}function fh(r,t,e=!1){const n=r.length,o=Qc(t),i=tu(t);if(n<16||n<i||n>1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const u=e?$r(r):gi(r),d=en(u,t-nn)+nn;return e?Ki(d,o):mi(d,o)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const dh=BigInt(0),js=BigInt(1);function eu(r,t){const e=(o,i)=>{const u=i.negate();return o?u:i},n=o=>{const i=Math.ceil(t/o)+1,u=2**(o-1);return{windows:i,windowSize:u}};return{constTimeNegate:e,unsafeLadder(o,i){let u=r.ZERO,d=o;for(;i>dh;)i&js&&(u=u.add(d)),d=d.double(),i>>=js;return u},precomputeWindow(o,i){const{windows:u,windowSize:d}=n(i),l=[];let v=o,S=v;for(let O=0;O<u;O++){S=v,l.push(S);for(let C=1;C<d;C++)S=S.add(v),l.push(S);v=S.double()}return l},wNAF(o,i,u){const{windows:d,windowSize:l}=n(o);let v=r.ZERO,S=r.BASE;const O=BigInt(2**o-1),C=2**o,N=BigInt(o);for(let B=0;B<d;B++){const M=B*l;let F=Number(u&O);u>>=N,F>l&&(F-=C,u+=js);const G=M,Q=M+Math.abs(F)-1,et=B%2!==0,ct=F<0;F===0?S=S.add(e(et,i[G])):v=v.add(e(ct,i[Q]))}return{p:v,f:S}},wNAFCached(o,i,u,d){const l=o._WINDOW_SIZE||1;let v=i.get(o);return v||(v=this.precomputeWindow(o,l),l!==1&&i.set(o,d(v))),this.wNAF(l,v,u)}}}function Ys(r){return ch(r.Fp),vi(r,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Xc(r.n,r.nBitLength),...r,p:r.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Xn=BigInt(0),Gn=BigInt(1),Mo=BigInt(2),hh=BigInt(8),ph={zip215:!0};function gh(r){const t=Ys(r);return vi(r,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function mh(r){const t=gh(r),{Fp:e,n,prehash:o,hash:i,randomBytes:u,nByteLength:d,h:l}=t,v=Mo<<BigInt(d*8)-Gn,S=e.create,O=t.uvRatio||((j,X)=>{try{return{isValid:!0,value:e.sqrt(j*e.inv(X))}}catch{return{isValid:!1,value:Xn}}}),C=t.adjustScalarBytes||(j=>j),N=t.domain||((j,X,at)=>{if(X.length||at)throw new Error("Contexts/pre-hash are not supported");return j}),B=j=>typeof j=="bigint"&&Xn<j,M=(j,X)=>B(j)&&B(X)&&j<X,F=j=>j===Xn||M(j,v);function G(j,X){if(M(j,X))return j;throw new Error(`Expected valid scalar < ${X}, got ${typeof j} ${j}`)}function Q(j){return j===Xn?j:G(j,n)}const et=new Map;function ct(j){if(!(j instanceof ft))throw new Error("ExtendedPoint expected")}class ft{constructor(X,at,K,p){if(this.ex=X,this.ey=at,this.ez=K,this.et=p,!F(X))throw new Error("x required");if(!F(at))throw new Error("y required");if(!F(K))throw new Error("z required");if(!F(p))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(X){if(X instanceof ft)throw new Error("extended point not allowed");const{x:at,y:K}=X||{};if(!F(at)||!F(K))throw new Error("invalid affine point");return new ft(at,K,Gn,S(at*K))}static normalizeZ(X){const at=e.invertBatch(X.map(K=>K.ez));return X.map((K,p)=>K.toAffine(at[p])).map(ft.fromAffine)}_setWindowSize(X){this._WINDOW_SIZE=X,et.delete(this)}assertValidity(){const{a:X,d:at}=t;if(this.is0())throw new Error("bad point: ZERO");const{ex:K,ey:p,ez:E,et:z}=this,$=S(K*K),dt=S(p*p),_t=S(E*E),Ut=S(_t*_t),Pt=S($*X),ve=S(_t*S(Pt+dt)),pe=S(Ut+S(at*S($*dt)));if(ve!==pe)throw new Error("bad point: equation left != right (1)");const ue=S(K*p),_e=S(E*z);if(ue!==_e)throw new Error("bad point: equation left != right (2)")}equals(X){ct(X);const{ex:at,ey:K,ez:p}=this,{ex:E,ey:z,ez:$}=X,dt=S(at*$),_t=S(E*p),Ut=S(K*$),Pt=S(z*p);return dt===_t&&Ut===Pt}is0(){return this.equals(ft.ZERO)}negate(){return new ft(S(-this.ex),this.ey,this.ez,S(-this.et))}double(){const{a:X}=t,{ex:at,ey:K,ez:p}=this,E=S(at*at),z=S(K*K),$=S(Mo*S(p*p)),dt=S(X*E),_t=at+K,Ut=S(S(_t*_t)-E-z),Pt=dt+z,ve=Pt-$,pe=dt-z,ue=S(Ut*ve),_e=S(Pt*pe),we=S(Ut*pe),Ee=S(ve*Pt);return new ft(ue,_e,Ee,we)}add(X){ct(X);const{a:at,d:K}=t,{ex:p,ey:E,ez:z,et:$}=this,{ex:dt,ey:_t,ez:Ut,et:Pt}=X;if(at===BigInt(-1)){const mt=S((E-p)*(_t+dt)),vt=S((E+p)*(_t-dt)),xt=S(vt-mt);if(xt===Xn)return this.double();const Gt=S(z*Mo*Pt),te=S($*Mo*Ut),U=te+Gt,R=vt+mt,k=te-Gt,A=S(U*xt),V=S(R*k),W=S(U*k),it=S(xt*R);return new ft(A,V,it,W)}const ve=S(p*dt),pe=S(E*_t),ue=S($*K*Pt),_e=S(z*Ut),we=S((p+E)*(dt+_t)-ve-pe),Ee=_e-ue,je=_e+ue,xe=S(pe-at*ve),y=S(we*Ee),P=S(je*xe),H=S(we*xe),lt=S(Ee*je);return new ft(y,P,lt,H)}subtract(X){return this.add(X.negate())}wNAF(X){return Rt.wNAFCached(this,et,X,ft.normalizeZ)}multiply(X){const{p:at,f:K}=this.wNAF(G(X,n));return ft.normalizeZ([at,K])[0]}multiplyUnsafe(X){let at=Q(X);return at===Xn?bt:this.equals(bt)||at===Gn?this:this.equals(ot)?this.wNAF(at).p:Rt.unsafeLadder(this,at)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return Rt.unsafeLadder(this,n).is0()}toAffine(X){const{ex:at,ey:K,ez:p}=this,E=this.is0();X==null&&(X=E?hh:e.inv(p));const z=S(at*X),$=S(K*X),dt=S(p*X);if(E)return{x:Xn,y:Gn};if(dt!==Gn)throw new Error("invZ was invalid");return{x:z,y:$}}clearCofactor(){const{h:X}=t;return X===Gn?this:this.multiplyUnsafe(X)}static fromHex(X,at=!1){const{d:K,a:p}=t,E=e.BYTES;X=_n("pointHex",X,E);const z=X.slice(),$=X[E-1];z[E-1]=$&-129;const dt=gi(z);dt===Xn||(at?G(dt,v):G(dt,e.ORDER));const _t=S(dt*dt),Ut=S(_t-Gn),Pt=S(K*_t-p);let{isValid:ve,value:pe}=O(Ut,Pt);if(!ve)throw new Error("Point.fromHex: invalid y coordinate");const ue=(pe&Gn)===Gn,_e=($&128)!==0;if(!at&&pe===Xn&&_e)throw new Error("Point.fromHex: x=0 and x_0=1");return _e!==ue&&(pe=S(-pe)),ft.fromAffine({x:pe,y:dt})}static fromPrivateKey(X){return wt(X).point}toRawBytes(){const{x:X,y:at}=this.toAffine(),K=Ki(at,e.BYTES);return K[K.length-1]|=X&Gn?128:0,K}toHex(){return qr(this.toRawBytes())}}ft.BASE=new ft(t.Gx,t.Gy,Gn,S(t.Gx*t.Gy)),ft.ZERO=new ft(Xn,Gn,Gn,Xn);const{BASE:ot,ZERO:bt}=ft,Rt=eu(ft,d*8);function At(j){return en(j,n)}function gt(j){return At(gi(j))}function wt(j){const X=d;j=_n("private key",j,X);const at=_n("hashed private key",i(j),2*X),K=C(at.slice(0,X)),p=at.slice(X,2*X),E=gt(K),z=ot.multiply(E),$=z.toRawBytes();return{head:K,prefix:p,scalar:E,point:z,pointBytes:$}}function kt(j){return wt(j).pointBytes}function q(j=new Uint8Array,...X){const at=Zr(...X);return gt(i(N(at,_n("context",j),!!o)))}function h(j,X,at={}){j=_n("message",j),o&&(j=o(j));const{prefix:K,scalar:p,pointBytes:E}=wt(X),z=q(at.context,K,j),$=ot.multiply(z).toRawBytes(),dt=q(at.context,$,E,j),_t=At(z+dt*p);Q(_t);const Ut=Zr($,Ki(_t,e.BYTES));return _n("result",Ut,d*2)}const T=ph;function D(j,X,at,K=T){const{context:p,zip215:E}=K,z=e.BYTES;j=_n("signature",j,2*z),X=_n("message",X),o&&(X=o(X));const $=gi(j.slice(z,2*z));let dt,_t,Ut;try{dt=ft.fromHex(at,E),_t=ft.fromHex(j.slice(0,z),E),Ut=ot.multiplyUnsafe($)}catch{return!1}if(!E&&dt.isSmallOrder())return!1;const Pt=q(p,_t.toRawBytes(),dt.toRawBytes(),X);return _t.add(dt.multiplyUnsafe(Pt)).subtract(Ut).clearCofactor().equals(ft.ZERO)}return ot._setWindowSize(8),{CURVE:t,getPublicKey:kt,sign:h,verify:D,ExtendedPoint:ft,utils:{getExtendedPublicKey:wt,randomPrivateKey:()=>u(e.BYTES),precompute(j=8,X=ft.BASE){return X._setWindowSize(j),X.multiply(BigInt(3)),X}}}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const qs=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),nu=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const vh=BigInt(1),ru=BigInt(2);BigInt(3);const yh=BigInt(5),wh=BigInt(8);function bh(r){const t=BigInt(10),e=BigInt(20),n=BigInt(40),o=BigInt(80),i=qs,d=r*r%i*r%i,l=cn(d,ru,i)*d%i,v=cn(l,vh,i)*r%i,S=cn(v,yh,i)*v%i,O=cn(S,t,i)*S%i,C=cn(O,e,i)*O%i,N=cn(C,n,i)*C%i,B=cn(N,o,i)*N%i,M=cn(B,o,i)*N%i,F=cn(M,t,i)*S%i;return{pow_p_5_8:cn(F,ru,i)*r%i,b2:d}}function _h(r){return r[0]&=248,r[31]&=127,r[31]|=64,r}function Eh(r,t){const e=qs,n=en(t*t*t,e),o=en(n*n*t,e),i=bh(r*o).pow_p_5_8;let u=en(r*n*i,e);const d=en(t*u*u,e),l=u,v=en(u*nu,e),S=d===r,O=d===en(-r,e),C=d===en(-r*nu,e);return S&&(u=l),(O||C)&&(u=v),sh(u,e)&&(u=en(-u,e)),{isValid:S||O,value:u}}const Rh=Jc(qs,void 0,!0),Sh={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Rh,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:wh,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:Kd,randomBytes:Mc,adjustScalarBytes:_h,uvRatio:Eh},yi=mh(Sh);var Do={exports:{}};const Ah=Cs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ih=Do.exports,iu;function ou(){return iu||(iu=1,function(r){(function(t,e){function n(q,h){if(!q)throw new Error(h||"Assertion failed")}function o(q,h){q.super_=h;var T=function(){};T.prototype=h.prototype,q.prototype=new T,q.prototype.constructor=q}function i(q,h,T){if(i.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((h==="le"||h==="be")&&(T=h,h=10),this._init(q||0,h||10,T||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=Ah.Buffer}catch{}i.isBN=function(h){return h instanceof i?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===i.wordSize&&Array.isArray(h.words)},i.max=function(h,T){return h.cmp(T)>0?h:T},i.min=function(h,T){return h.cmp(T)<0?h:T},i.prototype._init=function(h,T,D){if(typeof h=="number")return this._initNumber(h,T,D);if(typeof h=="object")return this._initArray(h,T,D);T==="hex"&&(T=16),n(T===(T|0)&&T>=2&&T<=36),h=h.toString().replace(/\s+/g,"");var Z=0;h[0]==="-"&&(Z++,this.negative=1),Z<h.length&&(T===16?this._parseHex(h,Z,D):(this._parseBase(h,T,Z),D==="le"&&this._initArray(this.toArray(),T,D)))},i.prototype._initNumber=function(h,T,D){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(n(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),T,D)},i.prototype._initArray=function(h,T,D){if(n(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var j,X,at=0;if(D==="be")for(Z=h.length-1,j=0;Z>=0;Z-=3)X=h[Z]|h[Z-1]<<8|h[Z-2]<<16,this.words[j]|=X<<at&67108863,this.words[j+1]=X>>>26-at&67108863,at+=24,at>=26&&(at-=26,j++);else if(D==="le")for(Z=0,j=0;Z<h.length;Z+=3)X=h[Z]|h[Z+1]<<8|h[Z+2]<<16,this.words[j]|=X<<at&67108863,this.words[j+1]=X>>>26-at&67108863,at+=24,at>=26&&(at-=26,j++);return this._strip()};function d(q,h){var T=q.charCodeAt(h);if(T>=48&&T<=57)return T-48;if(T>=65&&T<=70)return T-55;if(T>=97&&T<=102)return T-87;n(!1,"Invalid character in "+q)}function l(q,h,T){var D=d(q,T);return T-1>=h&&(D|=d(q,T-1)<<4),D}i.prototype._parseHex=function(h,T,D){this.length=Math.ceil((h.length-T)/6),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var j=0,X=0,at;if(D==="be")for(Z=h.length-1;Z>=T;Z-=2)at=l(h,T,Z)<<j,this.words[X]|=at&67108863,j>=18?(j-=18,X+=1,this.words[X]|=at>>>26):j+=8;else{var K=h.length-T;for(Z=K%2===0?T+1:T;Z<h.length;Z+=2)at=l(h,T,Z)<<j,this.words[X]|=at&67108863,j>=18?(j-=18,X+=1,this.words[X]|=at>>>26):j+=8}this._strip()};function v(q,h,T,D){for(var Z=0,j=0,X=Math.min(q.length,T),at=h;at<X;at++){var K=q.charCodeAt(at)-48;Z*=D,K>=49?j=K-49+10:K>=17?j=K-17+10:j=K,n(K>=0&&j<D,"Invalid character"),Z+=j}return Z}i.prototype._parseBase=function(h,T,D){this.words=[0],this.length=1;for(var Z=0,j=1;j<=67108863;j*=T)Z++;Z--,j=j/T|0;for(var X=h.length-D,at=X%Z,K=Math.min(X,X-at)+D,p=0,E=D;E<K;E+=Z)p=v(h,E,E+Z,T),this.imuln(j),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(at!==0){var z=1;for(p=v(h,E,h.length,T),E=0;E<at;E++)z*=T;this.imuln(z),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this._strip()},i.prototype.copy=function(h){h.words=new Array(this.length);for(var T=0;T<this.length;T++)h.words[T]=this.words[T];h.length=this.length,h.negative=this.negative,h.red=this.red};function S(q,h){q.words=h.words,q.length=h.length,q.negative=h.negative,q.red=h.red}if(i.prototype._move=function(h){S(h,this)},i.prototype.clone=function(){var h=new i(null);return this.copy(h),h},i.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch{i.prototype.inspect=O}else i.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var C=["","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"],N=[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],B=[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];i.prototype.toString=function(h,T){h=h||10,T=T|0||1;var D;if(h===16||h==="hex"){D="";for(var Z=0,j=0,X=0;X<this.length;X++){var at=this.words[X],K=((at<<Z|j)&16777215).toString(16);j=at>>>24-Z&16777215,Z+=2,Z>=26&&(Z-=26,X--),j!==0||X!==this.length-1?D=C[6-K.length]+K+D:D=K+D}for(j!==0&&(D=j.toString(16)+D);D.length%T!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(h===(h|0)&&h>=2&&h<=36){var p=N[h],E=B[h];D="";var z=this.clone();for(z.negative=0;!z.isZero();){var $=z.modrn(E).toString(h);z=z.idivn(E),z.isZero()?D=$+D:D=C[p-$.length]+$+D}for(this.isZero()&&(D="0"+D);D.length%T!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},i.prototype.toJSON=function(){return this.toString(16,2)},u&&(i.prototype.toBuffer=function(h,T){return this.toArrayLike(u,h,T)}),i.prototype.toArray=function(h,T){return this.toArrayLike(Array,h,T)};var M=function(h,T){return h.allocUnsafe?h.allocUnsafe(T):new h(T)};i.prototype.toArrayLike=function(h,T,D){this._strip();var Z=this.byteLength(),j=D||Math.max(1,Z);n(Z<=j,"byte array longer than desired length"),n(j>0,"Requested array length <= 0");var X=M(h,j),at=T==="le"?"LE":"BE";return this["_toArrayLike"+at](X,Z),X},i.prototype._toArrayLikeLE=function(h,T){for(var D=0,Z=0,j=0,X=0;j<this.length;j++){var at=this.words[j]<<X|Z;h[D++]=at&255,D<h.length&&(h[D++]=at>>8&255),D<h.length&&(h[D++]=at>>16&255),X===6?(D<h.length&&(h[D++]=at>>24&255),Z=0,X=0):(Z=at>>>24,X+=2)}if(D<h.length)for(h[D++]=Z;D<h.length;)h[D++]=0},i.prototype._toArrayLikeBE=function(h,T){for(var D=h.length-1,Z=0,j=0,X=0;j<this.length;j++){var at=this.words[j]<<X|Z;h[D--]=at&255,D>=0&&(h[D--]=at>>8&255),D>=0&&(h[D--]=at>>16&255),X===6?(D>=0&&(h[D--]=at>>24&255),Z=0,X=0):(Z=at>>>24,X+=2)}if(D>=0)for(h[D--]=Z;D>=0;)h[D--]=0},Math.clz32?i.prototype._countBits=function(h){return 32-Math.clz32(h)}:i.prototype._countBits=function(h){var T=h,D=0;return T>=4096&&(D+=13,T>>>=13),T>=64&&(D+=7,T>>>=7),T>=8&&(D+=4,T>>>=4),T>=2&&(D+=2,T>>>=2),D+T},i.prototype._zeroBits=function(h){if(h===0)return 26;var T=h,D=0;return(T&8191)===0&&(D+=13,T>>>=13),(T&127)===0&&(D+=7,T>>>=7),(T&15)===0&&(D+=4,T>>>=4),(T&3)===0&&(D+=2,T>>>=2),(T&1)===0&&D++,D},i.prototype.bitLength=function(){var h=this.words[this.length-1],T=this._countBits(h);return(this.length-1)*26+T};function F(q){for(var h=new Array(q.bitLength()),T=0;T<h.length;T++){var D=T/26|0,Z=T%26;h[T]=q.words[D]>>>Z&1}return h}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,T=0;T<this.length;T++){var D=this._zeroBits(this.words[T]);if(h+=D,D!==26)break}return h},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},i.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var T=0;T<h.length;T++)this.words[T]=this.words[T]|h.words[T];return this._strip()},i.prototype.ior=function(h){return n((this.negative|h.negative)===0),this.iuor(h)},i.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},i.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},i.prototype.iuand=function(h){var T;this.length>h.length?T=h:T=this;for(var D=0;D<T.length;D++)this.words[D]=this.words[D]&h.words[D];return this.length=T.length,this._strip()},i.prototype.iand=function(h){return n((this.negative|h.negative)===0),this.iuand(h)},i.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},i.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},i.prototype.iuxor=function(h){var T,D;this.length>h.length?(T=this,D=h):(T=h,D=this);for(var Z=0;Z<D.length;Z++)this.words[Z]=T.words[Z]^D.words[Z];if(this!==T)for(;Z<T.length;Z++)this.words[Z]=T.words[Z];return this.length=T.length,this._strip()},i.prototype.ixor=function(h){return n((this.negative|h.negative)===0),this.iuxor(h)},i.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},i.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},i.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var T=Math.ceil(h/26)|0,D=h%26;this._expand(T),D>0&&T--;for(var Z=0;Z<T;Z++)this.words[Z]=~this.words[Z]&67108863;return D>0&&(this.words[Z]=~this.words[Z]&67108863>>26-D),this._strip()},i.prototype.notn=function(h){return this.clone().inotn(h)},i.prototype.setn=function(h,T){n(typeof h=="number"&&h>=0);var D=h/26|0,Z=h%26;return this._expand(D+1),T?this.words[D]=this.words[D]|1<<Z:this.words[D]=this.words[D]&~(1<<Z),this._strip()},i.prototype.iadd=function(h){var T;if(this.negative!==0&&h.negative===0)return this.negative=0,T=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,T=this.isub(h),h.negative=1,T._normSign();var D,Z;this.length>h.length?(D=this,Z=h):(D=h,Z=this);for(var j=0,X=0;X<Z.length;X++)T=(D.words[X]|0)+(Z.words[X]|0)+j,this.words[X]=T&67108863,j=T>>>26;for(;j!==0&&X<D.length;X++)T=(D.words[X]|0)+j,this.words[X]=T&67108863,j=T>>>26;if(this.length=D.length,j!==0)this.words[this.length]=j,this.length++;else if(D!==this)for(;X<D.length;X++)this.words[X]=D.words[X];return this},i.prototype.add=function(h){var T;return h.negative!==0&&this.negative===0?(h.negative=0,T=this.sub(h),h.negative^=1,T):h.negative===0&&this.negative!==0?(this.negative=0,T=h.sub(this),this.negative=1,T):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},i.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var T=this.iadd(h);return h.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var D=this.cmp(h);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,j;D>0?(Z=this,j=h):(Z=h,j=this);for(var X=0,at=0;at<j.length;at++)T=(Z.words[at]|0)-(j.words[at]|0)+X,X=T>>26,this.words[at]=T&67108863;for(;X!==0&&at<Z.length;at++)T=(Z.words[at]|0)+X,X=T>>26,this.words[at]=T&67108863;if(X===0&&at<Z.length&&Z!==this)for(;at<Z.length;at++)this.words[at]=Z.words[at];return this.length=Math.max(this.length,at),Z!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(h){return this.clone().isub(h)};function G(q,h,T){T.negative=h.negative^q.negative;var D=q.length+h.length|0;T.length=D,D=D-1|0;var Z=q.words[0]|0,j=h.words[0]|0,X=Z*j,at=X&67108863,K=X/67108864|0;T.words[0]=at;for(var p=1;p<D;p++){for(var E=K>>>26,z=K&67108863,$=Math.min(p,h.length-1),dt=Math.max(0,p-q.length+1);dt<=$;dt++){var _t=p-dt|0;Z=q.words[_t]|0,j=h.words[dt]|0,X=Z*j+z,E+=X/67108864|0,z=X&67108863}T.words[p]=z|0,K=E|0}return K!==0?T.words[p]=K|0:T.length--,T._strip()}var Q=function(h,T,D){var Z=h.words,j=T.words,X=D.words,at=0,K,p,E,z=Z[0]|0,$=z&8191,dt=z>>>13,_t=Z[1]|0,Ut=_t&8191,Pt=_t>>>13,ve=Z[2]|0,pe=ve&8191,ue=ve>>>13,_e=Z[3]|0,we=_e&8191,Ee=_e>>>13,je=Z[4]|0,xe=je&8191,y=je>>>13,P=Z[5]|0,H=P&8191,lt=P>>>13,mt=Z[6]|0,vt=mt&8191,xt=mt>>>13,Gt=Z[7]|0,te=Gt&8191,U=Gt>>>13,R=Z[8]|0,k=R&8191,A=R>>>13,V=Z[9]|0,W=V&8191,it=V>>>13,Lt=j[0]|0,Ct=Lt&8191,Dt=Lt>>>13,Mt=j[1]|0,rt=Mt&8191,Kt=Mt>>>13,be=j[2]|0,ie=be&8191,se=be>>>13,ye=j[3]|0,de=ye&8191,le=ye>>>13,sn=j[4]|0,Se=sn&8191,Te=sn>>>13,wn=j[5]|0,Ve=wn&8191,Ye=wn>>>13,Ir=j[6]|0,Qe=Ir&8191,Je=Ir>>>13,si=j[7]|0,un=si&8191,ln=si>>>13,hs=j[8]|0,fn=hs&8191,dn=hs>>>13,ps=j[9]|0,hn=ps&8191,pn=ps>>>13;D.negative=h.negative^T.negative,D.length=19,K=Math.imul($,Ct),p=Math.imul($,Dt),p=p+Math.imul(dt,Ct)|0,E=Math.imul(dt,Dt);var io=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(io>>>26)|0,io&=67108863,K=Math.imul(Ut,Ct),p=Math.imul(Ut,Dt),p=p+Math.imul(Pt,Ct)|0,E=Math.imul(Pt,Dt),K=K+Math.imul($,rt)|0,p=p+Math.imul($,Kt)|0,p=p+Math.imul(dt,rt)|0,E=E+Math.imul(dt,Kt)|0;var oo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(oo>>>26)|0,oo&=67108863,K=Math.imul(pe,Ct),p=Math.imul(pe,Dt),p=p+Math.imul(ue,Ct)|0,E=Math.imul(ue,Dt),K=K+Math.imul(Ut,rt)|0,p=p+Math.imul(Ut,Kt)|0,p=p+Math.imul(Pt,rt)|0,E=E+Math.imul(Pt,Kt)|0,K=K+Math.imul($,ie)|0,p=p+Math.imul($,se)|0,p=p+Math.imul(dt,ie)|0,E=E+Math.imul(dt,se)|0;var so=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(so>>>26)|0,so&=67108863,K=Math.imul(we,Ct),p=Math.imul(we,Dt),p=p+Math.imul(Ee,Ct)|0,E=Math.imul(Ee,Dt),K=K+Math.imul(pe,rt)|0,p=p+Math.imul(pe,Kt)|0,p=p+Math.imul(ue,rt)|0,E=E+Math.imul(ue,Kt)|0,K=K+Math.imul(Ut,ie)|0,p=p+Math.imul(Ut,se)|0,p=p+Math.imul(Pt,ie)|0,E=E+Math.imul(Pt,se)|0,K=K+Math.imul($,de)|0,p=p+Math.imul($,le)|0,p=p+Math.imul(dt,de)|0,E=E+Math.imul(dt,le)|0;var ao=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(ao>>>26)|0,ao&=67108863,K=Math.imul(xe,Ct),p=Math.imul(xe,Dt),p=p+Math.imul(y,Ct)|0,E=Math.imul(y,Dt),K=K+Math.imul(we,rt)|0,p=p+Math.imul(we,Kt)|0,p=p+Math.imul(Ee,rt)|0,E=E+Math.imul(Ee,Kt)|0,K=K+Math.imul(pe,ie)|0,p=p+Math.imul(pe,se)|0,p=p+Math.imul(ue,ie)|0,E=E+Math.imul(ue,se)|0,K=K+Math.imul(Ut,de)|0,p=p+Math.imul(Ut,le)|0,p=p+Math.imul(Pt,de)|0,E=E+Math.imul(Pt,le)|0,K=K+Math.imul($,Se)|0,p=p+Math.imul($,Te)|0,p=p+Math.imul(dt,Se)|0,E=E+Math.imul(dt,Te)|0;var co=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(co>>>26)|0,co&=67108863,K=Math.imul(H,Ct),p=Math.imul(H,Dt),p=p+Math.imul(lt,Ct)|0,E=Math.imul(lt,Dt),K=K+Math.imul(xe,rt)|0,p=p+Math.imul(xe,Kt)|0,p=p+Math.imul(y,rt)|0,E=E+Math.imul(y,Kt)|0,K=K+Math.imul(we,ie)|0,p=p+Math.imul(we,se)|0,p=p+Math.imul(Ee,ie)|0,E=E+Math.imul(Ee,se)|0,K=K+Math.imul(pe,de)|0,p=p+Math.imul(pe,le)|0,p=p+Math.imul(ue,de)|0,E=E+Math.imul(ue,le)|0,K=K+Math.imul(Ut,Se)|0,p=p+Math.imul(Ut,Te)|0,p=p+Math.imul(Pt,Se)|0,E=E+Math.imul(Pt,Te)|0,K=K+Math.imul($,Ve)|0,p=p+Math.imul($,Ye)|0,p=p+Math.imul(dt,Ve)|0,E=E+Math.imul(dt,Ye)|0;var uo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(uo>>>26)|0,uo&=67108863,K=Math.imul(vt,Ct),p=Math.imul(vt,Dt),p=p+Math.imul(xt,Ct)|0,E=Math.imul(xt,Dt),K=K+Math.imul(H,rt)|0,p=p+Math.imul(H,Kt)|0,p=p+Math.imul(lt,rt)|0,E=E+Math.imul(lt,Kt)|0,K=K+Math.imul(xe,ie)|0,p=p+Math.imul(xe,se)|0,p=p+Math.imul(y,ie)|0,E=E+Math.imul(y,se)|0,K=K+Math.imul(we,de)|0,p=p+Math.imul(we,le)|0,p=p+Math.imul(Ee,de)|0,E=E+Math.imul(Ee,le)|0,K=K+Math.imul(pe,Se)|0,p=p+Math.imul(pe,Te)|0,p=p+Math.imul(ue,Se)|0,E=E+Math.imul(ue,Te)|0,K=K+Math.imul(Ut,Ve)|0,p=p+Math.imul(Ut,Ye)|0,p=p+Math.imul(Pt,Ve)|0,E=E+Math.imul(Pt,Ye)|0,K=K+Math.imul($,Qe)|0,p=p+Math.imul($,Je)|0,p=p+Math.imul(dt,Qe)|0,E=E+Math.imul(dt,Je)|0;var lo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(lo>>>26)|0,lo&=67108863,K=Math.imul(te,Ct),p=Math.imul(te,Dt),p=p+Math.imul(U,Ct)|0,E=Math.imul(U,Dt),K=K+Math.imul(vt,rt)|0,p=p+Math.imul(vt,Kt)|0,p=p+Math.imul(xt,rt)|0,E=E+Math.imul(xt,Kt)|0,K=K+Math.imul(H,ie)|0,p=p+Math.imul(H,se)|0,p=p+Math.imul(lt,ie)|0,E=E+Math.imul(lt,se)|0,K=K+Math.imul(xe,de)|0,p=p+Math.imul(xe,le)|0,p=p+Math.imul(y,de)|0,E=E+Math.imul(y,le)|0,K=K+Math.imul(we,Se)|0,p=p+Math.imul(we,Te)|0,p=p+Math.imul(Ee,Se)|0,E=E+Math.imul(Ee,Te)|0,K=K+Math.imul(pe,Ve)|0,p=p+Math.imul(pe,Ye)|0,p=p+Math.imul(ue,Ve)|0,E=E+Math.imul(ue,Ye)|0,K=K+Math.imul(Ut,Qe)|0,p=p+Math.imul(Ut,Je)|0,p=p+Math.imul(Pt,Qe)|0,E=E+Math.imul(Pt,Je)|0,K=K+Math.imul($,un)|0,p=p+Math.imul($,ln)|0,p=p+Math.imul(dt,un)|0,E=E+Math.imul(dt,ln)|0;var fo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(fo>>>26)|0,fo&=67108863,K=Math.imul(k,Ct),p=Math.imul(k,Dt),p=p+Math.imul(A,Ct)|0,E=Math.imul(A,Dt),K=K+Math.imul(te,rt)|0,p=p+Math.imul(te,Kt)|0,p=p+Math.imul(U,rt)|0,E=E+Math.imul(U,Kt)|0,K=K+Math.imul(vt,ie)|0,p=p+Math.imul(vt,se)|0,p=p+Math.imul(xt,ie)|0,E=E+Math.imul(xt,se)|0,K=K+Math.imul(H,de)|0,p=p+Math.imul(H,le)|0,p=p+Math.imul(lt,de)|0,E=E+Math.imul(lt,le)|0,K=K+Math.imul(xe,Se)|0,p=p+Math.imul(xe,Te)|0,p=p+Math.imul(y,Se)|0,E=E+Math.imul(y,Te)|0,K=K+Math.imul(we,Ve)|0,p=p+Math.imul(we,Ye)|0,p=p+Math.imul(Ee,Ve)|0,E=E+Math.imul(Ee,Ye)|0,K=K+Math.imul(pe,Qe)|0,p=p+Math.imul(pe,Je)|0,p=p+Math.imul(ue,Qe)|0,E=E+Math.imul(ue,Je)|0,K=K+Math.imul(Ut,un)|0,p=p+Math.imul(Ut,ln)|0,p=p+Math.imul(Pt,un)|0,E=E+Math.imul(Pt,ln)|0,K=K+Math.imul($,fn)|0,p=p+Math.imul($,dn)|0,p=p+Math.imul(dt,fn)|0,E=E+Math.imul(dt,dn)|0;var ho=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(ho>>>26)|0,ho&=67108863,K=Math.imul(W,Ct),p=Math.imul(W,Dt),p=p+Math.imul(it,Ct)|0,E=Math.imul(it,Dt),K=K+Math.imul(k,rt)|0,p=p+Math.imul(k,Kt)|0,p=p+Math.imul(A,rt)|0,E=E+Math.imul(A,Kt)|0,K=K+Math.imul(te,ie)|0,p=p+Math.imul(te,se)|0,p=p+Math.imul(U,ie)|0,E=E+Math.imul(U,se)|0,K=K+Math.imul(vt,de)|0,p=p+Math.imul(vt,le)|0,p=p+Math.imul(xt,de)|0,E=E+Math.imul(xt,le)|0,K=K+Math.imul(H,Se)|0,p=p+Math.imul(H,Te)|0,p=p+Math.imul(lt,Se)|0,E=E+Math.imul(lt,Te)|0,K=K+Math.imul(xe,Ve)|0,p=p+Math.imul(xe,Ye)|0,p=p+Math.imul(y,Ve)|0,E=E+Math.imul(y,Ye)|0,K=K+Math.imul(we,Qe)|0,p=p+Math.imul(we,Je)|0,p=p+Math.imul(Ee,Qe)|0,E=E+Math.imul(Ee,Je)|0,K=K+Math.imul(pe,un)|0,p=p+Math.imul(pe,ln)|0,p=p+Math.imul(ue,un)|0,E=E+Math.imul(ue,ln)|0,K=K+Math.imul(Ut,fn)|0,p=p+Math.imul(Ut,dn)|0,p=p+Math.imul(Pt,fn)|0,E=E+Math.imul(Pt,dn)|0,K=K+Math.imul($,hn)|0,p=p+Math.imul($,pn)|0,p=p+Math.imul(dt,hn)|0,E=E+Math.imul(dt,pn)|0;var po=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(po>>>26)|0,po&=67108863,K=Math.imul(W,rt),p=Math.imul(W,Kt),p=p+Math.imul(it,rt)|0,E=Math.imul(it,Kt),K=K+Math.imul(k,ie)|0,p=p+Math.imul(k,se)|0,p=p+Math.imul(A,ie)|0,E=E+Math.imul(A,se)|0,K=K+Math.imul(te,de)|0,p=p+Math.imul(te,le)|0,p=p+Math.imul(U,de)|0,E=E+Math.imul(U,le)|0,K=K+Math.imul(vt,Se)|0,p=p+Math.imul(vt,Te)|0,p=p+Math.imul(xt,Se)|0,E=E+Math.imul(xt,Te)|0,K=K+Math.imul(H,Ve)|0,p=p+Math.imul(H,Ye)|0,p=p+Math.imul(lt,Ve)|0,E=E+Math.imul(lt,Ye)|0,K=K+Math.imul(xe,Qe)|0,p=p+Math.imul(xe,Je)|0,p=p+Math.imul(y,Qe)|0,E=E+Math.imul(y,Je)|0,K=K+Math.imul(we,un)|0,p=p+Math.imul(we,ln)|0,p=p+Math.imul(Ee,un)|0,E=E+Math.imul(Ee,ln)|0,K=K+Math.imul(pe,fn)|0,p=p+Math.imul(pe,dn)|0,p=p+Math.imul(ue,fn)|0,E=E+Math.imul(ue,dn)|0,K=K+Math.imul(Ut,hn)|0,p=p+Math.imul(Ut,pn)|0,p=p+Math.imul(Pt,hn)|0,E=E+Math.imul(Pt,pn)|0;var kn=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(kn>>>26)|0,kn&=67108863,K=Math.imul(W,ie),p=Math.imul(W,se),p=p+Math.imul(it,ie)|0,E=Math.imul(it,se),K=K+Math.imul(k,de)|0,p=p+Math.imul(k,le)|0,p=p+Math.imul(A,de)|0,E=E+Math.imul(A,le)|0,K=K+Math.imul(te,Se)|0,p=p+Math.imul(te,Te)|0,p=p+Math.imul(U,Se)|0,E=E+Math.imul(U,Te)|0,K=K+Math.imul(vt,Ve)|0,p=p+Math.imul(vt,Ye)|0,p=p+Math.imul(xt,Ve)|0,E=E+Math.imul(xt,Ye)|0,K=K+Math.imul(H,Qe)|0,p=p+Math.imul(H,Je)|0,p=p+Math.imul(lt,Qe)|0,E=E+Math.imul(lt,Je)|0,K=K+Math.imul(xe,un)|0,p=p+Math.imul(xe,ln)|0,p=p+Math.imul(y,un)|0,E=E+Math.imul(y,ln)|0,K=K+Math.imul(we,fn)|0,p=p+Math.imul(we,dn)|0,p=p+Math.imul(Ee,fn)|0,E=E+Math.imul(Ee,dn)|0,K=K+Math.imul(pe,hn)|0,p=p+Math.imul(pe,pn)|0,p=p+Math.imul(ue,hn)|0,E=E+Math.imul(ue,pn)|0;var go=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(go>>>26)|0,go&=67108863,K=Math.imul(W,de),p=Math.imul(W,le),p=p+Math.imul(it,de)|0,E=Math.imul(it,le),K=K+Math.imul(k,Se)|0,p=p+Math.imul(k,Te)|0,p=p+Math.imul(A,Se)|0,E=E+Math.imul(A,Te)|0,K=K+Math.imul(te,Ve)|0,p=p+Math.imul(te,Ye)|0,p=p+Math.imul(U,Ve)|0,E=E+Math.imul(U,Ye)|0,K=K+Math.imul(vt,Qe)|0,p=p+Math.imul(vt,Je)|0,p=p+Math.imul(xt,Qe)|0,E=E+Math.imul(xt,Je)|0,K=K+Math.imul(H,un)|0,p=p+Math.imul(H,ln)|0,p=p+Math.imul(lt,un)|0,E=E+Math.imul(lt,ln)|0,K=K+Math.imul(xe,fn)|0,p=p+Math.imul(xe,dn)|0,p=p+Math.imul(y,fn)|0,E=E+Math.imul(y,dn)|0,K=K+Math.imul(we,hn)|0,p=p+Math.imul(we,pn)|0,p=p+Math.imul(Ee,hn)|0,E=E+Math.imul(Ee,pn)|0;var mo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(mo>>>26)|0,mo&=67108863,K=Math.imul(W,Se),p=Math.imul(W,Te),p=p+Math.imul(it,Se)|0,E=Math.imul(it,Te),K=K+Math.imul(k,Ve)|0,p=p+Math.imul(k,Ye)|0,p=p+Math.imul(A,Ve)|0,E=E+Math.imul(A,Ye)|0,K=K+Math.imul(te,Qe)|0,p=p+Math.imul(te,Je)|0,p=p+Math.imul(U,Qe)|0,E=E+Math.imul(U,Je)|0,K=K+Math.imul(vt,un)|0,p=p+Math.imul(vt,ln)|0,p=p+Math.imul(xt,un)|0,E=E+Math.imul(xt,ln)|0,K=K+Math.imul(H,fn)|0,p=p+Math.imul(H,dn)|0,p=p+Math.imul(lt,fn)|0,E=E+Math.imul(lt,dn)|0,K=K+Math.imul(xe,hn)|0,p=p+Math.imul(xe,pn)|0,p=p+Math.imul(y,hn)|0,E=E+Math.imul(y,pn)|0;var vo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(vo>>>26)|0,vo&=67108863,K=Math.imul(W,Ve),p=Math.imul(W,Ye),p=p+Math.imul(it,Ve)|0,E=Math.imul(it,Ye),K=K+Math.imul(k,Qe)|0,p=p+Math.imul(k,Je)|0,p=p+Math.imul(A,Qe)|0,E=E+Math.imul(A,Je)|0,K=K+Math.imul(te,un)|0,p=p+Math.imul(te,ln)|0,p=p+Math.imul(U,un)|0,E=E+Math.imul(U,ln)|0,K=K+Math.imul(vt,fn)|0,p=p+Math.imul(vt,dn)|0,p=p+Math.imul(xt,fn)|0,E=E+Math.imul(xt,dn)|0,K=K+Math.imul(H,hn)|0,p=p+Math.imul(H,pn)|0,p=p+Math.imul(lt,hn)|0,E=E+Math.imul(lt,pn)|0;var ze=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(ze>>>26)|0,ze&=67108863,K=Math.imul(W,Qe),p=Math.imul(W,Je),p=p+Math.imul(it,Qe)|0,E=Math.imul(it,Je),K=K+Math.imul(k,un)|0,p=p+Math.imul(k,ln)|0,p=p+Math.imul(A,un)|0,E=E+Math.imul(A,ln)|0,K=K+Math.imul(te,fn)|0,p=p+Math.imul(te,dn)|0,p=p+Math.imul(U,fn)|0,E=E+Math.imul(U,dn)|0,K=K+Math.imul(vt,hn)|0,p=p+Math.imul(vt,pn)|0,p=p+Math.imul(xt,hn)|0,E=E+Math.imul(xt,pn)|0;var yo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(yo>>>26)|0,yo&=67108863,K=Math.imul(W,un),p=Math.imul(W,ln),p=p+Math.imul(it,un)|0,E=Math.imul(it,ln),K=K+Math.imul(k,fn)|0,p=p+Math.imul(k,dn)|0,p=p+Math.imul(A,fn)|0,E=E+Math.imul(A,dn)|0,K=K+Math.imul(te,hn)|0,p=p+Math.imul(te,pn)|0,p=p+Math.imul(U,hn)|0,E=E+Math.imul(U,pn)|0;var jn=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(jn>>>26)|0,jn&=67108863,K=Math.imul(W,fn),p=Math.imul(W,dn),p=p+Math.imul(it,fn)|0,E=Math.imul(it,dn),K=K+Math.imul(k,hn)|0,p=p+Math.imul(k,pn)|0,p=p+Math.imul(A,hn)|0,E=E+Math.imul(A,pn)|0;var Ci=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,K=Math.imul(W,hn),p=Math.imul(W,pn),p=p+Math.imul(it,hn)|0,E=Math.imul(it,pn);var Bi=(at+K|0)+((p&8191)<<13)|0;return at=(E+(p>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,X[0]=io,X[1]=oo,X[2]=so,X[3]=ao,X[4]=co,X[5]=uo,X[6]=lo,X[7]=fo,X[8]=ho,X[9]=po,X[10]=kn,X[11]=go,X[12]=mo,X[13]=vo,X[14]=ze,X[15]=yo,X[16]=jn,X[17]=Ci,X[18]=Bi,at!==0&&(X[19]=at,D.length++),D};Math.imul||(Q=G);function et(q,h,T){T.negative=h.negative^q.negative,T.length=q.length+h.length;for(var D=0,Z=0,j=0;j<T.length-1;j++){var X=Z;Z=0;for(var at=D&67108863,K=Math.min(j,h.length-1),p=Math.max(0,j-q.length+1);p<=K;p++){var E=j-p,z=q.words[E]|0,$=h.words[p]|0,dt=z*$,_t=dt&67108863;X=X+(dt/67108864|0)|0,_t=_t+at|0,at=_t&67108863,X=X+(_t>>>26)|0,Z+=X>>>26,X&=67108863}T.words[j]=at,D=X,X=Z}return D!==0?T.words[j]=D:T.length--,T._strip()}function ct(q,h,T){return et(q,h,T)}i.prototype.mulTo=function(h,T){var D,Z=this.length+h.length;return this.length===10&&h.length===10?D=Q(this,h,T):Z<63?D=G(this,h,T):Z<1024?D=et(this,h,T):D=ct(this,h,T),D},i.prototype.mul=function(h){var T=new i(null);return T.words=new Array(this.length+h.length),this.mulTo(h,T)},i.prototype.mulf=function(h){var T=new i(null);return T.words=new Array(this.length+h.length),ct(this,h,T)},i.prototype.imul=function(h){return this.clone().mulTo(h,this)},i.prototype.imuln=function(h){var T=h<0;T&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var D=0,Z=0;Z<this.length;Z++){var j=(this.words[Z]|0)*h,X=(j&67108863)+(D&67108863);D>>=26,D+=j/67108864|0,D+=X>>>26,this.words[Z]=X&67108863}return D!==0&&(this.words[Z]=D,this.length++),this.length=h===0?1:this.length,T?this.ineg():this},i.prototype.muln=function(h){return this.clone().imuln(h)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(h){var T=F(h);if(T.length===0)return new i(1);for(var D=this,Z=0;Z<T.length&&T[Z]===0;Z++,D=D.sqr());if(++Z<T.length)for(var j=D.sqr();Z<T.length;Z++,j=j.sqr())T[Z]!==0&&(D=D.mul(j));return D},i.prototype.iushln=function(h){n(typeof h=="number"&&h>=0);var T=h%26,D=(h-T)/26,Z=67108863>>>26-T<<26-T,j;if(T!==0){var X=0;for(j=0;j<this.length;j++){var at=this.words[j]&Z,K=(this.words[j]|0)-at<<T;this.words[j]=K|X,X=at>>>26-T}X&&(this.words[j]=X,this.length++)}if(D!==0){for(j=this.length-1;j>=0;j--)this.words[j+D]=this.words[j];for(j=0;j<D;j++)this.words[j]=0;this.length+=D}return this._strip()},i.prototype.ishln=function(h){return n(this.negative===0),this.iushln(h)},i.prototype.iushrn=function(h,T,D){n(typeof h=="number"&&h>=0);var Z;T?Z=(T-T%26)/26:Z=0;var j=h%26,X=Math.min((h-j)/26,this.length),at=67108863^67108863>>>j<<j,K=D;if(Z-=X,Z=Math.max(0,Z),K){for(var p=0;p<X;p++)K.words[p]=this.words[p];K.length=X}if(X!==0)if(this.length>X)for(this.length-=X,p=0;p<this.length;p++)this.words[p]=this.words[p+X];else this.words[0]=0,this.length=1;var E=0;for(p=this.length-1;p>=0&&(E!==0||p>=Z);p--){var z=this.words[p]|0;this.words[p]=E<<26-j|z>>>j,E=z&at}return K&&E!==0&&(K.words[K.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(h,T,D){return n(this.negative===0),this.iushrn(h,T,D)},i.prototype.shln=function(h){return this.clone().ishln(h)},i.prototype.ushln=function(h){return this.clone().iushln(h)},i.prototype.shrn=function(h){return this.clone().ishrn(h)},i.prototype.ushrn=function(h){return this.clone().iushrn(h)},i.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var T=h%26,D=(h-T)/26,Z=1<<T;if(this.length<=D)return!1;var j=this.words[D];return!!(j&Z)},i.prototype.imaskn=function(h){n(typeof h=="number"&&h>=0);var T=h%26,D=(h-T)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(T!==0&&D++,this.length=Math.min(D,this.length),T!==0){var Z=67108863^67108863>>>T<<T;this.words[this.length-1]&=Z}return this._strip()},i.prototype.maskn=function(h){return this.clone().imaskn(h)},i.prototype.iaddn=function(h){return n(typeof h=="number"),n(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},i.prototype._iaddn=function(h){this.words[0]+=h;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},i.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this._strip()},i.prototype.addn=function(h){return this.clone().iaddn(h)},i.prototype.subn=function(h){return this.clone().isubn(h)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(h,T,D){var Z=h.length+D,j;this._expand(Z);var X,at=0;for(j=0;j<h.length;j++){X=(this.words[j+D]|0)+at;var K=(h.words[j]|0)*T;X-=K&67108863,at=(X>>26)-(K/67108864|0),this.words[j+D]=X&67108863}for(;j<this.length-D;j++)X=(this.words[j+D]|0)+at,at=X>>26,this.words[j+D]=X&67108863;if(at===0)return this._strip();for(n(at===-1),at=0,j=0;j<this.length;j++)X=-(this.words[j]|0)+at,at=X>>26,this.words[j]=X&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(h,T){var D=this.length-h.length,Z=this.clone(),j=h,X=j.words[j.length-1]|0,at=this._countBits(X);D=26-at,D!==0&&(j=j.ushln(D),Z.iushln(D),X=j.words[j.length-1]|0);var K=Z.length-j.length,p;if(T!=="mod"){p=new i(null),p.length=K+1,p.words=new Array(p.length);for(var E=0;E<p.length;E++)p.words[E]=0}var z=Z.clone()._ishlnsubmul(j,1,K);z.negative===0&&(Z=z,p&&(p.words[K]=1));for(var $=K-1;$>=0;$--){var dt=(Z.words[j.length+$]|0)*67108864+(Z.words[j.length+$-1]|0);for(dt=Math.min(dt/X|0,67108863),Z._ishlnsubmul(j,dt,$);Z.negative!==0;)dt--,Z.negative=0,Z._ishlnsubmul(j,1,$),Z.isZero()||(Z.negative^=1);p&&(p.words[$]=dt)}return p&&p._strip(),Z._strip(),T!=="div"&&D!==0&&Z.iushrn(D),{div:p||null,mod:Z}},i.prototype.divmod=function(h,T,D){if(n(!h.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var Z,j,X;return this.negative!==0&&h.negative===0?(X=this.neg().divmod(h,T),T!=="mod"&&(Z=X.div.neg()),T!=="div"&&(j=X.mod.neg(),D&&j.negative!==0&&j.iadd(h)),{div:Z,mod:j}):this.negative===0&&h.negative!==0?(X=this.divmod(h.neg(),T),T!=="mod"&&(Z=X.div.neg()),{div:Z,mod:X.mod}):(this.negative&h.negative)!==0?(X=this.neg().divmod(h.neg(),T),T!=="div"&&(j=X.mod.neg(),D&&j.negative!==0&&j.isub(h)),{div:X.div,mod:j}):h.length>this.length||this.cmp(h)<0?{div:new i(0),mod:this}:h.length===1?T==="div"?{div:this.divn(h.words[0]),mod:null}:T==="mod"?{div:null,mod:new i(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new i(this.modrn(h.words[0]))}:this._wordDiv(h,T)},i.prototype.div=function(h){return this.divmod(h,"div",!1).div},i.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},i.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},i.prototype.divRound=function(h){var T=this.divmod(h);if(T.mod.isZero())return T.div;var D=T.div.negative!==0?T.mod.isub(h):T.mod,Z=h.ushrn(1),j=h.andln(1),X=D.cmp(Z);return X<0||j===1&&X===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},i.prototype.modrn=function(h){var T=h<0;T&&(h=-h),n(h<=67108863);for(var D=(1<<26)%h,Z=0,j=this.length-1;j>=0;j--)Z=(D*Z+(this.words[j]|0))%h;return T?-Z:Z},i.prototype.modn=function(h){return this.modrn(h)},i.prototype.idivn=function(h){var T=h<0;T&&(h=-h),n(h<=67108863);for(var D=0,Z=this.length-1;Z>=0;Z--){var j=(this.words[Z]|0)+D*67108864;this.words[Z]=j/h|0,D=j%h}return this._strip(),T?this.ineg():this},i.prototype.divn=function(h){return this.clone().idivn(h)},i.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var T=this,D=h.clone();T.negative!==0?T=T.umod(h):T=T.clone();for(var Z=new i(1),j=new i(0),X=new i(0),at=new i(1),K=0;T.isEven()&&D.isEven();)T.iushrn(1),D.iushrn(1),++K;for(var p=D.clone(),E=T.clone();!T.isZero();){for(var z=0,$=1;(T.words[0]&$)===0&&z<26;++z,$<<=1);if(z>0)for(T.iushrn(z);z-- >0;)(Z.isOdd()||j.isOdd())&&(Z.iadd(p),j.isub(E)),Z.iushrn(1),j.iushrn(1);for(var dt=0,_t=1;(D.words[0]&_t)===0&&dt<26;++dt,_t<<=1);if(dt>0)for(D.iushrn(dt);dt-- >0;)(X.isOdd()||at.isOdd())&&(X.iadd(p),at.isub(E)),X.iushrn(1),at.iushrn(1);T.cmp(D)>=0?(T.isub(D),Z.isub(X),j.isub(at)):(D.isub(T),X.isub(Z),at.isub(j))}return{a:X,b:at,gcd:D.iushln(K)}},i.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var T=this,D=h.clone();T.negative!==0?T=T.umod(h):T=T.clone();for(var Z=new i(1),j=new i(0),X=D.clone();T.cmpn(1)>0&&D.cmpn(1)>0;){for(var at=0,K=1;(T.words[0]&K)===0&&at<26;++at,K<<=1);if(at>0)for(T.iushrn(at);at-- >0;)Z.isOdd()&&Z.iadd(X),Z.iushrn(1);for(var p=0,E=1;(D.words[0]&E)===0&&p<26;++p,E<<=1);if(p>0)for(D.iushrn(p);p-- >0;)j.isOdd()&&j.iadd(X),j.iushrn(1);T.cmp(D)>=0?(T.isub(D),Z.isub(j)):(D.isub(T),j.isub(Z))}var z;return T.cmpn(1)===0?z=Z:z=j,z.cmpn(0)<0&&z.iadd(h),z},i.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var T=this.clone(),D=h.clone();T.negative=0,D.negative=0;for(var Z=0;T.isEven()&&D.isEven();Z++)T.iushrn(1),D.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;D.isEven();)D.iushrn(1);var j=T.cmp(D);if(j<0){var X=T;T=D,D=X}else if(j===0||D.cmpn(1)===0)break;T.isub(D)}while(!0);return D.iushln(Z)},i.prototype.invm=function(h){return this.egcd(h).a.umod(h)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(h){return this.words[0]&h},i.prototype.bincn=function(h){n(typeof h=="number");var T=h%26,D=(h-T)/26,Z=1<<T;if(this.length<=D)return this._expand(D+1),this.words[D]|=Z,this;for(var j=Z,X=D;j!==0&&X<this.length;X++){var at=this.words[X]|0;at+=j,j=at>>>26,at&=67108863,this.words[X]=at}return j!==0&&(this.words[X]=j,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(h){var T=h<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this._strip();var D;if(this.length>1)D=1;else{T&&(h=-h),n(h<=67108863,"Number is too big");var Z=this.words[0]|0;D=Z===h?0:Z<h?-1:1}return this.negative!==0?-D|0:D},i.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var T=this.ucmp(h);return this.negative!==0?-T|0:T},i.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var T=0,D=this.length-1;D>=0;D--){var Z=this.words[D]|0,j=h.words[D]|0;if(Z!==j){Z<j?T=-1:Z>j&&(T=1);break}}return T},i.prototype.gtn=function(h){return this.cmpn(h)===1},i.prototype.gt=function(h){return this.cmp(h)===1},i.prototype.gten=function(h){return this.cmpn(h)>=0},i.prototype.gte=function(h){return this.cmp(h)>=0},i.prototype.ltn=function(h){return this.cmpn(h)===-1},i.prototype.lt=function(h){return this.cmp(h)===-1},i.prototype.lten=function(h){return this.cmpn(h)<=0},i.prototype.lte=function(h){return this.cmp(h)<=0},i.prototype.eqn=function(h){return this.cmpn(h)===0},i.prototype.eq=function(h){return this.cmp(h)===0},i.red=function(h){return new wt(h)},i.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(h){return this.red=h,this},i.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},i.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},i.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},i.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},i.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},i.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},i.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},i.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var ft={k256:null,p224:null,p192:null,p25519:null};function ot(q,h){this.name=q,this.p=new i(h,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ot.prototype._tmp=function(){var h=new i(null);return h.words=new Array(Math.ceil(this.n/13)),h},ot.prototype.ireduce=function(h){var T=h,D;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),D=T.bitLength();while(D>this.n);var Z=D<this.n?-1:T.ucmp(this.p);return Z===0?(T.words[0]=0,T.length=1):Z>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},ot.prototype.split=function(h,T){h.iushrn(this.n,0,T)},ot.prototype.imulK=function(h){return h.imul(this.k)};function bt(){ot.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(bt,ot),bt.prototype.split=function(h,T){for(var D=4194303,Z=Math.min(h.length,9),j=0;j<Z;j++)T.words[j]=h.words[j];if(T.length=Z,h.length<=9){h.words[0]=0,h.length=1;return}var X=h.words[9];for(T.words[T.length++]=X&D,j=10;j<h.length;j++){var at=h.words[j]|0;h.words[j-10]=(at&D)<<4|X>>>22,X=at}X>>>=22,h.words[j-10]=X,X===0&&h.length>10?h.length-=10:h.length-=9},bt.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var T=0,D=0;D<h.length;D++){var Z=h.words[D]|0;T+=Z*977,h.words[D]=T&67108863,T=Z*64+(T/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function Rt(){ot.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(Rt,ot);function At(){ot.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(At,ot);function gt(){ot.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(gt,ot),gt.prototype.imulK=function(h){for(var T=0,D=0;D<h.length;D++){var Z=(h.words[D]|0)*19+T,j=Z&67108863;Z>>>=26,h.words[D]=j,T=Z}return T!==0&&(h.words[h.length++]=T),h},i._prime=function(h){if(ft[h])return ft[h];var T;if(h==="k256")T=new bt;else if(h==="p224")T=new Rt;else if(h==="p192")T=new At;else if(h==="p25519")T=new gt;else throw new Error("Unknown prime "+h);return ft[h]=T,T};function wt(q){if(typeof q=="string"){var h=i._prime(q);this.m=h.p,this.prime=h}else n(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}wt.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},wt.prototype._verify2=function(h,T){n((h.negative|T.negative)===0,"red works only with positives"),n(h.red&&h.red===T.red,"red works only with red numbers")},wt.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(S(h,h.umod(this.m)._forceRed(this)),h)},wt.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},wt.prototype.add=function(h,T){this._verify2(h,T);var D=h.add(T);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},wt.prototype.iadd=function(h,T){this._verify2(h,T);var D=h.iadd(T);return D.cmp(this.m)>=0&&D.isub(this.m),D},wt.prototype.sub=function(h,T){this._verify2(h,T);var D=h.sub(T);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},wt.prototype.isub=function(h,T){this._verify2(h,T);var D=h.isub(T);return D.cmpn(0)<0&&D.iadd(this.m),D},wt.prototype.shl=function(h,T){return this._verify1(h),this.imod(h.ushln(T))},wt.prototype.imul=function(h,T){return this._verify2(h,T),this.imod(h.imul(T))},wt.prototype.mul=function(h,T){return this._verify2(h,T),this.imod(h.mul(T))},wt.prototype.isqr=function(h){return this.imul(h,h.clone())},wt.prototype.sqr=function(h){return this.mul(h,h)},wt.prototype.sqrt=function(h){if(h.isZero())return h.clone();var T=this.m.andln(3);if(n(T%2===1),T===3){var D=this.m.add(new i(1)).iushrn(2);return this.pow(h,D)}for(var Z=this.m.subn(1),j=0;!Z.isZero()&&Z.andln(1)===0;)j++,Z.iushrn(1);n(!Z.isZero());var X=new i(1).toRed(this),at=X.redNeg(),K=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new i(2*p*p).toRed(this);this.pow(p,K).cmp(at)!==0;)p.redIAdd(at);for(var E=this.pow(p,Z),z=this.pow(h,Z.addn(1).iushrn(1)),$=this.pow(h,Z),dt=j;$.cmp(X)!==0;){for(var _t=$,Ut=0;_t.cmp(X)!==0;Ut++)_t=_t.redSqr();n(Ut<dt);var Pt=this.pow(E,new i(1).iushln(dt-Ut-1));z=z.redMul(Pt),E=Pt.redSqr(),$=$.redMul(E),dt=Ut}return z},wt.prototype.invm=function(h){var T=h._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},wt.prototype.pow=function(h,T){if(T.isZero())return new i(1).toRed(this);if(T.cmpn(1)===0)return h.clone();var D=4,Z=new Array(1<<D);Z[0]=new i(1).toRed(this),Z[1]=h;for(var j=2;j<Z.length;j++)Z[j]=this.mul(Z[j-1],h);var X=Z[0],at=0,K=0,p=T.bitLength()%26;for(p===0&&(p=26),j=T.length-1;j>=0;j--){for(var E=T.words[j],z=p-1;z>=0;z--){var $=E>>z&1;if(X!==Z[0]&&(X=this.sqr(X)),$===0&&at===0){K=0;continue}at<<=1,at|=$,K++,!(K!==D&&(j!==0||z!==0))&&(X=this.mul(X,Z[at]),K=0,at=0)}p=26}return X},wt.prototype.convertTo=function(h){var T=h.umod(this.m);return T===h?T.clone():T},wt.prototype.convertFrom=function(h){var T=h.clone();return T.red=null,T},i.mont=function(h){return new kt(h)};function kt(q){wt.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}o(kt,wt),kt.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},kt.prototype.convertFrom=function(h){var T=this.imod(h.mul(this.rinv));return T.red=null,T},kt.prototype.imul=function(h,T){if(h.isZero()||T.isZero())return h.words[0]=0,h.length=1,h;var D=h.imul(T),Z=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=D.isub(Z).iushrn(this.shift),X=j;return j.cmp(this.m)>=0?X=j.isub(this.m):j.cmpn(0)<0&&(X=j.iadd(this.m)),X._forceRed(this)},kt.prototype.mul=function(h,T){if(h.isZero()||T.isZero())return new i(0)._forceRed(this);var D=h.mul(T),Z=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=D.isub(Z).iushrn(this.shift),X=j;return j.cmp(this.m)>=0?X=j.isub(this.m):j.cmpn(0)<0&&(X=j.iadd(this.m)),X._forceRed(this)},kt.prototype.invm=function(h){var T=this.imod(h._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(r,Ih)}(Do)),Do.exports}var kh=ou();const su=Vi(kh);var Uo={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var au;function Oh(){return au||(au=1,function(r,t){var e=Ps(),n=e.Buffer;function o(u,d){for(var l in u)d[l]=u[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=e:(o(e,t),t.Buffer=i);function i(u,d,l){return n(u,d,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(u,d,l){if(typeof u=="number")throw new TypeError("Argument must not be a number");return n(u,d,l)},i.alloc=function(u,d,l){if(typeof u!="number")throw new TypeError("Argument must be a number");var v=n(u);return d!==void 0?typeof l=="string"?v.fill(d,l):v.fill(d):v.fill(0),v},i.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return n(u)},i.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(u)}}(Uo,Uo.exports)),Uo.exports}var $s,cu;function Th(){if(cu)return $s;cu=1;var r=Oh().Buffer;function t(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),o=0;o<n.length;o++)n[o]=255;for(var i=0;i<e.length;i++){var u=e.charAt(i),d=u.charCodeAt(0);if(n[d]!==255)throw new TypeError(u+" is ambiguous");n[d]=i}var l=e.length,v=e.charAt(0),S=Math.log(l)/Math.log(256),O=Math.log(256)/Math.log(l);function C(M){if((Array.isArray(M)||M instanceof Uint8Array)&&(M=r.from(M)),!r.isBuffer(M))throw new TypeError("Expected Buffer");if(M.length===0)return"";for(var F=0,G=0,Q=0,et=M.length;Q!==et&&M[Q]===0;)Q++,F++;for(var ct=(et-Q)*O+1>>>0,ft=new Uint8Array(ct);Q!==et;){for(var ot=M[Q],bt=0,Rt=ct-1;(ot!==0||bt<G)&&Rt!==-1;Rt--,bt++)ot+=256*ft[Rt]>>>0,ft[Rt]=ot%l>>>0,ot=ot/l>>>0;if(ot!==0)throw new Error("Non-zero carry");G=bt,Q++}for(var At=ct-G;At!==ct&&ft[At]===0;)At++;for(var gt=v.repeat(F);At<ct;++At)gt+=e.charAt(ft[At]);return gt}function N(M){if(typeof M!="string")throw new TypeError("Expected String");if(M.length===0)return r.alloc(0);for(var F=0,G=0,Q=0;M[F]===v;)G++,F++;for(var et=(M.length-F)*S+1>>>0,ct=new Uint8Array(et);F<M.length;){var ft=M.charCodeAt(F);if(ft>255)return;var ot=n[ft];if(ot===255)return;for(var bt=0,Rt=et-1;(ot!==0||bt<Q)&&Rt!==-1;Rt--,bt++)ot+=l*ct[Rt]>>>0,ct[Rt]=ot%256>>>0,ot=ot/256>>>0;if(ot!==0)throw new Error("Non-zero carry");Q=bt,F++}for(var At=et-Q;At!==et&&ct[At]===0;)At++;var gt=r.allocUnsafe(G+(et-At));gt.fill(0,0,G);for(var wt=G;At!==et;)gt[wt++]=ct[At++];return gt}function B(M){var F=N(M);if(F)return F;throw new Error("Non-base"+l+" character")}return{encode:C,decodeUnsafe:N,decode:B}}return $s=t,$s}var Zs,uu;function lu(){if(uu)return Zs;uu=1;var r=Th(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Zs=r(t),Zs}var Nh=lu();const Sn=Vi(Nh),xh=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Lr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Cr=new Uint32Array(64);class Lh extends Dc{constructor(){super(64,32,8,!1),this.A=Lr[0]|0,this.B=Lr[1]|0,this.C=Lr[2]|0,this.D=Lr[3]|0,this.E=Lr[4]|0,this.F=Lr[5]|0,this.G=Lr[6]|0,this.H=Lr[7]|0}get(){const{A:t,B:e,C:n,D:o,E:i,F:u,G:d,H:l}=this;return[t,e,n,o,i,u,d,l]}set(t,e,n,o,i,u,d,l){this.A=t|0,this.B=e|0,this.C=n|0,this.D=o|0,this.E=i|0,this.F=u|0,this.G=d|0,this.H=l|0}process(t,e){for(let O=0;O<16;O++,e+=4)Cr[O]=t.getUint32(e,!1);for(let O=16;O<64;O++){const C=Cr[O-15],N=Cr[O-2],B=sr(C,7)^sr(C,18)^C>>>3,M=sr(N,17)^sr(N,19)^N>>>10;Cr[O]=M+Cr[O-7]+B+Cr[O-16]|0}let{A:n,B:o,C:i,D:u,E:d,F:l,G:v,H:S}=this;for(let O=0;O<64;O++){const C=sr(d,6)^sr(d,11)^sr(d,25),N=S+C+Nd(d,l,v)+xh[O]+Cr[O]|0,M=(sr(n,2)^sr(n,13)^sr(n,22))+xd(n,o,i)|0;S=v,v=l,l=d,d=u+N|0,u=i,i=o,o=n,n=N+M|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,u=u+this.D|0,d=d+this.E|0,l=l+this.F|0,v=v+this.G|0,S=S+this.H|0,this.set(n,o,i,u,d,l,v,S)}roundClean(){Cr.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xs=Fs(()=>new Lh);var Ke={};function _r(r,t,e){return t<=r&&r<=e}function Fo(r){if(r===void 0)return{};if(r===Object(r))return r;throw TypeError("Could not convert argument to dictionary")}function Ch(r){for(var t=String(r),e=t.length,n=0,o=[];n<e;){var i=t.charCodeAt(n);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(n===e-1)o.push(65533);else{var u=r.charCodeAt(n+1);if(56320<=u&&u<=57343){var d=i&1023,l=u&1023;o.push(65536+(d<<10)+l),n+=1}else o.push(65533)}n+=1}return o}function Bh(r){for(var t="",e=0;e<r.length;++e){var n=r[e];n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode((n>>10)+55296,(n&1023)+56320))}return t}var Ho=-1;function Js(r){this.tokens=[].slice.call(r)}Js.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Ho},prepend:function(r){if(Array.isArray(r))for(var t=r;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(r)},push:function(r){if(Array.isArray(r))for(var t=r;t.length;)this.tokens.push(t.shift());else this.tokens.push(r)}};var wi=-1;function Qs(r,t){if(r)throw TypeError("Decoder error");return t||65533}var Vo="utf-8";function Wo(r,t){if(!(this instanceof Wo))return new Wo(r,t);if(r=r!==void 0?String(r).toLowerCase():Vo,r!==Vo)throw new Error("Encoding not supported. Only utf-8 is supported");t=Fo(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Wo.prototype={decode:function(t,e){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),e=Fo(e),this._streaming||(this._decoder=new Ph({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!e.stream;for(var o=new Js(n),i=[],u;!o.endOfStream()&&(u=this._decoder.handler(o,o.read()),u!==wi);)u!==null&&(Array.isArray(u)?i.push.apply(i,u):i.push(u));if(!this._streaming){do{if(u=this._decoder.handler(o,o.read()),u===wi)break;u!==null&&(Array.isArray(u)?i.push.apply(i,u):i.push(u))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),Bh(i)}};function zo(r,t){if(!(this instanceof zo))return new zo(r,t);if(r=r!==void 0?String(r).toLowerCase():Vo,r!==Vo)throw new Error("Encoding not supported. Only utf-8 is supported");t=Fo(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}zo.prototype={encode:function(t,e){t=t?String(t):"",e=Fo(e),this._streaming||(this._encoder=new Mh(this._options)),this._streaming=!!e.stream;for(var n=[],o=new Js(Ch(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==wi);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==wi;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function Ph(r){var t=r.fatal,e=0,n=0,o=0,i=128,u=191;this.handler=function(d,l){if(l===Ho&&o!==0)return o=0,Qs(t);if(l===Ho)return wi;if(o===0){if(_r(l,0,127))return l;if(_r(l,194,223))o=1,e=l-192;else if(_r(l,224,239))l===224&&(i=160),l===237&&(u=159),o=2,e=l-224;else if(_r(l,240,244))l===240&&(i=144),l===244&&(u=143),o=3,e=l-240;else return Qs(t);return e=e<<6*o,null}if(!_r(l,i,u))return e=o=n=0,i=128,u=191,d.prepend(l),Qs(t);if(i=128,u=191,n+=1,e+=l-128<<6*(o-n),n!==o)return null;var v=e;return e=o=n=0,v}}function Mh(r){r.fatal,this.handler=function(t,e){if(e===Ho)return wi;if(_r(e,0,127))return e;var n,o;_r(e,128,2047)?(n=1,o=192):_r(e,2048,65535)?(n=2,o=224):_r(e,65536,1114111)&&(n=3,o=240);for(var i=[(e>>6*n)+o];n>0;){var u=e>>6*(n-1);i.push(128|u&63),n-=1}return i}}const Dh=Cs(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Wo,TextEncoder:zo},Symbol.toStringTag,{value:"Module"})));var fu;function Uh(){if(fu)return Ke;fu=1;var r=Ke&&Ke.__createBinding||(Object.create?function(At,gt,wt,kt){kt===void 0&&(kt=wt),Object.defineProperty(At,kt,{enumerable:!0,get:function(){return gt[wt]}})}:function(At,gt,wt,kt){kt===void 0&&(kt=wt),At[kt]=gt[wt]}),t=Ke&&Ke.__setModuleDefault||(Object.create?function(At,gt){Object.defineProperty(At,"default",{enumerable:!0,value:gt})}:function(At,gt){At.default=gt}),e=Ke&&Ke.__decorate||function(At,gt,wt,kt){var q=arguments.length,h=q<3?gt:kt===null?kt=Object.getOwnPropertyDescriptor(gt,wt):kt,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(At,gt,wt,kt);else for(var D=At.length-1;D>=0;D--)(T=At[D])&&(h=(q<3?T(h):q>3?T(gt,wt,h):T(gt,wt))||h);return q>3&&h&&Object.defineProperty(gt,wt,h),h},n=Ke&&Ke.__importStar||function(At){if(At&&At.__esModule)return At;var gt={};if(At!=null)for(var wt in At)wt!=="default"&&Object.hasOwnProperty.call(At,wt)&&r(gt,At,wt);return t(gt,At),gt},o=Ke&&Ke.__importDefault||function(At){return At&&At.__esModule?At:{default:At}};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.deserializeUnchecked=Ke.deserialize=Ke.serialize=Ke.BinaryReader=Ke.BinaryWriter=Ke.BorshError=Ke.baseDecode=Ke.baseEncode=void 0;const i=o(ou()),u=o(lu()),d=n(Dh),l=typeof TextDecoder!="function"?d.TextDecoder:TextDecoder,v=new l("utf-8",{fatal:!0});function S(At){return typeof At=="string"&&(At=Buffer.from(At,"utf8")),u.default.encode(Buffer.from(At))}Ke.baseEncode=S;function O(At){return Buffer.from(u.default.decode(At))}Ke.baseDecode=O;const C=1024;class N extends Error{constructor(gt){super(gt),this.fieldPath=[],this.originalMessage=gt}addToFieldPath(gt){this.fieldPath.splice(0,0,gt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ke.BorshError=N;class B{constructor(){this.buf=Buffer.alloc(C),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(C)]))}writeU8(gt){this.maybeResize(),this.buf.writeUInt8(gt,this.length),this.length+=1}writeU16(gt){this.maybeResize(),this.buf.writeUInt16LE(gt,this.length),this.length+=2}writeU32(gt){this.maybeResize(),this.buf.writeUInt32LE(gt,this.length),this.length+=4}writeU64(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",8)))}writeU128(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",16)))}writeU256(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",32)))}writeU512(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",64)))}writeBuffer(gt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),gt,Buffer.alloc(C)]),this.length+=gt.length}writeString(gt){this.maybeResize();const wt=Buffer.from(gt,"utf8");this.writeU32(wt.length),this.writeBuffer(wt)}writeFixedArray(gt){this.writeBuffer(Buffer.from(gt))}writeArray(gt,wt){this.maybeResize(),this.writeU32(gt.length);for(const kt of gt)this.maybeResize(),wt(kt)}toArray(){return this.buf.subarray(0,this.length)}}Ke.BinaryWriter=B;function M(At,gt,wt){const kt=wt.value;wt.value=function(...q){try{return kt.apply(this,q)}catch(h){if(h instanceof RangeError){const T=h.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(T)>=0)throw new N("Reached the end of buffer when deserializing")}throw h}}}class F{constructor(gt){this.buf=gt,this.offset=0}readU8(){const gt=this.buf.readUInt8(this.offset);return this.offset+=1,gt}readU16(){const gt=this.buf.readUInt16LE(this.offset);return this.offset+=2,gt}readU32(){const gt=this.buf.readUInt32LE(this.offset);return this.offset+=4,gt}readU64(){const gt=this.readBuffer(8);return new i.default(gt,"le")}readU128(){const gt=this.readBuffer(16);return new i.default(gt,"le")}readU256(){const gt=this.readBuffer(32);return new i.default(gt,"le")}readU512(){const gt=this.readBuffer(64);return new i.default(gt,"le")}readBuffer(gt){if(this.offset+gt>this.buf.length)throw new N(`Expected buffer length ${gt} isn't within bounds`);const wt=this.buf.slice(this.offset,this.offset+gt);return this.offset+=gt,wt}readString(){const gt=this.readU32(),wt=this.readBuffer(gt);try{return v.decode(wt)}catch(kt){throw new N(`Error decoding UTF-8 string: ${kt}`)}}readFixedArray(gt){return new Uint8Array(this.readBuffer(gt))}readArray(gt){const wt=this.readU32(),kt=Array();for(let q=0;q<wt;++q)kt.push(gt());return kt}}e([M],F.prototype,"readU8",null),e([M],F.prototype,"readU16",null),e([M],F.prototype,"readU32",null),e([M],F.prototype,"readU64",null),e([M],F.prototype,"readU128",null),e([M],F.prototype,"readU256",null),e([M],F.prototype,"readU512",null),e([M],F.prototype,"readString",null),e([M],F.prototype,"readFixedArray",null),e([M],F.prototype,"readArray",null),Ke.BinaryReader=F;function G(At){return At.charAt(0).toUpperCase()+At.slice(1)}function Q(At,gt,wt,kt,q){try{if(typeof kt=="string")q[`write${G(kt)}`](wt);else if(kt instanceof Array)if(typeof kt[0]=="number"){if(wt.length!==kt[0])throw new N(`Expecting byte array of length ${kt[0]}, but got ${wt.length} bytes`);q.writeFixedArray(wt)}else if(kt.length===2&&typeof kt[1]=="number"){if(wt.length!==kt[1])throw new N(`Expecting byte array of length ${kt[1]}, but got ${wt.length} bytes`);for(let h=0;h<kt[1];h++)Q(At,null,wt[h],kt[0],q)}else q.writeArray(wt,h=>{Q(At,gt,h,kt[0],q)});else if(kt.kind!==void 0)switch(kt.kind){case"option":{wt==null?q.writeU8(0):(q.writeU8(1),Q(At,gt,wt,kt.type,q));break}case"map":{q.writeU32(wt.size),wt.forEach((h,T)=>{Q(At,gt,T,kt.key,q),Q(At,gt,h,kt.value,q)});break}default:throw new N(`FieldType ${kt} unrecognized`)}else et(At,wt,q)}catch(h){throw h instanceof N&&h.addToFieldPath(gt),h}}function et(At,gt,wt){if(typeof gt.borshSerialize=="function"){gt.borshSerialize(wt);return}const kt=At.get(gt.constructor);if(!kt)throw new N(`Class ${gt.constructor.name} is missing in schema`);if(kt.kind==="struct")kt.fields.map(([q,h])=>{Q(At,q,gt[q],h,wt)});else if(kt.kind==="enum"){const q=gt[kt.field];for(let h=0;h<kt.values.length;++h){const[T,D]=kt.values[h];if(T===q){wt.writeU8(h),Q(At,T,gt[T],D,wt);break}}}else throw new N(`Unexpected schema kind: ${kt.kind} for ${gt.constructor.name}`)}function ct(At,gt,wt=B){const kt=new wt;return et(At,gt,kt),kt.toArray()}Ke.serialize=ct;function ft(At,gt,wt,kt){try{if(typeof wt=="string")return kt[`read${G(wt)}`]();if(wt instanceof Array){if(typeof wt[0]=="number")return kt.readFixedArray(wt[0]);if(typeof wt[1]=="number"){const q=[];for(let h=0;h<wt[1];h++)q.push(ft(At,null,wt[0],kt));return q}else return kt.readArray(()=>ft(At,gt,wt[0],kt))}if(wt.kind==="option")return kt.readU8()?ft(At,gt,wt.type,kt):void 0;if(wt.kind==="map"){let q=new Map;const h=kt.readU32();for(let T=0;T<h;T++){const D=ft(At,gt,wt.key,kt),Z=ft(At,gt,wt.value,kt);q.set(D,Z)}return q}return ot(At,wt,kt)}catch(q){throw q instanceof N&&q.addToFieldPath(gt),q}}function ot(At,gt,wt){if(typeof gt.borshDeserialize=="function")return gt.borshDeserialize(wt);const kt=At.get(gt);if(!kt)throw new N(`Class ${gt.name} is missing in schema`);if(kt.kind==="struct"){const q={};for(const[h,T]of At.get(gt).fields)q[h]=ft(At,h,T,wt);return new gt(q)}if(kt.kind==="enum"){const q=wt.readU8();if(q>=kt.values.length)throw new N(`Enum index: ${q} is out of range`);const[h,T]=kt.values[q],D=ft(At,h,T,wt);return new gt({[h]:D})}throw new N(`Unexpected schema kind: ${kt.kind} for ${gt.constructor.name}`)}function bt(At,gt,wt,kt=F){const q=new kt(wt),h=ot(At,gt,q);if(q.offset<wt.length)throw new N(`Unexpected ${wt.length-q.offset} bytes after deserialized data`);return h}Ke.deserialize=bt;function Rt(At,gt,wt,kt=F){const q=new kt(wt);return ot(At,gt,q)}return Ke.deserializeUnchecked=Rt,Ke}var ta=Uh(),It={},du;function Fh(){if(du)return It;du=1,Object.defineProperty(It,"__esModule",{value:!0}),It.s16=It.s8=It.nu64be=It.u48be=It.u40be=It.u32be=It.u24be=It.u16be=It.nu64=It.u48=It.u40=It.u32=It.u24=It.u16=It.u8=It.offset=It.greedy=It.Constant=It.UTF8=It.CString=It.Blob=It.Boolean=It.BitField=It.BitStructure=It.VariantLayout=It.Union=It.UnionLayoutDiscriminator=It.UnionDiscriminator=It.Structure=It.Sequence=It.DoubleBE=It.Double=It.FloatBE=It.Float=It.NearInt64BE=It.NearInt64=It.NearUInt64BE=It.NearUInt64=It.IntBE=It.Int=It.UIntBE=It.UInt=It.OffsetLayout=It.GreedyCount=It.ExternalLayout=It.bindConstructorLayout=It.nameWithProperty=It.Layout=It.uint8ArrayToBuffer=It.checkUint8Array=void 0,It.constant=It.utf8=It.cstr=It.blob=It.unionLayoutDiscriminator=It.union=It.seq=It.bits=It.struct=It.f64be=It.f64=It.f32be=It.f32=It.ns64be=It.s48be=It.s40be=It.s32be=It.s24be=It.s16be=It.ns64=It.s48=It.s40=It.s32=It.s24=void 0;const r=Ps();function t(p){if(!(p instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}It.checkUint8Array=t;function e(p){return t(p),r.Buffer.from(p.buffer,p.byteOffset,p.length)}It.uint8ArrayToBuffer=e;let n=class{constructor(E,z){if(!Number.isInteger(E))throw new TypeError("span must be an integer");this.span=E,this.property=z}makeDestinationObject(){return{}}getSpan(E,z){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(E){const z=Object.create(this.constructor.prototype);return Object.assign(z,this),z.property=E,z}fromArray(E){}};It.Layout=n;function o(p,E){return E.property?p+"["+E.property+"]":p}It.nameWithProperty=o;function i(p,E){if(typeof p!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(p,"layout_"))throw new Error("Class is already bound to a layout");if(!(E&&E instanceof n))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(E,"boundConstructor_"))throw new Error("layout is already bound to a constructor");p.layout_=E,E.boundConstructor_=p,E.makeDestinationObject=()=>new p,Object.defineProperty(p.prototype,"encode",{value(z,$){return E.encode(this,z,$)},writable:!0}),Object.defineProperty(p,"decode",{value(z,$){return E.decode(z,$)},writable:!0})}It.bindConstructorLayout=i;class u extends n{isCount(){throw new Error("ExternalLayout is abstract")}}It.ExternalLayout=u;class d extends u{constructor(E=1,z){if(!Number.isInteger(E)||0>=E)throw new TypeError("elementSpan must be a (positive) integer");super(-1,z),this.elementSpan=E}isCount(){return!0}decode(E,z=0){t(E);const $=E.length-z;return Math.floor($/this.elementSpan)}encode(E,z,$){return 0}}It.GreedyCount=d;class l extends u{constructor(E,z=0,$){if(!(E instanceof n))throw new TypeError("layout must be a Layout");if(!Number.isInteger(z))throw new TypeError("offset must be integer or undefined");super(E.span,$||E.property),this.layout=E,this.offset=z}isCount(){return this.layout instanceof v||this.layout instanceof S}decode(E,z=0){return this.layout.decode(E,z+this.offset)}encode(E,z,$=0){return this.layout.encode(E,z,$+this.offset)}}It.OffsetLayout=l;class v extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readUIntLE(z,this.span)}encode(E,z,$=0){return e(z).writeUIntLE(E,$,this.span),this.span}}It.UInt=v;class S extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readUIntBE(z,this.span)}encode(E,z,$=0){return e(z).writeUIntBE(E,$,this.span),this.span}}It.UIntBE=S;class O extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readIntLE(z,this.span)}encode(E,z,$=0){return e(z).writeIntLE(E,$,this.span),this.span}}It.Int=O;class C extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readIntBE(z,this.span)}encode(E,z,$=0){return e(z).writeIntBE(E,$,this.span),this.span}}It.IntBE=C;const N=Math.pow(2,32);function B(p){const E=Math.floor(p/N),z=p-E*N;return{hi32:E,lo32:z}}function M(p,E){return p*N+E}class F extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readUInt32LE(z),_t=$.readUInt32LE(z+4);return M(_t,dt)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeUInt32LE(dt.lo32,$),_t.writeUInt32LE(dt.hi32,$+4),8}}It.NearUInt64=F;class G extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readUInt32BE(z),_t=$.readUInt32BE(z+4);return M(dt,_t)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeUInt32BE(dt.hi32,$),_t.writeUInt32BE(dt.lo32,$+4),8}}It.NearUInt64BE=G;class Q extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readUInt32LE(z),_t=$.readInt32LE(z+4);return M(_t,dt)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeUInt32LE(dt.lo32,$),_t.writeInt32LE(dt.hi32,$+4),8}}It.NearInt64=Q;class et extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readInt32BE(z),_t=$.readUInt32BE(z+4);return M(dt,_t)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeInt32BE(dt.hi32,$),_t.writeUInt32BE(dt.lo32,$+4),8}}It.NearInt64BE=et;class ct extends n{constructor(E){super(4,E)}decode(E,z=0){return e(E).readFloatLE(z)}encode(E,z,$=0){return e(z).writeFloatLE(E,$),4}}It.Float=ct;class ft extends n{constructor(E){super(4,E)}decode(E,z=0){return e(E).readFloatBE(z)}encode(E,z,$=0){return e(z).writeFloatBE(E,$),4}}It.FloatBE=ft;class ot extends n{constructor(E){super(8,E)}decode(E,z=0){return e(E).readDoubleLE(z)}encode(E,z,$=0){return e(z).writeDoubleLE(E,$),8}}It.Double=ot;class bt extends n{constructor(E){super(8,E)}decode(E,z=0){return e(E).readDoubleBE(z)}encode(E,z,$=0){return e(z).writeDoubleBE(E,$),8}}It.DoubleBE=bt;class Rt extends n{constructor(E,z,$){if(!(E instanceof n))throw new TypeError("elementLayout must be a Layout");if(!(z instanceof u&&z.isCount()||Number.isInteger(z)&&0<=z))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let dt=-1;!(z instanceof u)&&0<E.span&&(dt=z*E.span),super(dt,$),this.elementLayout=E,this.count=z}getSpan(E,z=0){if(0<=this.span)return this.span;let $=0,dt=this.count;if(dt instanceof u&&(dt=dt.decode(E,z)),0<this.elementLayout.span)$=dt*this.elementLayout.span;else{let _t=0;for(;_t<dt;)$+=this.elementLayout.getSpan(E,z+$),++_t}return $}decode(E,z=0){const $=[];let dt=0,_t=this.count;for(_t instanceof u&&(_t=_t.decode(E,z));dt<_t;)$.push(this.elementLayout.decode(E,z)),z+=this.elementLayout.getSpan(E,z),dt+=1;return $}encode(E,z,$=0){const dt=this.elementLayout,_t=E.reduce((Ut,Pt)=>Ut+dt.encode(Pt,z,$+Ut),0);return this.count instanceof u&&this.count.encode(E.length,z,$),_t}}It.Sequence=Rt;class At extends n{constructor(E,z,$){if(!(Array.isArray(E)&&E.reduce((_t,Ut)=>_t&&Ut instanceof n,!0)))throw new TypeError("fields must be array of Layout instances");typeof z=="boolean"&&$===void 0&&($=z,z=void 0);for(const _t of E)if(0>_t.span&&_t.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let dt=-1;try{dt=E.reduce((_t,Ut)=>_t+Ut.getSpan(),0)}catch{}super(dt,z),this.fields=E,this.decodePrefixes=!!$}getSpan(E,z=0){if(0<=this.span)return this.span;let $=0;try{$=this.fields.reduce((dt,_t)=>{const Ut=_t.getSpan(E,z);return z+=Ut,dt+Ut},0)}catch{throw new RangeError("indeterminate span")}return $}decode(E,z=0){t(E);const $=this.makeDestinationObject();for(const dt of this.fields)if(dt.property!==void 0&&($[dt.property]=dt.decode(E,z)),z+=dt.getSpan(E,z),this.decodePrefixes&&E.length===z)break;return $}encode(E,z,$=0){const dt=$;let _t=0,Ut=0;for(const Pt of this.fields){let ve=Pt.span;if(Ut=0<ve?ve:0,Pt.property!==void 0){const pe=E[Pt.property];pe!==void 0&&(Ut=Pt.encode(pe,z,$),0>ve&&(ve=Pt.getSpan(z,$)))}_t=$,$+=ve}return _t+Ut-dt}fromArray(E){const z=this.makeDestinationObject();for(const $ of this.fields)$.property!==void 0&&0<E.length&&(z[$.property]=E.shift());return z}layoutFor(E){if(typeof E!="string")throw new TypeError("property must be string");for(const z of this.fields)if(z.property===E)return z}offsetOf(E){if(typeof E!="string")throw new TypeError("property must be string");let z=0;for(const $ of this.fields){if($.property===E)return z;0>$.span?z=-1:0<=z&&(z+=$.span)}}}It.Structure=At;class gt{constructor(E){this.property=E}decode(E,z){throw new Error("UnionDiscriminator is abstract")}encode(E,z,$){throw new Error("UnionDiscriminator is abstract")}}It.UnionDiscriminator=gt;class wt extends gt{constructor(E,z){if(!(E instanceof u&&E.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(z||E.property||"variant"),this.layout=E}decode(E,z){return this.layout.decode(E,z)}encode(E,z,$){return this.layout.encode(E,z,$)}}It.UnionLayoutDiscriminator=wt;class kt extends n{constructor(E,z,$){let dt;if(E instanceof v||E instanceof S)dt=new wt(new l(E));else if(E instanceof u&&E.isCount())dt=new wt(E);else if(E instanceof gt)dt=E;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(z===void 0&&(z=null),!(z===null||z instanceof n))throw new TypeError("defaultLayout must be null or a Layout");if(z!==null){if(0>z.span)throw new Error("defaultLayout must have constant span");z.property===void 0&&(z=z.replicate("content"))}let _t=-1;z&&(_t=z.span,0<=_t&&(E instanceof v||E instanceof S)&&(_t+=dt.layout.span)),super(_t,$),this.discriminator=dt,this.usesPrefixDiscriminator=E instanceof v||E instanceof S,this.defaultLayout=z,this.registry={};let Ut=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Pt){return Ut(Pt)},this.configGetSourceVariant=function(Pt){Ut=Pt.bind(this)}}getSpan(E,z=0){if(0<=this.span)return this.span;const $=this.getVariant(E,z);if(!$)throw new Error("unable to determine span for unrecognized variant");return $.getSpan(E,z)}defaultGetSourceVariant(E){if(Object.prototype.hasOwnProperty.call(E,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(E,this.defaultLayout.property))return;const z=this.registry[E[this.discriminator.property]];if(z&&(!z.layout||z.property&&Object.prototype.hasOwnProperty.call(E,z.property)))return z}else for(const z in this.registry){const $=this.registry[z];if($.property&&Object.prototype.hasOwnProperty.call(E,$.property))return $}throw new Error("unable to infer src variant")}decode(E,z=0){let $;const dt=this.discriminator,_t=dt.decode(E,z),Ut=this.registry[_t];if(Ut===void 0){const Pt=this.defaultLayout;let ve=0;this.usesPrefixDiscriminator&&(ve=dt.layout.span),$=this.makeDestinationObject(),$[dt.property]=_t,$[Pt.property]=Pt.decode(E,z+ve)}else $=Ut.decode(E,z);return $}encode(E,z,$=0){const dt=this.getSourceVariant(E);if(dt===void 0){const _t=this.discriminator,Ut=this.defaultLayout;let Pt=0;return this.usesPrefixDiscriminator&&(Pt=_t.layout.span),_t.encode(E[_t.property],z,$),Pt+Ut.encode(E[Ut.property],z,$+Pt)}return dt.encode(E,z,$)}addVariant(E,z,$){const dt=new q(this,E,z,$);return this.registry[E]=dt,dt}getVariant(E,z=0){let $;return E instanceof Uint8Array?$=this.discriminator.decode(E,z):$=E,this.registry[$]}}It.Union=kt;class q extends n{constructor(E,z,$,dt){if(!(E instanceof kt))throw new TypeError("union must be a Union");if(!Number.isInteger(z)||0>z)throw new TypeError("variant must be a (non-negative) integer");if(typeof $=="string"&&dt===void 0&&(dt=$,$=null),$){if(!($ instanceof n))throw new TypeError("layout must be a Layout");if(E.defaultLayout!==null&&0<=$.span&&$.span>E.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof dt!="string")throw new TypeError("variant must have a String property")}let _t=E.span;0>E.span&&(_t=$?$.span:0,0<=_t&&E.usesPrefixDiscriminator&&(_t+=E.discriminator.layout.span)),super(_t,dt),this.union=E,this.variant=z,this.layout=$||null}getSpan(E,z=0){if(0<=this.span)return this.span;let $=0;this.union.usesPrefixDiscriminator&&($=this.union.discriminator.layout.span);let dt=0;return this.layout&&(dt=this.layout.getSpan(E,z+$)),$+dt}decode(E,z=0){const $=this.makeDestinationObject();if(this!==this.union.getVariant(E,z))throw new Error("variant mismatch");let dt=0;return this.union.usesPrefixDiscriminator&&(dt=this.union.discriminator.layout.span),this.layout?$[this.property]=this.layout.decode(E,z+dt):this.property?$[this.property]=!0:this.union.usesPrefixDiscriminator&&($[this.union.discriminator.property]=this.variant),$}encode(E,z,$=0){let dt=0;if(this.union.usesPrefixDiscriminator&&(dt=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(E,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,z,$);let _t=dt;if(this.layout&&(this.layout.encode(E[this.property],z,$+dt),_t+=this.layout.getSpan(z,$+dt),0<=this.union.span&&_t>this.union.span))throw new Error("encoded variant overruns containing union");return _t}fromArray(E){if(this.layout)return this.layout.fromArray(E)}}It.VariantLayout=q;function h(p){return 0>p&&(p+=4294967296),p}class T extends n{constructor(E,z,$){if(!(E instanceof v||E instanceof S))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof z=="string"&&$===void 0&&($=z,z=!1),4<E.span)throw new RangeError("word cannot exceed 32 bits");super(E.span,$),this.word=E,this.msb=!!z,this.fields=[];let dt=0;this._packedSetValue=function(_t){return dt=h(_t),this},this._packedGetValue=function(){return dt}}decode(E,z=0){const $=this.makeDestinationObject(),dt=this.word.decode(E,z);this._packedSetValue(dt);for(const _t of this.fields)_t.property!==void 0&&($[_t.property]=_t.decode(E));return $}encode(E,z,$=0){const dt=this.word.decode(z,$);this._packedSetValue(dt);for(const _t of this.fields)if(_t.property!==void 0){const Ut=E[_t.property];Ut!==void 0&&_t.encode(Ut)}return this.word.encode(this._packedGetValue(),z,$)}addField(E,z){const $=new D(this,E,z);return this.fields.push($),$}addBoolean(E){const z=new Z(this,E);return this.fields.push(z),z}fieldFor(E){if(typeof E!="string")throw new TypeError("property must be string");for(const z of this.fields)if(z.property===E)return z}}It.BitStructure=T;class D{constructor(E,z,$){if(!(E instanceof T))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(z)||0>=z)throw new TypeError("bits must be positive integer");const dt=8*E.span,_t=E.fields.reduce((Ut,Pt)=>Ut+Pt.bits,0);if(z+_t>dt)throw new Error("bits too long for span remainder ("+(dt-_t)+" of "+dt+" remain)");this.container=E,this.bits=z,this.valueMask=(1<<z)-1,z===32&&(this.valueMask=4294967295),this.start=_t,this.container.msb&&(this.start=dt-_t-z),this.wordMask=h(this.valueMask<<this.start),this.property=$}decode(E,z){const $=this.container._packedGetValue();return h($&this.wordMask)>>>this.start}encode(E){if(typeof E!="number"||!Number.isInteger(E)||E!==h(E&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const z=this.container._packedGetValue(),$=h(E<<this.start);this.container._packedSetValue(h(z&~this.wordMask)|$)}}It.BitField=D;class Z extends D{constructor(E,z){super(E,1,z)}decode(E,z){return!!super.decode(E,z)}encode(E){typeof E=="boolean"&&(E=+E),super.encode(E)}}It.Boolean=Z;class j extends n{constructor(E,z){if(!(E instanceof u&&E.isCount()||Number.isInteger(E)&&0<=E))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let $=-1;E instanceof u||($=E),super($,z),this.length=E}getSpan(E,z){let $=this.span;return 0>$&&($=this.length.decode(E,z)),$}decode(E,z=0){let $=this.span;return 0>$&&($=this.length.decode(E,z)),e(E).slice(z,z+$)}encode(E,z,$){let dt=this.length;if(this.length instanceof u&&(dt=E.length),!(E instanceof Uint8Array&&dt===E.length))throw new TypeError(o("Blob.encode",this)+" requires (length "+dt+") Uint8Array as src");if($+dt>z.length)throw new RangeError("encoding overruns Uint8Array");const _t=e(E);return e(z).write(_t.toString("hex"),$,dt,"hex"),this.length instanceof u&&this.length.encode(dt,z,$),dt}}It.Blob=j;class X extends n{constructor(E){super(-1,E)}getSpan(E,z=0){t(E);let $=z;for(;$<E.length&&E[$]!==0;)$+=1;return 1+$-z}decode(E,z=0){const $=this.getSpan(E,z);return e(E).slice(z,z+$-1).toString("utf-8")}encode(E,z,$=0){typeof E!="string"&&(E=String(E));const dt=r.Buffer.from(E,"utf8"),_t=dt.length;if($+_t>z.length)throw new RangeError("encoding overruns Buffer");const Ut=e(z);return dt.copy(Ut,$),Ut[$+_t]=0,_t+1}}It.CString=X;class at extends n{constructor(E,z){if(typeof E=="string"&&z===void 0&&(z=E,E=void 0),E===void 0)E=-1;else if(!Number.isInteger(E))throw new TypeError("maxSpan must be an integer");super(-1,z),this.maxSpan=E}getSpan(E,z=0){return t(E),E.length-z}decode(E,z=0){const $=this.getSpan(E,z);if(0<=this.maxSpan&&this.maxSpan<$)throw new RangeError("text length exceeds maxSpan");return e(E).slice(z,z+$).toString("utf-8")}encode(E,z,$=0){typeof E!="string"&&(E=String(E));const dt=r.Buffer.from(E,"utf8"),_t=dt.length;if(0<=this.maxSpan&&this.maxSpan<_t)throw new RangeError("text length exceeds maxSpan");if($+_t>z.length)throw new RangeError("encoding overruns Buffer");return dt.copy(e(z),$),_t}}It.UTF8=at;class K extends n{constructor(E,z){super(0,z),this.value=E}decode(E,z){return this.value}encode(E,z,$){return 0}}return It.Constant=K,It.greedy=(p,E)=>new d(p,E),It.offset=(p,E,z)=>new l(p,E,z),It.u8=p=>new v(1,p),It.u16=p=>new v(2,p),It.u24=p=>new v(3,p),It.u32=p=>new v(4,p),It.u40=p=>new v(5,p),It.u48=p=>new v(6,p),It.nu64=p=>new F(p),It.u16be=p=>new S(2,p),It.u24be=p=>new S(3,p),It.u32be=p=>new S(4,p),It.u40be=p=>new S(5,p),It.u48be=p=>new S(6,p),It.nu64be=p=>new G(p),It.s8=p=>new O(1,p),It.s16=p=>new O(2,p),It.s24=p=>new O(3,p),It.s32=p=>new O(4,p),It.s40=p=>new O(5,p),It.s48=p=>new O(6,p),It.ns64=p=>new Q(p),It.s16be=p=>new C(2,p),It.s24be=p=>new C(3,p),It.s32be=p=>new C(4,p),It.s40be=p=>new C(5,p),It.s48be=p=>new C(6,p),It.ns64be=p=>new et(p),It.f32=p=>new ct(p),It.f32be=p=>new ft(p),It.f64=p=>new ot(p),It.f64be=p=>new bt(p),It.struct=(p,E,z)=>new At(p,E,z),It.bits=(p,E,z)=>new T(p,E,z),It.seq=(p,E,z)=>new Rt(p,E,z),It.union=(p,E,z)=>new kt(p,E,z),It.unionLayoutDiscriminator=(p,E)=>new wt(p,E),It.blob=(p,E)=>new j(p,E),It.cstr=p=>new X(p),It.utf8=(p,E)=>new at(p,E),It.constant=(p,E)=>new K(p,E),It}var st=Fh(),Hh=1,Vh=2,Wh=3,zh=4,Gh=5,Kh=6,jh=7,Yh=8,qh=9,$h=10,Zh=-32700,Xh=-32603,Jh=-32602,Qh=-32601,t1=-32600,e1=-32016,n1=-32015,r1=-32014,i1=-32013,o1=-32012,s1=-32011,a1=-32010,c1=-32009,u1=-32008,l1=-32007,f1=-32006,d1=-32005,h1=-32004,p1=-32003,g1=-32002,m1=-32001,v1=28e5,y1=2800001,w1=2800002,b1=2800003,_1=2800004,E1=2800005,R1=2800006,S1=2800007,A1=2800008,I1=2800009,k1=2800010,O1=323e4,T1=32300001,N1=3230002,x1=3230003,L1=3230004,C1=361e4,B1=3610001,P1=3610002,M1=3610003,D1=3610004,U1=3610005,F1=3610006,H1=3610007,V1=3611e3,W1=3704e3,z1=3704001,G1=3704002,K1=3704003,j1=3704004,Y1=4128e3,q1=4128001,$1=4128002,Z1=4615e3,X1=4615001,J1=4615002,Q1=4615003,tp=4615004,ep=4615005,np=4615006,rp=4615007,ip=4615008,op=4615009,sp=4615010,ap=4615011,cp=4615012,up=4615013,lp=4615014,fp=4615015,dp=4615016,hp=4615017,pp=4615018,gp=4615019,mp=4615020,vp=4615021,yp=4615022,wp=4615023,bp=4615024,_p=4615025,Ep=4615026,Rp=4615027,Sp=4615028,Ap=4615029,Ip=4615030,kp=4615031,Op=4615032,Tp=4615033,Np=4615034,xp=4615035,Lp=4615036,Cp=4615037,Bp=4615038,Pp=4615039,Mp=4615040,Dp=4615041,Up=4615042,Fp=4615043,Hp=4615044,Vp=4615045,Wp=4615046,zp=4615047,Gp=4615048,Kp=4615049,jp=4615050,Yp=4615051,qp=4615052,$p=4615053,Zp=4615054,Xp=5508e3,Jp=5508001,Qp=5508002,t2=5508003,e2=5508004,n2=5508005,r2=5508006,i2=5508007,o2=5508008,s2=5508009,a2=5508010,c2=5508011,u2=5663e3,l2=5663001,f2=5663002,d2=5663003,h2=5663004,p2=5663005,g2=5663006,m2=5663007,v2=5663008,y2=5663009,w2=5663010,b2=5663011,_2=5663012,E2=5663013,R2=5663014,S2=5663015,A2=5663016,I2=5663017,k2=5663018,O2=5663019,T2=705e4,N2=7050001,x2=7050002,L2=7050003,C2=7050004,B2=7050005,P2=7050006,M2=7050007,D2=7050008,U2=7050009,F2=7050010,H2=7050011,V2=7050012,W2=7050013,z2=7050014,G2=7050015,K2=7050016,j2=7050017,Y2=7050018,q2=7050019,$2=7050020,Z2=7050021,X2=7050022,J2=7050023,Q2=7050024,tg=7050025,eg=7050026,ng=7050027,rg=7050028,ig=7050029,og=7050030,sg=7050031,ag=7050032,cg=7050033,ug=7050034,lg=7050035,fg=7050036,hu=8078e3,pu=8078001,dg=8078002,hg=8078003,gu=8078004,mu=8078005,vu=8078006,pg=8078007,gg=8078008,mg=8078009,vg=8078010,yu=8078011,yg=8078012,wg=8078013,bg=8078014,_g=8078015,Eg=8078016,Rg=8078017,Sg=8078018,Ag=8078019,Ig=8078020,kg=8078021,Og=8078022,Tg=81e5,Ng=8100001,xg=8100002,Lg=8100003,Cg=819e4,Bg=8190001,Pg=8190002,Mg=8190003,Dg=8190004,Ug=99e5,Fg=9900001,Hg=9900002,Vg=9900003,Wg=9900004;function wu(r){return Array.isArray(r)?"%5B"+r.map(wu).join("%2C%20")+"%5D":typeof r=="bigint"?`${r}n`:encodeURIComponent(String(r!=null&&Object.getPrototypeOf(r)===null?{...r}:r))}function zg([r,t]){return`${r}=${wu(t)}`}function Gg(r){const t=Object.entries(r).map(zg).join("&");return btoa(t)}var Kg={[O1]:"Account not found at address: $address",[L1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[x1]:"Expected decoded account at address: $address",[N1]:"Failed to decode account data at address: $address",[T1]:"Accounts not found at addresses: $addresses",[I1]:"Unable to find a viable program address bump seed.",[w1]:"$putativeAddress is not a base58-encoded address.",[v1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[b1]:"The `CryptoKey` must be an `Ed25519` public key.",[A1]:"Invalid seeds; point must fall off the Ed25519 curve.",[_1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[R1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[S1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[E1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[k1]:"Program address cannot end with PDA marker.",[y1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[zh]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Hh]:"The network has progressed past the last block for which this transaction could have been committed.",[hu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Og]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Ig]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[mu]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[vu]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[gu]:"Encoder and decoder must either both be fixed-size or variable-size.",[gg]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[dg]:"Expected a fixed-size codec, got a variable-size one.",[wg]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[hg]:"Expected a variable-size codec, got a fixed-size one.",[Ag]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[pu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Sg]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[mg]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[vg]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[_g]:"Invalid literal union variant. Expected one of [$variants], got $value.",[pg]:"Expected [$codecDescription] to have $expected items, got $actual.",[yg]:"Invalid value $value for base $base with alphabet $alphabet.",[Eg]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[yu]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[bg]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[kg]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Rg]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[V1]:"No random values implementation could be found.",[op]:"instruction requires an uninitialized account",[wp]:"instruction tries to borrow reference for an account which is already borrowed",[bp]:"instruction left account with an outstanding borrowed reference",[vp]:"program other than the account's owner changed the size of the account data",[ep]:"account data too small for instruction",[yp]:"instruction expected an executable account",[Wp]:"An account does not have enough lamports to be rent-exempt",[Gp]:"Program arithmetic overflowed",[Vp]:"Failed to serialize or deserialize account data: $encodedData",[Zp]:"Builtin programs must consume compute units",[Op]:"Cross-program invocation call depth too deep",[Bp]:"Computational budget exceeded",[Ep]:"custom program error: #$code",[hp]:"instruction contains duplicate accounts",[_p]:"instruction modifications of multiply-passed account differ",[Ip]:"executable accounts must be rent exempt",[Sp]:"instruction changed executable accounts data",[Ap]:"instruction changed the balance of an executable account",[pp]:"instruction changed executable bit of an account",[lp]:"instruction modified data of an account it does not own",[up]:"instruction spent from the balance of an account it does not own",[X1]:"generic instruction error",[jp]:"Provided owner is not allowed",[Fp]:"Account is immutable",[Hp]:"Incorrect authority provided",[rp]:"incorrect program id for instruction",[np]:"insufficient funds for instruction",[tp]:"invalid account data for instruction",[zp]:"Invalid account owner",[J1]:"invalid program argument",[Rp]:"program returned invalid error code",[Q1]:"invalid instruction data",[Cp]:"Failed to reallocate account data",[Lp]:"Provided seeds do not result in a valid address",[Yp]:"Accounts data allocations exceeded the maximum allowed per transaction",[qp]:"Max accounts exceeded",[$p]:"Max instruction trace length exceeded",[xp]:"Length of the seed is too long for address generation",[Tp]:"An account required by the instruction is missing",[ip]:"missing required signature for instruction",[cp]:"instruction illegally modified the program id of an account",[mp]:"insufficient account keys for instruction",[Pp]:"Cross-program invocation with unauthorized signer or writable account",[Mp]:"Failed to create program execution environment",[Up]:"Program failed to compile",[Dp]:"Program failed to complete",[dp]:"instruction modified data of a read-only account",[fp]:"instruction changed the balance of a read-only account",[Np]:"Cross-program invocation reentrancy not allowed for this instruction",[gp]:"instruction modified rent epoch of an account",[ap]:"sum of account balances before and after instruction do not match",[sp]:"instruction requires an initialized account",[Z1]:"",[kp]:"Unsupported program id",[Kp]:"Unsupported sysvar",[Y1]:"The instruction does not have any accounts.",[q1]:"The instruction does not have any data.",[$1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Gh]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Vh]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Hg]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Wg]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Fg]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ug]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vg]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Xh]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Jh]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[t1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Qh]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Zh]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[o1]:"$__serverMessage",[m1]:"$__serverMessage",[h1]:"$__serverMessage",[r1]:"$__serverMessage",[a1]:"$__serverMessage",[c1]:"$__serverMessage",[e1]:"Minimum context slot has not been reached",[d1]:"Node is unhealthy; behind by $numSlotsBehind slots",[u1]:"No snapshot",[g1]:"Transaction simulation failed",[l1]:"$__serverMessage",[s1]:"Transaction history is not available from this node",[f1]:"$__serverMessage",[i1]:"Transaction signature length mismatch",[p1]:"Transaction signature verification failure",[n1]:"$__serverMessage",[W1]:"Key pair bytes must be of length 64, got $byteLength.",[z1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[G1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[j1]:"The provided private key does not match the provided public key.",[K1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Kh]:"Lamports value must be in the range [0, 2e64-1]",[jh]:"`$value` cannot be parsed as a `BigInt`",[$h]:"$message",[Yh]:"`$value` cannot be parsed as a `Number`",[Wh]:"No nonce account could be found at address `$nonceAccountAddress`",[Cg]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Pg]:"WebSocket was closed before payload could be added to the send buffer",[Mg]:"WebSocket connection closed",[Dg]:"WebSocket failed to connect",[Bg]:"Failed to obtain a subscription id from the server",[Lg]:"Could not find an API plan for RPC method: `$method`",[Tg]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[xg]:"HTTP error ($statusCode): $message",[Ng]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Xp]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Jp]:"The provided value does not implement the `KeyPairSigner` interface",[t2]:"The provided value does not implement the `MessageModifyingSigner` interface",[e2]:"The provided value does not implement the `MessagePartialSigner` interface",[Qp]:"The provided value does not implement any of the `MessageSigner` interfaces",[r2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[i2]:"The provided value does not implement the `TransactionPartialSigner` interface",[o2]:"The provided value does not implement the `TransactionSendingSigner` interface",[n2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[s2]:"More than one `TransactionSendingSigner` was identified.",[a2]:"No `TransactionSendingSigner` was identified. Please provide a valid `ITransactionWithSingleSendingSigner` transaction.",[c2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[H1]:"Cannot export a non-extractable key.",[B1]:"No digest implementation could be found.",[C1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[P1]:`This runtime does not support the generation of Ed25519 key pairs.
1
+ (function(me,$t){typeof exports=="object"&&typeof module<"u"?$t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],$t):(me=typeof globalThis<"u"?globalThis:me||self,$t(me.VueTypeWriter={},me.Vue))})(this,function(me,$t){"use strict";var Sc=(r=>(r.USER="user",r.BUSINESS="business",r))(Sc||{}),Ac=(r=>(r.ASAP="asap",r.SAME_DAY="same_day",r.STANDARD="standard",r.CARD="card",r.IBAN="iban",r.PIX="pix",r.EFT="eft",r.VENMO="venmo",r.PAYPAL="paypal",r.WIRE="wire",r.INTERAC="interac",r))(Ac||{}),Ic=(r=>(r.Credits="Credits",r.USDC="USDC",r.Bank="Bank",r))(Ic||{}),kc=(r=>(r.Rounded="rounded",r.Sharp="sharp",r.Pill="pill",r))(kc||{}),Oc=(r=>(r.NoPreference="NoPreference",r.Frictionless="Frictionless",r.Challenge="Challenge",r))(Oc||{}),Tc=(r=>(r.card="card",r.ach="ach",r.fasterPayments="fasterPayments",r.sepa="sepa",r.pix="pix",r.usdc="usdc",r.googlePay="googlePay",r.applePay="applePay",r.credits="credits",r.crypto="crypto",r.instantBankTransfer="instantBankTransfer",r.wire="wire",r))(Tc||{});const bd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",instantBankTransfer:"Instant Bank Transfer",wire:"Wire Transfer"};var di=(r=>(r.VISA="VISA",r.MASTERCARD="MSTR",r.AMEX="AMEX",r.DISCOVER="DISC",r))(di||{});function Vi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Cs(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var t=r.default;if(typeof t=="function"){var e=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}),e}var Bs={},Wi={},Nc;function _d(){if(Nc)return Wi;Nc=1,Wi.byteLength=d,Wi.toByteArray=v,Wi.fromByteArray=C;for(var r=[],t=[],e=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;t[45]=62,t[95]=63;function u(N){var B=N.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=N.indexOf("=");M===-1&&(M=B);var F=M===B?0:4-M%4;return[M,F]}function d(N){var B=u(N),M=B[0],F=B[1];return(M+F)*3/4-F}function l(N,B,M){return(B+M)*3/4-M}function v(N){var B,M=u(N),F=M[0],G=M[1],Q=new e(l(N,F,G)),et=0,ct=G>0?F-4:F,ft;for(ft=0;ft<ct;ft+=4)B=t[N.charCodeAt(ft)]<<18|t[N.charCodeAt(ft+1)]<<12|t[N.charCodeAt(ft+2)]<<6|t[N.charCodeAt(ft+3)],Q[et++]=B>>16&255,Q[et++]=B>>8&255,Q[et++]=B&255;return G===2&&(B=t[N.charCodeAt(ft)]<<2|t[N.charCodeAt(ft+1)]>>4,Q[et++]=B&255),G===1&&(B=t[N.charCodeAt(ft)]<<10|t[N.charCodeAt(ft+1)]<<4|t[N.charCodeAt(ft+2)]>>2,Q[et++]=B>>8&255,Q[et++]=B&255),Q}function S(N){return r[N>>18&63]+r[N>>12&63]+r[N>>6&63]+r[N&63]}function O(N,B,M){for(var F,G=[],Q=B;Q<M;Q+=3)F=(N[Q]<<16&16711680)+(N[Q+1]<<8&65280)+(N[Q+2]&255),G.push(S(F));return G.join("")}function C(N){for(var B,M=N.length,F=M%3,G=[],Q=16383,et=0,ct=M-F;et<ct;et+=Q)G.push(O(N,et,et+Q>ct?ct:et+Q));return F===1?(B=N[M-1],G.push(r[B>>2]+r[B<<4&63]+"==")):F===2&&(B=(N[M-2]<<8)+N[M-1],G.push(r[B>>10]+r[B>>4&63]+r[B<<2&63]+"=")),G.join("")}return Wi}var xo={};var xc;function Ed(){return xc||(xc=1,xo.read=function(r,t,e,n,o){var i,u,d=o*8-n-1,l=(1<<d)-1,v=l>>1,S=-7,O=e?o-1:0,C=e?-1:1,N=r[t+O];for(O+=C,i=N&(1<<-S)-1,N>>=-S,S+=d;S>0;i=i*256+r[t+O],O+=C,S-=8);for(u=i&(1<<-S)-1,i>>=-S,S+=n;S>0;u=u*256+r[t+O],O+=C,S-=8);if(i===0)i=1-v;else{if(i===l)return u?NaN:(N?-1:1)*(1/0);u=u+Math.pow(2,n),i=i-v}return(N?-1:1)*u*Math.pow(2,i-n)},xo.write=function(r,t,e,n,o,i){var u,d,l,v=i*8-o-1,S=(1<<v)-1,O=S>>1,C=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:i-1,B=n?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,u=S):(u=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-u))<1&&(u--,l*=2),u+O>=1?t+=C/l:t+=C*Math.pow(2,1-O),t*l>=2&&(u++,l/=2),u+O>=S?(d=0,u=S):u+O>=1?(d=(t*l-1)*Math.pow(2,o),u=u+O):(d=t*Math.pow(2,O-1)*Math.pow(2,o),u=0));o>=8;r[e+N]=d&255,N+=B,d/=256,o-=8);for(u=u<<o|d,v+=o;v>0;r[e+N]=u&255,N+=B,u/=256,v-=8);r[e+N-B]|=M*128}),xo}var Lc;function Ps(){return Lc||(Lc=1,function(r){const t=_d(),e=Ed(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=d,r.SlowBuffer=Q,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,d.TYPED_ARRAY_SUPPORT=i(),!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const U=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(U,R),U.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function u(U){if(U>o)throw new RangeError('The value "'+U+'" is invalid for option "size"');const R=new Uint8Array(U);return Object.setPrototypeOf(R,d.prototype),R}function d(U,R,k){if(typeof U=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(U)}return l(U,R,k)}d.poolSize=8192;function l(U,R,k){if(typeof U=="string")return C(U,R);if(ArrayBuffer.isView(U))return B(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(mt(U,ArrayBuffer)||U&&mt(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mt(U,SharedArrayBuffer)||U&&mt(U.buffer,SharedArrayBuffer)))return M(U,R,k);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=U.valueOf&&U.valueOf();if(A!=null&&A!==U)return d.from(A,R,k);const V=F(U);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return d.from(U[Symbol.toPrimitive]("string"),R,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}d.from=function(U,R,k){return l(U,R,k)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array);function v(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function S(U,R,k){return v(U),U<=0?u(U):R!==void 0?typeof k=="string"?u(U).fill(R,k):u(U).fill(R):u(U)}d.alloc=function(U,R,k){return S(U,R,k)};function O(U){return v(U),u(U<0?0:G(U)|0)}d.allocUnsafe=function(U){return O(U)},d.allocUnsafeSlow=function(U){return O(U)};function C(U,R){if((typeof R!="string"||R==="")&&(R="utf8"),!d.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const k=et(U,R)|0;let A=u(k);const V=A.write(U,R);return V!==k&&(A=A.slice(0,V)),A}function N(U){const R=U.length<0?0:G(U.length)|0,k=u(R);for(let A=0;A<R;A+=1)k[A]=U[A]&255;return k}function B(U){if(mt(U,Uint8Array)){const R=new Uint8Array(U);return M(R.buffer,R.byteOffset,R.byteLength)}return N(U)}function M(U,R,k){if(R<0||U.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<R+(k||0))throw new RangeError('"length" is outside of buffer bounds');let A;return R===void 0&&k===void 0?A=new Uint8Array(U):k===void 0?A=new Uint8Array(U,R):A=new Uint8Array(U,R,k),Object.setPrototypeOf(A,d.prototype),A}function F(U){if(d.isBuffer(U)){const R=G(U.length)|0,k=u(R);return k.length===0||U.copy(k,0,0,R),k}if(U.length!==void 0)return typeof U.length!="number"||vt(U.length)?u(0):N(U);if(U.type==="Buffer"&&Array.isArray(U.data))return N(U.data)}function G(U){if(U>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return U|0}function Q(U){return+U!=U&&(U=0),d.alloc(+U)}d.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==d.prototype},d.compare=function(R,k){if(mt(R,Uint8Array)&&(R=d.from(R,R.offset,R.byteLength)),mt(k,Uint8Array)&&(k=d.from(k,k.offset,k.byteLength)),!d.isBuffer(R)||!d.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===k)return 0;let A=R.length,V=k.length;for(let W=0,it=Math.min(A,V);W<it;++W)if(R[W]!==k[W]){A=R[W],V=k[W];break}return A<V?-1:V<A?1:0},d.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(R,k){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return d.alloc(0);let A;if(k===void 0)for(k=0,A=0;A<R.length;++A)k+=R[A].length;const V=d.allocUnsafe(k);let W=0;for(A=0;A<R.length;++A){let it=R[A];if(mt(it,Uint8Array))W+it.length>V.length?(d.isBuffer(it)||(it=d.from(it)),it.copy(V,W)):Uint8Array.prototype.set.call(V,it,W);else if(d.isBuffer(it))it.copy(V,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=it.length}return V};function et(U,R){if(d.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||mt(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const k=U.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&k===0)return 0;let V=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return xe(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return H(U).length;default:if(V)return A?-1:xe(U).length;R=(""+R).toLowerCase(),V=!0}}d.byteLength=et;function ct(U,R,k){let A=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,R>>>=0,k<=R))return"";for(U||(U="utf8");;)switch(U){case"hex":return X(this,R,k);case"utf8":case"utf-8":return h(this,R,k);case"ascii":return Z(this,R,k);case"latin1":case"binary":return j(this,R,k);case"base64":return q(this,R,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,R,k);default:if(A)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),A=!0}}d.prototype._isBuffer=!0;function ft(U,R,k){const A=U[R];U[R]=U[k],U[k]=A}d.prototype.swap16=function(){const R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<R;k+=2)ft(this,k,k+1);return this},d.prototype.swap32=function(){const R=this.length;if(R%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<R;k+=4)ft(this,k,k+3),ft(this,k+1,k+2);return this},d.prototype.swap64=function(){const R=this.length;if(R%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<R;k+=8)ft(this,k,k+7),ft(this,k+1,k+6),ft(this,k+2,k+5),ft(this,k+3,k+4);return this},d.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?h(this,0,R):ct.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(R){if(!d.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:d.compare(this,R)===0},d.prototype.inspect=function(){let R="";const k=r.INSPECT_MAX_BYTES;return R=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(R+=" ... "),"<Buffer "+R+">"},n&&(d.prototype[n]=d.prototype.inspect),d.prototype.compare=function(R,k,A,V,W){if(mt(R,Uint8Array)&&(R=d.from(R,R.offset,R.byteLength)),!d.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(k===void 0&&(k=0),A===void 0&&(A=R?R.length:0),V===void 0&&(V=0),W===void 0&&(W=this.length),k<0||A>R.length||V<0||W>this.length)throw new RangeError("out of range index");if(V>=W&&k>=A)return 0;if(V>=W)return-1;if(k>=A)return 1;if(k>>>=0,A>>>=0,V>>>=0,W>>>=0,this===R)return 0;let it=W-V,Lt=A-k;const Ct=Math.min(it,Lt),Mt=this.slice(V,W),Pt=R.slice(k,A);for(let rt=0;rt<Ct;++rt)if(Mt[rt]!==Pt[rt]){it=Mt[rt],Lt=Pt[rt];break}return it<Lt?-1:Lt<it?1:0};function ot(U,R,k,A,V){if(U.length===0)return-1;if(typeof k=="string"?(A=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,vt(k)&&(k=V?0:U.length-1),k<0&&(k=U.length+k),k>=U.length){if(V)return-1;k=U.length-1}else if(k<0)if(V)k=0;else return-1;if(typeof R=="string"&&(R=d.from(R,A)),d.isBuffer(R))return R.length===0?-1:bt(U,R,k,A,V);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(U,R,k):Uint8Array.prototype.lastIndexOf.call(U,R,k):bt(U,[R],k,A,V);throw new TypeError("val must be string, number or Buffer")}function bt(U,R,k,A,V){let W=1,it=U.length,Lt=R.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(U.length<2||R.length<2)return-1;W=2,it/=2,Lt/=2,k/=2}function Ct(Pt,rt){return W===1?Pt[rt]:Pt.readUInt16BE(rt*W)}let Mt;if(V){let Pt=-1;for(Mt=k;Mt<it;Mt++)if(Ct(U,Mt)===Ct(R,Pt===-1?0:Mt-Pt)){if(Pt===-1&&(Pt=Mt),Mt-Pt+1===Lt)return Pt*W}else Pt!==-1&&(Mt-=Mt-Pt),Pt=-1}else for(k+Lt>it&&(k=it-Lt),Mt=k;Mt>=0;Mt--){let Pt=!0;for(let rt=0;rt<Lt;rt++)if(Ct(U,Mt+rt)!==Ct(R,rt)){Pt=!1;break}if(Pt)return Mt}return-1}d.prototype.includes=function(R,k,A){return this.indexOf(R,k,A)!==-1},d.prototype.indexOf=function(R,k,A){return ot(this,R,k,A,!0)},d.prototype.lastIndexOf=function(R,k,A){return ot(this,R,k,A,!1)};function Rt(U,R,k,A){k=Number(k)||0;const V=U.length-k;A?(A=Number(A),A>V&&(A=V)):A=V;const W=R.length;A>W/2&&(A=W/2);let it;for(it=0;it<A;++it){const Lt=parseInt(R.substr(it*2,2),16);if(vt(Lt))return it;U[k+it]=Lt}return it}function At(U,R,k,A){return lt(xe(R,U.length-k),U,k,A)}function gt(U,R,k,A){return lt(y(R),U,k,A)}function wt(U,R,k,A){return lt(H(R),U,k,A)}function kt(U,R,k,A){return lt(P(R,U.length-k),U,k,A)}d.prototype.write=function(R,k,A,V){if(k===void 0)V="utf8",A=this.length,k=0;else if(A===void 0&&typeof k=="string")V=k,A=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite(A)?(A=A>>>0,V===void 0&&(V="utf8")):(V=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const W=this.length-k;if((A===void 0||A>W)&&(A=W),R.length>0&&(A<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let it=!1;for(;;)switch(V){case"hex":return Rt(this,R,k,A);case"utf8":case"utf-8":return At(this,R,k,A);case"ascii":case"latin1":case"binary":return gt(this,R,k,A);case"base64":return wt(this,R,k,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,R,k,A);default:if(it)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),it=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(U,R,k){return R===0&&k===U.length?t.fromByteArray(U):t.fromByteArray(U.slice(R,k))}function h(U,R,k){k=Math.min(U.length,k);const A=[];let V=R;for(;V<k;){const W=U[V];let it=null,Lt=W>239?4:W>223?3:W>191?2:1;if(V+Lt<=k){let Ct,Mt,Pt,rt;switch(Lt){case 1:W<128&&(it=W);break;case 2:Ct=U[V+1],(Ct&192)===128&&(rt=(W&31)<<6|Ct&63,rt>127&&(it=rt));break;case 3:Ct=U[V+1],Mt=U[V+2],(Ct&192)===128&&(Mt&192)===128&&(rt=(W&15)<<12|(Ct&63)<<6|Mt&63,rt>2047&&(rt<55296||rt>57343)&&(it=rt));break;case 4:Ct=U[V+1],Mt=U[V+2],Pt=U[V+3],(Ct&192)===128&&(Mt&192)===128&&(Pt&192)===128&&(rt=(W&15)<<18|(Ct&63)<<12|(Mt&63)<<6|Pt&63,rt>65535&&rt<1114112&&(it=rt))}}it===null?(it=65533,Lt=1):it>65535&&(it-=65536,A.push(it>>>10&1023|55296),it=56320|it&1023),A.push(it),V+=Lt}return D(A)}const T=4096;function D(U){const R=U.length;if(R<=T)return String.fromCharCode.apply(String,U);let k="",A=0;for(;A<R;)k+=String.fromCharCode.apply(String,U.slice(A,A+=T));return k}function Z(U,R,k){let A="";k=Math.min(U.length,k);for(let V=R;V<k;++V)A+=String.fromCharCode(U[V]&127);return A}function j(U,R,k){let A="";k=Math.min(U.length,k);for(let V=R;V<k;++V)A+=String.fromCharCode(U[V]);return A}function X(U,R,k){const A=U.length;(!R||R<0)&&(R=0),(!k||k<0||k>A)&&(k=A);let V="";for(let W=R;W<k;++W)V+=xt[U[W]];return V}function at(U,R,k){const A=U.slice(R,k);let V="";for(let W=0;W<A.length-1;W+=2)V+=String.fromCharCode(A[W]+A[W+1]*256);return V}d.prototype.slice=function(R,k){const A=this.length;R=~~R,k=k===void 0?A:~~k,R<0?(R+=A,R<0&&(R=0)):R>A&&(R=A),k<0?(k+=A,k<0&&(k=0)):k>A&&(k=A),k<R&&(k=R);const V=this.subarray(R,k);return Object.setPrototypeOf(V,d.prototype),V};function K(U,R,k){if(U%1!==0||U<0)throw new RangeError("offset is not uint");if(U+R>k)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=this[R],W=1,it=0;for(;++it<k&&(W*=256);)V+=this[R+it]*W;return V},d.prototype.readUintBE=d.prototype.readUIntBE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=this[R+--k],W=1;for(;k>0&&(W*=256);)V+=this[R+--k]*W;return V},d.prototype.readUint8=d.prototype.readUInt8=function(R,k){return R=R>>>0,k||K(R,1,this.length),this[R]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(R,k){return R=R>>>0,k||K(R,2,this.length),this[R]|this[R+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(R,k){return R=R>>>0,k||K(R,2,this.length),this[R]<<8|this[R+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(R,k){return R=R>>>0,k||K(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(R,k){return R=R>>>0,k||K(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},d.prototype.readBigUInt64LE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=k+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,W=this[++R]+this[++R]*2**8+this[++R]*2**16+A*2**24;return BigInt(V)+(BigInt(W)<<BigInt(32))}),d.prototype.readBigUInt64BE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=k*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],W=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A;return(BigInt(V)<<BigInt(32))+BigInt(W)}),d.prototype.readIntLE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=this[R],W=1,it=0;for(;++it<k&&(W*=256);)V+=this[R+it]*W;return W*=128,V>=W&&(V-=Math.pow(2,8*k)),V},d.prototype.readIntBE=function(R,k,A){R=R>>>0,k=k>>>0,A||K(R,k,this.length);let V=k,W=1,it=this[R+--V];for(;V>0&&(W*=256);)it+=this[R+--V]*W;return W*=128,it>=W&&(it-=Math.pow(2,8*k)),it},d.prototype.readInt8=function(R,k){return R=R>>>0,k||K(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},d.prototype.readInt16LE=function(R,k){R=R>>>0,k||K(R,2,this.length);const A=this[R]|this[R+1]<<8;return A&32768?A|4294901760:A},d.prototype.readInt16BE=function(R,k){R=R>>>0,k||K(R,2,this.length);const A=this[R+1]|this[R]<<8;return A&32768?A|4294901760:A},d.prototype.readInt32LE=function(R,k){return R=R>>>0,k||K(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},d.prototype.readInt32BE=function(R,k){return R=R>>>0,k||K(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},d.prototype.readBigInt64LE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=this[R+4]+this[R+5]*2**8+this[R+6]*2**16+(A<<24);return(BigInt(V)<<BigInt(32))+BigInt(k+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),d.prototype.readBigInt64BE=Gt(function(R){R=R>>>0,_e(R,"offset");const k=this[R],A=this[R+7];(k===void 0||A===void 0)&&we(R,this.length-8);const V=(k<<24)+this[++R]*2**16+this[++R]*2**8+this[++R];return(BigInt(V)<<BigInt(32))+BigInt(this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A)}),d.prototype.readFloatLE=function(R,k){return R=R>>>0,k||K(R,4,this.length),e.read(this,R,!0,23,4)},d.prototype.readFloatBE=function(R,k){return R=R>>>0,k||K(R,4,this.length),e.read(this,R,!1,23,4)},d.prototype.readDoubleLE=function(R,k){return R=R>>>0,k||K(R,8,this.length),e.read(this,R,!0,52,8)},d.prototype.readDoubleBE=function(R,k){return R=R>>>0,k||K(R,8,this.length),e.read(this,R,!1,52,8)};function p(U,R,k,A,V,W){if(!d.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>V||R<W)throw new RangeError('"value" argument is out of bounds');if(k+A>U.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(R,k,A,V){if(R=+R,k=k>>>0,A=A>>>0,!V){const Lt=Math.pow(2,8*A)-1;p(this,R,k,A,Lt,0)}let W=1,it=0;for(this[k]=R&255;++it<A&&(W*=256);)this[k+it]=R/W&255;return k+A},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(R,k,A,V){if(R=+R,k=k>>>0,A=A>>>0,!V){const Lt=Math.pow(2,8*A)-1;p(this,R,k,A,Lt,0)}let W=A-1,it=1;for(this[k+W]=R&255;--W>=0&&(it*=256);)this[k+W]=R/it&255;return k+A},d.prototype.writeUint8=d.prototype.writeUInt8=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,1,255,0),this[k]=R&255,k+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,65535,0),this[k]=R&255,this[k+1]=R>>>8,k+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,65535,0),this[k]=R>>>8,this[k+1]=R&255,k+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,4294967295,0),this[k+3]=R>>>24,this[k+2]=R>>>16,this[k+1]=R>>>8,this[k]=R&255,k+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,4294967295,0),this[k]=R>>>24,this[k+1]=R>>>16,this[k+2]=R>>>8,this[k+3]=R&255,k+4};function E(U,R,k,A,V){le(R,A,V,U,k,7);let W=Number(R&BigInt(4294967295));U[k++]=W,W=W>>8,U[k++]=W,W=W>>8,U[k++]=W,W=W>>8,U[k++]=W;let it=Number(R>>BigInt(32)&BigInt(4294967295));return U[k++]=it,it=it>>8,U[k++]=it,it=it>>8,U[k++]=it,it=it>>8,U[k++]=it,k}function z(U,R,k,A,V){le(R,A,V,U,k,7);let W=Number(R&BigInt(4294967295));U[k+7]=W,W=W>>8,U[k+6]=W,W=W>>8,U[k+5]=W,W=W>>8,U[k+4]=W;let it=Number(R>>BigInt(32)&BigInt(4294967295));return U[k+3]=it,it=it>>8,U[k+2]=it,it=it>>8,U[k+1]=it,it=it>>8,U[k]=it,k+8}d.prototype.writeBigUInt64LE=Gt(function(R,k=0){return E(this,R,k,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeBigUInt64BE=Gt(function(R,k=0){return z(this,R,k,BigInt(0),BigInt("0xffffffffffffffff"))}),d.prototype.writeIntLE=function(R,k,A,V){if(R=+R,k=k>>>0,!V){const Ct=Math.pow(2,8*A-1);p(this,R,k,A,Ct-1,-Ct)}let W=0,it=1,Lt=0;for(this[k]=R&255;++W<A&&(it*=256);)R<0&&Lt===0&&this[k+W-1]!==0&&(Lt=1),this[k+W]=(R/it>>0)-Lt&255;return k+A},d.prototype.writeIntBE=function(R,k,A,V){if(R=+R,k=k>>>0,!V){const Ct=Math.pow(2,8*A-1);p(this,R,k,A,Ct-1,-Ct)}let W=A-1,it=1,Lt=0;for(this[k+W]=R&255;--W>=0&&(it*=256);)R<0&&Lt===0&&this[k+W+1]!==0&&(Lt=1),this[k+W]=(R/it>>0)-Lt&255;return k+A},d.prototype.writeInt8=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,1,127,-128),R<0&&(R=255+R+1),this[k]=R&255,k+1},d.prototype.writeInt16LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,32767,-32768),this[k]=R&255,this[k+1]=R>>>8,k+2},d.prototype.writeInt16BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,2,32767,-32768),this[k]=R>>>8,this[k+1]=R&255,k+2},d.prototype.writeInt32LE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,2147483647,-2147483648),this[k]=R&255,this[k+1]=R>>>8,this[k+2]=R>>>16,this[k+3]=R>>>24,k+4},d.prototype.writeInt32BE=function(R,k,A){return R=+R,k=k>>>0,A||p(this,R,k,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[k]=R>>>24,this[k+1]=R>>>16,this[k+2]=R>>>8,this[k+3]=R&255,k+4},d.prototype.writeBigInt64LE=Gt(function(R,k=0){return E(this,R,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),d.prototype.writeBigInt64BE=Gt(function(R,k=0){return z(this,R,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $(U,R,k,A,V,W){if(k+A>U.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function dt(U,R,k,A,V){return R=+R,k=k>>>0,V||$(U,R,k,4),e.write(U,R,k,A,23,4),k+4}d.prototype.writeFloatLE=function(R,k,A){return dt(this,R,k,!0,A)},d.prototype.writeFloatBE=function(R,k,A){return dt(this,R,k,!1,A)};function _t(U,R,k,A,V){return R=+R,k=k>>>0,V||$(U,R,k,8),e.write(U,R,k,A,52,8),k+8}d.prototype.writeDoubleLE=function(R,k,A){return _t(this,R,k,!0,A)},d.prototype.writeDoubleBE=function(R,k,A){return _t(this,R,k,!1,A)},d.prototype.copy=function(R,k,A,V){if(!d.isBuffer(R))throw new TypeError("argument should be a Buffer");if(A||(A=0),!V&&V!==0&&(V=this.length),k>=R.length&&(k=R.length),k||(k=0),V>0&&V<A&&(V=A),V===A||R.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),R.length-k<V-A&&(V=R.length-k+A);const W=V-A;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,A,V):Uint8Array.prototype.set.call(R,this.subarray(A,V),k),W},d.prototype.fill=function(R,k,A,V){if(typeof R=="string"){if(typeof k=="string"?(V=k,k=0,A=this.length):typeof A=="string"&&(V=A,A=this.length),V!==void 0&&typeof V!="string")throw new TypeError("encoding must be a string");if(typeof V=="string"&&!d.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(R.length===1){const it=R.charCodeAt(0);(V==="utf8"&&it<128||V==="latin1")&&(R=it)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(k<0||this.length<k||this.length<A)throw new RangeError("Out of range index");if(A<=k)return this;k=k>>>0,A=A===void 0?this.length:A>>>0,R||(R=0);let W;if(typeof R=="number")for(W=k;W<A;++W)this[W]=R;else{const it=d.isBuffer(R)?R:d.from(R,V),Lt=it.length;if(Lt===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(W=0;W<A-k;++W)this[W+k]=it[W%Lt]}return this};const Dt={};function Yt(U,R,k){Dt[U]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}Yt("ERR_BUFFER_OUT_OF_BOUNDS",function(U){return U?`${U} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Yt("ERR_INVALID_ARG_TYPE",function(U,R){return`The "${U}" argument must be of type number. Received type ${typeof R}`},TypeError),Yt("ERR_OUT_OF_RANGE",function(U,R,k){let A=`The value of "${U}" is out of range.`,V=k;return Number.isInteger(k)&&Math.abs(k)>2**32?V=zt(String(k)):typeof k=="bigint"&&(V=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(V=zt(V)),V+="n"),A+=` It must be ${R}. Received ${V}`,A},RangeError);function zt(U){let R="",k=U.length;const A=U[0]==="-"?1:0;for(;k>=A+4;k-=3)R=`_${U.slice(k-3,k)}${R}`;return`${U.slice(0,k)}${R}`}function fe(U,R,k){_e(R,"offset"),(U[R]===void 0||U[R+k]===void 0)&&we(R,U.length-(k+1))}function le(U,R,k,A,V,W){if(U>k||U<R){const it=typeof R=="bigint"?"n":"";let Lt;throw R===0||R===BigInt(0)?Lt=`>= 0${it} and < 2${it} ** ${(W+1)*8}${it}`:Lt=`>= -(2${it} ** ${(W+1)*8-1}${it}) and < 2 ** ${(W+1)*8-1}${it}`,new Dt.ERR_OUT_OF_RANGE("value",Lt,U)}fe(A,V,W)}function _e(U,R){if(typeof U!="number")throw new Dt.ERR_INVALID_ARG_TYPE(R,"number",U)}function we(U,R,k){throw Math.floor(U)!==U?(_e(U,k),new Dt.ERR_OUT_OF_RANGE("offset","an integer",U)):R<0?new Dt.ERR_BUFFER_OUT_OF_BOUNDS:new Dt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,U)}const Ee=/[^+/0-9A-Za-z-_]/g;function je(U){if(U=U.split("=")[0],U=U.trim().replace(Ee,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function xe(U,R){R=R||1/0;let k;const A=U.length;let V=null;const W=[];for(let it=0;it<A;++it){if(k=U.charCodeAt(it),k>55295&&k<57344){if(!V){if(k>56319){(R-=3)>-1&&W.push(239,191,189);continue}else if(it+1===A){(R-=3)>-1&&W.push(239,191,189);continue}V=k;continue}if(k<56320){(R-=3)>-1&&W.push(239,191,189),V=k;continue}k=(V-55296<<10|k-56320)+65536}else V&&(R-=3)>-1&&W.push(239,191,189);if(V=null,k<128){if((R-=1)<0)break;W.push(k)}else if(k<2048){if((R-=2)<0)break;W.push(k>>6|192,k&63|128)}else if(k<65536){if((R-=3)<0)break;W.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((R-=4)<0)break;W.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return W}function y(U){const R=[];for(let k=0;k<U.length;++k)R.push(U.charCodeAt(k)&255);return R}function P(U,R){let k,A,V;const W=[];for(let it=0;it<U.length&&!((R-=2)<0);++it)k=U.charCodeAt(it),A=k>>8,V=k%256,W.push(V),W.push(A);return W}function H(U){return t.toByteArray(je(U))}function lt(U,R,k,A){let V;for(V=0;V<A&&!(V+k>=R.length||V>=U.length);++V)R[V+k]=U[V];return V}function mt(U,R){return U instanceof R||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===R.name}function vt(U){return U!==U}const xt=function(){const U="0123456789abcdef",R=new Array(256);for(let k=0;k<16;++k){const A=k*16;for(let V=0;V<16;++V)R[A+V]=U[k]+U[V]}return R}();function Gt(U){return typeof BigInt>"u"?ee:U}function ee(){throw new Error("BigInt not supported")}}(Bs)),Bs}var ve=Ps();function Lo(r){if(!Number.isSafeInteger(r)||r<0)throw new Error(`positive integer expected, not ${r}`)}function Rd(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function zi(r,...t){if(!Rd(r))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(r.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${r.length}`)}function Sd(r){if(typeof r!="function"||typeof r.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Lo(r.outputLen),Lo(r.blockLen)}function hi(r,t=!0){if(r.destroyed)throw new Error("Hash instance has been destroyed");if(t&&r.finished)throw new Error("Hash#digest() has already been called")}function Cc(r,t){zi(r);const e=t.outputLen;if(r.length<e)throw new Error(`digestInto() expects output buffer of length at least ${e}`)}const Ms=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;const Ad=r=>new Uint32Array(r.buffer,r.byteOffset,Math.floor(r.byteLength/4)),Ds=r=>new DataView(r.buffer,r.byteOffset,r.byteLength),sr=(r,t)=>r<<32-t|r>>>t,Bc=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,Id=r=>r<<24&4278190080|r<<8&16711680|r>>>8&65280|r>>>24&255;function Pc(r){for(let t=0;t<r.length;t++)r[t]=Id(r[t])}function kd(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}function Co(r){return typeof r=="string"&&(r=kd(r)),zi(r),r}function Od(...r){let t=0;for(let n=0;n<r.length;n++){const o=r[n];zi(o),t+=o.length}const e=new Uint8Array(t);for(let n=0,o=0;n<r.length;n++){const i=r[n];e.set(i,o),o+=i.length}return e}class Us{clone(){return this._cloneInto()}}function Fs(r){const t=n=>r().update(Co(n)).digest(),e=r();return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=()=>r(),t}function Mc(r=32){if(Ms&&typeof Ms.getRandomValues=="function")return Ms.getRandomValues(new Uint8Array(r));throw new Error("crypto.getRandomValues must be defined")}function Td(r,t,e,n){if(typeof r.setBigUint64=="function")return r.setBigUint64(t,e,n);const o=BigInt(32),i=BigInt(4294967295),u=Number(e>>o&i),d=Number(e&i),l=n?4:0,v=n?0:4;r.setUint32(t+l,u,n),r.setUint32(t+v,d,n)}const Nd=(r,t,e)=>r&t^~r&e,xd=(r,t,e)=>r&t^r&e^t&e;class Dc extends Us{constructor(t,e,n,o){super(),this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Ds(this.buffer)}update(t){hi(this);const{view:e,buffer:n,blockLen:o}=this;t=Co(t);const i=t.length;for(let u=0;u<i;){const d=Math.min(o-this.pos,i-u);if(d===o){const l=Ds(t);for(;o<=i-u;u+=o)this.process(l,u);continue}n.set(t.subarray(u,u+d),this.pos),this.pos+=d,u+=d,this.pos===o&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){hi(this),Cc(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:o,isLE:i}=this;let{pos:u}=this;e[u++]=128,this.buffer.subarray(u).fill(0),this.padOffset>o-u&&(this.process(n,0),u=0);for(let O=u;O<o;O++)e[O]=0;Td(n,o-8,BigInt(this.length*8),i),this.process(n,0);const d=Ds(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const v=l/4,S=this.get();if(v>S.length)throw new Error("_sha2: outputLen bigger than state");for(let O=0;O<v;O++)d.setUint32(4*O,S[O],i)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:o,finished:i,destroyed:u,pos:d}=this;return t.length=o,t.pos=d,t.finished=i,t.destroyed=u,o%e&&t.buffer.set(n),t}}const Bo=BigInt(2**32-1),Hs=BigInt(32);function Uc(r,t=!1){return t?{h:Number(r&Bo),l:Number(r>>Hs&Bo)}:{h:Number(r>>Hs&Bo)|0,l:Number(r&Bo)|0}}function Fc(r,t=!1){let e=new Uint32Array(r.length),n=new Uint32Array(r.length);for(let o=0;o<r.length;o++){const{h:i,l:u}=Uc(r[o],t);[e[o],n[o]]=[i,u]}return[e,n]}const Ld=(r,t)=>BigInt(r>>>0)<<Hs|BigInt(t>>>0),Cd=(r,t,e)=>r>>>e,Bd=(r,t,e)=>r<<32-e|t>>>e,Pd=(r,t,e)=>r>>>e|t<<32-e,Md=(r,t,e)=>r<<32-e|t>>>e,Dd=(r,t,e)=>r<<64-e|t>>>e-32,Ud=(r,t,e)=>r>>>e-32|t<<64-e,Fd=(r,t)=>t,Hd=(r,t)=>r,Hc=(r,t,e)=>r<<e|t>>>32-e,Vc=(r,t,e)=>t<<e|r>>>32-e,Wc=(r,t,e)=>t<<e-32|r>>>64-e,zc=(r,t,e)=>r<<e-32|t>>>64-e;function Vd(r,t,e,n){const o=(t>>>0)+(n>>>0);return{h:r+e+(o/2**32|0)|0,l:o|0}}const Ie={fromBig:Uc,split:Fc,toBig:Ld,shrSH:Cd,shrSL:Bd,rotrSH:Pd,rotrSL:Md,rotrBH:Dd,rotrBL:Ud,rotr32H:Fd,rotr32L:Hd,rotlSH:Hc,rotlSL:Vc,rotlBH:Wc,rotlBL:zc,add:Vd,add3L:(r,t,e)=>(r>>>0)+(t>>>0)+(e>>>0),add3H:(r,t,e,n)=>t+e+n+(r/2**32|0)|0,add4L:(r,t,e,n)=>(r>>>0)+(t>>>0)+(e>>>0)+(n>>>0),add4H:(r,t,e,n,o)=>t+e+n+o+(r/2**32|0)|0,add5H:(r,t,e,n,o,i)=>t+e+n+o+i+(r/2**32|0)|0,add5L:(r,t,e,n,o)=>(r>>>0)+(t>>>0)+(e>>>0)+(n>>>0)+(o>>>0)},[Wd,zd]=Ie.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(r=>BigInt(r))),Nr=new Uint32Array(80),xr=new Uint32Array(80);class Gd extends Dc{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:e,Bh:n,Bl:o,Ch:i,Cl:u,Dh:d,Dl:l,Eh:v,El:S,Fh:O,Fl:C,Gh:N,Gl:B,Hh:M,Hl:F}=this;return[t,e,n,o,i,u,d,l,v,S,O,C,N,B,M,F]}set(t,e,n,o,i,u,d,l,v,S,O,C,N,B,M,F){this.Ah=t|0,this.Al=e|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=u|0,this.Dh=d|0,this.Dl=l|0,this.Eh=v|0,this.El=S|0,this.Fh=O|0,this.Fl=C|0,this.Gh=N|0,this.Gl=B|0,this.Hh=M|0,this.Hl=F|0}process(t,e){for(let et=0;et<16;et++,e+=4)Nr[et]=t.getUint32(e),xr[et]=t.getUint32(e+=4);for(let et=16;et<80;et++){const ct=Nr[et-15]|0,ft=xr[et-15]|0,ot=Ie.rotrSH(ct,ft,1)^Ie.rotrSH(ct,ft,8)^Ie.shrSH(ct,ft,7),bt=Ie.rotrSL(ct,ft,1)^Ie.rotrSL(ct,ft,8)^Ie.shrSL(ct,ft,7),Rt=Nr[et-2]|0,At=xr[et-2]|0,gt=Ie.rotrSH(Rt,At,19)^Ie.rotrBH(Rt,At,61)^Ie.shrSH(Rt,At,6),wt=Ie.rotrSL(Rt,At,19)^Ie.rotrBL(Rt,At,61)^Ie.shrSL(Rt,At,6),kt=Ie.add4L(bt,wt,xr[et-7],xr[et-16]),q=Ie.add4H(kt,ot,gt,Nr[et-7],Nr[et-16]);Nr[et]=q|0,xr[et]=kt|0}let{Ah:n,Al:o,Bh:i,Bl:u,Ch:d,Cl:l,Dh:v,Dl:S,Eh:O,El:C,Fh:N,Fl:B,Gh:M,Gl:F,Hh:G,Hl:Q}=this;for(let et=0;et<80;et++){const ct=Ie.rotrSH(O,C,14)^Ie.rotrSH(O,C,18)^Ie.rotrBH(O,C,41),ft=Ie.rotrSL(O,C,14)^Ie.rotrSL(O,C,18)^Ie.rotrBL(O,C,41),ot=O&N^~O&M,bt=C&B^~C&F,Rt=Ie.add5L(Q,ft,bt,zd[et],xr[et]),At=Ie.add5H(Rt,G,ct,ot,Wd[et],Nr[et]),gt=Rt|0,wt=Ie.rotrSH(n,o,28)^Ie.rotrBH(n,o,34)^Ie.rotrBH(n,o,39),kt=Ie.rotrSL(n,o,28)^Ie.rotrBL(n,o,34)^Ie.rotrBL(n,o,39),q=n&i^n&d^i&d,h=o&u^o&l^u&l;G=M|0,Q=F|0,M=N|0,F=B|0,N=O|0,B=C|0,{h:O,l:C}=Ie.add(v|0,S|0,At|0,gt|0),v=d|0,S=l|0,d=i|0,l=u|0,i=n|0,u=o|0;const T=Ie.add3L(gt,kt,h);n=Ie.add3H(T,At,wt,q),o=T|0}({h:n,l:o}=Ie.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:u}=Ie.add(this.Bh|0,this.Bl|0,i|0,u|0),{h:d,l}=Ie.add(this.Ch|0,this.Cl|0,d|0,l|0),{h:v,l:S}=Ie.add(this.Dh|0,this.Dl|0,v|0,S|0),{h:O,l:C}=Ie.add(this.Eh|0,this.El|0,O|0,C|0),{h:N,l:B}=Ie.add(this.Fh|0,this.Fl|0,N|0,B|0),{h:M,l:F}=Ie.add(this.Gh|0,this.Gl|0,M|0,F|0),{h:G,l:Q}=Ie.add(this.Hh|0,this.Hl|0,G|0,Q|0),this.set(n,o,i,u,d,l,v,S,O,C,N,B,M,F,G,Q)}roundClean(){Nr.fill(0),xr.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Kd=Fs(()=>new Gd);const Gc=BigInt(0),Po=BigInt(1),jd=BigInt(2);function Yr(r){return r instanceof Uint8Array||r!=null&&typeof r=="object"&&r.constructor.name==="Uint8Array"}function Gi(r){if(!Yr(r))throw new Error("Uint8Array expected")}const Yd=Array.from({length:256},(r,t)=>t.toString(16).padStart(2,"0"));function qr(r){Gi(r);let t="";for(let e=0;e<r.length;e++)t+=Yd[r[e]];return t}function Kc(r){const t=r.toString(16);return t.length&1?`0${t}`:t}function Vs(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);return BigInt(r===""?"0":`0x${r}`)}const br={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function jc(r){if(r>=br._0&&r<=br._9)return r-br._0;if(r>=br._A&&r<=br._F)return r-(br._A-10);if(r>=br._a&&r<=br._f)return r-(br._a-10)}function pi(r){if(typeof r!="string")throw new Error("hex string expected, got "+typeof r);const t=r.length,e=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(e);for(let o=0,i=0;o<e;o++,i+=2){const u=jc(r.charCodeAt(i)),d=jc(r.charCodeAt(i+1));if(u===void 0||d===void 0){const l=r[i]+r[i+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+i)}n[o]=u*16+d}return n}function $r(r){return Vs(qr(r))}function gi(r){return Gi(r),Vs(qr(Uint8Array.from(r).reverse()))}function mi(r,t){return pi(r.toString(16).padStart(t*2,"0"))}function Ki(r,t){return mi(r,t).reverse()}function qd(r){return pi(Kc(r))}function _n(r,t,e){let n;if(typeof t=="string")try{n=pi(t)}catch(i){throw new Error(`${r} must be valid hex string, got "${t}". Cause: ${i}`)}else if(Yr(t))n=Uint8Array.from(t);else throw new Error(`${r} must be hex string or Uint8Array`);const o=n.length;if(typeof e=="number"&&o!==e)throw new Error(`${r} expected ${e} bytes, got ${o}`);return n}function Zr(...r){let t=0;for(let n=0;n<r.length;n++){const o=r[n];Gi(o),t+=o.length}const e=new Uint8Array(t);for(let n=0,o=0;n<r.length;n++){const i=r[n];e.set(i,o),o+=i.length}return e}function $d(r,t){if(r.length!==t.length)return!1;let e=0;for(let n=0;n<r.length;n++)e|=r[n]^t[n];return e===0}function Zd(r){if(typeof r!="string")throw new Error(`utf8ToBytes expected string, got ${typeof r}`);return new Uint8Array(new TextEncoder().encode(r))}function Xd(r){let t;for(t=0;r>Gc;r>>=Po,t+=1);return t}function Jd(r,t){return r>>BigInt(t)&Po}function Qd(r,t,e){return r|(e?Po:Gc)<<BigInt(t)}const Ws=r=>(jd<<BigInt(r-1))-Po,zs=r=>new Uint8Array(r),Yc=r=>Uint8Array.from(r);function qc(r,t,e){if(typeof r!="number"||r<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof e!="function")throw new Error("hmacFn must be a function");let n=zs(r),o=zs(r),i=0;const u=()=>{n.fill(1),o.fill(0),i=0},d=(...O)=>e(o,n,...O),l=(O=zs())=>{o=d(Yc([0]),O),n=d(),O.length!==0&&(o=d(Yc([1]),O),n=d())},v=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let O=0;const C=[];for(;O<t;){n=d();const N=n.slice();C.push(N),O+=n.length}return Zr(...C)};return(O,C)=>{u(),l(O);let N;for(;!(N=C(v()));)l();return u(),N}}const th={bigint:r=>typeof r=="bigint",function:r=>typeof r=="function",boolean:r=>typeof r=="boolean",string:r=>typeof r=="string",stringOrUint8Array:r=>typeof r=="string"||Yr(r),isSafeInteger:r=>Number.isSafeInteger(r),array:r=>Array.isArray(r),field:(r,t)=>t.Fp.isValid(r),hash:r=>typeof r=="function"&&Number.isSafeInteger(r.outputLen)};function vi(r,t,e={}){const n=(o,i,u)=>{const d=th[i];if(typeof d!="function")throw new Error(`Invalid validator "${i}", expected function`);const l=r[o];if(!(u&&l===void 0)&&!d(l,r))throw new Error(`Invalid param ${String(o)}=${l} (${typeof l}), expected ${i}`)};for(const[o,i]of Object.entries(t))n(o,i,!1);for(const[o,i]of Object.entries(e))n(o,i,!0);return r}const eh=Object.freeze(Object.defineProperty({__proto__:null,abytes:Gi,bitGet:Jd,bitLen:Xd,bitMask:Ws,bitSet:Qd,bytesToHex:qr,bytesToNumberBE:$r,bytesToNumberLE:gi,concatBytes:Zr,createHmacDrbg:qc,ensureBytes:_n,equalBytes:$d,hexToBytes:pi,hexToNumber:Vs,isBytes:Yr,numberToBytesBE:mi,numberToBytesLE:Ki,numberToHexUnpadded:Kc,numberToVarBytesBE:qd,utf8ToBytes:Zd,validateObject:vi},Symbol.toStringTag,{value:"Module"}));const Rn=BigInt(0),nn=BigInt(1),Xr=BigInt(2),nh=BigInt(3),Gs=BigInt(4),$c=BigInt(5),Zc=BigInt(8);BigInt(9),BigInt(16);function en(r,t){const e=r%t;return e>=Rn?e:t+e}function rh(r,t,e){if(e<=Rn||t<Rn)throw new Error("Expected power/modulo > 0");if(e===nn)return Rn;let n=nn;for(;t>Rn;)t&nn&&(n=n*r%e),r=r*r%e,t>>=nn;return n}function cn(r,t,e){let n=r;for(;t-- >Rn;)n*=n,n%=e;return n}function Ks(r,t){if(r===Rn||t<=Rn)throw new Error(`invert: expected positive integers, got n=${r} mod=${t}`);let e=en(r,t),n=t,o=Rn,i=nn;for(;e!==Rn;){const d=n/e,l=n%e,v=o-i*d;n=e,e=l,o=i,i=v}if(n!==nn)throw new Error("invert: does not exist");return en(o,t)}function ih(r){const t=(r-nn)/Xr;let e,n,o;for(e=r-nn,n=0;e%Xr===Rn;e/=Xr,n++);for(o=Xr;o<r&&rh(o,t,r)!==r-nn;o++);if(n===1){const u=(r+nn)/Gs;return function(l,v){const S=l.pow(v,u);if(!l.eql(l.sqr(S),v))throw new Error("Cannot find square root");return S}}const i=(e+nn)/Xr;return function(d,l){if(d.pow(l,t)===d.neg(d.ONE))throw new Error("Cannot find square root");let v=n,S=d.pow(d.mul(d.ONE,o),e),O=d.pow(l,i),C=d.pow(l,e);for(;!d.eql(C,d.ONE);){if(d.eql(C,d.ZERO))return d.ZERO;let N=1;for(let M=d.sqr(C);N<v&&!d.eql(M,d.ONE);N++)M=d.sqr(M);const B=d.pow(S,nn<<BigInt(v-N-1));S=d.sqr(B),O=d.mul(O,B),C=d.mul(C,S),v=N}return O}}function oh(r){if(r%Gs===nh){const t=(r+nn)/Gs;return function(n,o){const i=n.pow(o,t);if(!n.eql(n.sqr(i),o))throw new Error("Cannot find square root");return i}}if(r%Zc===$c){const t=(r-$c)/Zc;return function(n,o){const i=n.mul(o,Xr),u=n.pow(i,t),d=n.mul(o,u),l=n.mul(n.mul(d,Xr),u),v=n.mul(d,n.sub(l,n.ONE));if(!n.eql(n.sqr(v),o))throw new Error("Cannot find square root");return v}}return ih(r)}const sh=(r,t)=>(en(r,t)&nn)===nn,ah=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ch(r){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},e=ah.reduce((n,o)=>(n[o]="function",n),t);return vi(r,e)}function uh(r,t,e){if(e<Rn)throw new Error("Expected power > 0");if(e===Rn)return r.ONE;if(e===nn)return t;let n=r.ONE,o=t;for(;e>Rn;)e&nn&&(n=r.mul(n,o)),o=r.sqr(o),e>>=nn;return n}function lh(r,t){const e=new Array(t.length),n=t.reduce((i,u,d)=>r.is0(u)?i:(e[d]=i,r.mul(i,u)),r.ONE),o=r.inv(n);return t.reduceRight((i,u,d)=>r.is0(u)?i:(e[d]=r.mul(i,e[d]),r.mul(i,u)),o),e}function Xc(r,t){const e=t!==void 0?t:r.toString(2).length,n=Math.ceil(e/8);return{nBitLength:e,nByteLength:n}}function Jc(r,t,e=!1,n={}){if(r<=Rn)throw new Error(`Expected Field ORDER > 0, got ${r}`);const{nBitLength:o,nByteLength:i}=Xc(r,t);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=oh(r),d=Object.freeze({ORDER:r,BITS:o,BYTES:i,MASK:Ws(o),ZERO:Rn,ONE:nn,create:l=>en(l,r),isValid:l=>{if(typeof l!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof l}`);return Rn<=l&&l<r},is0:l=>l===Rn,isOdd:l=>(l&nn)===nn,neg:l=>en(-l,r),eql:(l,v)=>l===v,sqr:l=>en(l*l,r),add:(l,v)=>en(l+v,r),sub:(l,v)=>en(l-v,r),mul:(l,v)=>en(l*v,r),pow:(l,v)=>uh(d,l,v),div:(l,v)=>en(l*Ks(v,r),r),sqrN:l=>l*l,addN:(l,v)=>l+v,subN:(l,v)=>l-v,mulN:(l,v)=>l*v,inv:l=>Ks(l,r),sqrt:n.sqrt||(l=>u(d,l)),invertBatch:l=>lh(d,l),cmov:(l,v,S)=>S?v:l,toBytes:l=>e?Ki(l,i):mi(l,i),fromBytes:l=>{if(l.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${l.length}`);return e?gi(l):$r(l)}});return Object.freeze(d)}function Qc(r){if(typeof r!="bigint")throw new Error("field order must be bigint");const t=r.toString(2).length;return Math.ceil(t/8)}function tu(r){const t=Qc(r);return t+Math.ceil(t/2)}function fh(r,t,e=!1){const n=r.length,o=Qc(t),i=tu(t);if(n<16||n<i||n>1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const u=e?$r(r):gi(r),d=en(u,t-nn)+nn;return e?Ki(d,o):mi(d,o)}const dh=BigInt(0),js=BigInt(1);function eu(r,t){const e=(o,i)=>{const u=i.negate();return o?u:i},n=o=>{const i=Math.ceil(t/o)+1,u=2**(o-1);return{windows:i,windowSize:u}};return{constTimeNegate:e,unsafeLadder(o,i){let u=r.ZERO,d=o;for(;i>dh;)i&js&&(u=u.add(d)),d=d.double(),i>>=js;return u},precomputeWindow(o,i){const{windows:u,windowSize:d}=n(i),l=[];let v=o,S=v;for(let O=0;O<u;O++){S=v,l.push(S);for(let C=1;C<d;C++)S=S.add(v),l.push(S);v=S.double()}return l},wNAF(o,i,u){const{windows:d,windowSize:l}=n(o);let v=r.ZERO,S=r.BASE;const O=BigInt(2**o-1),C=2**o,N=BigInt(o);for(let B=0;B<d;B++){const M=B*l;let F=Number(u&O);u>>=N,F>l&&(F-=C,u+=js);const G=M,Q=M+Math.abs(F)-1,et=B%2!==0,ct=F<0;F===0?S=S.add(e(et,i[G])):v=v.add(e(ct,i[Q]))}return{p:v,f:S}},wNAFCached(o,i,u,d){const l=o._WINDOW_SIZE||1;let v=i.get(o);return v||(v=this.precomputeWindow(o,l),l!==1&&i.set(o,d(v))),this.wNAF(l,v,u)}}}function Ys(r){return ch(r.Fp),vi(r,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Xc(r.n,r.nBitLength),...r,p:r.Fp.ORDER})}const Xn=BigInt(0),Gn=BigInt(1),Mo=BigInt(2),hh=BigInt(8),ph={zip215:!0};function gh(r){const t=Ys(r);return vi(r,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function mh(r){const t=gh(r),{Fp:e,n,prehash:o,hash:i,randomBytes:u,nByteLength:d,h:l}=t,v=Mo<<BigInt(d*8)-Gn,S=e.create,O=t.uvRatio||((j,X)=>{try{return{isValid:!0,value:e.sqrt(j*e.inv(X))}}catch{return{isValid:!1,value:Xn}}}),C=t.adjustScalarBytes||(j=>j),N=t.domain||((j,X,at)=>{if(X.length||at)throw new Error("Contexts/pre-hash are not supported");return j}),B=j=>typeof j=="bigint"&&Xn<j,M=(j,X)=>B(j)&&B(X)&&j<X,F=j=>j===Xn||M(j,v);function G(j,X){if(M(j,X))return j;throw new Error(`Expected valid scalar < ${X}, got ${typeof j} ${j}`)}function Q(j){return j===Xn?j:G(j,n)}const et=new Map;function ct(j){if(!(j instanceof ft))throw new Error("ExtendedPoint expected")}class ft{constructor(X,at,K,p){if(this.ex=X,this.ey=at,this.ez=K,this.et=p,!F(X))throw new Error("x required");if(!F(at))throw new Error("y required");if(!F(K))throw new Error("z required");if(!F(p))throw new Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(X){if(X instanceof ft)throw new Error("extended point not allowed");const{x:at,y:K}=X||{};if(!F(at)||!F(K))throw new Error("invalid affine point");return new ft(at,K,Gn,S(at*K))}static normalizeZ(X){const at=e.invertBatch(X.map(K=>K.ez));return X.map((K,p)=>K.toAffine(at[p])).map(ft.fromAffine)}_setWindowSize(X){this._WINDOW_SIZE=X,et.delete(this)}assertValidity(){const{a:X,d:at}=t;if(this.is0())throw new Error("bad point: ZERO");const{ex:K,ey:p,ez:E,et:z}=this,$=S(K*K),dt=S(p*p),_t=S(E*E),Dt=S(_t*_t),Yt=S($*X),zt=S(_t*S(Yt+dt)),fe=S(Dt+S(at*S($*dt)));if(zt!==fe)throw new Error("bad point: equation left != right (1)");const le=S(K*p),_e=S(E*z);if(le!==_e)throw new Error("bad point: equation left != right (2)")}equals(X){ct(X);const{ex:at,ey:K,ez:p}=this,{ex:E,ey:z,ez:$}=X,dt=S(at*$),_t=S(E*p),Dt=S(K*$),Yt=S(z*p);return dt===_t&&Dt===Yt}is0(){return this.equals(ft.ZERO)}negate(){return new ft(S(-this.ex),this.ey,this.ez,S(-this.et))}double(){const{a:X}=t,{ex:at,ey:K,ez:p}=this,E=S(at*at),z=S(K*K),$=S(Mo*S(p*p)),dt=S(X*E),_t=at+K,Dt=S(S(_t*_t)-E-z),Yt=dt+z,zt=Yt-$,fe=dt-z,le=S(Dt*zt),_e=S(Yt*fe),we=S(Dt*fe),Ee=S(zt*Yt);return new ft(le,_e,Ee,we)}add(X){ct(X);const{a:at,d:K}=t,{ex:p,ey:E,ez:z,et:$}=this,{ex:dt,ey:_t,ez:Dt,et:Yt}=X;if(at===BigInt(-1)){const mt=S((E-p)*(_t+dt)),vt=S((E+p)*(_t-dt)),xt=S(vt-mt);if(xt===Xn)return this.double();const Gt=S(z*Mo*Yt),ee=S($*Mo*Dt),U=ee+Gt,R=vt+mt,k=ee-Gt,A=S(U*xt),V=S(R*k),W=S(U*k),it=S(xt*R);return new ft(A,V,it,W)}const zt=S(p*dt),fe=S(E*_t),le=S($*K*Yt),_e=S(z*Dt),we=S((p+E)*(dt+_t)-zt-fe),Ee=_e-le,je=_e+le,xe=S(fe-at*zt),y=S(we*Ee),P=S(je*xe),H=S(we*xe),lt=S(Ee*je);return new ft(y,P,lt,H)}subtract(X){return this.add(X.negate())}wNAF(X){return Rt.wNAFCached(this,et,X,ft.normalizeZ)}multiply(X){const{p:at,f:K}=this.wNAF(G(X,n));return ft.normalizeZ([at,K])[0]}multiplyUnsafe(X){let at=Q(X);return at===Xn?bt:this.equals(bt)||at===Gn?this:this.equals(ot)?this.wNAF(at).p:Rt.unsafeLadder(this,at)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return Rt.unsafeLadder(this,n).is0()}toAffine(X){const{ex:at,ey:K,ez:p}=this,E=this.is0();X==null&&(X=E?hh:e.inv(p));const z=S(at*X),$=S(K*X),dt=S(p*X);if(E)return{x:Xn,y:Gn};if(dt!==Gn)throw new Error("invZ was invalid");return{x:z,y:$}}clearCofactor(){const{h:X}=t;return X===Gn?this:this.multiplyUnsafe(X)}static fromHex(X,at=!1){const{d:K,a:p}=t,E=e.BYTES;X=_n("pointHex",X,E);const z=X.slice(),$=X[E-1];z[E-1]=$&-129;const dt=gi(z);dt===Xn||(at?G(dt,v):G(dt,e.ORDER));const _t=S(dt*dt),Dt=S(_t-Gn),Yt=S(K*_t-p);let{isValid:zt,value:fe}=O(Dt,Yt);if(!zt)throw new Error("Point.fromHex: invalid y coordinate");const le=(fe&Gn)===Gn,_e=($&128)!==0;if(!at&&fe===Xn&&_e)throw new Error("Point.fromHex: x=0 and x_0=1");return _e!==le&&(fe=S(-fe)),ft.fromAffine({x:fe,y:dt})}static fromPrivateKey(X){return wt(X).point}toRawBytes(){const{x:X,y:at}=this.toAffine(),K=Ki(at,e.BYTES);return K[K.length-1]|=X&Gn?128:0,K}toHex(){return qr(this.toRawBytes())}}ft.BASE=new ft(t.Gx,t.Gy,Gn,S(t.Gx*t.Gy)),ft.ZERO=new ft(Xn,Gn,Gn,Xn);const{BASE:ot,ZERO:bt}=ft,Rt=eu(ft,d*8);function At(j){return en(j,n)}function gt(j){return At(gi(j))}function wt(j){const X=d;j=_n("private key",j,X);const at=_n("hashed private key",i(j),2*X),K=C(at.slice(0,X)),p=at.slice(X,2*X),E=gt(K),z=ot.multiply(E),$=z.toRawBytes();return{head:K,prefix:p,scalar:E,point:z,pointBytes:$}}function kt(j){return wt(j).pointBytes}function q(j=new Uint8Array,...X){const at=Zr(...X);return gt(i(N(at,_n("context",j),!!o)))}function h(j,X,at={}){j=_n("message",j),o&&(j=o(j));const{prefix:K,scalar:p,pointBytes:E}=wt(X),z=q(at.context,K,j),$=ot.multiply(z).toRawBytes(),dt=q(at.context,$,E,j),_t=At(z+dt*p);Q(_t);const Dt=Zr($,Ki(_t,e.BYTES));return _n("result",Dt,d*2)}const T=ph;function D(j,X,at,K=T){const{context:p,zip215:E}=K,z=e.BYTES;j=_n("signature",j,2*z),X=_n("message",X),o&&(X=o(X));const $=gi(j.slice(z,2*z));let dt,_t,Dt;try{dt=ft.fromHex(at,E),_t=ft.fromHex(j.slice(0,z),E),Dt=ot.multiplyUnsafe($)}catch{return!1}if(!E&&dt.isSmallOrder())return!1;const Yt=q(p,_t.toRawBytes(),dt.toRawBytes(),X);return _t.add(dt.multiplyUnsafe(Yt)).subtract(Dt).clearCofactor().equals(ft.ZERO)}return ot._setWindowSize(8),{CURVE:t,getPublicKey:kt,sign:h,verify:D,ExtendedPoint:ft,utils:{getExtendedPublicKey:wt,randomPrivateKey:()=>u(e.BYTES),precompute(j=8,X=ft.BASE){return X._setWindowSize(j),X.multiply(BigInt(3)),X}}}}const qs=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),nu=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const vh=BigInt(1),ru=BigInt(2);BigInt(3);const yh=BigInt(5),wh=BigInt(8);function bh(r){const t=BigInt(10),e=BigInt(20),n=BigInt(40),o=BigInt(80),i=qs,d=r*r%i*r%i,l=cn(d,ru,i)*d%i,v=cn(l,vh,i)*r%i,S=cn(v,yh,i)*v%i,O=cn(S,t,i)*S%i,C=cn(O,e,i)*O%i,N=cn(C,n,i)*C%i,B=cn(N,o,i)*N%i,M=cn(B,o,i)*N%i,F=cn(M,t,i)*S%i;return{pow_p_5_8:cn(F,ru,i)*r%i,b2:d}}function _h(r){return r[0]&=248,r[31]&=127,r[31]|=64,r}function Eh(r,t){const e=qs,n=en(t*t*t,e),o=en(n*n*t,e),i=bh(r*o).pow_p_5_8;let u=en(r*n*i,e);const d=en(t*u*u,e),l=u,v=en(u*nu,e),S=d===r,O=d===en(-r,e),C=d===en(-r*nu,e);return S&&(u=l),(O||C)&&(u=v),sh(u,e)&&(u=en(-u,e)),{isValid:S||O,value:u}}const Rh=Jc(qs,void 0,!0),Sh={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Rh,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:wh,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:Kd,randomBytes:Mc,adjustScalarBytes:_h,uvRatio:Eh},yi=mh(Sh);var Do={exports:{}};const Ah=Cs(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ih=Do.exports,iu;function ou(){return iu||(iu=1,function(r){(function(t,e){function n(q,h){if(!q)throw new Error(h||"Assertion failed")}function o(q,h){q.super_=h;var T=function(){};T.prototype=h.prototype,q.prototype=new T,q.prototype.constructor=q}function i(q,h,T){if(i.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((h==="le"||h==="be")&&(T=h,h=10),this._init(q||0,h||10,T||"be"))}typeof t=="object"?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=Ah.Buffer}catch{}i.isBN=function(h){return h instanceof i?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===i.wordSize&&Array.isArray(h.words)},i.max=function(h,T){return h.cmp(T)>0?h:T},i.min=function(h,T){return h.cmp(T)<0?h:T},i.prototype._init=function(h,T,D){if(typeof h=="number")return this._initNumber(h,T,D);if(typeof h=="object")return this._initArray(h,T,D);T==="hex"&&(T=16),n(T===(T|0)&&T>=2&&T<=36),h=h.toString().replace(/\s+/g,"");var Z=0;h[0]==="-"&&(Z++,this.negative=1),Z<h.length&&(T===16?this._parseHex(h,Z,D):(this._parseBase(h,T,Z),D==="le"&&this._initArray(this.toArray(),T,D)))},i.prototype._initNumber=function(h,T,D){h<0&&(this.negative=1,h=-h),h<67108864?(this.words=[h&67108863],this.length=1):h<4503599627370496?(this.words=[h&67108863,h/67108864&67108863],this.length=2):(n(h<9007199254740992),this.words=[h&67108863,h/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),T,D)},i.prototype._initArray=function(h,T,D){if(n(typeof h.length=="number"),h.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(h.length/3),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var j,X,at=0;if(D==="be")for(Z=h.length-1,j=0;Z>=0;Z-=3)X=h[Z]|h[Z-1]<<8|h[Z-2]<<16,this.words[j]|=X<<at&67108863,this.words[j+1]=X>>>26-at&67108863,at+=24,at>=26&&(at-=26,j++);else if(D==="le")for(Z=0,j=0;Z<h.length;Z+=3)X=h[Z]|h[Z+1]<<8|h[Z+2]<<16,this.words[j]|=X<<at&67108863,this.words[j+1]=X>>>26-at&67108863,at+=24,at>=26&&(at-=26,j++);return this._strip()};function d(q,h){var T=q.charCodeAt(h);if(T>=48&&T<=57)return T-48;if(T>=65&&T<=70)return T-55;if(T>=97&&T<=102)return T-87;n(!1,"Invalid character in "+q)}function l(q,h,T){var D=d(q,T);return T-1>=h&&(D|=d(q,T-1)<<4),D}i.prototype._parseHex=function(h,T,D){this.length=Math.ceil((h.length-T)/6),this.words=new Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var j=0,X=0,at;if(D==="be")for(Z=h.length-1;Z>=T;Z-=2)at=l(h,T,Z)<<j,this.words[X]|=at&67108863,j>=18?(j-=18,X+=1,this.words[X]|=at>>>26):j+=8;else{var K=h.length-T;for(Z=K%2===0?T+1:T;Z<h.length;Z+=2)at=l(h,T,Z)<<j,this.words[X]|=at&67108863,j>=18?(j-=18,X+=1,this.words[X]|=at>>>26):j+=8}this._strip()};function v(q,h,T,D){for(var Z=0,j=0,X=Math.min(q.length,T),at=h;at<X;at++){var K=q.charCodeAt(at)-48;Z*=D,K>=49?j=K-49+10:K>=17?j=K-17+10:j=K,n(K>=0&&j<D,"Invalid character"),Z+=j}return Z}i.prototype._parseBase=function(h,T,D){this.words=[0],this.length=1;for(var Z=0,j=1;j<=67108863;j*=T)Z++;Z--,j=j/T|0;for(var X=h.length-D,at=X%Z,K=Math.min(X,X-at)+D,p=0,E=D;E<K;E+=Z)p=v(h,E,E+Z,T),this.imuln(j),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(at!==0){var z=1;for(p=v(h,E,h.length,T),E=0;E<at;E++)z*=T;this.imuln(z),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this._strip()},i.prototype.copy=function(h){h.words=new Array(this.length);for(var T=0;T<this.length;T++)h.words[T]=this.words[T];h.length=this.length,h.negative=this.negative,h.red=this.red};function S(q,h){q.words=h.words,q.length=h.length,q.negative=h.negative,q.red=h.red}if(i.prototype._move=function(h){S(h,this)},i.prototype.clone=function(){var h=new i(null);return this.copy(h),h},i.prototype._expand=function(h){for(;this.length<h;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch{i.prototype.inspect=O}else i.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var C=["","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"],N=[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],B=[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];i.prototype.toString=function(h,T){h=h||10,T=T|0||1;var D;if(h===16||h==="hex"){D="";for(var Z=0,j=0,X=0;X<this.length;X++){var at=this.words[X],K=((at<<Z|j)&16777215).toString(16);j=at>>>24-Z&16777215,Z+=2,Z>=26&&(Z-=26,X--),j!==0||X!==this.length-1?D=C[6-K.length]+K+D:D=K+D}for(j!==0&&(D=j.toString(16)+D);D.length%T!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(h===(h|0)&&h>=2&&h<=36){var p=N[h],E=B[h];D="";var z=this.clone();for(z.negative=0;!z.isZero();){var $=z.modrn(E).toString(h);z=z.idivn(E),z.isZero()?D=$+D:D=C[p-$.length]+$+D}for(this.isZero()&&(D="0"+D);D.length%T!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},i.prototype.toJSON=function(){return this.toString(16,2)},u&&(i.prototype.toBuffer=function(h,T){return this.toArrayLike(u,h,T)}),i.prototype.toArray=function(h,T){return this.toArrayLike(Array,h,T)};var M=function(h,T){return h.allocUnsafe?h.allocUnsafe(T):new h(T)};i.prototype.toArrayLike=function(h,T,D){this._strip();var Z=this.byteLength(),j=D||Math.max(1,Z);n(Z<=j,"byte array longer than desired length"),n(j>0,"Requested array length <= 0");var X=M(h,j),at=T==="le"?"LE":"BE";return this["_toArrayLike"+at](X,Z),X},i.prototype._toArrayLikeLE=function(h,T){for(var D=0,Z=0,j=0,X=0;j<this.length;j++){var at=this.words[j]<<X|Z;h[D++]=at&255,D<h.length&&(h[D++]=at>>8&255),D<h.length&&(h[D++]=at>>16&255),X===6?(D<h.length&&(h[D++]=at>>24&255),Z=0,X=0):(Z=at>>>24,X+=2)}if(D<h.length)for(h[D++]=Z;D<h.length;)h[D++]=0},i.prototype._toArrayLikeBE=function(h,T){for(var D=h.length-1,Z=0,j=0,X=0;j<this.length;j++){var at=this.words[j]<<X|Z;h[D--]=at&255,D>=0&&(h[D--]=at>>8&255),D>=0&&(h[D--]=at>>16&255),X===6?(D>=0&&(h[D--]=at>>24&255),Z=0,X=0):(Z=at>>>24,X+=2)}if(D>=0)for(h[D--]=Z;D>=0;)h[D--]=0},Math.clz32?i.prototype._countBits=function(h){return 32-Math.clz32(h)}:i.prototype._countBits=function(h){var T=h,D=0;return T>=4096&&(D+=13,T>>>=13),T>=64&&(D+=7,T>>>=7),T>=8&&(D+=4,T>>>=4),T>=2&&(D+=2,T>>>=2),D+T},i.prototype._zeroBits=function(h){if(h===0)return 26;var T=h,D=0;return(T&8191)===0&&(D+=13,T>>>=13),(T&127)===0&&(D+=7,T>>>=7),(T&15)===0&&(D+=4,T>>>=4),(T&3)===0&&(D+=2,T>>>=2),(T&1)===0&&D++,D},i.prototype.bitLength=function(){var h=this.words[this.length-1],T=this._countBits(h);return(this.length-1)*26+T};function F(q){for(var h=new Array(q.bitLength()),T=0;T<h.length;T++){var D=T/26|0,Z=T%26;h[T]=q.words[D]>>>Z&1}return h}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,T=0;T<this.length;T++){var D=this._zeroBits(this.words[T]);if(h+=D,D!==26)break}return h},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(h){return this.negative!==0?this.abs().inotn(h).iaddn(1):this.clone()},i.prototype.fromTwos=function(h){return this.testn(h-1)?this.notn(h).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return this.negative!==0},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(h){for(;this.length<h.length;)this.words[this.length++]=0;for(var T=0;T<h.length;T++)this.words[T]=this.words[T]|h.words[T];return this._strip()},i.prototype.ior=function(h){return n((this.negative|h.negative)===0),this.iuor(h)},i.prototype.or=function(h){return this.length>h.length?this.clone().ior(h):h.clone().ior(this)},i.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},i.prototype.iuand=function(h){var T;this.length>h.length?T=h:T=this;for(var D=0;D<T.length;D++)this.words[D]=this.words[D]&h.words[D];return this.length=T.length,this._strip()},i.prototype.iand=function(h){return n((this.negative|h.negative)===0),this.iuand(h)},i.prototype.and=function(h){return this.length>h.length?this.clone().iand(h):h.clone().iand(this)},i.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},i.prototype.iuxor=function(h){var T,D;this.length>h.length?(T=this,D=h):(T=h,D=this);for(var Z=0;Z<D.length;Z++)this.words[Z]=T.words[Z]^D.words[Z];if(this!==T)for(;Z<T.length;Z++)this.words[Z]=T.words[Z];return this.length=T.length,this._strip()},i.prototype.ixor=function(h){return n((this.negative|h.negative)===0),this.iuxor(h)},i.prototype.xor=function(h){return this.length>h.length?this.clone().ixor(h):h.clone().ixor(this)},i.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},i.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var T=Math.ceil(h/26)|0,D=h%26;this._expand(T),D>0&&T--;for(var Z=0;Z<T;Z++)this.words[Z]=~this.words[Z]&67108863;return D>0&&(this.words[Z]=~this.words[Z]&67108863>>26-D),this._strip()},i.prototype.notn=function(h){return this.clone().inotn(h)},i.prototype.setn=function(h,T){n(typeof h=="number"&&h>=0);var D=h/26|0,Z=h%26;return this._expand(D+1),T?this.words[D]=this.words[D]|1<<Z:this.words[D]=this.words[D]&~(1<<Z),this._strip()},i.prototype.iadd=function(h){var T;if(this.negative!==0&&h.negative===0)return this.negative=0,T=this.isub(h),this.negative^=1,this._normSign();if(this.negative===0&&h.negative!==0)return h.negative=0,T=this.isub(h),h.negative=1,T._normSign();var D,Z;this.length>h.length?(D=this,Z=h):(D=h,Z=this);for(var j=0,X=0;X<Z.length;X++)T=(D.words[X]|0)+(Z.words[X]|0)+j,this.words[X]=T&67108863,j=T>>>26;for(;j!==0&&X<D.length;X++)T=(D.words[X]|0)+j,this.words[X]=T&67108863,j=T>>>26;if(this.length=D.length,j!==0)this.words[this.length]=j,this.length++;else if(D!==this)for(;X<D.length;X++)this.words[X]=D.words[X];return this},i.prototype.add=function(h){var T;return h.negative!==0&&this.negative===0?(h.negative=0,T=this.sub(h),h.negative^=1,T):h.negative===0&&this.negative!==0?(this.negative=0,T=h.sub(this),this.negative=1,T):this.length>h.length?this.clone().iadd(h):h.clone().iadd(this)},i.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var T=this.iadd(h);return h.negative=1,T._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var D=this.cmp(h);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,j;D>0?(Z=this,j=h):(Z=h,j=this);for(var X=0,at=0;at<j.length;at++)T=(Z.words[at]|0)-(j.words[at]|0)+X,X=T>>26,this.words[at]=T&67108863;for(;X!==0&&at<Z.length;at++)T=(Z.words[at]|0)+X,X=T>>26,this.words[at]=T&67108863;if(X===0&&at<Z.length&&Z!==this)for(;at<Z.length;at++)this.words[at]=Z.words[at];return this.length=Math.max(this.length,at),Z!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(h){return this.clone().isub(h)};function G(q,h,T){T.negative=h.negative^q.negative;var D=q.length+h.length|0;T.length=D,D=D-1|0;var Z=q.words[0]|0,j=h.words[0]|0,X=Z*j,at=X&67108863,K=X/67108864|0;T.words[0]=at;for(var p=1;p<D;p++){for(var E=K>>>26,z=K&67108863,$=Math.min(p,h.length-1),dt=Math.max(0,p-q.length+1);dt<=$;dt++){var _t=p-dt|0;Z=q.words[_t]|0,j=h.words[dt]|0,X=Z*j+z,E+=X/67108864|0,z=X&67108863}T.words[p]=z|0,K=E|0}return K!==0?T.words[p]=K|0:T.length--,T._strip()}var Q=function(h,T,D){var Z=h.words,j=T.words,X=D.words,at=0,K,p,E,z=Z[0]|0,$=z&8191,dt=z>>>13,_t=Z[1]|0,Dt=_t&8191,Yt=_t>>>13,zt=Z[2]|0,fe=zt&8191,le=zt>>>13,_e=Z[3]|0,we=_e&8191,Ee=_e>>>13,je=Z[4]|0,xe=je&8191,y=je>>>13,P=Z[5]|0,H=P&8191,lt=P>>>13,mt=Z[6]|0,vt=mt&8191,xt=mt>>>13,Gt=Z[7]|0,ee=Gt&8191,U=Gt>>>13,R=Z[8]|0,k=R&8191,A=R>>>13,V=Z[9]|0,W=V&8191,it=V>>>13,Lt=j[0]|0,Ct=Lt&8191,Mt=Lt>>>13,Pt=j[1]|0,rt=Pt&8191,Kt=Pt>>>13,be=j[2]|0,oe=be&8191,ae=be>>>13,ye=j[3]|0,pe=ye&8191,de=ye>>>13,sn=j[4]|0,Se=sn&8191,Te=sn>>>13,wn=j[5]|0,Ve=wn&8191,Ye=wn>>>13,Ir=j[6]|0,Qe=Ir&8191,Je=Ir>>>13,si=j[7]|0,un=si&8191,ln=si>>>13,hs=j[8]|0,fn=hs&8191,dn=hs>>>13,ps=j[9]|0,hn=ps&8191,pn=ps>>>13;D.negative=h.negative^T.negative,D.length=19,K=Math.imul($,Ct),p=Math.imul($,Mt),p=p+Math.imul(dt,Ct)|0,E=Math.imul(dt,Mt);var io=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(io>>>26)|0,io&=67108863,K=Math.imul(Dt,Ct),p=Math.imul(Dt,Mt),p=p+Math.imul(Yt,Ct)|0,E=Math.imul(Yt,Mt),K=K+Math.imul($,rt)|0,p=p+Math.imul($,Kt)|0,p=p+Math.imul(dt,rt)|0,E=E+Math.imul(dt,Kt)|0;var oo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(oo>>>26)|0,oo&=67108863,K=Math.imul(fe,Ct),p=Math.imul(fe,Mt),p=p+Math.imul(le,Ct)|0,E=Math.imul(le,Mt),K=K+Math.imul(Dt,rt)|0,p=p+Math.imul(Dt,Kt)|0,p=p+Math.imul(Yt,rt)|0,E=E+Math.imul(Yt,Kt)|0,K=K+Math.imul($,oe)|0,p=p+Math.imul($,ae)|0,p=p+Math.imul(dt,oe)|0,E=E+Math.imul(dt,ae)|0;var so=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(so>>>26)|0,so&=67108863,K=Math.imul(we,Ct),p=Math.imul(we,Mt),p=p+Math.imul(Ee,Ct)|0,E=Math.imul(Ee,Mt),K=K+Math.imul(fe,rt)|0,p=p+Math.imul(fe,Kt)|0,p=p+Math.imul(le,rt)|0,E=E+Math.imul(le,Kt)|0,K=K+Math.imul(Dt,oe)|0,p=p+Math.imul(Dt,ae)|0,p=p+Math.imul(Yt,oe)|0,E=E+Math.imul(Yt,ae)|0,K=K+Math.imul($,pe)|0,p=p+Math.imul($,de)|0,p=p+Math.imul(dt,pe)|0,E=E+Math.imul(dt,de)|0;var ao=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(ao>>>26)|0,ao&=67108863,K=Math.imul(xe,Ct),p=Math.imul(xe,Mt),p=p+Math.imul(y,Ct)|0,E=Math.imul(y,Mt),K=K+Math.imul(we,rt)|0,p=p+Math.imul(we,Kt)|0,p=p+Math.imul(Ee,rt)|0,E=E+Math.imul(Ee,Kt)|0,K=K+Math.imul(fe,oe)|0,p=p+Math.imul(fe,ae)|0,p=p+Math.imul(le,oe)|0,E=E+Math.imul(le,ae)|0,K=K+Math.imul(Dt,pe)|0,p=p+Math.imul(Dt,de)|0,p=p+Math.imul(Yt,pe)|0,E=E+Math.imul(Yt,de)|0,K=K+Math.imul($,Se)|0,p=p+Math.imul($,Te)|0,p=p+Math.imul(dt,Se)|0,E=E+Math.imul(dt,Te)|0;var co=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(co>>>26)|0,co&=67108863,K=Math.imul(H,Ct),p=Math.imul(H,Mt),p=p+Math.imul(lt,Ct)|0,E=Math.imul(lt,Mt),K=K+Math.imul(xe,rt)|0,p=p+Math.imul(xe,Kt)|0,p=p+Math.imul(y,rt)|0,E=E+Math.imul(y,Kt)|0,K=K+Math.imul(we,oe)|0,p=p+Math.imul(we,ae)|0,p=p+Math.imul(Ee,oe)|0,E=E+Math.imul(Ee,ae)|0,K=K+Math.imul(fe,pe)|0,p=p+Math.imul(fe,de)|0,p=p+Math.imul(le,pe)|0,E=E+Math.imul(le,de)|0,K=K+Math.imul(Dt,Se)|0,p=p+Math.imul(Dt,Te)|0,p=p+Math.imul(Yt,Se)|0,E=E+Math.imul(Yt,Te)|0,K=K+Math.imul($,Ve)|0,p=p+Math.imul($,Ye)|0,p=p+Math.imul(dt,Ve)|0,E=E+Math.imul(dt,Ye)|0;var uo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(uo>>>26)|0,uo&=67108863,K=Math.imul(vt,Ct),p=Math.imul(vt,Mt),p=p+Math.imul(xt,Ct)|0,E=Math.imul(xt,Mt),K=K+Math.imul(H,rt)|0,p=p+Math.imul(H,Kt)|0,p=p+Math.imul(lt,rt)|0,E=E+Math.imul(lt,Kt)|0,K=K+Math.imul(xe,oe)|0,p=p+Math.imul(xe,ae)|0,p=p+Math.imul(y,oe)|0,E=E+Math.imul(y,ae)|0,K=K+Math.imul(we,pe)|0,p=p+Math.imul(we,de)|0,p=p+Math.imul(Ee,pe)|0,E=E+Math.imul(Ee,de)|0,K=K+Math.imul(fe,Se)|0,p=p+Math.imul(fe,Te)|0,p=p+Math.imul(le,Se)|0,E=E+Math.imul(le,Te)|0,K=K+Math.imul(Dt,Ve)|0,p=p+Math.imul(Dt,Ye)|0,p=p+Math.imul(Yt,Ve)|0,E=E+Math.imul(Yt,Ye)|0,K=K+Math.imul($,Qe)|0,p=p+Math.imul($,Je)|0,p=p+Math.imul(dt,Qe)|0,E=E+Math.imul(dt,Je)|0;var lo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(lo>>>26)|0,lo&=67108863,K=Math.imul(ee,Ct),p=Math.imul(ee,Mt),p=p+Math.imul(U,Ct)|0,E=Math.imul(U,Mt),K=K+Math.imul(vt,rt)|0,p=p+Math.imul(vt,Kt)|0,p=p+Math.imul(xt,rt)|0,E=E+Math.imul(xt,Kt)|0,K=K+Math.imul(H,oe)|0,p=p+Math.imul(H,ae)|0,p=p+Math.imul(lt,oe)|0,E=E+Math.imul(lt,ae)|0,K=K+Math.imul(xe,pe)|0,p=p+Math.imul(xe,de)|0,p=p+Math.imul(y,pe)|0,E=E+Math.imul(y,de)|0,K=K+Math.imul(we,Se)|0,p=p+Math.imul(we,Te)|0,p=p+Math.imul(Ee,Se)|0,E=E+Math.imul(Ee,Te)|0,K=K+Math.imul(fe,Ve)|0,p=p+Math.imul(fe,Ye)|0,p=p+Math.imul(le,Ve)|0,E=E+Math.imul(le,Ye)|0,K=K+Math.imul(Dt,Qe)|0,p=p+Math.imul(Dt,Je)|0,p=p+Math.imul(Yt,Qe)|0,E=E+Math.imul(Yt,Je)|0,K=K+Math.imul($,un)|0,p=p+Math.imul($,ln)|0,p=p+Math.imul(dt,un)|0,E=E+Math.imul(dt,ln)|0;var fo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(fo>>>26)|0,fo&=67108863,K=Math.imul(k,Ct),p=Math.imul(k,Mt),p=p+Math.imul(A,Ct)|0,E=Math.imul(A,Mt),K=K+Math.imul(ee,rt)|0,p=p+Math.imul(ee,Kt)|0,p=p+Math.imul(U,rt)|0,E=E+Math.imul(U,Kt)|0,K=K+Math.imul(vt,oe)|0,p=p+Math.imul(vt,ae)|0,p=p+Math.imul(xt,oe)|0,E=E+Math.imul(xt,ae)|0,K=K+Math.imul(H,pe)|0,p=p+Math.imul(H,de)|0,p=p+Math.imul(lt,pe)|0,E=E+Math.imul(lt,de)|0,K=K+Math.imul(xe,Se)|0,p=p+Math.imul(xe,Te)|0,p=p+Math.imul(y,Se)|0,E=E+Math.imul(y,Te)|0,K=K+Math.imul(we,Ve)|0,p=p+Math.imul(we,Ye)|0,p=p+Math.imul(Ee,Ve)|0,E=E+Math.imul(Ee,Ye)|0,K=K+Math.imul(fe,Qe)|0,p=p+Math.imul(fe,Je)|0,p=p+Math.imul(le,Qe)|0,E=E+Math.imul(le,Je)|0,K=K+Math.imul(Dt,un)|0,p=p+Math.imul(Dt,ln)|0,p=p+Math.imul(Yt,un)|0,E=E+Math.imul(Yt,ln)|0,K=K+Math.imul($,fn)|0,p=p+Math.imul($,dn)|0,p=p+Math.imul(dt,fn)|0,E=E+Math.imul(dt,dn)|0;var ho=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(ho>>>26)|0,ho&=67108863,K=Math.imul(W,Ct),p=Math.imul(W,Mt),p=p+Math.imul(it,Ct)|0,E=Math.imul(it,Mt),K=K+Math.imul(k,rt)|0,p=p+Math.imul(k,Kt)|0,p=p+Math.imul(A,rt)|0,E=E+Math.imul(A,Kt)|0,K=K+Math.imul(ee,oe)|0,p=p+Math.imul(ee,ae)|0,p=p+Math.imul(U,oe)|0,E=E+Math.imul(U,ae)|0,K=K+Math.imul(vt,pe)|0,p=p+Math.imul(vt,de)|0,p=p+Math.imul(xt,pe)|0,E=E+Math.imul(xt,de)|0,K=K+Math.imul(H,Se)|0,p=p+Math.imul(H,Te)|0,p=p+Math.imul(lt,Se)|0,E=E+Math.imul(lt,Te)|0,K=K+Math.imul(xe,Ve)|0,p=p+Math.imul(xe,Ye)|0,p=p+Math.imul(y,Ve)|0,E=E+Math.imul(y,Ye)|0,K=K+Math.imul(we,Qe)|0,p=p+Math.imul(we,Je)|0,p=p+Math.imul(Ee,Qe)|0,E=E+Math.imul(Ee,Je)|0,K=K+Math.imul(fe,un)|0,p=p+Math.imul(fe,ln)|0,p=p+Math.imul(le,un)|0,E=E+Math.imul(le,ln)|0,K=K+Math.imul(Dt,fn)|0,p=p+Math.imul(Dt,dn)|0,p=p+Math.imul(Yt,fn)|0,E=E+Math.imul(Yt,dn)|0,K=K+Math.imul($,hn)|0,p=p+Math.imul($,pn)|0,p=p+Math.imul(dt,hn)|0,E=E+Math.imul(dt,pn)|0;var po=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(po>>>26)|0,po&=67108863,K=Math.imul(W,rt),p=Math.imul(W,Kt),p=p+Math.imul(it,rt)|0,E=Math.imul(it,Kt),K=K+Math.imul(k,oe)|0,p=p+Math.imul(k,ae)|0,p=p+Math.imul(A,oe)|0,E=E+Math.imul(A,ae)|0,K=K+Math.imul(ee,pe)|0,p=p+Math.imul(ee,de)|0,p=p+Math.imul(U,pe)|0,E=E+Math.imul(U,de)|0,K=K+Math.imul(vt,Se)|0,p=p+Math.imul(vt,Te)|0,p=p+Math.imul(xt,Se)|0,E=E+Math.imul(xt,Te)|0,K=K+Math.imul(H,Ve)|0,p=p+Math.imul(H,Ye)|0,p=p+Math.imul(lt,Ve)|0,E=E+Math.imul(lt,Ye)|0,K=K+Math.imul(xe,Qe)|0,p=p+Math.imul(xe,Je)|0,p=p+Math.imul(y,Qe)|0,E=E+Math.imul(y,Je)|0,K=K+Math.imul(we,un)|0,p=p+Math.imul(we,ln)|0,p=p+Math.imul(Ee,un)|0,E=E+Math.imul(Ee,ln)|0,K=K+Math.imul(fe,fn)|0,p=p+Math.imul(fe,dn)|0,p=p+Math.imul(le,fn)|0,E=E+Math.imul(le,dn)|0,K=K+Math.imul(Dt,hn)|0,p=p+Math.imul(Dt,pn)|0,p=p+Math.imul(Yt,hn)|0,E=E+Math.imul(Yt,pn)|0;var kn=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(kn>>>26)|0,kn&=67108863,K=Math.imul(W,oe),p=Math.imul(W,ae),p=p+Math.imul(it,oe)|0,E=Math.imul(it,ae),K=K+Math.imul(k,pe)|0,p=p+Math.imul(k,de)|0,p=p+Math.imul(A,pe)|0,E=E+Math.imul(A,de)|0,K=K+Math.imul(ee,Se)|0,p=p+Math.imul(ee,Te)|0,p=p+Math.imul(U,Se)|0,E=E+Math.imul(U,Te)|0,K=K+Math.imul(vt,Ve)|0,p=p+Math.imul(vt,Ye)|0,p=p+Math.imul(xt,Ve)|0,E=E+Math.imul(xt,Ye)|0,K=K+Math.imul(H,Qe)|0,p=p+Math.imul(H,Je)|0,p=p+Math.imul(lt,Qe)|0,E=E+Math.imul(lt,Je)|0,K=K+Math.imul(xe,un)|0,p=p+Math.imul(xe,ln)|0,p=p+Math.imul(y,un)|0,E=E+Math.imul(y,ln)|0,K=K+Math.imul(we,fn)|0,p=p+Math.imul(we,dn)|0,p=p+Math.imul(Ee,fn)|0,E=E+Math.imul(Ee,dn)|0,K=K+Math.imul(fe,hn)|0,p=p+Math.imul(fe,pn)|0,p=p+Math.imul(le,hn)|0,E=E+Math.imul(le,pn)|0;var go=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(go>>>26)|0,go&=67108863,K=Math.imul(W,pe),p=Math.imul(W,de),p=p+Math.imul(it,pe)|0,E=Math.imul(it,de),K=K+Math.imul(k,Se)|0,p=p+Math.imul(k,Te)|0,p=p+Math.imul(A,Se)|0,E=E+Math.imul(A,Te)|0,K=K+Math.imul(ee,Ve)|0,p=p+Math.imul(ee,Ye)|0,p=p+Math.imul(U,Ve)|0,E=E+Math.imul(U,Ye)|0,K=K+Math.imul(vt,Qe)|0,p=p+Math.imul(vt,Je)|0,p=p+Math.imul(xt,Qe)|0,E=E+Math.imul(xt,Je)|0,K=K+Math.imul(H,un)|0,p=p+Math.imul(H,ln)|0,p=p+Math.imul(lt,un)|0,E=E+Math.imul(lt,ln)|0,K=K+Math.imul(xe,fn)|0,p=p+Math.imul(xe,dn)|0,p=p+Math.imul(y,fn)|0,E=E+Math.imul(y,dn)|0,K=K+Math.imul(we,hn)|0,p=p+Math.imul(we,pn)|0,p=p+Math.imul(Ee,hn)|0,E=E+Math.imul(Ee,pn)|0;var mo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(mo>>>26)|0,mo&=67108863,K=Math.imul(W,Se),p=Math.imul(W,Te),p=p+Math.imul(it,Se)|0,E=Math.imul(it,Te),K=K+Math.imul(k,Ve)|0,p=p+Math.imul(k,Ye)|0,p=p+Math.imul(A,Ve)|0,E=E+Math.imul(A,Ye)|0,K=K+Math.imul(ee,Qe)|0,p=p+Math.imul(ee,Je)|0,p=p+Math.imul(U,Qe)|0,E=E+Math.imul(U,Je)|0,K=K+Math.imul(vt,un)|0,p=p+Math.imul(vt,ln)|0,p=p+Math.imul(xt,un)|0,E=E+Math.imul(xt,ln)|0,K=K+Math.imul(H,fn)|0,p=p+Math.imul(H,dn)|0,p=p+Math.imul(lt,fn)|0,E=E+Math.imul(lt,dn)|0,K=K+Math.imul(xe,hn)|0,p=p+Math.imul(xe,pn)|0,p=p+Math.imul(y,hn)|0,E=E+Math.imul(y,pn)|0;var vo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(vo>>>26)|0,vo&=67108863,K=Math.imul(W,Ve),p=Math.imul(W,Ye),p=p+Math.imul(it,Ve)|0,E=Math.imul(it,Ye),K=K+Math.imul(k,Qe)|0,p=p+Math.imul(k,Je)|0,p=p+Math.imul(A,Qe)|0,E=E+Math.imul(A,Je)|0,K=K+Math.imul(ee,un)|0,p=p+Math.imul(ee,ln)|0,p=p+Math.imul(U,un)|0,E=E+Math.imul(U,ln)|0,K=K+Math.imul(vt,fn)|0,p=p+Math.imul(vt,dn)|0,p=p+Math.imul(xt,fn)|0,E=E+Math.imul(xt,dn)|0,K=K+Math.imul(H,hn)|0,p=p+Math.imul(H,pn)|0,p=p+Math.imul(lt,hn)|0,E=E+Math.imul(lt,pn)|0;var ze=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(ze>>>26)|0,ze&=67108863,K=Math.imul(W,Qe),p=Math.imul(W,Je),p=p+Math.imul(it,Qe)|0,E=Math.imul(it,Je),K=K+Math.imul(k,un)|0,p=p+Math.imul(k,ln)|0,p=p+Math.imul(A,un)|0,E=E+Math.imul(A,ln)|0,K=K+Math.imul(ee,fn)|0,p=p+Math.imul(ee,dn)|0,p=p+Math.imul(U,fn)|0,E=E+Math.imul(U,dn)|0,K=K+Math.imul(vt,hn)|0,p=p+Math.imul(vt,pn)|0,p=p+Math.imul(xt,hn)|0,E=E+Math.imul(xt,pn)|0;var yo=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(yo>>>26)|0,yo&=67108863,K=Math.imul(W,un),p=Math.imul(W,ln),p=p+Math.imul(it,un)|0,E=Math.imul(it,ln),K=K+Math.imul(k,fn)|0,p=p+Math.imul(k,dn)|0,p=p+Math.imul(A,fn)|0,E=E+Math.imul(A,dn)|0,K=K+Math.imul(ee,hn)|0,p=p+Math.imul(ee,pn)|0,p=p+Math.imul(U,hn)|0,E=E+Math.imul(U,pn)|0;var jn=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(jn>>>26)|0,jn&=67108863,K=Math.imul(W,fn),p=Math.imul(W,dn),p=p+Math.imul(it,fn)|0,E=Math.imul(it,dn),K=K+Math.imul(k,hn)|0,p=p+Math.imul(k,pn)|0,p=p+Math.imul(A,hn)|0,E=E+Math.imul(A,pn)|0;var Ci=(at+K|0)+((p&8191)<<13)|0;at=(E+(p>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,K=Math.imul(W,hn),p=Math.imul(W,pn),p=p+Math.imul(it,hn)|0,E=Math.imul(it,pn);var Bi=(at+K|0)+((p&8191)<<13)|0;return at=(E+(p>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,X[0]=io,X[1]=oo,X[2]=so,X[3]=ao,X[4]=co,X[5]=uo,X[6]=lo,X[7]=fo,X[8]=ho,X[9]=po,X[10]=kn,X[11]=go,X[12]=mo,X[13]=vo,X[14]=ze,X[15]=yo,X[16]=jn,X[17]=Ci,X[18]=Bi,at!==0&&(X[19]=at,D.length++),D};Math.imul||(Q=G);function et(q,h,T){T.negative=h.negative^q.negative,T.length=q.length+h.length;for(var D=0,Z=0,j=0;j<T.length-1;j++){var X=Z;Z=0;for(var at=D&67108863,K=Math.min(j,h.length-1),p=Math.max(0,j-q.length+1);p<=K;p++){var E=j-p,z=q.words[E]|0,$=h.words[p]|0,dt=z*$,_t=dt&67108863;X=X+(dt/67108864|0)|0,_t=_t+at|0,at=_t&67108863,X=X+(_t>>>26)|0,Z+=X>>>26,X&=67108863}T.words[j]=at,D=X,X=Z}return D!==0?T.words[j]=D:T.length--,T._strip()}function ct(q,h,T){return et(q,h,T)}i.prototype.mulTo=function(h,T){var D,Z=this.length+h.length;return this.length===10&&h.length===10?D=Q(this,h,T):Z<63?D=G(this,h,T):Z<1024?D=et(this,h,T):D=ct(this,h,T),D},i.prototype.mul=function(h){var T=new i(null);return T.words=new Array(this.length+h.length),this.mulTo(h,T)},i.prototype.mulf=function(h){var T=new i(null);return T.words=new Array(this.length+h.length),ct(this,h,T)},i.prototype.imul=function(h){return this.clone().mulTo(h,this)},i.prototype.imuln=function(h){var T=h<0;T&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var D=0,Z=0;Z<this.length;Z++){var j=(this.words[Z]|0)*h,X=(j&67108863)+(D&67108863);D>>=26,D+=j/67108864|0,D+=X>>>26,this.words[Z]=X&67108863}return D!==0&&(this.words[Z]=D,this.length++),this.length=h===0?1:this.length,T?this.ineg():this},i.prototype.muln=function(h){return this.clone().imuln(h)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(h){var T=F(h);if(T.length===0)return new i(1);for(var D=this,Z=0;Z<T.length&&T[Z]===0;Z++,D=D.sqr());if(++Z<T.length)for(var j=D.sqr();Z<T.length;Z++,j=j.sqr())T[Z]!==0&&(D=D.mul(j));return D},i.prototype.iushln=function(h){n(typeof h=="number"&&h>=0);var T=h%26,D=(h-T)/26,Z=67108863>>>26-T<<26-T,j;if(T!==0){var X=0;for(j=0;j<this.length;j++){var at=this.words[j]&Z,K=(this.words[j]|0)-at<<T;this.words[j]=K|X,X=at>>>26-T}X&&(this.words[j]=X,this.length++)}if(D!==0){for(j=this.length-1;j>=0;j--)this.words[j+D]=this.words[j];for(j=0;j<D;j++)this.words[j]=0;this.length+=D}return this._strip()},i.prototype.ishln=function(h){return n(this.negative===0),this.iushln(h)},i.prototype.iushrn=function(h,T,D){n(typeof h=="number"&&h>=0);var Z;T?Z=(T-T%26)/26:Z=0;var j=h%26,X=Math.min((h-j)/26,this.length),at=67108863^67108863>>>j<<j,K=D;if(Z-=X,Z=Math.max(0,Z),K){for(var p=0;p<X;p++)K.words[p]=this.words[p];K.length=X}if(X!==0)if(this.length>X)for(this.length-=X,p=0;p<this.length;p++)this.words[p]=this.words[p+X];else this.words[0]=0,this.length=1;var E=0;for(p=this.length-1;p>=0&&(E!==0||p>=Z);p--){var z=this.words[p]|0;this.words[p]=E<<26-j|z>>>j,E=z&at}return K&&E!==0&&(K.words[K.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(h,T,D){return n(this.negative===0),this.iushrn(h,T,D)},i.prototype.shln=function(h){return this.clone().ishln(h)},i.prototype.ushln=function(h){return this.clone().iushln(h)},i.prototype.shrn=function(h){return this.clone().ishrn(h)},i.prototype.ushrn=function(h){return this.clone().iushrn(h)},i.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var T=h%26,D=(h-T)/26,Z=1<<T;if(this.length<=D)return!1;var j=this.words[D];return!!(j&Z)},i.prototype.imaskn=function(h){n(typeof h=="number"&&h>=0);var T=h%26,D=(h-T)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(T!==0&&D++,this.length=Math.min(D,this.length),T!==0){var Z=67108863^67108863>>>T<<T;this.words[this.length-1]&=Z}return this._strip()},i.prototype.maskn=function(h){return this.clone().imaskn(h)},i.prototype.iaddn=function(h){return n(typeof h=="number"),n(h<67108864),h<0?this.isubn(-h):this.negative!==0?this.length===1&&(this.words[0]|0)<=h?(this.words[0]=h-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(h),this.negative=1,this):this._iaddn(h)},i.prototype._iaddn=function(h){this.words[0]+=h;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},i.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this._strip()},i.prototype.addn=function(h){return this.clone().iaddn(h)},i.prototype.subn=function(h){return this.clone().isubn(h)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(h,T,D){var Z=h.length+D,j;this._expand(Z);var X,at=0;for(j=0;j<h.length;j++){X=(this.words[j+D]|0)+at;var K=(h.words[j]|0)*T;X-=K&67108863,at=(X>>26)-(K/67108864|0),this.words[j+D]=X&67108863}for(;j<this.length-D;j++)X=(this.words[j+D]|0)+at,at=X>>26,this.words[j+D]=X&67108863;if(at===0)return this._strip();for(n(at===-1),at=0,j=0;j<this.length;j++)X=-(this.words[j]|0)+at,at=X>>26,this.words[j]=X&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(h,T){var D=this.length-h.length,Z=this.clone(),j=h,X=j.words[j.length-1]|0,at=this._countBits(X);D=26-at,D!==0&&(j=j.ushln(D),Z.iushln(D),X=j.words[j.length-1]|0);var K=Z.length-j.length,p;if(T!=="mod"){p=new i(null),p.length=K+1,p.words=new Array(p.length);for(var E=0;E<p.length;E++)p.words[E]=0}var z=Z.clone()._ishlnsubmul(j,1,K);z.negative===0&&(Z=z,p&&(p.words[K]=1));for(var $=K-1;$>=0;$--){var dt=(Z.words[j.length+$]|0)*67108864+(Z.words[j.length+$-1]|0);for(dt=Math.min(dt/X|0,67108863),Z._ishlnsubmul(j,dt,$);Z.negative!==0;)dt--,Z.negative=0,Z._ishlnsubmul(j,1,$),Z.isZero()||(Z.negative^=1);p&&(p.words[$]=dt)}return p&&p._strip(),Z._strip(),T!=="div"&&D!==0&&Z.iushrn(D),{div:p||null,mod:Z}},i.prototype.divmod=function(h,T,D){if(n(!h.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var Z,j,X;return this.negative!==0&&h.negative===0?(X=this.neg().divmod(h,T),T!=="mod"&&(Z=X.div.neg()),T!=="div"&&(j=X.mod.neg(),D&&j.negative!==0&&j.iadd(h)),{div:Z,mod:j}):this.negative===0&&h.negative!==0?(X=this.divmod(h.neg(),T),T!=="mod"&&(Z=X.div.neg()),{div:Z,mod:X.mod}):(this.negative&h.negative)!==0?(X=this.neg().divmod(h.neg(),T),T!=="div"&&(j=X.mod.neg(),D&&j.negative!==0&&j.isub(h)),{div:X.div,mod:j}):h.length>this.length||this.cmp(h)<0?{div:new i(0),mod:this}:h.length===1?T==="div"?{div:this.divn(h.words[0]),mod:null}:T==="mod"?{div:null,mod:new i(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new i(this.modrn(h.words[0]))}:this._wordDiv(h,T)},i.prototype.div=function(h){return this.divmod(h,"div",!1).div},i.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},i.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},i.prototype.divRound=function(h){var T=this.divmod(h);if(T.mod.isZero())return T.div;var D=T.div.negative!==0?T.mod.isub(h):T.mod,Z=h.ushrn(1),j=h.andln(1),X=D.cmp(Z);return X<0||j===1&&X===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},i.prototype.modrn=function(h){var T=h<0;T&&(h=-h),n(h<=67108863);for(var D=(1<<26)%h,Z=0,j=this.length-1;j>=0;j--)Z=(D*Z+(this.words[j]|0))%h;return T?-Z:Z},i.prototype.modn=function(h){return this.modrn(h)},i.prototype.idivn=function(h){var T=h<0;T&&(h=-h),n(h<=67108863);for(var D=0,Z=this.length-1;Z>=0;Z--){var j=(this.words[Z]|0)+D*67108864;this.words[Z]=j/h|0,D=j%h}return this._strip(),T?this.ineg():this},i.prototype.divn=function(h){return this.clone().idivn(h)},i.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var T=this,D=h.clone();T.negative!==0?T=T.umod(h):T=T.clone();for(var Z=new i(1),j=new i(0),X=new i(0),at=new i(1),K=0;T.isEven()&&D.isEven();)T.iushrn(1),D.iushrn(1),++K;for(var p=D.clone(),E=T.clone();!T.isZero();){for(var z=0,$=1;(T.words[0]&$)===0&&z<26;++z,$<<=1);if(z>0)for(T.iushrn(z);z-- >0;)(Z.isOdd()||j.isOdd())&&(Z.iadd(p),j.isub(E)),Z.iushrn(1),j.iushrn(1);for(var dt=0,_t=1;(D.words[0]&_t)===0&&dt<26;++dt,_t<<=1);if(dt>0)for(D.iushrn(dt);dt-- >0;)(X.isOdd()||at.isOdd())&&(X.iadd(p),at.isub(E)),X.iushrn(1),at.iushrn(1);T.cmp(D)>=0?(T.isub(D),Z.isub(X),j.isub(at)):(D.isub(T),X.isub(Z),at.isub(j))}return{a:X,b:at,gcd:D.iushln(K)}},i.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var T=this,D=h.clone();T.negative!==0?T=T.umod(h):T=T.clone();for(var Z=new i(1),j=new i(0),X=D.clone();T.cmpn(1)>0&&D.cmpn(1)>0;){for(var at=0,K=1;(T.words[0]&K)===0&&at<26;++at,K<<=1);if(at>0)for(T.iushrn(at);at-- >0;)Z.isOdd()&&Z.iadd(X),Z.iushrn(1);for(var p=0,E=1;(D.words[0]&E)===0&&p<26;++p,E<<=1);if(p>0)for(D.iushrn(p);p-- >0;)j.isOdd()&&j.iadd(X),j.iushrn(1);T.cmp(D)>=0?(T.isub(D),Z.isub(j)):(D.isub(T),j.isub(Z))}var z;return T.cmpn(1)===0?z=Z:z=j,z.cmpn(0)<0&&z.iadd(h),z},i.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var T=this.clone(),D=h.clone();T.negative=0,D.negative=0;for(var Z=0;T.isEven()&&D.isEven();Z++)T.iushrn(1),D.iushrn(1);do{for(;T.isEven();)T.iushrn(1);for(;D.isEven();)D.iushrn(1);var j=T.cmp(D);if(j<0){var X=T;T=D,D=X}else if(j===0||D.cmpn(1)===0)break;T.isub(D)}while(!0);return D.iushln(Z)},i.prototype.invm=function(h){return this.egcd(h).a.umod(h)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(h){return this.words[0]&h},i.prototype.bincn=function(h){n(typeof h=="number");var T=h%26,D=(h-T)/26,Z=1<<T;if(this.length<=D)return this._expand(D+1),this.words[D]|=Z,this;for(var j=Z,X=D;j!==0&&X<this.length;X++){var at=this.words[X]|0;at+=j,j=at>>>26,at&=67108863,this.words[X]=at}return j!==0&&(this.words[X]=j,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(h){var T=h<0;if(this.negative!==0&&!T)return-1;if(this.negative===0&&T)return 1;this._strip();var D;if(this.length>1)D=1;else{T&&(h=-h),n(h<=67108863,"Number is too big");var Z=this.words[0]|0;D=Z===h?0:Z<h?-1:1}return this.negative!==0?-D|0:D},i.prototype.cmp=function(h){if(this.negative!==0&&h.negative===0)return-1;if(this.negative===0&&h.negative!==0)return 1;var T=this.ucmp(h);return this.negative!==0?-T|0:T},i.prototype.ucmp=function(h){if(this.length>h.length)return 1;if(this.length<h.length)return-1;for(var T=0,D=this.length-1;D>=0;D--){var Z=this.words[D]|0,j=h.words[D]|0;if(Z!==j){Z<j?T=-1:Z>j&&(T=1);break}}return T},i.prototype.gtn=function(h){return this.cmpn(h)===1},i.prototype.gt=function(h){return this.cmp(h)===1},i.prototype.gten=function(h){return this.cmpn(h)>=0},i.prototype.gte=function(h){return this.cmp(h)>=0},i.prototype.ltn=function(h){return this.cmpn(h)===-1},i.prototype.lt=function(h){return this.cmp(h)===-1},i.prototype.lten=function(h){return this.cmpn(h)<=0},i.prototype.lte=function(h){return this.cmp(h)<=0},i.prototype.eqn=function(h){return this.cmpn(h)===0},i.prototype.eq=function(h){return this.cmp(h)===0},i.red=function(h){return new wt(h)},i.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(h){return this.red=h,this},i.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},i.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},i.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},i.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},i.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},i.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},i.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},i.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var ft={k256:null,p224:null,p192:null,p25519:null};function ot(q,h){this.name=q,this.p=new i(h,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ot.prototype._tmp=function(){var h=new i(null);return h.words=new Array(Math.ceil(this.n/13)),h},ot.prototype.ireduce=function(h){var T=h,D;do this.split(T,this.tmp),T=this.imulK(T),T=T.iadd(this.tmp),D=T.bitLength();while(D>this.n);var Z=D<this.n?-1:T.ucmp(this.p);return Z===0?(T.words[0]=0,T.length=1):Z>0?T.isub(this.p):T.strip!==void 0?T.strip():T._strip(),T},ot.prototype.split=function(h,T){h.iushrn(this.n,0,T)},ot.prototype.imulK=function(h){return h.imul(this.k)};function bt(){ot.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}o(bt,ot),bt.prototype.split=function(h,T){for(var D=4194303,Z=Math.min(h.length,9),j=0;j<Z;j++)T.words[j]=h.words[j];if(T.length=Z,h.length<=9){h.words[0]=0,h.length=1;return}var X=h.words[9];for(T.words[T.length++]=X&D,j=10;j<h.length;j++){var at=h.words[j]|0;h.words[j-10]=(at&D)<<4|X>>>22,X=at}X>>>=22,h.words[j-10]=X,X===0&&h.length>10?h.length-=10:h.length-=9},bt.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var T=0,D=0;D<h.length;D++){var Z=h.words[D]|0;T+=Z*977,h.words[D]=T&67108863,T=Z*64+(T/67108864|0)}return h.words[h.length-1]===0&&(h.length--,h.words[h.length-1]===0&&h.length--),h};function Rt(){ot.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}o(Rt,ot);function At(){ot.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}o(At,ot);function gt(){ot.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}o(gt,ot),gt.prototype.imulK=function(h){for(var T=0,D=0;D<h.length;D++){var Z=(h.words[D]|0)*19+T,j=Z&67108863;Z>>>=26,h.words[D]=j,T=Z}return T!==0&&(h.words[h.length++]=T),h},i._prime=function(h){if(ft[h])return ft[h];var T;if(h==="k256")T=new bt;else if(h==="p224")T=new Rt;else if(h==="p192")T=new At;else if(h==="p25519")T=new gt;else throw new Error("Unknown prime "+h);return ft[h]=T,T};function wt(q){if(typeof q=="string"){var h=i._prime(q);this.m=h.p,this.prime=h}else n(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}wt.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},wt.prototype._verify2=function(h,T){n((h.negative|T.negative)===0,"red works only with positives"),n(h.red&&h.red===T.red,"red works only with red numbers")},wt.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(S(h,h.umod(this.m)._forceRed(this)),h)},wt.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},wt.prototype.add=function(h,T){this._verify2(h,T);var D=h.add(T);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},wt.prototype.iadd=function(h,T){this._verify2(h,T);var D=h.iadd(T);return D.cmp(this.m)>=0&&D.isub(this.m),D},wt.prototype.sub=function(h,T){this._verify2(h,T);var D=h.sub(T);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},wt.prototype.isub=function(h,T){this._verify2(h,T);var D=h.isub(T);return D.cmpn(0)<0&&D.iadd(this.m),D},wt.prototype.shl=function(h,T){return this._verify1(h),this.imod(h.ushln(T))},wt.prototype.imul=function(h,T){return this._verify2(h,T),this.imod(h.imul(T))},wt.prototype.mul=function(h,T){return this._verify2(h,T),this.imod(h.mul(T))},wt.prototype.isqr=function(h){return this.imul(h,h.clone())},wt.prototype.sqr=function(h){return this.mul(h,h)},wt.prototype.sqrt=function(h){if(h.isZero())return h.clone();var T=this.m.andln(3);if(n(T%2===1),T===3){var D=this.m.add(new i(1)).iushrn(2);return this.pow(h,D)}for(var Z=this.m.subn(1),j=0;!Z.isZero()&&Z.andln(1)===0;)j++,Z.iushrn(1);n(!Z.isZero());var X=new i(1).toRed(this),at=X.redNeg(),K=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new i(2*p*p).toRed(this);this.pow(p,K).cmp(at)!==0;)p.redIAdd(at);for(var E=this.pow(p,Z),z=this.pow(h,Z.addn(1).iushrn(1)),$=this.pow(h,Z),dt=j;$.cmp(X)!==0;){for(var _t=$,Dt=0;_t.cmp(X)!==0;Dt++)_t=_t.redSqr();n(Dt<dt);var Yt=this.pow(E,new i(1).iushln(dt-Dt-1));z=z.redMul(Yt),E=Yt.redSqr(),$=$.redMul(E),dt=Dt}return z},wt.prototype.invm=function(h){var T=h._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},wt.prototype.pow=function(h,T){if(T.isZero())return new i(1).toRed(this);if(T.cmpn(1)===0)return h.clone();var D=4,Z=new Array(1<<D);Z[0]=new i(1).toRed(this),Z[1]=h;for(var j=2;j<Z.length;j++)Z[j]=this.mul(Z[j-1],h);var X=Z[0],at=0,K=0,p=T.bitLength()%26;for(p===0&&(p=26),j=T.length-1;j>=0;j--){for(var E=T.words[j],z=p-1;z>=0;z--){var $=E>>z&1;if(X!==Z[0]&&(X=this.sqr(X)),$===0&&at===0){K=0;continue}at<<=1,at|=$,K++,!(K!==D&&(j!==0||z!==0))&&(X=this.mul(X,Z[at]),K=0,at=0)}p=26}return X},wt.prototype.convertTo=function(h){var T=h.umod(this.m);return T===h?T.clone():T},wt.prototype.convertFrom=function(h){var T=h.clone();return T.red=null,T},i.mont=function(h){return new kt(h)};function kt(q){wt.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}o(kt,wt),kt.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},kt.prototype.convertFrom=function(h){var T=this.imod(h.mul(this.rinv));return T.red=null,T},kt.prototype.imul=function(h,T){if(h.isZero()||T.isZero())return h.words[0]=0,h.length=1,h;var D=h.imul(T),Z=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=D.isub(Z).iushrn(this.shift),X=j;return j.cmp(this.m)>=0?X=j.isub(this.m):j.cmpn(0)<0&&(X=j.iadd(this.m)),X._forceRed(this)},kt.prototype.mul=function(h,T){if(h.isZero()||T.isZero())return new i(0)._forceRed(this);var D=h.mul(T),Z=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),j=D.isub(Z).iushrn(this.shift),X=j;return j.cmp(this.m)>=0?X=j.isub(this.m):j.cmpn(0)<0&&(X=j.iadd(this.m)),X._forceRed(this)},kt.prototype.invm=function(h){var T=this.imod(h._invmp(this.m).mul(this.r2));return T._forceRed(this)}})(r,Ih)}(Do)),Do.exports}var kh=ou();const su=Vi(kh);var Uo={exports:{}};var au;function Oh(){return au||(au=1,function(r,t){var e=Ps(),n=e.Buffer;function o(u,d){for(var l in u)d[l]=u[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=e:(o(e,t),t.Buffer=i);function i(u,d,l){return n(u,d,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(u,d,l){if(typeof u=="number")throw new TypeError("Argument must not be a number");return n(u,d,l)},i.alloc=function(u,d,l){if(typeof u!="number")throw new TypeError("Argument must be a number");var v=n(u);return d!==void 0?typeof l=="string"?v.fill(d,l):v.fill(d):v.fill(0),v},i.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return n(u)},i.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return e.SlowBuffer(u)}}(Uo,Uo.exports)),Uo.exports}var $s,cu;function Th(){if(cu)return $s;cu=1;var r=Oh().Buffer;function t(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),o=0;o<n.length;o++)n[o]=255;for(var i=0;i<e.length;i++){var u=e.charAt(i),d=u.charCodeAt(0);if(n[d]!==255)throw new TypeError(u+" is ambiguous");n[d]=i}var l=e.length,v=e.charAt(0),S=Math.log(l)/Math.log(256),O=Math.log(256)/Math.log(l);function C(M){if((Array.isArray(M)||M instanceof Uint8Array)&&(M=r.from(M)),!r.isBuffer(M))throw new TypeError("Expected Buffer");if(M.length===0)return"";for(var F=0,G=0,Q=0,et=M.length;Q!==et&&M[Q]===0;)Q++,F++;for(var ct=(et-Q)*O+1>>>0,ft=new Uint8Array(ct);Q!==et;){for(var ot=M[Q],bt=0,Rt=ct-1;(ot!==0||bt<G)&&Rt!==-1;Rt--,bt++)ot+=256*ft[Rt]>>>0,ft[Rt]=ot%l>>>0,ot=ot/l>>>0;if(ot!==0)throw new Error("Non-zero carry");G=bt,Q++}for(var At=ct-G;At!==ct&&ft[At]===0;)At++;for(var gt=v.repeat(F);At<ct;++At)gt+=e.charAt(ft[At]);return gt}function N(M){if(typeof M!="string")throw new TypeError("Expected String");if(M.length===0)return r.alloc(0);for(var F=0,G=0,Q=0;M[F]===v;)G++,F++;for(var et=(M.length-F)*S+1>>>0,ct=new Uint8Array(et);F<M.length;){var ft=M.charCodeAt(F);if(ft>255)return;var ot=n[ft];if(ot===255)return;for(var bt=0,Rt=et-1;(ot!==0||bt<Q)&&Rt!==-1;Rt--,bt++)ot+=l*ct[Rt]>>>0,ct[Rt]=ot%256>>>0,ot=ot/256>>>0;if(ot!==0)throw new Error("Non-zero carry");Q=bt,F++}for(var At=et-Q;At!==et&&ct[At]===0;)At++;var gt=r.allocUnsafe(G+(et-At));gt.fill(0,0,G);for(var wt=G;At!==et;)gt[wt++]=ct[At++];return gt}function B(M){var F=N(M);if(F)return F;throw new Error("Non-base"+l+" character")}return{encode:C,decodeUnsafe:N,decode:B}}return $s=t,$s}var Zs,uu;function lu(){if(uu)return Zs;uu=1;var r=Th(),t="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Zs=r(t),Zs}var Nh=lu();const Sn=Vi(Nh),xh=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Lr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Cr=new Uint32Array(64);class Lh extends Dc{constructor(){super(64,32,8,!1),this.A=Lr[0]|0,this.B=Lr[1]|0,this.C=Lr[2]|0,this.D=Lr[3]|0,this.E=Lr[4]|0,this.F=Lr[5]|0,this.G=Lr[6]|0,this.H=Lr[7]|0}get(){const{A:t,B:e,C:n,D:o,E:i,F:u,G:d,H:l}=this;return[t,e,n,o,i,u,d,l]}set(t,e,n,o,i,u,d,l){this.A=t|0,this.B=e|0,this.C=n|0,this.D=o|0,this.E=i|0,this.F=u|0,this.G=d|0,this.H=l|0}process(t,e){for(let O=0;O<16;O++,e+=4)Cr[O]=t.getUint32(e,!1);for(let O=16;O<64;O++){const C=Cr[O-15],N=Cr[O-2],B=sr(C,7)^sr(C,18)^C>>>3,M=sr(N,17)^sr(N,19)^N>>>10;Cr[O]=M+Cr[O-7]+B+Cr[O-16]|0}let{A:n,B:o,C:i,D:u,E:d,F:l,G:v,H:S}=this;for(let O=0;O<64;O++){const C=sr(d,6)^sr(d,11)^sr(d,25),N=S+C+Nd(d,l,v)+xh[O]+Cr[O]|0,M=(sr(n,2)^sr(n,13)^sr(n,22))+xd(n,o,i)|0;S=v,v=l,l=d,d=u+N|0,u=i,i=o,o=n,n=N+M|0}n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,u=u+this.D|0,d=d+this.E|0,l=l+this.F|0,v=v+this.G|0,S=S+this.H|0,this.set(n,o,i,u,d,l,v,S)}roundClean(){Cr.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Xs=Fs(()=>new Lh);var Ke={};function _r(r,t,e){return t<=r&&r<=e}function Fo(r){if(r===void 0)return{};if(r===Object(r))return r;throw TypeError("Could not convert argument to dictionary")}function Ch(r){for(var t=String(r),e=t.length,n=0,o=[];n<e;){var i=t.charCodeAt(n);if(i<55296||i>57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(n===e-1)o.push(65533);else{var u=r.charCodeAt(n+1);if(56320<=u&&u<=57343){var d=i&1023,l=u&1023;o.push(65536+(d<<10)+l),n+=1}else o.push(65533)}n+=1}return o}function Bh(r){for(var t="",e=0;e<r.length;++e){var n=r[e];n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode((n>>10)+55296,(n&1023)+56320))}return t}var Ho=-1;function Js(r){this.tokens=[].slice.call(r)}Js.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Ho},prepend:function(r){if(Array.isArray(r))for(var t=r;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(r)},push:function(r){if(Array.isArray(r))for(var t=r;t.length;)this.tokens.push(t.shift());else this.tokens.push(r)}};var wi=-1;function Qs(r,t){if(r)throw TypeError("Decoder error");return t||65533}var Vo="utf-8";function Wo(r,t){if(!(this instanceof Wo))return new Wo(r,t);if(r=r!==void 0?String(r).toLowerCase():Vo,r!==Vo)throw new Error("Encoding not supported. Only utf-8 is supported");t=Fo(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Wo.prototype={decode:function(t,e){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),e=Fo(e),this._streaming||(this._decoder=new Ph({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!e.stream;for(var o=new Js(n),i=[],u;!o.endOfStream()&&(u=this._decoder.handler(o,o.read()),u!==wi);)u!==null&&(Array.isArray(u)?i.push.apply(i,u):i.push(u));if(!this._streaming){do{if(u=this._decoder.handler(o,o.read()),u===wi)break;u!==null&&(Array.isArray(u)?i.push.apply(i,u):i.push(u))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),Bh(i)}};function zo(r,t){if(!(this instanceof zo))return new zo(r,t);if(r=r!==void 0?String(r).toLowerCase():Vo,r!==Vo)throw new Error("Encoding not supported. Only utf-8 is supported");t=Fo(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}zo.prototype={encode:function(t,e){t=t?String(t):"",e=Fo(e),this._streaming||(this._encoder=new Mh(this._options)),this._streaming=!!e.stream;for(var n=[],o=new Js(Ch(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==wi);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==wi;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function Ph(r){var t=r.fatal,e=0,n=0,o=0,i=128,u=191;this.handler=function(d,l){if(l===Ho&&o!==0)return o=0,Qs(t);if(l===Ho)return wi;if(o===0){if(_r(l,0,127))return l;if(_r(l,194,223))o=1,e=l-192;else if(_r(l,224,239))l===224&&(i=160),l===237&&(u=159),o=2,e=l-224;else if(_r(l,240,244))l===240&&(i=144),l===244&&(u=143),o=3,e=l-240;else return Qs(t);return e=e<<6*o,null}if(!_r(l,i,u))return e=o=n=0,i=128,u=191,d.prepend(l),Qs(t);if(i=128,u=191,n+=1,e+=l-128<<6*(o-n),n!==o)return null;var v=e;return e=o=n=0,v}}function Mh(r){r.fatal,this.handler=function(t,e){if(e===Ho)return wi;if(_r(e,0,127))return e;var n,o;_r(e,128,2047)?(n=1,o=192):_r(e,2048,65535)?(n=2,o=224):_r(e,65536,1114111)&&(n=3,o=240);for(var i=[(e>>6*n)+o];n>0;){var u=e>>6*(n-1);i.push(128|u&63),n-=1}return i}}const Dh=Cs(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Wo,TextEncoder:zo},Symbol.toStringTag,{value:"Module"})));var fu;function Uh(){if(fu)return Ke;fu=1;var r=Ke&&Ke.__createBinding||(Object.create?function(At,gt,wt,kt){kt===void 0&&(kt=wt),Object.defineProperty(At,kt,{enumerable:!0,get:function(){return gt[wt]}})}:function(At,gt,wt,kt){kt===void 0&&(kt=wt),At[kt]=gt[wt]}),t=Ke&&Ke.__setModuleDefault||(Object.create?function(At,gt){Object.defineProperty(At,"default",{enumerable:!0,value:gt})}:function(At,gt){At.default=gt}),e=Ke&&Ke.__decorate||function(At,gt,wt,kt){var q=arguments.length,h=q<3?gt:kt===null?kt=Object.getOwnPropertyDescriptor(gt,wt):kt,T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(At,gt,wt,kt);else for(var D=At.length-1;D>=0;D--)(T=At[D])&&(h=(q<3?T(h):q>3?T(gt,wt,h):T(gt,wt))||h);return q>3&&h&&Object.defineProperty(gt,wt,h),h},n=Ke&&Ke.__importStar||function(At){if(At&&At.__esModule)return At;var gt={};if(At!=null)for(var wt in At)wt!=="default"&&Object.hasOwnProperty.call(At,wt)&&r(gt,At,wt);return t(gt,At),gt},o=Ke&&Ke.__importDefault||function(At){return At&&At.__esModule?At:{default:At}};Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.deserializeUnchecked=Ke.deserialize=Ke.serialize=Ke.BinaryReader=Ke.BinaryWriter=Ke.BorshError=Ke.baseDecode=Ke.baseEncode=void 0;const i=o(ou()),u=o(lu()),d=n(Dh),l=typeof TextDecoder!="function"?d.TextDecoder:TextDecoder,v=new l("utf-8",{fatal:!0});function S(At){return typeof At=="string"&&(At=Buffer.from(At,"utf8")),u.default.encode(Buffer.from(At))}Ke.baseEncode=S;function O(At){return Buffer.from(u.default.decode(At))}Ke.baseDecode=O;const C=1024;class N extends Error{constructor(gt){super(gt),this.fieldPath=[],this.originalMessage=gt}addToFieldPath(gt){this.fieldPath.splice(0,0,gt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ke.BorshError=N;class B{constructor(){this.buf=Buffer.alloc(C),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(C)]))}writeU8(gt){this.maybeResize(),this.buf.writeUInt8(gt,this.length),this.length+=1}writeU16(gt){this.maybeResize(),this.buf.writeUInt16LE(gt,this.length),this.length+=2}writeU32(gt){this.maybeResize(),this.buf.writeUInt32LE(gt,this.length),this.length+=4}writeU64(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",8)))}writeU128(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",16)))}writeU256(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",32)))}writeU512(gt){this.maybeResize(),this.writeBuffer(Buffer.from(new i.default(gt).toArray("le",64)))}writeBuffer(gt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),gt,Buffer.alloc(C)]),this.length+=gt.length}writeString(gt){this.maybeResize();const wt=Buffer.from(gt,"utf8");this.writeU32(wt.length),this.writeBuffer(wt)}writeFixedArray(gt){this.writeBuffer(Buffer.from(gt))}writeArray(gt,wt){this.maybeResize(),this.writeU32(gt.length);for(const kt of gt)this.maybeResize(),wt(kt)}toArray(){return this.buf.subarray(0,this.length)}}Ke.BinaryWriter=B;function M(At,gt,wt){const kt=wt.value;wt.value=function(...q){try{return kt.apply(this,q)}catch(h){if(h instanceof RangeError){const T=h.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(T)>=0)throw new N("Reached the end of buffer when deserializing")}throw h}}}class F{constructor(gt){this.buf=gt,this.offset=0}readU8(){const gt=this.buf.readUInt8(this.offset);return this.offset+=1,gt}readU16(){const gt=this.buf.readUInt16LE(this.offset);return this.offset+=2,gt}readU32(){const gt=this.buf.readUInt32LE(this.offset);return this.offset+=4,gt}readU64(){const gt=this.readBuffer(8);return new i.default(gt,"le")}readU128(){const gt=this.readBuffer(16);return new i.default(gt,"le")}readU256(){const gt=this.readBuffer(32);return new i.default(gt,"le")}readU512(){const gt=this.readBuffer(64);return new i.default(gt,"le")}readBuffer(gt){if(this.offset+gt>this.buf.length)throw new N(`Expected buffer length ${gt} isn't within bounds`);const wt=this.buf.slice(this.offset,this.offset+gt);return this.offset+=gt,wt}readString(){const gt=this.readU32(),wt=this.readBuffer(gt);try{return v.decode(wt)}catch(kt){throw new N(`Error decoding UTF-8 string: ${kt}`)}}readFixedArray(gt){return new Uint8Array(this.readBuffer(gt))}readArray(gt){const wt=this.readU32(),kt=Array();for(let q=0;q<wt;++q)kt.push(gt());return kt}}e([M],F.prototype,"readU8",null),e([M],F.prototype,"readU16",null),e([M],F.prototype,"readU32",null),e([M],F.prototype,"readU64",null),e([M],F.prototype,"readU128",null),e([M],F.prototype,"readU256",null),e([M],F.prototype,"readU512",null),e([M],F.prototype,"readString",null),e([M],F.prototype,"readFixedArray",null),e([M],F.prototype,"readArray",null),Ke.BinaryReader=F;function G(At){return At.charAt(0).toUpperCase()+At.slice(1)}function Q(At,gt,wt,kt,q){try{if(typeof kt=="string")q[`write${G(kt)}`](wt);else if(kt instanceof Array)if(typeof kt[0]=="number"){if(wt.length!==kt[0])throw new N(`Expecting byte array of length ${kt[0]}, but got ${wt.length} bytes`);q.writeFixedArray(wt)}else if(kt.length===2&&typeof kt[1]=="number"){if(wt.length!==kt[1])throw new N(`Expecting byte array of length ${kt[1]}, but got ${wt.length} bytes`);for(let h=0;h<kt[1];h++)Q(At,null,wt[h],kt[0],q)}else q.writeArray(wt,h=>{Q(At,gt,h,kt[0],q)});else if(kt.kind!==void 0)switch(kt.kind){case"option":{wt==null?q.writeU8(0):(q.writeU8(1),Q(At,gt,wt,kt.type,q));break}case"map":{q.writeU32(wt.size),wt.forEach((h,T)=>{Q(At,gt,T,kt.key,q),Q(At,gt,h,kt.value,q)});break}default:throw new N(`FieldType ${kt} unrecognized`)}else et(At,wt,q)}catch(h){throw h instanceof N&&h.addToFieldPath(gt),h}}function et(At,gt,wt){if(typeof gt.borshSerialize=="function"){gt.borshSerialize(wt);return}const kt=At.get(gt.constructor);if(!kt)throw new N(`Class ${gt.constructor.name} is missing in schema`);if(kt.kind==="struct")kt.fields.map(([q,h])=>{Q(At,q,gt[q],h,wt)});else if(kt.kind==="enum"){const q=gt[kt.field];for(let h=0;h<kt.values.length;++h){const[T,D]=kt.values[h];if(T===q){wt.writeU8(h),Q(At,T,gt[T],D,wt);break}}}else throw new N(`Unexpected schema kind: ${kt.kind} for ${gt.constructor.name}`)}function ct(At,gt,wt=B){const kt=new wt;return et(At,gt,kt),kt.toArray()}Ke.serialize=ct;function ft(At,gt,wt,kt){try{if(typeof wt=="string")return kt[`read${G(wt)}`]();if(wt instanceof Array){if(typeof wt[0]=="number")return kt.readFixedArray(wt[0]);if(typeof wt[1]=="number"){const q=[];for(let h=0;h<wt[1];h++)q.push(ft(At,null,wt[0],kt));return q}else return kt.readArray(()=>ft(At,gt,wt[0],kt))}if(wt.kind==="option")return kt.readU8()?ft(At,gt,wt.type,kt):void 0;if(wt.kind==="map"){let q=new Map;const h=kt.readU32();for(let T=0;T<h;T++){const D=ft(At,gt,wt.key,kt),Z=ft(At,gt,wt.value,kt);q.set(D,Z)}return q}return ot(At,wt,kt)}catch(q){throw q instanceof N&&q.addToFieldPath(gt),q}}function ot(At,gt,wt){if(typeof gt.borshDeserialize=="function")return gt.borshDeserialize(wt);const kt=At.get(gt);if(!kt)throw new N(`Class ${gt.name} is missing in schema`);if(kt.kind==="struct"){const q={};for(const[h,T]of At.get(gt).fields)q[h]=ft(At,h,T,wt);return new gt(q)}if(kt.kind==="enum"){const q=wt.readU8();if(q>=kt.values.length)throw new N(`Enum index: ${q} is out of range`);const[h,T]=kt.values[q],D=ft(At,h,T,wt);return new gt({[h]:D})}throw new N(`Unexpected schema kind: ${kt.kind} for ${gt.constructor.name}`)}function bt(At,gt,wt,kt=F){const q=new kt(wt),h=ot(At,gt,q);if(q.offset<wt.length)throw new N(`Unexpected ${wt.length-q.offset} bytes after deserialized data`);return h}Ke.deserialize=bt;function Rt(At,gt,wt,kt=F){const q=new kt(wt);return ot(At,gt,q)}return Ke.deserializeUnchecked=Rt,Ke}var ta=Uh(),It={},du;function Fh(){if(du)return It;du=1,Object.defineProperty(It,"__esModule",{value:!0}),It.s16=It.s8=It.nu64be=It.u48be=It.u40be=It.u32be=It.u24be=It.u16be=It.nu64=It.u48=It.u40=It.u32=It.u24=It.u16=It.u8=It.offset=It.greedy=It.Constant=It.UTF8=It.CString=It.Blob=It.Boolean=It.BitField=It.BitStructure=It.VariantLayout=It.Union=It.UnionLayoutDiscriminator=It.UnionDiscriminator=It.Structure=It.Sequence=It.DoubleBE=It.Double=It.FloatBE=It.Float=It.NearInt64BE=It.NearInt64=It.NearUInt64BE=It.NearUInt64=It.IntBE=It.Int=It.UIntBE=It.UInt=It.OffsetLayout=It.GreedyCount=It.ExternalLayout=It.bindConstructorLayout=It.nameWithProperty=It.Layout=It.uint8ArrayToBuffer=It.checkUint8Array=void 0,It.constant=It.utf8=It.cstr=It.blob=It.unionLayoutDiscriminator=It.union=It.seq=It.bits=It.struct=It.f64be=It.f64=It.f32be=It.f32=It.ns64be=It.s48be=It.s40be=It.s32be=It.s24be=It.s16be=It.ns64=It.s48=It.s40=It.s32=It.s24=void 0;const r=Ps();function t(p){if(!(p instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}It.checkUint8Array=t;function e(p){return t(p),r.Buffer.from(p.buffer,p.byteOffset,p.length)}It.uint8ArrayToBuffer=e;let n=class{constructor(E,z){if(!Number.isInteger(E))throw new TypeError("span must be an integer");this.span=E,this.property=z}makeDestinationObject(){return{}}getSpan(E,z){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(E){const z=Object.create(this.constructor.prototype);return Object.assign(z,this),z.property=E,z}fromArray(E){}};It.Layout=n;function o(p,E){return E.property?p+"["+E.property+"]":p}It.nameWithProperty=o;function i(p,E){if(typeof p!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(p,"layout_"))throw new Error("Class is already bound to a layout");if(!(E&&E instanceof n))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(E,"boundConstructor_"))throw new Error("layout is already bound to a constructor");p.layout_=E,E.boundConstructor_=p,E.makeDestinationObject=()=>new p,Object.defineProperty(p.prototype,"encode",{value(z,$){return E.encode(this,z,$)},writable:!0}),Object.defineProperty(p,"decode",{value(z,$){return E.decode(z,$)},writable:!0})}It.bindConstructorLayout=i;class u extends n{isCount(){throw new Error("ExternalLayout is abstract")}}It.ExternalLayout=u;class d extends u{constructor(E=1,z){if(!Number.isInteger(E)||0>=E)throw new TypeError("elementSpan must be a (positive) integer");super(-1,z),this.elementSpan=E}isCount(){return!0}decode(E,z=0){t(E);const $=E.length-z;return Math.floor($/this.elementSpan)}encode(E,z,$){return 0}}It.GreedyCount=d;class l extends u{constructor(E,z=0,$){if(!(E instanceof n))throw new TypeError("layout must be a Layout");if(!Number.isInteger(z))throw new TypeError("offset must be integer or undefined");super(E.span,$||E.property),this.layout=E,this.offset=z}isCount(){return this.layout instanceof v||this.layout instanceof S}decode(E,z=0){return this.layout.decode(E,z+this.offset)}encode(E,z,$=0){return this.layout.encode(E,z,$+this.offset)}}It.OffsetLayout=l;class v extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readUIntLE(z,this.span)}encode(E,z,$=0){return e(z).writeUIntLE(E,$,this.span),this.span}}It.UInt=v;class S extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readUIntBE(z,this.span)}encode(E,z,$=0){return e(z).writeUIntBE(E,$,this.span),this.span}}It.UIntBE=S;class O extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readIntLE(z,this.span)}encode(E,z,$=0){return e(z).writeIntLE(E,$,this.span),this.span}}It.Int=O;class C extends n{constructor(E,z){if(super(E,z),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(E,z=0){return e(E).readIntBE(z,this.span)}encode(E,z,$=0){return e(z).writeIntBE(E,$,this.span),this.span}}It.IntBE=C;const N=Math.pow(2,32);function B(p){const E=Math.floor(p/N),z=p-E*N;return{hi32:E,lo32:z}}function M(p,E){return p*N+E}class F extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readUInt32LE(z),_t=$.readUInt32LE(z+4);return M(_t,dt)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeUInt32LE(dt.lo32,$),_t.writeUInt32LE(dt.hi32,$+4),8}}It.NearUInt64=F;class G extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readUInt32BE(z),_t=$.readUInt32BE(z+4);return M(dt,_t)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeUInt32BE(dt.hi32,$),_t.writeUInt32BE(dt.lo32,$+4),8}}It.NearUInt64BE=G;class Q extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readUInt32LE(z),_t=$.readInt32LE(z+4);return M(_t,dt)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeUInt32LE(dt.lo32,$),_t.writeInt32LE(dt.hi32,$+4),8}}It.NearInt64=Q;class et extends n{constructor(E){super(8,E)}decode(E,z=0){const $=e(E),dt=$.readInt32BE(z),_t=$.readUInt32BE(z+4);return M(dt,_t)}encode(E,z,$=0){const dt=B(E),_t=e(z);return _t.writeInt32BE(dt.hi32,$),_t.writeUInt32BE(dt.lo32,$+4),8}}It.NearInt64BE=et;class ct extends n{constructor(E){super(4,E)}decode(E,z=0){return e(E).readFloatLE(z)}encode(E,z,$=0){return e(z).writeFloatLE(E,$),4}}It.Float=ct;class ft extends n{constructor(E){super(4,E)}decode(E,z=0){return e(E).readFloatBE(z)}encode(E,z,$=0){return e(z).writeFloatBE(E,$),4}}It.FloatBE=ft;class ot extends n{constructor(E){super(8,E)}decode(E,z=0){return e(E).readDoubleLE(z)}encode(E,z,$=0){return e(z).writeDoubleLE(E,$),8}}It.Double=ot;class bt extends n{constructor(E){super(8,E)}decode(E,z=0){return e(E).readDoubleBE(z)}encode(E,z,$=0){return e(z).writeDoubleBE(E,$),8}}It.DoubleBE=bt;class Rt extends n{constructor(E,z,$){if(!(E instanceof n))throw new TypeError("elementLayout must be a Layout");if(!(z instanceof u&&z.isCount()||Number.isInteger(z)&&0<=z))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let dt=-1;!(z instanceof u)&&0<E.span&&(dt=z*E.span),super(dt,$),this.elementLayout=E,this.count=z}getSpan(E,z=0){if(0<=this.span)return this.span;let $=0,dt=this.count;if(dt instanceof u&&(dt=dt.decode(E,z)),0<this.elementLayout.span)$=dt*this.elementLayout.span;else{let _t=0;for(;_t<dt;)$+=this.elementLayout.getSpan(E,z+$),++_t}return $}decode(E,z=0){const $=[];let dt=0,_t=this.count;for(_t instanceof u&&(_t=_t.decode(E,z));dt<_t;)$.push(this.elementLayout.decode(E,z)),z+=this.elementLayout.getSpan(E,z),dt+=1;return $}encode(E,z,$=0){const dt=this.elementLayout,_t=E.reduce((Dt,Yt)=>Dt+dt.encode(Yt,z,$+Dt),0);return this.count instanceof u&&this.count.encode(E.length,z,$),_t}}It.Sequence=Rt;class At extends n{constructor(E,z,$){if(!(Array.isArray(E)&&E.reduce((_t,Dt)=>_t&&Dt instanceof n,!0)))throw new TypeError("fields must be array of Layout instances");typeof z=="boolean"&&$===void 0&&($=z,z=void 0);for(const _t of E)if(0>_t.span&&_t.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let dt=-1;try{dt=E.reduce((_t,Dt)=>_t+Dt.getSpan(),0)}catch{}super(dt,z),this.fields=E,this.decodePrefixes=!!$}getSpan(E,z=0){if(0<=this.span)return this.span;let $=0;try{$=this.fields.reduce((dt,_t)=>{const Dt=_t.getSpan(E,z);return z+=Dt,dt+Dt},0)}catch{throw new RangeError("indeterminate span")}return $}decode(E,z=0){t(E);const $=this.makeDestinationObject();for(const dt of this.fields)if(dt.property!==void 0&&($[dt.property]=dt.decode(E,z)),z+=dt.getSpan(E,z),this.decodePrefixes&&E.length===z)break;return $}encode(E,z,$=0){const dt=$;let _t=0,Dt=0;for(const Yt of this.fields){let zt=Yt.span;if(Dt=0<zt?zt:0,Yt.property!==void 0){const fe=E[Yt.property];fe!==void 0&&(Dt=Yt.encode(fe,z,$),0>zt&&(zt=Yt.getSpan(z,$)))}_t=$,$+=zt}return _t+Dt-dt}fromArray(E){const z=this.makeDestinationObject();for(const $ of this.fields)$.property!==void 0&&0<E.length&&(z[$.property]=E.shift());return z}layoutFor(E){if(typeof E!="string")throw new TypeError("property must be string");for(const z of this.fields)if(z.property===E)return z}offsetOf(E){if(typeof E!="string")throw new TypeError("property must be string");let z=0;for(const $ of this.fields){if($.property===E)return z;0>$.span?z=-1:0<=z&&(z+=$.span)}}}It.Structure=At;class gt{constructor(E){this.property=E}decode(E,z){throw new Error("UnionDiscriminator is abstract")}encode(E,z,$){throw new Error("UnionDiscriminator is abstract")}}It.UnionDiscriminator=gt;class wt extends gt{constructor(E,z){if(!(E instanceof u&&E.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(z||E.property||"variant"),this.layout=E}decode(E,z){return this.layout.decode(E,z)}encode(E,z,$){return this.layout.encode(E,z,$)}}It.UnionLayoutDiscriminator=wt;class kt extends n{constructor(E,z,$){let dt;if(E instanceof v||E instanceof S)dt=new wt(new l(E));else if(E instanceof u&&E.isCount())dt=new wt(E);else if(E instanceof gt)dt=E;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(z===void 0&&(z=null),!(z===null||z instanceof n))throw new TypeError("defaultLayout must be null or a Layout");if(z!==null){if(0>z.span)throw new Error("defaultLayout must have constant span");z.property===void 0&&(z=z.replicate("content"))}let _t=-1;z&&(_t=z.span,0<=_t&&(E instanceof v||E instanceof S)&&(_t+=dt.layout.span)),super(_t,$),this.discriminator=dt,this.usesPrefixDiscriminator=E instanceof v||E instanceof S,this.defaultLayout=z,this.registry={};let Dt=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Yt){return Dt(Yt)},this.configGetSourceVariant=function(Yt){Dt=Yt.bind(this)}}getSpan(E,z=0){if(0<=this.span)return this.span;const $=this.getVariant(E,z);if(!$)throw new Error("unable to determine span for unrecognized variant");return $.getSpan(E,z)}defaultGetSourceVariant(E){if(Object.prototype.hasOwnProperty.call(E,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(E,this.defaultLayout.property))return;const z=this.registry[E[this.discriminator.property]];if(z&&(!z.layout||z.property&&Object.prototype.hasOwnProperty.call(E,z.property)))return z}else for(const z in this.registry){const $=this.registry[z];if($.property&&Object.prototype.hasOwnProperty.call(E,$.property))return $}throw new Error("unable to infer src variant")}decode(E,z=0){let $;const dt=this.discriminator,_t=dt.decode(E,z),Dt=this.registry[_t];if(Dt===void 0){const Yt=this.defaultLayout;let zt=0;this.usesPrefixDiscriminator&&(zt=dt.layout.span),$=this.makeDestinationObject(),$[dt.property]=_t,$[Yt.property]=Yt.decode(E,z+zt)}else $=Dt.decode(E,z);return $}encode(E,z,$=0){const dt=this.getSourceVariant(E);if(dt===void 0){const _t=this.discriminator,Dt=this.defaultLayout;let Yt=0;return this.usesPrefixDiscriminator&&(Yt=_t.layout.span),_t.encode(E[_t.property],z,$),Yt+Dt.encode(E[Dt.property],z,$+Yt)}return dt.encode(E,z,$)}addVariant(E,z,$){const dt=new q(this,E,z,$);return this.registry[E]=dt,dt}getVariant(E,z=0){let $;return E instanceof Uint8Array?$=this.discriminator.decode(E,z):$=E,this.registry[$]}}It.Union=kt;class q extends n{constructor(E,z,$,dt){if(!(E instanceof kt))throw new TypeError("union must be a Union");if(!Number.isInteger(z)||0>z)throw new TypeError("variant must be a (non-negative) integer");if(typeof $=="string"&&dt===void 0&&(dt=$,$=null),$){if(!($ instanceof n))throw new TypeError("layout must be a Layout");if(E.defaultLayout!==null&&0<=$.span&&$.span>E.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof dt!="string")throw new TypeError("variant must have a String property")}let _t=E.span;0>E.span&&(_t=$?$.span:0,0<=_t&&E.usesPrefixDiscriminator&&(_t+=E.discriminator.layout.span)),super(_t,dt),this.union=E,this.variant=z,this.layout=$||null}getSpan(E,z=0){if(0<=this.span)return this.span;let $=0;this.union.usesPrefixDiscriminator&&($=this.union.discriminator.layout.span);let dt=0;return this.layout&&(dt=this.layout.getSpan(E,z+$)),$+dt}decode(E,z=0){const $=this.makeDestinationObject();if(this!==this.union.getVariant(E,z))throw new Error("variant mismatch");let dt=0;return this.union.usesPrefixDiscriminator&&(dt=this.union.discriminator.layout.span),this.layout?$[this.property]=this.layout.decode(E,z+dt):this.property?$[this.property]=!0:this.union.usesPrefixDiscriminator&&($[this.union.discriminator.property]=this.variant),$}encode(E,z,$=0){let dt=0;if(this.union.usesPrefixDiscriminator&&(dt=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(E,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,z,$);let _t=dt;if(this.layout&&(this.layout.encode(E[this.property],z,$+dt),_t+=this.layout.getSpan(z,$+dt),0<=this.union.span&&_t>this.union.span))throw new Error("encoded variant overruns containing union");return _t}fromArray(E){if(this.layout)return this.layout.fromArray(E)}}It.VariantLayout=q;function h(p){return 0>p&&(p+=4294967296),p}class T extends n{constructor(E,z,$){if(!(E instanceof v||E instanceof S))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof z=="string"&&$===void 0&&($=z,z=!1),4<E.span)throw new RangeError("word cannot exceed 32 bits");super(E.span,$),this.word=E,this.msb=!!z,this.fields=[];let dt=0;this._packedSetValue=function(_t){return dt=h(_t),this},this._packedGetValue=function(){return dt}}decode(E,z=0){const $=this.makeDestinationObject(),dt=this.word.decode(E,z);this._packedSetValue(dt);for(const _t of this.fields)_t.property!==void 0&&($[_t.property]=_t.decode(E));return $}encode(E,z,$=0){const dt=this.word.decode(z,$);this._packedSetValue(dt);for(const _t of this.fields)if(_t.property!==void 0){const Dt=E[_t.property];Dt!==void 0&&_t.encode(Dt)}return this.word.encode(this._packedGetValue(),z,$)}addField(E,z){const $=new D(this,E,z);return this.fields.push($),$}addBoolean(E){const z=new Z(this,E);return this.fields.push(z),z}fieldFor(E){if(typeof E!="string")throw new TypeError("property must be string");for(const z of this.fields)if(z.property===E)return z}}It.BitStructure=T;class D{constructor(E,z,$){if(!(E instanceof T))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(z)||0>=z)throw new TypeError("bits must be positive integer");const dt=8*E.span,_t=E.fields.reduce((Dt,Yt)=>Dt+Yt.bits,0);if(z+_t>dt)throw new Error("bits too long for span remainder ("+(dt-_t)+" of "+dt+" remain)");this.container=E,this.bits=z,this.valueMask=(1<<z)-1,z===32&&(this.valueMask=4294967295),this.start=_t,this.container.msb&&(this.start=dt-_t-z),this.wordMask=h(this.valueMask<<this.start),this.property=$}decode(E,z){const $=this.container._packedGetValue();return h($&this.wordMask)>>>this.start}encode(E){if(typeof E!="number"||!Number.isInteger(E)||E!==h(E&this.valueMask))throw new TypeError(o("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const z=this.container._packedGetValue(),$=h(E<<this.start);this.container._packedSetValue(h(z&~this.wordMask)|$)}}It.BitField=D;class Z extends D{constructor(E,z){super(E,1,z)}decode(E,z){return!!super.decode(E,z)}encode(E){typeof E=="boolean"&&(E=+E),super.encode(E)}}It.Boolean=Z;class j extends n{constructor(E,z){if(!(E instanceof u&&E.isCount()||Number.isInteger(E)&&0<=E))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let $=-1;E instanceof u||($=E),super($,z),this.length=E}getSpan(E,z){let $=this.span;return 0>$&&($=this.length.decode(E,z)),$}decode(E,z=0){let $=this.span;return 0>$&&($=this.length.decode(E,z)),e(E).slice(z,z+$)}encode(E,z,$){let dt=this.length;if(this.length instanceof u&&(dt=E.length),!(E instanceof Uint8Array&&dt===E.length))throw new TypeError(o("Blob.encode",this)+" requires (length "+dt+") Uint8Array as src");if($+dt>z.length)throw new RangeError("encoding overruns Uint8Array");const _t=e(E);return e(z).write(_t.toString("hex"),$,dt,"hex"),this.length instanceof u&&this.length.encode(dt,z,$),dt}}It.Blob=j;class X extends n{constructor(E){super(-1,E)}getSpan(E,z=0){t(E);let $=z;for(;$<E.length&&E[$]!==0;)$+=1;return 1+$-z}decode(E,z=0){const $=this.getSpan(E,z);return e(E).slice(z,z+$-1).toString("utf-8")}encode(E,z,$=0){typeof E!="string"&&(E=String(E));const dt=r.Buffer.from(E,"utf8"),_t=dt.length;if($+_t>z.length)throw new RangeError("encoding overruns Buffer");const Dt=e(z);return dt.copy(Dt,$),Dt[$+_t]=0,_t+1}}It.CString=X;class at extends n{constructor(E,z){if(typeof E=="string"&&z===void 0&&(z=E,E=void 0),E===void 0)E=-1;else if(!Number.isInteger(E))throw new TypeError("maxSpan must be an integer");super(-1,z),this.maxSpan=E}getSpan(E,z=0){return t(E),E.length-z}decode(E,z=0){const $=this.getSpan(E,z);if(0<=this.maxSpan&&this.maxSpan<$)throw new RangeError("text length exceeds maxSpan");return e(E).slice(z,z+$).toString("utf-8")}encode(E,z,$=0){typeof E!="string"&&(E=String(E));const dt=r.Buffer.from(E,"utf8"),_t=dt.length;if(0<=this.maxSpan&&this.maxSpan<_t)throw new RangeError("text length exceeds maxSpan");if($+_t>z.length)throw new RangeError("encoding overruns Buffer");return dt.copy(e(z),$),_t}}It.UTF8=at;class K extends n{constructor(E,z){super(0,z),this.value=E}decode(E,z){return this.value}encode(E,z,$){return 0}}return It.Constant=K,It.greedy=(p,E)=>new d(p,E),It.offset=(p,E,z)=>new l(p,E,z),It.u8=p=>new v(1,p),It.u16=p=>new v(2,p),It.u24=p=>new v(3,p),It.u32=p=>new v(4,p),It.u40=p=>new v(5,p),It.u48=p=>new v(6,p),It.nu64=p=>new F(p),It.u16be=p=>new S(2,p),It.u24be=p=>new S(3,p),It.u32be=p=>new S(4,p),It.u40be=p=>new S(5,p),It.u48be=p=>new S(6,p),It.nu64be=p=>new G(p),It.s8=p=>new O(1,p),It.s16=p=>new O(2,p),It.s24=p=>new O(3,p),It.s32=p=>new O(4,p),It.s40=p=>new O(5,p),It.s48=p=>new O(6,p),It.ns64=p=>new Q(p),It.s16be=p=>new C(2,p),It.s24be=p=>new C(3,p),It.s32be=p=>new C(4,p),It.s40be=p=>new C(5,p),It.s48be=p=>new C(6,p),It.ns64be=p=>new et(p),It.f32=p=>new ct(p),It.f32be=p=>new ft(p),It.f64=p=>new ot(p),It.f64be=p=>new bt(p),It.struct=(p,E,z)=>new At(p,E,z),It.bits=(p,E,z)=>new T(p,E,z),It.seq=(p,E,z)=>new Rt(p,E,z),It.union=(p,E,z)=>new kt(p,E,z),It.unionLayoutDiscriminator=(p,E)=>new wt(p,E),It.blob=(p,E)=>new j(p,E),It.cstr=p=>new X(p),It.utf8=(p,E)=>new at(p,E),It.constant=(p,E)=>new K(p,E),It}var st=Fh(),Hh=1,Vh=2,Wh=3,zh=4,Gh=5,Kh=6,jh=7,Yh=8,qh=9,$h=10,Zh=-32700,Xh=-32603,Jh=-32602,Qh=-32601,t1=-32600,e1=-32016,n1=-32015,r1=-32014,i1=-32013,o1=-32012,s1=-32011,a1=-32010,c1=-32009,u1=-32008,l1=-32007,f1=-32006,d1=-32005,h1=-32004,p1=-32003,g1=-32002,m1=-32001,v1=28e5,y1=2800001,w1=2800002,b1=2800003,_1=2800004,E1=2800005,R1=2800006,S1=2800007,A1=2800008,I1=2800009,k1=2800010,O1=323e4,T1=32300001,N1=3230002,x1=3230003,L1=3230004,C1=361e4,B1=3610001,P1=3610002,M1=3610003,D1=3610004,U1=3610005,F1=3610006,H1=3610007,V1=3611e3,W1=3704e3,z1=3704001,G1=3704002,K1=3704003,j1=3704004,Y1=4128e3,q1=4128001,$1=4128002,Z1=4615e3,X1=4615001,J1=4615002,Q1=4615003,tp=4615004,ep=4615005,np=4615006,rp=4615007,ip=4615008,op=4615009,sp=4615010,ap=4615011,cp=4615012,up=4615013,lp=4615014,fp=4615015,dp=4615016,hp=4615017,pp=4615018,gp=4615019,mp=4615020,vp=4615021,yp=4615022,wp=4615023,bp=4615024,_p=4615025,Ep=4615026,Rp=4615027,Sp=4615028,Ap=4615029,Ip=4615030,kp=4615031,Op=4615032,Tp=4615033,Np=4615034,xp=4615035,Lp=4615036,Cp=4615037,Bp=4615038,Pp=4615039,Mp=4615040,Dp=4615041,Up=4615042,Fp=4615043,Hp=4615044,Vp=4615045,Wp=4615046,zp=4615047,Gp=4615048,Kp=4615049,jp=4615050,Yp=4615051,qp=4615052,$p=4615053,Zp=4615054,Xp=5508e3,Jp=5508001,Qp=5508002,t2=5508003,e2=5508004,n2=5508005,r2=5508006,i2=5508007,o2=5508008,s2=5508009,a2=5508010,c2=5508011,u2=5663e3,l2=5663001,f2=5663002,d2=5663003,h2=5663004,p2=5663005,g2=5663006,m2=5663007,v2=5663008,y2=5663009,w2=5663010,b2=5663011,_2=5663012,E2=5663013,R2=5663014,S2=5663015,A2=5663016,I2=5663017,k2=5663018,O2=5663019,T2=705e4,N2=7050001,x2=7050002,L2=7050003,C2=7050004,B2=7050005,P2=7050006,M2=7050007,D2=7050008,U2=7050009,F2=7050010,H2=7050011,V2=7050012,W2=7050013,z2=7050014,G2=7050015,K2=7050016,j2=7050017,Y2=7050018,q2=7050019,$2=7050020,Z2=7050021,X2=7050022,J2=7050023,Q2=7050024,tg=7050025,eg=7050026,ng=7050027,rg=7050028,ig=7050029,og=7050030,sg=7050031,ag=7050032,cg=7050033,ug=7050034,lg=7050035,fg=7050036,hu=8078e3,pu=8078001,dg=8078002,hg=8078003,gu=8078004,mu=8078005,vu=8078006,pg=8078007,gg=8078008,mg=8078009,vg=8078010,yu=8078011,yg=8078012,wg=8078013,bg=8078014,_g=8078015,Eg=8078016,Rg=8078017,Sg=8078018,Ag=8078019,Ig=8078020,kg=8078021,Og=8078022,Tg=81e5,Ng=8100001,xg=8100002,Lg=8100003,Cg=819e4,Bg=8190001,Pg=8190002,Mg=8190003,Dg=8190004,Ug=99e5,Fg=9900001,Hg=9900002,Vg=9900003,Wg=9900004;function wu(r){return Array.isArray(r)?"%5B"+r.map(wu).join("%2C%20")+"%5D":typeof r=="bigint"?`${r}n`:encodeURIComponent(String(r!=null&&Object.getPrototypeOf(r)===null?{...r}:r))}function zg([r,t]){return`${r}=${wu(t)}`}function Gg(r){const t=Object.entries(r).map(zg).join("&");return btoa(t)}var Kg={[O1]:"Account not found at address: $address",[L1]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[x1]:"Expected decoded account at address: $address",[N1]:"Failed to decode account data at address: $address",[T1]:"Accounts not found at addresses: $addresses",[I1]:"Unable to find a viable program address bump seed.",[w1]:"$putativeAddress is not a base58-encoded address.",[v1]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[b1]:"The `CryptoKey` must be an `Ed25519` public key.",[A1]:"Invalid seeds; point must fall off the Ed25519 curve.",[_1]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[R1]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[S1]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[E1]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[k1]:"Program address cannot end with PDA marker.",[y1]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[zh]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[Hh]:"The network has progressed past the last block for which this transaction could have been committed.",[hu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[Og]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Ig]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[mu]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[vu]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[gu]:"Encoder and decoder must either both be fixed-size or variable-size.",[gg]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[dg]:"Expected a fixed-size codec, got a variable-size one.",[wg]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[hg]:"Expected a variable-size codec, got a fixed-size one.",[Ag]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[pu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Sg]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[mg]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[vg]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[_g]:"Invalid literal union variant. Expected one of [$variants], got $value.",[pg]:"Expected [$codecDescription] to have $expected items, got $actual.",[yg]:"Invalid value $value for base $base with alphabet $alphabet.",[Eg]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[yu]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[bg]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[kg]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Rg]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[V1]:"No random values implementation could be found.",[op]:"instruction requires an uninitialized account",[wp]:"instruction tries to borrow reference for an account which is already borrowed",[bp]:"instruction left account with an outstanding borrowed reference",[vp]:"program other than the account's owner changed the size of the account data",[ep]:"account data too small for instruction",[yp]:"instruction expected an executable account",[Wp]:"An account does not have enough lamports to be rent-exempt",[Gp]:"Program arithmetic overflowed",[Vp]:"Failed to serialize or deserialize account data: $encodedData",[Zp]:"Builtin programs must consume compute units",[Op]:"Cross-program invocation call depth too deep",[Bp]:"Computational budget exceeded",[Ep]:"custom program error: #$code",[hp]:"instruction contains duplicate accounts",[_p]:"instruction modifications of multiply-passed account differ",[Ip]:"executable accounts must be rent exempt",[Sp]:"instruction changed executable accounts data",[Ap]:"instruction changed the balance of an executable account",[pp]:"instruction changed executable bit of an account",[lp]:"instruction modified data of an account it does not own",[up]:"instruction spent from the balance of an account it does not own",[X1]:"generic instruction error",[jp]:"Provided owner is not allowed",[Fp]:"Account is immutable",[Hp]:"Incorrect authority provided",[rp]:"incorrect program id for instruction",[np]:"insufficient funds for instruction",[tp]:"invalid account data for instruction",[zp]:"Invalid account owner",[J1]:"invalid program argument",[Rp]:"program returned invalid error code",[Q1]:"invalid instruction data",[Cp]:"Failed to reallocate account data",[Lp]:"Provided seeds do not result in a valid address",[Yp]:"Accounts data allocations exceeded the maximum allowed per transaction",[qp]:"Max accounts exceeded",[$p]:"Max instruction trace length exceeded",[xp]:"Length of the seed is too long for address generation",[Tp]:"An account required by the instruction is missing",[ip]:"missing required signature for instruction",[cp]:"instruction illegally modified the program id of an account",[mp]:"insufficient account keys for instruction",[Pp]:"Cross-program invocation with unauthorized signer or writable account",[Mp]:"Failed to create program execution environment",[Up]:"Program failed to compile",[Dp]:"Program failed to complete",[dp]:"instruction modified data of a read-only account",[fp]:"instruction changed the balance of a read-only account",[Np]:"Cross-program invocation reentrancy not allowed for this instruction",[gp]:"instruction modified rent epoch of an account",[ap]:"sum of account balances before and after instruction do not match",[sp]:"instruction requires an initialized account",[Z1]:"",[kp]:"Unsupported program id",[Kp]:"Unsupported sysvar",[Y1]:"The instruction does not have any accounts.",[q1]:"The instruction does not have any data.",[$1]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Gh]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Vh]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Hg]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Wg]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Fg]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ug]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Vg]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Xh]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Jh]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[t1]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Qh]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Zh]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[o1]:"$__serverMessage",[m1]:"$__serverMessage",[h1]:"$__serverMessage",[r1]:"$__serverMessage",[a1]:"$__serverMessage",[c1]:"$__serverMessage",[e1]:"Minimum context slot has not been reached",[d1]:"Node is unhealthy; behind by $numSlotsBehind slots",[u1]:"No snapshot",[g1]:"Transaction simulation failed",[l1]:"$__serverMessage",[s1]:"Transaction history is not available from this node",[f1]:"$__serverMessage",[i1]:"Transaction signature length mismatch",[p1]:"Transaction signature verification failure",[n1]:"$__serverMessage",[W1]:"Key pair bytes must be of length 64, got $byteLength.",[z1]:"Expected private key bytes with length 32. Actual length: $actualLength.",[G1]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[j1]:"The provided private key does not match the provided public key.",[K1]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Kh]:"Lamports value must be in the range [0, 2e64-1]",[jh]:"`$value` cannot be parsed as a `BigInt`",[$h]:"$message",[Yh]:"`$value` cannot be parsed as a `Number`",[Wh]:"No nonce account could be found at address `$nonceAccountAddress`",[Cg]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Pg]:"WebSocket was closed before payload could be added to the send buffer",[Mg]:"WebSocket connection closed",[Dg]:"WebSocket failed to connect",[Bg]:"Failed to obtain a subscription id from the server",[Lg]:"Could not find an API plan for RPC method: `$method`",[Tg]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[xg]:"HTTP error ($statusCode): $message",[Ng]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Xp]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Jp]:"The provided value does not implement the `KeyPairSigner` interface",[t2]:"The provided value does not implement the `MessageModifyingSigner` interface",[e2]:"The provided value does not implement the `MessagePartialSigner` interface",[Qp]:"The provided value does not implement any of the `MessageSigner` interfaces",[r2]:"The provided value does not implement the `TransactionModifyingSigner` interface",[i2]:"The provided value does not implement the `TransactionPartialSigner` interface",[o2]:"The provided value does not implement the `TransactionSendingSigner` interface",[n2]:"The provided value does not implement any of the `TransactionSigner` interfaces",[s2]:"More than one `TransactionSendingSigner` was identified.",[a2]:"No `TransactionSendingSigner` was identified. Please provide a valid `ITransactionWithSingleSendingSigner` transaction.",[c2]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[H1]:"Cannot export a non-extractable key.",[B1]:"No digest implementation could be found.",[C1]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[P1]:`This runtime does not support the generation of Ed25519 key pairs.
7
2
 
8
3
  Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
9
4
 
10
- For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[M1]:"No signature verification implementation could be found.",[D1]:"No key generation implementation could be found.",[U1]:"No signing implementation could be found.",[F1]:"No key export implementation could be found.",[qh]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[K2]:"Transaction processing left an account with an outstanding borrowed reference",[N2]:"Account in use",[x2]:"Account loaded twice",[L2]:"Attempt to debit an account but found no record of a prior credit.",[J2]:"Transaction loads an address table account that doesn't exist",[M2]:"This transaction has already been processed",[D2]:"Blockhash not found",[U2]:"Loader call chain is too deep",[G2]:"Transactions are currently disabled due to cluster maintenance",[og]:"Transaction contains a duplicate instruction ($index) that is not allowed",[B2]:"Insufficient funds for fee",[sg]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[P2]:"This account may not be used to pay transaction fees",[H2]:"Transaction contains an invalid account reference",[tg]:"Transaction loads an address table account with invalid data",[eg]:"Transaction address table lookup uses an invalid index",[Q2]:"Transaction loads an address table account with an invalid owner",[cg]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[W2]:"This program may not be used for executing instructions",[ng]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[q2]:"Transaction loads a writable account that cannot be written",[ag]:"Transaction exceeded max loaded accounts data size cap",[F2]:"Transaction requires a fee but has no signature present",[C2]:"Attempt to load a program that does not exist",[lg]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[ug]:"ResanitizationNeeded",[z2]:"Transaction failed to sanitize accounts offsets correctly",[V2]:"Transaction did not pass signature verification",[X2]:"Transaction locked too many accounts",[fg]:"Sum of account balances before and after transaction do not match",[T2]:"The transaction failed with the error `$errorName`",[Y2]:"Transaction version is unsupported",[Z2]:"Transaction would exceed account data limit within the block",[ig]:"Transaction would exceed total account data limit",[$2]:"Transaction would exceed max account limit within the block",[j2]:"Transaction would exceed max Block Cost Limit",[rg]:"Transaction would exceed max Vote Cost Limit",[S2]:"Attempted to sign a transaction with an address that is not a signer for it",[w2]:"Transaction is missing an address at index: $index.",[A2]:"Transaction has no expected signers therefore it cannot be encoded",[f2]:"Transaction does not have a blockhash lifetime",[d2]:"Transaction is not a durable nonce transaction",[p2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[g2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[v2]:"No fee payer set in CompiledTransaction",[m2]:"Could not find program address at index $index",[k2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[O2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[b2]:"Transaction is missing a fee payer.",[_2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[R2]:"Transaction first instruction is not advance nonce account instruction.",[E2]:"Transaction with no instructions cannot be durable nonce transaction.",[u2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[l2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[I2]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[y2]:"Transaction is missing signatures for addresses: $addresses.",[h2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},Er="i",ar="t";function jg(r,t={}){const e=Kg[r];if(e.length===0)return"";let n;function o(u){if(n[ar]===2){const d=e.slice(n[Er]+1,u);i.push(d in t?`${t[d]}`:`$${d}`)}else n[ar]===1&&i.push(e.slice(n[Er],u))}const i=[];return e.split("").forEach((u,d)=>{if(d===0){n={[Er]:0,[ar]:e[0]==="\\"?0:e[0]==="$"?2:1};return}let l;switch(n[ar]){case 0:l={[Er]:d,[ar]:1};break;case 1:u==="\\"?l={[Er]:d,[ar]:0}:u==="$"&&(l={[Er]:d,[ar]:2});break;case 2:u==="\\"?l={[Er]:d,[ar]:0}:u==="$"?l={[Er]:d,[ar]:2}:u.match(/\w/)||(l={[Er]:d,[ar]:1});break}l&&(n!==l&&o(d),n=l)}),o(),i.join("")}function Yg(r,t={}){if(process.env.NODE_ENV!=="production")return jg(r,t);{let e=`Solana error #${r}; Decode this error by running \`npx @solana/errors decode -- ${r}`;return Object.keys(t).length&&(e+=` '${Gg(t)}'`),`${e}\``}}var bi=class extends Error{cause=this.cause;context;constructor(...[r,t]){let e,n;if(t){const{cause:i,...u}=t;i&&(n={cause:i}),Object.keys(u).length>0&&(e=u)}const o=Yg(r,e);super(o,n),this.context={__code:r,...e},this.name="SolanaError"}};function qg(r,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(r)}function $g(r){return Object.freeze({...r,encode:t=>{const e=new Uint8Array(qg(t,r));return r.write(t,e,0),e}})}function Zg(r){return Object.freeze({...r,decode:(t,e=0)=>r.read(t,e)[0]})}function _i(r){return"fixedSize"in r&&typeof r.fixedSize=="number"}function Xg(r,t){if(_i(r)!==_i(t))throw new bi(gu);if(_i(r)&&_i(t)&&r.fixedSize!==t.fixedSize)throw new bi(mu,{decoderFixedSize:t.fixedSize,encoderFixedSize:r.fixedSize});if(!_i(r)&&!_i(t)&&r.maxSize!==t.maxSize)throw new bi(vu,{decoderMaxSize:t.maxSize,encoderMaxSize:r.maxSize});return{...t,...r,decode:t.decode,encode:r.encode,read:t.read,write:r.write}}function Jg(r,t,e=0){if(t.length-e<=0)throw new bi(hu,{codecDescription:r})}function Qg(r,t,e,n=0){const o=e.length-n;if(o<t)throw new bi(pu,{bytesLength:o,codecDescription:r,expected:t})}function tm(r,t,e,n){if(n<t||n>e)throw new bi(yu,{codecDescription:r,max:e,min:t,value:n})}function bu(r){return r?.endian!==1}function em(r){return $g({fixedSize:r.size,write(t,e,n){r.range&&tm(r.name,r.range[0],r.range[1],t);const o=new ArrayBuffer(r.size);return r.set(new DataView(o),t,bu(r.config)),e.set(new Uint8Array(o),n),n+r.size}})}function nm(r){return Zg({fixedSize:r.size,read(t,e=0){Jg(r.name,t,e),Qg(r.name,r.size,t,e);const n=new DataView(rm(t,e,r.size));return[r.get(n,bu(r.config)),e+r.size]}})}function rm(r,t,e){const n=r.byteOffset+(t??0),o=e??r.byteLength;return r.buffer.slice(n,n+o)}var _u=(r={})=>em({config:r,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,e,n)=>t.setBigUint64(0,BigInt(e),n),size:8}),im=(r={})=>nm({config:r,get:(t,e)=>t.getBigUint64(0,e),name:"u64",size:8}),om=(r={})=>Xg(_u(r),im(r));class sm extends TypeError{constructor(t,e){let n;const{message:o,explanation:i,...u}=t,{path:d}=t,l=d.length===0?o:`At path: ${d.join(".")} -- ${o}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,u),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...e()])}}function am(r){return ji(r)&&typeof r[Symbol.iterator]=="function"}function ji(r){return typeof r=="object"&&r!=null}function Go(r){return ji(r)&&!Array.isArray(r)}function Jn(r){return typeof r=="symbol"?r.toString():typeof r=="string"?JSON.stringify(r):`${r}`}function cm(r){const{done:t,value:e}=r.next();return t?void 0:e}function um(r,t,e,n){if(r===!0)return;r===!1?r={}:typeof r=="string"&&(r={message:r});const{path:o,branch:i}=t,{type:u}=e,{refinement:d,message:l=`Expected a value of type \`${u}\`${d?` with refinement \`${d}\``:""}, but received: \`${Jn(n)}\``}=r;return{value:n,type:u,refinement:d,key:o[o.length-1],path:o,branch:i,...r,message:l}}function*Eu(r,t,e,n){am(r)||(r=[r]);for(const o of r){const i=um(o,t,e,n);i&&(yield i)}}function*ea(r,t,e={}){const{path:n=[],branch:o=[r],coerce:i=!1,mask:u=!1}=e,d={path:n,branch:o,mask:u};i&&(r=t.coercer(r,d));let l="valid";for(const v of t.validator(r,d))v.explanation=e.message,l="not_valid",yield[v,void 0];for(let[v,S,O]of t.entries(r,d)){const C=ea(S,O,{path:v===void 0?n:[...n,v],branch:v===void 0?o:[...o,S],coerce:i,mask:u,message:e.message});for(const N of C)N[0]?(l=N[0].refinement!=null?"not_refined":"not_valid",yield[N[0],void 0]):i&&(S=N[1],v===void 0?r=S:r instanceof Map?r.set(v,S):r instanceof Set?r.add(S):ji(r)&&(S!==void 0||v in r)&&(r[v]=S))}if(l!=="not_valid")for(const v of t.refiner(r,d))v.explanation=e.message,l="not_refined",yield[v,void 0];l==="valid"&&(yield[void 0,r])}let cr=class{constructor(t){const{type:e,schema:n,validator:o,refiner:i,coercer:u=l=>l,entries:d=function*(){}}=t;this.type=e,this.schema=n,this.entries=d,this.coercer=u,o?this.validator=(l,v)=>{const S=o(l,v);return Eu(S,v,this,l)}:this.validator=()=>[],i?this.refiner=(l,v)=>{const S=i(l,v);return Eu(S,v,this,l)}:this.refiner=()=>[]}assert(t,e){return Ru(t,this,e)}create(t,e){return Jt(t,this,e)}is(t){return Su(t,this)}mask(t,e){return lm(t,this,e)}validate(t,e={}){return Yi(t,this,e)}};function Ru(r,t,e){const n=Yi(r,t,{message:e});if(n[0])throw n[0]}function Jt(r,t,e){const n=Yi(r,t,{coerce:!0,message:e});if(n[0])throw n[0];return n[1]}function lm(r,t,e){const n=Yi(r,t,{coerce:!0,mask:!0,message:e});if(n[0])throw n[0];return n[1]}function Su(r,t){return!Yi(r,t)[0]}function Yi(r,t,e={}){const n=ea(r,t,e),o=cm(n);return o[0]?[new sm(o[0],function*(){for(const u of n)u[0]&&(yield u[0])}),void 0]:[void 0,o[1]]}function Jr(r,t){return new cr({type:r,schema:null,validator:t})}function fm(){return Jr("any",()=>!0)}function ne(r){return new cr({type:"array",schema:r,*entries(t){if(r&&Array.isArray(t))for(const[e,n]of t.entries())yield[e,n,r]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Jn(t)}`}})}function ur(){return Jr("boolean",r=>typeof r=="boolean")}function na(r){return Jr("instance",t=>t instanceof r||`Expected a \`${r.name}\` instance, but received: ${Jn(t)}`)}function rn(r){const t=Jn(r),e=typeof r;return new cr({type:"literal",schema:e==="string"||e==="number"||e==="boolean"?r:null,validator(n){return n===r||`Expected the literal \`${t}\`, but received: ${Jn(n)}`}})}function dm(){return Jr("never",()=>!1)}function re(r){return new cr({...r,validator:(t,e)=>t===null||r.validator(t,e),refiner:(t,e)=>t===null||r.refiner(t,e)})}function St(){return Jr("number",r=>typeof r=="number"&&!isNaN(r)||`Expected a number, but received: ${Jn(r)}`)}function he(r){return new cr({...r,validator:(t,e)=>t===void 0||r.validator(t,e),refiner:(t,e)=>t===void 0||r.refiner(t,e)})}function Au(r,t){return new cr({type:"record",schema:null,*entries(e){if(ji(e))for(const n in e){const o=e[n];yield[n,n,r],yield[n,o,t]}},validator(e){return Go(e)||`Expected an object, but received: ${Jn(e)}`},coercer(e){return Go(e)?{...e}:e}})}function $t(){return Jr("string",r=>typeof r=="string"||`Expected a string, but received: ${Jn(r)}`)}function ra(r){const t=dm();return new cr({type:"tuple",schema:null,*entries(e){if(Array.isArray(e)){const n=Math.max(r.length,e.length);for(let o=0;o<n;o++)yield[o,e[o],r[o]||t]}},validator(e){return Array.isArray(e)||`Expected an array, but received: ${Jn(e)}`},coercer(e){return Array.isArray(e)?e.slice():e}})}function Ht(r){const t=Object.keys(r);return new cr({type:"type",schema:r,*entries(e){if(ji(e))for(const n of t)yield[n,e[n],r[n]]},validator(e){return Go(e)||`Expected an object, but received: ${Jn(e)}`},coercer(e){return Go(e)?{...e}:e}})}function Dn(r){const t=r.map(e=>e.type).join(" | ");return new cr({type:"union",schema:null,coercer(e,n){for(const o of r){const[i,u]=o.validate(e,{coerce:!0,mask:n.mask});if(!i)return u}return e},validator(e,n){const o=[];for(const i of r){const[...u]=ea(e,i,n),[d]=u;if(d[0])for(const[l]of u)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Jn(e)}`,...o]}})}function Ei(){return Jr("unknown",()=>!0)}function qi(r,t,e){return new cr({...r,coercer:(n,o)=>Su(n,t)?r.coercer(e(n,o),o):r.coercer(n,o)})}var Ko,hm=new Uint8Array(16);function Iu(){if(!Ko&&(Ko=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ko))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ko(hm)}const pm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function jo(r){return typeof r=="string"&&pm.test(r)}for(var Nn=[],ia=0;ia<256;++ia)Nn.push((ia+256).toString(16).substr(1));function Yo(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(Nn[r[t+0]]+Nn[r[t+1]]+Nn[r[t+2]]+Nn[r[t+3]]+"-"+Nn[r[t+4]]+Nn[r[t+5]]+"-"+Nn[r[t+6]]+Nn[r[t+7]]+"-"+Nn[r[t+8]]+Nn[r[t+9]]+"-"+Nn[r[t+10]]+Nn[r[t+11]]+Nn[r[t+12]]+Nn[r[t+13]]+Nn[r[t+14]]+Nn[r[t+15]]).toLowerCase();if(!jo(e))throw TypeError("Stringified UUID is invalid");return e}var ku,oa,sa=0,aa=0;function gm(r,t,e){var n=t&&e||0,o=t||new Array(16);r=r||{};var i=r.node||ku,u=r.clockseq!==void 0?r.clockseq:oa;if(i==null||u==null){var d=r.random||(r.rng||Iu)();i==null&&(i=ku=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]),u==null&&(u=oa=(d[6]<<8|d[7])&16383)}var l=r.msecs!==void 0?r.msecs:Date.now(),v=r.nsecs!==void 0?r.nsecs:aa+1,S=l-sa+(v-aa)/1e4;if(S<0&&r.clockseq===void 0&&(u=u+1&16383),(S<0||l>sa)&&r.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");sa=l,aa=v,oa=u,l+=122192928e5;var O=((l&268435455)*1e4+v)%4294967296;o[n++]=O>>>24&255,o[n++]=O>>>16&255,o[n++]=O>>>8&255,o[n++]=O&255;var C=l/4294967296*1e4&268435455;o[n++]=C>>>8&255,o[n++]=C&255,o[n++]=C>>>24&15|16,o[n++]=C>>>16&255,o[n++]=u>>>8|128,o[n++]=u&255;for(var N=0;N<6;++N)o[n+N]=i[N];return t||Yo(o)}function Ou(r){if(!jo(r))throw TypeError("Invalid UUID");var t,e=new Uint8Array(16);return e[0]=(t=parseInt(r.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=t&255,e[4]=(t=parseInt(r.slice(9,13),16))>>>8,e[5]=t&255,e[6]=(t=parseInt(r.slice(14,18),16))>>>8,e[7]=t&255,e[8]=(t=parseInt(r.slice(19,23),16))>>>8,e[9]=t&255,e[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=t&255,e}function mm(r){r=unescape(encodeURIComponent(r));for(var t=[],e=0;e<r.length;++e)t.push(r.charCodeAt(e));return t}var vm="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ym="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Tu(r,t,e){function n(o,i,u,d){if(typeof o=="string"&&(o=mm(o)),typeof i=="string"&&(i=Ou(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+o.length);if(l.set(i),l.set(o,i.length),l=e(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,u){d=d||0;for(var v=0;v<16;++v)u[d+v]=l[v];return u}return Yo(l)}try{n.name=r}catch{}return n.DNS=vm,n.URL=ym,n}function wm(r){if(typeof r=="string"){var t=unescape(encodeURIComponent(r));r=new Uint8Array(t.length);for(var e=0;e<t.length;++e)r[e]=t.charCodeAt(e)}return bm(_m(Em(r),r.length*8))}function bm(r){for(var t=[],e=r.length*32,n="0123456789abcdef",o=0;o<e;o+=8){var i=r[o>>5]>>>o%32&255,u=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);t.push(u)}return t}function Nu(r){return(r+64>>>9<<4)+14+1}function _m(r,t){r[t>>5]|=128<<t%32,r[Nu(t)-1]=t;for(var e=1732584193,n=-271733879,o=-1732584194,i=271733878,u=0;u<r.length;u+=16){var d=e,l=n,v=o,S=i;e=Ln(e,n,o,i,r[u],7,-680876936),i=Ln(i,e,n,o,r[u+1],12,-389564586),o=Ln(o,i,e,n,r[u+2],17,606105819),n=Ln(n,o,i,e,r[u+3],22,-1044525330),e=Ln(e,n,o,i,r[u+4],7,-176418897),i=Ln(i,e,n,o,r[u+5],12,1200080426),o=Ln(o,i,e,n,r[u+6],17,-1473231341),n=Ln(n,o,i,e,r[u+7],22,-45705983),e=Ln(e,n,o,i,r[u+8],7,1770035416),i=Ln(i,e,n,o,r[u+9],12,-1958414417),o=Ln(o,i,e,n,r[u+10],17,-42063),n=Ln(n,o,i,e,r[u+11],22,-1990404162),e=Ln(e,n,o,i,r[u+12],7,1804603682),i=Ln(i,e,n,o,r[u+13],12,-40341101),o=Ln(o,i,e,n,r[u+14],17,-1502002290),n=Ln(n,o,i,e,r[u+15],22,1236535329),e=Cn(e,n,o,i,r[u+1],5,-165796510),i=Cn(i,e,n,o,r[u+6],9,-1069501632),o=Cn(o,i,e,n,r[u+11],14,643717713),n=Cn(n,o,i,e,r[u],20,-373897302),e=Cn(e,n,o,i,r[u+5],5,-701558691),i=Cn(i,e,n,o,r[u+10],9,38016083),o=Cn(o,i,e,n,r[u+15],14,-660478335),n=Cn(n,o,i,e,r[u+4],20,-405537848),e=Cn(e,n,o,i,r[u+9],5,568446438),i=Cn(i,e,n,o,r[u+14],9,-1019803690),o=Cn(o,i,e,n,r[u+3],14,-187363961),n=Cn(n,o,i,e,r[u+8],20,1163531501),e=Cn(e,n,o,i,r[u+13],5,-1444681467),i=Cn(i,e,n,o,r[u+2],9,-51403784),o=Cn(o,i,e,n,r[u+7],14,1735328473),n=Cn(n,o,i,e,r[u+12],20,-1926607734),e=Bn(e,n,o,i,r[u+5],4,-378558),i=Bn(i,e,n,o,r[u+8],11,-2022574463),o=Bn(o,i,e,n,r[u+11],16,1839030562),n=Bn(n,o,i,e,r[u+14],23,-35309556),e=Bn(e,n,o,i,r[u+1],4,-1530992060),i=Bn(i,e,n,o,r[u+4],11,1272893353),o=Bn(o,i,e,n,r[u+7],16,-155497632),n=Bn(n,o,i,e,r[u+10],23,-1094730640),e=Bn(e,n,o,i,r[u+13],4,681279174),i=Bn(i,e,n,o,r[u],11,-358537222),o=Bn(o,i,e,n,r[u+3],16,-722521979),n=Bn(n,o,i,e,r[u+6],23,76029189),e=Bn(e,n,o,i,r[u+9],4,-640364487),i=Bn(i,e,n,o,r[u+12],11,-421815835),o=Bn(o,i,e,n,r[u+15],16,530742520),n=Bn(n,o,i,e,r[u+2],23,-995338651),e=Pn(e,n,o,i,r[u],6,-198630844),i=Pn(i,e,n,o,r[u+7],10,1126891415),o=Pn(o,i,e,n,r[u+14],15,-1416354905),n=Pn(n,o,i,e,r[u+5],21,-57434055),e=Pn(e,n,o,i,r[u+12],6,1700485571),i=Pn(i,e,n,o,r[u+3],10,-1894986606),o=Pn(o,i,e,n,r[u+10],15,-1051523),n=Pn(n,o,i,e,r[u+1],21,-2054922799),e=Pn(e,n,o,i,r[u+8],6,1873313359),i=Pn(i,e,n,o,r[u+15],10,-30611744),o=Pn(o,i,e,n,r[u+6],15,-1560198380),n=Pn(n,o,i,e,r[u+13],21,1309151649),e=Pn(e,n,o,i,r[u+4],6,-145523070),i=Pn(i,e,n,o,r[u+11],10,-1120210379),o=Pn(o,i,e,n,r[u+2],15,718787259),n=Pn(n,o,i,e,r[u+9],21,-343485551),e=Br(e,d),n=Br(n,l),o=Br(o,v),i=Br(i,S)}return[e,n,o,i]}function Em(r){if(r.length===0)return[];for(var t=r.length*8,e=new Uint32Array(Nu(t)),n=0;n<t;n+=8)e[n>>5]|=(r[n/8]&255)<<n%32;return e}function Br(r,t){var e=(r&65535)+(t&65535),n=(r>>16)+(t>>16)+(e>>16);return n<<16|e&65535}function Rm(r,t){return r<<t|r>>>32-t}function qo(r,t,e,n,o,i){return Br(Rm(Br(Br(t,r),Br(n,i)),o),e)}function Ln(r,t,e,n,o,i,u){return qo(t&e|~t&n,r,t,o,i,u)}function Cn(r,t,e,n,o,i,u){return qo(t&n|e&~n,r,t,o,i,u)}function Bn(r,t,e,n,o,i,u){return qo(t^e^n,r,t,o,i,u)}function Pn(r,t,e,n,o,i,u){return qo(e^(t|~n),r,t,o,i,u)}var Sm=Tu("v3",48,wm);function Am(r,t,e){r=r||{};var n=r.random||(r.rng||Iu)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){e=e||0;for(var o=0;o<16;++o)t[e+o]=n[o];return t}return Yo(n)}function Im(r,t,e,n){switch(r){case 0:return t&e^~t&n;case 1:return t^e^n;case 2:return t&e^t&n^e&n;case 3:return t^e^n}}function ca(r,t){return r<<t|r>>>32-t}function km(r){var t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var n=unescape(encodeURIComponent(r));r=[];for(var o=0;o<n.length;++o)r.push(n.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var i=r.length/4+2,u=Math.ceil(i/16),d=new Array(u),l=0;l<u;++l){for(var v=new Uint32Array(16),S=0;S<16;++S)v[S]=r[l*64+S*4]<<24|r[l*64+S*4+1]<<16|r[l*64+S*4+2]<<8|r[l*64+S*4+3];d[l]=v}d[u-1][14]=(r.length-1)*8/Math.pow(2,32),d[u-1][14]=Math.floor(d[u-1][14]),d[u-1][15]=(r.length-1)*8&4294967295;for(var O=0;O<u;++O){for(var C=new Uint32Array(80),N=0;N<16;++N)C[N]=d[O][N];for(var B=16;B<80;++B)C[B]=ca(C[B-3]^C[B-8]^C[B-14]^C[B-16],1);for(var M=e[0],F=e[1],G=e[2],Q=e[3],et=e[4],ct=0;ct<80;++ct){var ft=Math.floor(ct/20),ot=ca(M,5)+Im(ft,F,G,Q)+et+t[ft]+C[ct]>>>0;et=Q,Q=G,G=ca(F,30)>>>0,F=M,M=ot}e[0]=e[0]+M>>>0,e[1]=e[1]+F>>>0,e[2]=e[2]+G>>>0,e[3]=e[3]+Q>>>0,e[4]=e[4]+et>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var Om=Tu("v5",80,km);const Tm="00000000-0000-0000-0000-000000000000";function Nm(r){if(!jo(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)}const xu=Cs(Object.freeze(Object.defineProperty({__proto__:null,NIL:Tm,parse:Ou,stringify:Yo,v1:gm,v3:Sm,v4:Am,v5:Om,validate:jo,version:Nm},Symbol.toStringTag,{value:"Module"})));var ua,Lu;function xm(){if(Lu)return ua;Lu=1;const r=xu.v4;return ua=function(e,n,o,i){if(typeof e!="string")throw new TypeError(e+" must be a string");i=i||{};const u=typeof i.version=="number"?i.version:2;if(u!==1&&u!==2)throw new TypeError(u+" must be 1 or 2");const d={method:e};if(u===2&&(d.jsonrpc="2.0"),n){if(typeof n!="object"&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");d.params=n}if(typeof o>"u"){const l=typeof i.generator=="function"?i.generator:function(){return r()};d.id=l(d,i)}else u===2&&o===null?i.notificationIdNull&&(d.id=null):d.id=o;return d},ua}var la,Cu;function Lm(){if(Cu)return la;Cu=1;const r=xu.v4,t=xm(),e=function(n,o){if(!(this instanceof e))return new e(n,o);o||(o={}),this.options={reviver:typeof o.reviver<"u"?o.reviver:null,replacer:typeof o.replacer<"u"?o.replacer:null,generator:typeof o.generator<"u"?o.generator:function(){return r()},version:typeof o.version<"u"?o.version:2,notificationIdNull:typeof o.notificationIdNull=="boolean"?o.notificationIdNull:!1},this.callServer=n};return la=e,e.prototype.request=function(n,o,i,u){const d=this;let l=null;const v=Array.isArray(n)&&typeof o=="function";if(this.options.version===1&&v)throw new TypeError("JSON-RPC 1.0 does not support batching");if(v||!v&&n&&typeof n=="object"&&typeof o=="function")u=o,l=n;else{typeof i=="function"&&(u=i,i=void 0);const C=typeof u=="function";try{l=t(n,o,i,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(N){if(C)return u(N);throw N}if(!C)return l}let O;try{O=JSON.stringify(l,this.options.replacer)}catch(C){return u(C)}return this.callServer(O,function(C,N){d._parseResponse(C,N,u)}),l},e.prototype._parseResponse=function(n,o,i){if(n){i(n);return}if(!o)return i();let u;try{u=JSON.parse(o,this.options.reviver)}catch(d){return i(d)}if(i.length===3)if(Array.isArray(u)){const d=function(v){return typeof v.error<"u"},l=function(v){return!d(v)};return i(null,u.filter(d),u.filter(l))}else return i(null,u.error,u.result);i(null,u)},la}var Cm=Lm();const Bm=Vi(Cm);var fa={exports:{}},Bu;function Pm(){return Bu||(Bu=1,function(r){var t=Object.prototype.hasOwnProperty,e="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(e=!1));function o(l,v,S){this.fn=l,this.context=v,this.once=S||!1}function i(l,v,S,O,C){if(typeof S!="function")throw new TypeError("The listener must be a function");var N=new o(S,O||l,C),B=e?e+v:v;return l._events[B]?l._events[B].fn?l._events[B]=[l._events[B],N]:l._events[B].push(N):(l._events[B]=N,l._eventsCount++),l}function u(l,v){--l._eventsCount===0?l._events=new n:delete l._events[v]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var v=[],S,O;if(this._eventsCount===0)return v;for(O in S=this._events)t.call(S,O)&&v.push(e?O.slice(1):O);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(S)):v},d.prototype.listeners=function(v){var S=e?e+v:v,O=this._events[S];if(!O)return[];if(O.fn)return[O.fn];for(var C=0,N=O.length,B=new Array(N);C<N;C++)B[C]=O[C].fn;return B},d.prototype.listenerCount=function(v){var S=e?e+v:v,O=this._events[S];return O?O.fn?1:O.length:0},d.prototype.emit=function(v,S,O,C,N,B){var M=e?e+v:v;if(!this._events[M])return!1;var F=this._events[M],G=arguments.length,Q,et;if(F.fn){switch(F.once&&this.removeListener(v,F.fn,void 0,!0),G){case 1:return F.fn.call(F.context),!0;case 2:return F.fn.call(F.context,S),!0;case 3:return F.fn.call(F.context,S,O),!0;case 4:return F.fn.call(F.context,S,O,C),!0;case 5:return F.fn.call(F.context,S,O,C,N),!0;case 6:return F.fn.call(F.context,S,O,C,N,B),!0}for(et=1,Q=new Array(G-1);et<G;et++)Q[et-1]=arguments[et];F.fn.apply(F.context,Q)}else{var ct=F.length,ft;for(et=0;et<ct;et++)switch(F[et].once&&this.removeListener(v,F[et].fn,void 0,!0),G){case 1:F[et].fn.call(F[et].context);break;case 2:F[et].fn.call(F[et].context,S);break;case 3:F[et].fn.call(F[et].context,S,O);break;case 4:F[et].fn.call(F[et].context,S,O,C);break;default:if(!Q)for(ft=1,Q=new Array(G-1);ft<G;ft++)Q[ft-1]=arguments[ft];F[et].fn.apply(F[et].context,Q)}}return!0},d.prototype.on=function(v,S,O){return i(this,v,S,O,!1)},d.prototype.once=function(v,S,O){return i(this,v,S,O,!0)},d.prototype.removeListener=function(v,S,O,C){var N=e?e+v:v;if(!this._events[N])return this;if(!S)return u(this,N),this;var B=this._events[N];if(B.fn)B.fn===S&&(!C||B.once)&&(!O||B.context===O)&&u(this,N);else{for(var M=0,F=[],G=B.length;M<G;M++)(B[M].fn!==S||C&&!B[M].once||O&&B[M].context!==O)&&F.push(B[M]);F.length?this._events[N]=F.length===1?F[0]:F:u(this,N)}return this},d.prototype.removeAllListeners=function(v){var S;return v?(S=e?e+v:v,this._events[S]&&u(this,S)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=e,d.EventEmitter=d,r.exports=d}(fa)),fa.exports}var Mm=Pm();const Pu=Vi(Mm);var Dm=class extends Pu{socket;constructor(r,t,e){super(),this.socket=new window.WebSocket(r,e),this.socket.onopen=()=>this.emit("open"),this.socket.onmessage=n=>this.emit("message",n.data),this.socket.onerror=n=>this.emit("error",n),this.socket.onclose=n=>{this.emit("close",n.code,n.reason)}}send(r,t,e){const n=e||t;try{this.socket.send(r),n()}catch(o){n(o)}}close(r,t){this.socket.close(r,t)}addEventListener(r,t,e){this.socket.addEventListener(r,t,e)}};function Um(r,t){return new Dm(r,t)}var Fm=class{encode(r){return JSON.stringify(r)}decode(r){return JSON.parse(r)}},Hm=class extends Pu{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor(r,t="ws://localhost:8080",{autoconnect:e=!0,reconnect:n=!0,reconnect_interval:o=1e3,max_reconnects:i=5,...u}={},d,l){super(),this.webSocketFactory=r,this.queue={},this.rpc_id=0,this.address=t,this.autoconnect=e,this.ready=!1,this.reconnect=n,this.reconnect_timer_id=void 0,this.reconnect_interval=o,this.max_reconnects=i,this.rest_options=u,this.current_reconnects=0,this.generate_request_id=d||(()=>++this.rpc_id),l?this.dataPack=l:this.dataPack=new Fm,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(r,t,e,n){return!n&&typeof e=="object"&&(n=e,e=null),new Promise((o,i)=>{if(!this.ready)return i(new Error("socket not ready"));const u=this.generate_request_id(r,t),d={jsonrpc:"2.0",method:r,params:t||void 0,id:u};this.socket.send(this.dataPack.encode(d),n,l=>{if(l)return i(l);this.queue[u]={promise:[o,i]},e&&(this.queue[u].timeout=setTimeout(()=>{delete this.queue[u],i(new Error("reply timeout"))},e))})})}async login(r){const t=await this.call("rpc.login",r);if(!t)throw new Error("authentication failed");return t}async listMethods(){return await this.call("__listMethods")}notify(r,t){return new Promise((e,n)=>{if(!this.ready)return n(new Error("socket not ready"));const o={jsonrpc:"2.0",method:r,params:t};this.socket.send(this.dataPack.encode(o),i=>{if(i)return n(i);e()})})}async subscribe(r){typeof r=="string"&&(r=[r]);const t=await this.call("rpc.on",r);if(typeof r=="string"&&t[r]!=="ok")throw new Error("Failed subscribing to an event '"+r+"' with: "+t[r]);return t}async unsubscribe(r){typeof r=="string"&&(r=[r]);const t=await this.call("rpc.off",r);if(typeof r=="string"&&t[r]!=="ok")throw new Error("Failed unsubscribing from an event with: "+t);return t}close(r,t){this.socket.close(r||1e3,t)}setAutoReconnect(r){this.reconnect=r}setReconnectInterval(r){this.reconnect_interval=r}setMaxReconnects(r){this.max_reconnects=r}_connect(r,t){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(r,t),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:e})=>{e instanceof ArrayBuffer&&(e=me.Buffer.from(e).toString());try{e=this.dataPack.decode(e)}catch{return}if(e.notification&&this.listeners(e.notification).length){if(!Object.keys(e.params).length)return this.emit(e.notification);const n=[e.notification];if(e.params.constructor===Object)n.push(e.params);else for(let o=0;o<e.params.length;o++)n.push(e.params[o]);return Promise.resolve().then(()=>{this.emit.apply(this,n)})}if(!this.queue[e.id])return e.method?Promise.resolve().then(()=>{this.emit(e.method,e?.params)}):void 0;"error"in e=="result"in e&&this.queue[e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[e.id].timeout&&clearTimeout(this.queue[e.id].timeout),e.error?this.queue[e.id].promise[1](e.error):this.queue[e.id].promise[0](e.result),delete this.queue[e.id]}),this.socket.addEventListener("error",e=>this.emit("error",e)),this.socket.addEventListener("close",({code:e,reason:n})=>{this.ready&&setTimeout(()=>this.emit("close",e,n),0),this.ready=!1,this.socket=void 0,e!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)&&(this.reconnect_timer_id=setTimeout(()=>this._connect(r,t),this.reconnect_interval)))})}};const Mu=[],Du=[],Uu=[],Vm=BigInt(0),$i=BigInt(1),Wm=BigInt(2),zm=BigInt(7),Gm=BigInt(256),Km=BigInt(113);for(let r=0,t=$i,e=1,n=0;r<24;r++){[e,n]=[n,(2*e+3*n)%5],Mu.push(2*(5*n+e)),Du.push((r+1)*(r+2)/2%64);let o=Vm;for(let i=0;i<7;i++)t=(t<<$i^(t>>zm)*Km)%Gm,t&Wm&&(o^=$i<<($i<<BigInt(i))-$i);Uu.push(o)}const[jm,Ym]=Fc(Uu,!0),Fu=(r,t,e)=>e>32?Wc(r,t,e):Hc(r,t,e),Hu=(r,t,e)=>e>32?zc(r,t,e):Vc(r,t,e);function qm(r,t=24){const e=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let u=0;u<10;u++)e[u]=r[u]^r[u+10]^r[u+20]^r[u+30]^r[u+40];for(let u=0;u<10;u+=2){const d=(u+8)%10,l=(u+2)%10,v=e[l],S=e[l+1],O=Fu(v,S,1)^e[d],C=Hu(v,S,1)^e[d+1];for(let N=0;N<50;N+=10)r[u+N]^=O,r[u+N+1]^=C}let o=r[2],i=r[3];for(let u=0;u<24;u++){const d=Du[u],l=Fu(o,i,d),v=Hu(o,i,d),S=Mu[u];o=r[S],i=r[S+1],r[S]=l,r[S+1]=v}for(let u=0;u<50;u+=10){for(let d=0;d<10;d++)e[d]=r[u+d];for(let d=0;d<10;d++)r[u+d]^=~e[(d+2)%10]&e[(d+4)%10]}r[0]^=jm[n],r[1]^=Ym[n]}e.fill(0)}class da extends Us{constructor(t,e,n,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Lo(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Ad(this.state)}keccak(){Bc||Pc(this.state32),qm(this.state32,this.rounds),Bc||Pc(this.state32),this.posOut=0,this.pos=0}update(t){hi(this);const{blockLen:e,state:n}=this;t=Co(t);const o=t.length;for(let i=0;i<o;){const u=Math.min(e-this.pos,o-i);for(let d=0;d<u;d++)n[this.pos++]^=t[i++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:o}=this;t[n]^=e,(e&128)!==0&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){hi(this,!1),zi(t),this.finish();const e=this.state,{blockLen:n}=this;for(let o=0,i=t.length;o<i;){this.posOut>=n&&this.keccak();const u=Math.min(n-this.posOut,i-o);t.set(e.subarray(this.posOut,this.posOut+u),o),this.posOut+=u,o+=u}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Lo(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Cc(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:o,rounds:i,enableXOF:u}=this;return t||(t=new da(e,n,o,u,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=o,t.enableXOF=u,t.destroyed=this.destroyed,t}}const Vu=((r,t,e)=>Fs(()=>new da(t,r,e)))(1,136,256/8);class Wu extends Us{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,Sd(t);const n=Co(e);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let u=0;u<i.length;u++)i[u]^=54;this.iHash.update(i),this.oHash=t.create();for(let u=0;u<i.length;u++)i[u]^=106;this.oHash.update(i),i.fill(0)}update(t){return hi(this),this.iHash.update(t),this}digestInto(t){hi(this),zi(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:o,destroyed:i,blockLen:u,outputLen:d}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=u,t.outputLen=d,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const zu=(r,t,e)=>new Wu(r,t).update(e).digest();zu.create=(r,t)=>new Wu(r,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function $m(r){const t=Ys(r);vi(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:e,Fp:n,a:o}=t;if(e){if(!n.eql(o,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof e!="object"||typeof e.beta!="bigint"||typeof e.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Zm,hexToBytes:Xm}=eh,Qr={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(r){const{Err:t}=Qr;if(r.length<2||r[0]!==2)throw new t("Invalid signature integer tag");const e=r[1],n=r.subarray(2,e+2);if(!e||n.length!==e)throw new t("Invalid signature integer: wrong length");if(n[0]&128)throw new t("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Zm(n),l:r.subarray(e+2)}},toSig(r){const{Err:t}=Qr,e=typeof r=="string"?Xm(r):r;Gi(e);let n=e.length;if(n<2||e[0]!=48)throw new t("Invalid signature tag");if(e[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:o,l:i}=Qr._parseInt(e.subarray(2)),{d:u,l:d}=Qr._parseInt(i);if(d.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s:u}},hexFromSig(r){const t=v=>Number.parseInt(v[0],16)&8?"00"+v:v,e=v=>{const S=v.toString(16);return S.length&1?`0${S}`:S},n=t(e(r.s)),o=t(e(r.r)),i=n.length/2,u=o.length/2,d=e(i),l=e(u);return`30${e(u+i+4)}02${l}${o}02${d}${n}`}},Rr=BigInt(0),Zn=BigInt(1);BigInt(2);const Gu=BigInt(3);BigInt(4);function Jm(r){const t=$m(r),{Fp:e}=t,n=t.toBytes||((B,M,F)=>{const G=M.toAffine();return Zr(Uint8Array.from([4]),e.toBytes(G.x),e.toBytes(G.y))}),o=t.fromBytes||(B=>{const M=B.subarray(1),F=e.fromBytes(M.subarray(0,e.BYTES)),G=e.fromBytes(M.subarray(e.BYTES,2*e.BYTES));return{x:F,y:G}});function i(B){const{a:M,b:F}=t,G=e.sqr(B),Q=e.mul(G,B);return e.add(e.add(Q,e.mul(B,M)),F)}if(!e.eql(e.sqr(t.Gy),i(t.Gx)))throw new Error("bad generator point: equation left != right");function u(B){return typeof B=="bigint"&&Rr<B&&B<t.n}function d(B){if(!u(B))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function l(B){const{allowedPrivateKeyLengths:M,nByteLength:F,wrapPrivateKey:G,n:Q}=t;if(M&&typeof B!="bigint"){if(Yr(B)&&(B=qr(B)),typeof B!="string"||!M.includes(B.length))throw new Error("Invalid key");B=B.padStart(F*2,"0")}let et;try{et=typeof B=="bigint"?B:$r(_n("private key",B,F))}catch{throw new Error(`private key must be ${F} bytes, hex or bigint, not ${typeof B}`)}return G&&(et=en(et,Q)),d(et),et}const v=new Map;function S(B){if(!(B instanceof O))throw new Error("ProjectivePoint expected")}class O{constructor(M,F,G){if(this.px=M,this.py=F,this.pz=G,M==null||!e.isValid(M))throw new Error("x required");if(F==null||!e.isValid(F))throw new Error("y required");if(G==null||!e.isValid(G))throw new Error("z required")}static fromAffine(M){const{x:F,y:G}=M||{};if(!M||!e.isValid(F)||!e.isValid(G))throw new Error("invalid affine point");if(M instanceof O)throw new Error("projective point not allowed");const Q=et=>e.eql(et,e.ZERO);return Q(F)&&Q(G)?O.ZERO:new O(F,G,e.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(M){const F=e.invertBatch(M.map(G=>G.pz));return M.map((G,Q)=>G.toAffine(F[Q])).map(O.fromAffine)}static fromHex(M){const F=O.fromAffine(o(_n("pointHex",M)));return F.assertValidity(),F}static fromPrivateKey(M){return O.BASE.multiply(l(M))}_setWindowSize(M){this._WINDOW_SIZE=M,v.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!e.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:M,y:F}=this.toAffine();if(!e.isValid(M)||!e.isValid(F))throw new Error("bad point: x or y not FE");const G=e.sqr(F),Q=i(M);if(!e.eql(G,Q))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:M}=this.toAffine();if(e.isOdd)return!e.isOdd(M);throw new Error("Field doesn't support isOdd")}equals(M){S(M);const{px:F,py:G,pz:Q}=this,{px:et,py:ct,pz:ft}=M,ot=e.eql(e.mul(F,ft),e.mul(et,Q)),bt=e.eql(e.mul(G,ft),e.mul(ct,Q));return ot&&bt}negate(){return new O(this.px,e.neg(this.py),this.pz)}double(){const{a:M,b:F}=t,G=e.mul(F,Gu),{px:Q,py:et,pz:ct}=this;let ft=e.ZERO,ot=e.ZERO,bt=e.ZERO,Rt=e.mul(Q,Q),At=e.mul(et,et),gt=e.mul(ct,ct),wt=e.mul(Q,et);return wt=e.add(wt,wt),bt=e.mul(Q,ct),bt=e.add(bt,bt),ft=e.mul(M,bt),ot=e.mul(G,gt),ot=e.add(ft,ot),ft=e.sub(At,ot),ot=e.add(At,ot),ot=e.mul(ft,ot),ft=e.mul(wt,ft),bt=e.mul(G,bt),gt=e.mul(M,gt),wt=e.sub(Rt,gt),wt=e.mul(M,wt),wt=e.add(wt,bt),bt=e.add(Rt,Rt),Rt=e.add(bt,Rt),Rt=e.add(Rt,gt),Rt=e.mul(Rt,wt),ot=e.add(ot,Rt),gt=e.mul(et,ct),gt=e.add(gt,gt),Rt=e.mul(gt,wt),ft=e.sub(ft,Rt),bt=e.mul(gt,At),bt=e.add(bt,bt),bt=e.add(bt,bt),new O(ft,ot,bt)}add(M){S(M);const{px:F,py:G,pz:Q}=this,{px:et,py:ct,pz:ft}=M;let ot=e.ZERO,bt=e.ZERO,Rt=e.ZERO;const At=t.a,gt=e.mul(t.b,Gu);let wt=e.mul(F,et),kt=e.mul(G,ct),q=e.mul(Q,ft),h=e.add(F,G),T=e.add(et,ct);h=e.mul(h,T),T=e.add(wt,kt),h=e.sub(h,T),T=e.add(F,Q);let D=e.add(et,ft);return T=e.mul(T,D),D=e.add(wt,q),T=e.sub(T,D),D=e.add(G,Q),ot=e.add(ct,ft),D=e.mul(D,ot),ot=e.add(kt,q),D=e.sub(D,ot),Rt=e.mul(At,T),ot=e.mul(gt,q),Rt=e.add(ot,Rt),ot=e.sub(kt,Rt),Rt=e.add(kt,Rt),bt=e.mul(ot,Rt),kt=e.add(wt,wt),kt=e.add(kt,wt),q=e.mul(At,q),T=e.mul(gt,T),kt=e.add(kt,q),q=e.sub(wt,q),q=e.mul(At,q),T=e.add(T,q),wt=e.mul(kt,T),bt=e.add(bt,wt),wt=e.mul(D,T),ot=e.mul(h,ot),ot=e.sub(ot,wt),wt=e.mul(h,kt),Rt=e.mul(D,Rt),Rt=e.add(Rt,wt),new O(ot,bt,Rt)}subtract(M){return this.add(M.negate())}is0(){return this.equals(O.ZERO)}wNAF(M){return N.wNAFCached(this,v,M,F=>{const G=e.invertBatch(F.map(Q=>Q.pz));return F.map((Q,et)=>Q.toAffine(G[et])).map(O.fromAffine)})}multiplyUnsafe(M){const F=O.ZERO;if(M===Rr)return F;if(d(M),M===Zn)return this;const{endo:G}=t;if(!G)return N.unsafeLadder(this,M);let{k1neg:Q,k1:et,k2neg:ct,k2:ft}=G.splitScalar(M),ot=F,bt=F,Rt=this;for(;et>Rr||ft>Rr;)et&Zn&&(ot=ot.add(Rt)),ft&Zn&&(bt=bt.add(Rt)),Rt=Rt.double(),et>>=Zn,ft>>=Zn;return Q&&(ot=ot.negate()),ct&&(bt=bt.negate()),bt=new O(e.mul(bt.px,G.beta),bt.py,bt.pz),ot.add(bt)}multiply(M){d(M);let F=M,G,Q;const{endo:et}=t;if(et){const{k1neg:ct,k1:ft,k2neg:ot,k2:bt}=et.splitScalar(F);let{p:Rt,f:At}=this.wNAF(ft),{p:gt,f:wt}=this.wNAF(bt);Rt=N.constTimeNegate(ct,Rt),gt=N.constTimeNegate(ot,gt),gt=new O(e.mul(gt.px,et.beta),gt.py,gt.pz),G=Rt.add(gt),Q=At.add(wt)}else{const{p:ct,f:ft}=this.wNAF(F);G=ct,Q=ft}return O.normalizeZ([G,Q])[0]}multiplyAndAddUnsafe(M,F,G){const Q=O.BASE,et=(ft,ot)=>ot===Rr||ot===Zn||!ft.equals(Q)?ft.multiplyUnsafe(ot):ft.multiply(ot),ct=et(this,F).add(et(M,G));return ct.is0()?void 0:ct}toAffine(M){const{px:F,py:G,pz:Q}=this,et=this.is0();M==null&&(M=et?e.ONE:e.inv(Q));const ct=e.mul(F,M),ft=e.mul(G,M),ot=e.mul(Q,M);if(et)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ot,e.ONE))throw new Error("invZ was invalid");return{x:ct,y:ft}}isTorsionFree(){const{h:M,isTorsionFree:F}=t;if(M===Zn)return!0;if(F)return F(O,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:M,clearCofactor:F}=t;return M===Zn?this:F?F(O,this):this.multiplyUnsafe(t.h)}toRawBytes(M=!0){return this.assertValidity(),n(O,this,M)}toHex(M=!0){return qr(this.toRawBytes(M))}}O.BASE=new O(t.Gx,t.Gy,e.ONE),O.ZERO=new O(e.ZERO,e.ONE,e.ZERO);const C=t.nBitLength,N=eu(O,t.endo?Math.ceil(C/2):C);return{CURVE:t,ProjectivePoint:O,normPrivateKeyToScalar:l,weierstrassEquation:i,isWithinCurveOrder:u}}function Qm(r){const t=Ys(r);return vi(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function tv(r){const t=Qm(r),{Fp:e,n}=t,o=e.BYTES+1,i=2*e.BYTES+1;function u(T){return Rr<T&&T<e.ORDER}function d(T){return en(T,n)}function l(T){return Ks(T,n)}const{ProjectivePoint:v,normPrivateKeyToScalar:S,weierstrassEquation:O,isWithinCurveOrder:C}=Jm({...t,toBytes(T,D,Z){const j=D.toAffine(),X=e.toBytes(j.x),at=Zr;return Z?at(Uint8Array.from([D.hasEvenY()?2:3]),X):at(Uint8Array.from([4]),X,e.toBytes(j.y))},fromBytes(T){const D=T.length,Z=T[0],j=T.subarray(1);if(D===o&&(Z===2||Z===3)){const X=$r(j);if(!u(X))throw new Error("Point is not on curve");const at=O(X);let K;try{K=e.sqrt(at)}catch(z){const $=z instanceof Error?": "+z.message:"";throw new Error("Point is not on curve"+$)}const p=(K&Zn)===Zn;return(Z&1)===1!==p&&(K=e.neg(K)),{x:X,y:K}}else if(D===i&&Z===4){const X=e.fromBytes(j.subarray(0,e.BYTES)),at=e.fromBytes(j.subarray(e.BYTES,2*e.BYTES));return{x:X,y:at}}else throw new Error(`Point of length ${D} was invalid. Expected ${o} compressed bytes or ${i} uncompressed bytes`)}}),N=T=>qr(mi(T,t.nByteLength));function B(T){const D=n>>Zn;return T>D}function M(T){return B(T)?d(-T):T}const F=(T,D,Z)=>$r(T.slice(D,Z));class G{constructor(D,Z,j){this.r=D,this.s=Z,this.recovery=j,this.assertValidity()}static fromCompact(D){const Z=t.nByteLength;return D=_n("compactSignature",D,Z*2),new G(F(D,0,Z),F(D,Z,2*Z))}static fromDER(D){const{r:Z,s:j}=Qr.toSig(_n("DER",D));return new G(Z,j)}assertValidity(){if(!C(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!C(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(D){return new G(this.r,this.s,D)}recoverPublicKey(D){const{r:Z,s:j,recovery:X}=this,at=bt(_n("msgHash",D));if(X==null||![0,1,2,3].includes(X))throw new Error("recovery id invalid");const K=X===2||X===3?Z+t.n:Z;if(K>=e.ORDER)throw new Error("recovery id 2 or 3 invalid");const p=(X&1)===0?"02":"03",E=v.fromHex(p+N(K)),z=l(K),$=d(-at*z),dt=d(j*z),_t=v.BASE.multiplyAndAddUnsafe(E,$,dt);if(!_t)throw new Error("point at infinify");return _t.assertValidity(),_t}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new G(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return pi(this.toDERHex())}toDERHex(){return Qr.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return pi(this.toCompactHex())}toCompactHex(){return N(this.r)+N(this.s)}}const Q={isValidPrivateKey(T){try{return S(T),!0}catch{return!1}},normPrivateKeyToScalar:S,randomPrivateKey:()=>{const T=tu(t.n);return fh(t.randomBytes(T),t.n)},precompute(T=8,D=v.BASE){return D._setWindowSize(T),D.multiply(BigInt(3)),D}};function et(T,D=!0){return v.fromPrivateKey(T).toRawBytes(D)}function ct(T){const D=Yr(T),Z=typeof T=="string",j=(D||Z)&&T.length;return D?j===o||j===i:Z?j===2*o||j===2*i:T instanceof v}function ft(T,D,Z=!0){if(ct(T))throw new Error("first arg must be private key");if(!ct(D))throw new Error("second arg must be public key");return v.fromHex(D).multiply(S(T)).toRawBytes(Z)}const ot=t.bits2int||function(T){const D=$r(T),Z=T.length*8-t.nBitLength;return Z>0?D>>BigInt(Z):D},bt=t.bits2int_modN||function(T){return d(ot(T))},Rt=Ws(t.nBitLength);function At(T){if(typeof T!="bigint")throw new Error("bigint expected");if(!(Rr<=T&&T<Rt))throw new Error(`bigint expected < 2^${t.nBitLength}`);return mi(T,t.nByteLength)}function gt(T,D,Z=wt){if(["recovered","canonical"].some(Pt=>Pt in Z))throw new Error("sign() legacy options not supported");const{hash:j,randomBytes:X}=t;let{lowS:at,prehash:K,extraEntropy:p}=Z;at==null&&(at=!0),T=_n("msgHash",T),K&&(T=_n("prehashed msgHash",j(T)));const E=bt(T),z=S(D),$=[At(z),At(E)];if(p!=null&&p!==!1){const Pt=p===!0?X(e.BYTES):p;$.push(_n("extraEntropy",Pt))}const dt=Zr(...$),_t=E;function Ut(Pt){const ve=ot(Pt);if(!C(ve))return;const pe=l(ve),ue=v.BASE.multiply(ve).toAffine(),_e=d(ue.x);if(_e===Rr)return;const we=d(pe*d(_t+_e*z));if(we===Rr)return;let Ee=(ue.x===_e?0:2)|Number(ue.y&Zn),je=we;return at&&B(we)&&(je=M(we),Ee^=1),new G(_e,je,Ee)}return{seed:dt,k2sig:Ut}}const wt={lowS:t.lowS,prehash:!1},kt={lowS:t.lowS,prehash:!1};function q(T,D,Z=wt){const{seed:j,k2sig:X}=gt(T,D,Z),at=t;return qc(at.hash.outputLen,at.nByteLength,at.hmac)(j,X)}v.BASE._setWindowSize(8);function h(T,D,Z,j=kt){const X=T;if(D=_n("msgHash",D),Z=_n("publicKey",Z),"strict"in j)throw new Error("options.strict was renamed to lowS");const{lowS:at,prehash:K}=j;let p,E;try{if(typeof X=="string"||Yr(X))try{p=G.fromDER(X)}catch(ue){if(!(ue instanceof Qr.Err))throw ue;p=G.fromCompact(X)}else if(typeof X=="object"&&typeof X.r=="bigint"&&typeof X.s=="bigint"){const{r:ue,s:_e}=X;p=new G(ue,_e)}else throw new Error("PARSE");E=v.fromHex(Z)}catch(ue){if(ue.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(at&&p.hasHighS())return!1;K&&(D=t.hash(D));const{r:z,s:$}=p,dt=bt(D),_t=l($),Ut=d(dt*_t),Pt=d(z*_t),ve=v.BASE.multiplyAndAddUnsafe(E,Ut,Pt)?.toAffine();return ve?d(ve.x)===z:!1}return{CURVE:t,getPublicKey:et,getSharedSecret:ft,sign:q,verify:h,ProjectivePoint:v,Signature:G,utils:Q}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ev(r){return{hash:r,hmac:(t,...e)=>zu(r,t,Od(...e)),randomBytes:Mc}}function nv(r,t){const e=n=>tv({...r,...ev(n)});return Object.freeze({...e(t),create:e})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ku=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ju=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),rv=BigInt(1),ha=BigInt(2),Yu=(r,t)=>(r+t/ha)/t;function iv(r){const t=Ku,e=BigInt(3),n=BigInt(6),o=BigInt(11),i=BigInt(22),u=BigInt(23),d=BigInt(44),l=BigInt(88),v=r*r*r%t,S=v*v*r%t,O=cn(S,e,t)*S%t,C=cn(O,e,t)*S%t,N=cn(C,ha,t)*v%t,B=cn(N,o,t)*N%t,M=cn(B,i,t)*B%t,F=cn(M,d,t)*M%t,G=cn(F,l,t)*F%t,Q=cn(G,d,t)*M%t,et=cn(Q,e,t)*S%t,ct=cn(et,u,t)*B%t,ft=cn(ct,n,t)*v%t,ot=cn(ft,ha,t);if(!pa.eql(pa.sqr(ot),r))throw new Error("Cannot find square root");return ot}const pa=Jc(Ku,void 0,void 0,{sqrt:iv}),$o=nv({a:BigInt(0),b:BigInt(7),Fp:pa,n:ju,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:r=>{const t=ju,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-rv*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=e,u=BigInt("0x100000000000000000000000000000000"),d=Yu(i*r,t),l=Yu(-n*r,t);let v=en(r-d*e-l*o,t),S=en(-d*n-l*i,t);const O=v>u,C=S>u;if(O&&(v=t-v),C&&(S=t-S),v>u||S>u)throw new Error("splitScalar: Endomorphism failed, k="+r);return{k1neg:O,k1:v,k2neg:C,k2:S}}}},Xs);BigInt(0),$o.ProjectivePoint;const ov=yi.utils.randomPrivateKey,qu=()=>{const r=yi.utils.randomPrivateKey(),t=Zo(r),e=new Uint8Array(64);return e.set(r),e.set(t,32),{publicKey:t,secretKey:e}},Zo=yi.getPublicKey;function $u(r){try{return yi.ExtendedPoint.fromHex(r),!0}catch{return!1}}const ga=(r,t)=>yi.sign(r,t.slice(0,32)),sv=yi.verify,ke=r=>me.Buffer.isBuffer(r)?r:r instanceof Uint8Array?me.Buffer.from(r.buffer,r.byteOffset,r.byteLength):me.Buffer.from(r);class ma{constructor(t){Object.assign(this,t)}encode(){return me.Buffer.from(ta.serialize(Zi,this))}static decode(t){return ta.deserialize(Zi,this,t)}static decodeUnchecked(t){return ta.deserializeUnchecked(Zi,this,t)}}class av extends ma{constructor(t){if(super(t),this.enum="",Object.keys(t).length!==1)throw new Error("Enum can only take single value");Object.keys(t).map(e=>{this.enum=e})}}const Zi=new Map;var Zu;const Xu=32,lr=32;function cv(r){return r._bn!==void 0}let Ju=1;class Xt extends ma{constructor(t){if(super({}),this._bn=void 0,cv(t))this._bn=t._bn;else{if(typeof t=="string"){const e=Sn.decode(t);if(e.length!=lr)throw new Error("Invalid public key input");this._bn=new su(e)}else this._bn=new su(t);if(this._bn.byteLength()>lr)throw new Error("Invalid public key input")}}static unique(){const t=new Xt(Ju);return Ju+=1,new Xt(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return Sn.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(me.Buffer);if(t.length===lr)return t;const e=me.Buffer.alloc(32);return t.copy(e,32-t.length),e}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const o=me.Buffer.concat([t.toBuffer(),me.Buffer.from(e),n.toBuffer()]),i=Xs(o);return new Xt(i)}static createProgramAddressSync(t,e){let n=me.Buffer.alloc(0);t.forEach(function(i){if(i.length>Xu)throw new TypeError("Max seed length exceeded");n=me.Buffer.concat([n,ke(i)])}),n=me.Buffer.concat([n,e.toBuffer(),me.Buffer.from("ProgramDerivedAddress")]);const o=Xs(n);if($u(o))throw new Error("Invalid seeds, address must fall off the curve");return new Xt(o)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n=255,o;for(;n!=0;){try{const i=t.concat(me.Buffer.from([n]));o=this.createProgramAddressSync(i,e)}catch(i){if(i instanceof TypeError)throw i;n--;continue}return[o,n]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){const e=new Xt(t);return $u(e.toBytes())}}Zu=Xt,Xt.default=new Zu("11111111111111111111111111111111"),Zi.set(Xt,{kind:"struct",fields:[["_bn","u256"]]});class uv{constructor(t){if(this._publicKey=void 0,this._secretKey=void 0,t){const e=ke(t);if(t.length!==64)throw new Error("bad secret key size");this._publicKey=e.slice(32,64),this._secretKey=e.slice(0,32)}else this._secretKey=ke(ov()),this._publicKey=ke(Zo(this._secretKey))}get publicKey(){return new Xt(this._publicKey)}get secretKey(){return me.Buffer.concat([this._secretKey,this._publicKey],64)}}const lv=new Xt("BPFLoader1111111111111111111111111111111111"),Pr=1232,Xo=127,Xi=64;class va extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(va.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class ya extends Error{constructor(t,e){super(`Transaction was not confirmed in ${e.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(ya.prototype,"name",{value:"TransactionExpiredTimeoutError"});class Ri extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Ri.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class Ji{constructor(t,e){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=e}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const e of this.keySegments()){if(t<e.length)return e[t];t-=e.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const n=new Map;this.keySegments().flat().forEach((i,u)=>{n.set(i.toBase58(),u)});const o=i=>{const u=n.get(i.toBase58());if(u===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return u};return t.map(i=>({programIdIndex:o(i.programId),accountKeyIndexes:i.keys.map(u=>o(u.pubkey)),data:i.data}))}}const Ne=(r="publicKey")=>st.blob(32,r),fv=(r="signature")=>st.blob(64,r),ti=(r="string")=>{const t=st.struct([st.u32("length"),st.u32("lengthPadding"),st.blob(st.offset(st.u32(),-8),"chars")],r),e=t.decode.bind(t),n=t.encode.bind(t),o=t;return o.decode=(i,u)=>e(i,u).chars.toString(),o.encode=(i,u,d)=>{const l={chars:me.Buffer.from(i,"utf8")};return n(l,u,d)},o.alloc=i=>st.u32().span+st.u32().span+me.Buffer.from(i,"utf8").length,o},dv=(r="authorized")=>st.struct([Ne("staker"),Ne("withdrawer")],r),hv=(r="lockup")=>st.struct([st.ns64("unixTimestamp"),st.ns64("epoch"),Ne("custodian")],r),pv=(r="voteInit")=>st.struct([Ne("nodePubkey"),Ne("authorizedVoter"),Ne("authorizedWithdrawer"),st.u8("commission")],r),gv=(r="voteAuthorizeWithSeedArgs")=>st.struct([st.u32("voteAuthorizationType"),Ne("currentAuthorityDerivedKeyOwnerPubkey"),ti("currentAuthorityDerivedKeySeed"),Ne("newAuthorized")],r);function Qu(r,t){const e=o=>{if(o.span>=0)return o.span;if(typeof o.alloc=="function")return o.alloc(t[o.property]);if("count"in o&&"elementLayout"in o){const i=t[o.property];if(Array.isArray(i))return i.length*e(o.elementLayout)}else if("fields"in o)return Qu({layout:o},t[o.property]);return 0};let n=0;return r.layout.fields.forEach(o=>{n+=e(o)}),n}function Hn(r){let t=0,e=0;for(;;){let n=r.shift();if(t|=(n&127)<<e*7,e+=1,(n&128)===0)break}return t}function Kn(r,t){let e=t;for(;;){let n=e&127;if(e>>=7,e==0){r.push(n);break}else n|=128,r.push(n)}}function De(r,t){if(!r)throw new Error(t||"Assertion failed")}class Jo{constructor(t,e){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=e}static compile(t,e){const n=new Map,o=u=>{const d=u.toBase58();let l=n.get(d);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},n.set(d,l)),l},i=o(e);i.isSigner=!0,i.isWritable=!0;for(const u of t){o(u.programId).isInvoked=!0;for(const d of u.keys){const l=o(d.pubkey);l.isSigner||=d.isSigner,l.isWritable||=d.isWritable}}return new Jo(e,n)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];De(t.length<=256,"Max static account keys length exceeded");const e=t.filter(([,l])=>l.isSigner&&l.isWritable),n=t.filter(([,l])=>l.isSigner&&!l.isWritable),o=t.filter(([,l])=>!l.isSigner&&l.isWritable),i=t.filter(([,l])=>!l.isSigner&&!l.isWritable),u={numRequiredSignatures:e.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};{De(e.length>0,"Expected at least one writable signer key");const[l]=e[0];De(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const d=[...e.map(([l])=>new Xt(l)),...n.map(([l])=>new Xt(l)),...o.map(([l])=>new Xt(l)),...i.map(([l])=>new Xt(l))];return[u,d]}extractTableLookup(t){const[e,n]=this.drainKeysFoundInLookupTable(t.state.addresses,u=>!u.isSigner&&!u.isInvoked&&u.isWritable),[o,i]=this.drainKeysFoundInLookupTable(t.state.addresses,u=>!u.isSigner&&!u.isInvoked&&!u.isWritable);if(!(e.length===0&&o.length===0))return[{accountKey:t.key,writableIndexes:e,readonlyIndexes:o},{writable:n,readonly:i}]}drainKeysFoundInLookupTable(t,e){const n=new Array,o=new Array;for(const[i,u]of this.keyMetaMap.entries())if(e(u)){const d=new Xt(i),l=t.findIndex(v=>v.equals(d));l>=0&&(De(l<256,"Max lookup table index exceeded"),n.push(l),o.push(d),this.keyMetaMap.delete(i))}return[n,o]}}const tl="Reached end of buffer unexpectedly";function fr(r){if(r.length===0)throw new Error(tl);return r.shift()}function Vn(r,...t){const[e]=t;if(t.length===2?e+(t[1]??0)>r.length:e>=r.length)throw new Error(tl);return r.splice(...t)}class Qn{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(e=>new Xt(e)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(e=>this.indexToProgramIds.set(e.programIdIndex,this.accountKeys[e.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:Sn.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new Ji(this.staticAccountKeys)}static compile(t){const e=Jo.compile(t.instructions,t.payerKey),[n,o]=e.getMessageComponents(),u=new Ji(o).compileInstructions(t.instructions).map(d=>({programIdIndex:d.programIdIndex,accounts:d.accountKeyIndexes,data:Sn.encode(d.data)}));return new Qn({header:n,accountKeys:o,recentBlockhash:t.recentBlockhash,instructions:u})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const n=t-e,i=this.accountKeys.length-e-this.header.numReadonlyUnsignedAccounts;return n<i}else{const n=e-this.header.numReadonlySignedAccounts;return t<n}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,e)=>!this.isProgramId(e))}serialize(){const t=this.accountKeys.length;let e=[];Kn(e,t);const n=this.instructions.map(O=>{const{accounts:C,programIdIndex:N}=O,B=Array.from(Sn.decode(O.data));let M=[];Kn(M,C.length);let F=[];return Kn(F,B.length),{programIdIndex:N,keyIndicesCount:me.Buffer.from(M),keyIndices:C,dataLength:me.Buffer.from(F),data:B}});let o=[];Kn(o,n.length);let i=me.Buffer.alloc(Pr);me.Buffer.from(o).copy(i);let u=o.length;n.forEach(O=>{const N=st.struct([st.u8("programIdIndex"),st.blob(O.keyIndicesCount.length,"keyIndicesCount"),st.seq(st.u8("keyIndex"),O.keyIndices.length,"keyIndices"),st.blob(O.dataLength.length,"dataLength"),st.seq(st.u8("userdatum"),O.data.length,"data")]).encode(O,i,u);u+=N}),i=i.slice(0,u);const d=st.struct([st.blob(1,"numRequiredSignatures"),st.blob(1,"numReadonlySignedAccounts"),st.blob(1,"numReadonlyUnsignedAccounts"),st.blob(e.length,"keyCount"),st.seq(Ne("key"),t,"keys"),Ne("recentBlockhash")]),l={numRequiredSignatures:me.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:me.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:me.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:me.Buffer.from(e),keys:this.accountKeys.map(O=>ke(O.toBytes())),recentBlockhash:Sn.decode(this.recentBlockhash)};let v=me.Buffer.alloc(2048);const S=d.encode(l,v);return i.copy(v,S),v.slice(0,S+i.length)}static from(t){let e=[...t];const n=fr(e);if(n!==(n&Xo))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const o=fr(e),i=fr(e),u=Hn(e);let d=[];for(let C=0;C<u;C++){const N=Vn(e,0,lr);d.push(new Xt(me.Buffer.from(N)))}const l=Vn(e,0,lr),v=Hn(e);let S=[];for(let C=0;C<v;C++){const N=fr(e),B=Hn(e),M=Vn(e,0,B),F=Hn(e),G=Vn(e,0,F),Q=Sn.encode(me.Buffer.from(G));S.push({programIdIndex:N,accounts:M,data:Q})}const O={header:{numRequiredSignatures:n,numReadonlySignedAccounts:o,numReadonlyUnsignedAccounts:i},recentBlockhash:Sn.encode(me.Buffer.from(l)),accountKeys:d,instructions:S};return new Qn(O)}}class ei{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const e of this.addressTableLookups)t+=e.readonlyIndexes.length+e.writableIndexes.length;return t}getAccountKeys(t){let e;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");e=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)e=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Ji(this.staticAccountKeys,e)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures,n=this.staticAccountKeys.length;if(t>=n){const o=t-n,i=this.addressTableLookups.reduce((u,d)=>u+d.writableIndexes.length,0);return o<i}else if(t>=this.header.numRequiredSignatures){const o=t-e,u=n-e-this.header.numReadonlyUnsignedAccounts;return o<u}else{const o=e-this.header.numReadonlySignedAccounts;return t<o}}resolveAddressTableLookups(t){const e={writable:[],readonly:[]};for(const n of this.addressTableLookups){const o=t.find(i=>i.key.equals(n.accountKey));if(!o)throw new Error(`Failed to find address lookup table account for table key ${n.accountKey.toBase58()}`);for(const i of n.writableIndexes)if(i<o.state.addresses.length)e.writable.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${n.accountKey.toBase58()}`);for(const i of n.readonlyIndexes)if(i<o.state.addresses.length)e.readonly.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${n.accountKey.toBase58()}`)}return e}static compile(t){const e=Jo.compile(t.instructions,t.payerKey),n=new Array,o={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const S of i){const O=e.extractTableLookup(S);if(O!==void 0){const[C,{writable:N,readonly:B}]=O;n.push(C),o.writable.push(...N),o.readonly.push(...B)}}const[u,d]=e.getMessageComponents(),v=new Ji(d,o).compileInstructions(t.instructions);return new ei({header:u,staticAccountKeys:d,recentBlockhash:t.recentBlockhash,compiledInstructions:v,addressTableLookups:n})}serialize(){const t=Array();Kn(t,this.staticAccountKeys.length);const e=this.serializeInstructions(),n=Array();Kn(n,this.compiledInstructions.length);const o=this.serializeAddressTableLookups(),i=Array();Kn(i,this.addressTableLookups.length);const u=st.struct([st.u8("prefix"),st.struct([st.u8("numRequiredSignatures"),st.u8("numReadonlySignedAccounts"),st.u8("numReadonlyUnsignedAccounts")],"header"),st.blob(t.length,"staticAccountKeysLength"),st.seq(Ne(),this.staticAccountKeys.length,"staticAccountKeys"),Ne("recentBlockhash"),st.blob(n.length,"instructionsLength"),st.blob(e.length,"serializedInstructions"),st.blob(i.length,"addressTableLookupsLength"),st.blob(o.length,"serializedAddressTableLookups")]),d=new Uint8Array(Pr),v=u.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(S=>S.toBytes()),recentBlockhash:Sn.decode(this.recentBlockhash),instructionsLength:new Uint8Array(n),serializedInstructions:e,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:o},d);return d.slice(0,v)}serializeInstructions(){let t=0;const e=new Uint8Array(Pr);for(const n of this.compiledInstructions){const o=Array();Kn(o,n.accountKeyIndexes.length);const i=Array();Kn(i,n.data.length);const u=st.struct([st.u8("programIdIndex"),st.blob(o.length,"encodedAccountKeyIndexesLength"),st.seq(st.u8(),n.accountKeyIndexes.length,"accountKeyIndexes"),st.blob(i.length,"encodedDataLength"),st.blob(n.data.length,"data")]);t+=u.encode({programIdIndex:n.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(o),accountKeyIndexes:n.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:n.data},e,t)}return e.slice(0,t)}serializeAddressTableLookups(){let t=0;const e=new Uint8Array(Pr);for(const n of this.addressTableLookups){const o=Array();Kn(o,n.writableIndexes.length);const i=Array();Kn(i,n.readonlyIndexes.length);const u=st.struct([Ne("accountKey"),st.blob(o.length,"encodedWritableIndexesLength"),st.seq(st.u8(),n.writableIndexes.length,"writableIndexes"),st.blob(i.length,"encodedReadonlyIndexesLength"),st.seq(st.u8(),n.readonlyIndexes.length,"readonlyIndexes")]);t+=u.encode({accountKey:n.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(o),writableIndexes:n.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:n.readonlyIndexes},e,t)}return e.slice(0,t)}static deserialize(t){let e=[...t];const n=fr(e),o=n&Xo;De(n!==o,"Expected versioned message but received legacy message");const i=o;De(i===0,`Expected versioned message with version 0 but found version ${i}`);const u={numRequiredSignatures:fr(e),numReadonlySignedAccounts:fr(e),numReadonlyUnsignedAccounts:fr(e)},d=[],l=Hn(e);for(let B=0;B<l;B++)d.push(new Xt(Vn(e,0,lr)));const v=Sn.encode(Vn(e,0,lr)),S=Hn(e),O=[];for(let B=0;B<S;B++){const M=fr(e),F=Hn(e),G=Vn(e,0,F),Q=Hn(e),et=new Uint8Array(Vn(e,0,Q));O.push({programIdIndex:M,accountKeyIndexes:G,data:et})}const C=Hn(e),N=[];for(let B=0;B<C;B++){const M=new Xt(Vn(e,0,lr)),F=Hn(e),G=Vn(e,0,F),Q=Hn(e),et=Vn(e,0,Q);N.push({accountKey:M,writableIndexes:G,readonlyIndexes:et})}return new ei({header:u,staticAccountKeys:d,recentBlockhash:v,compiledInstructions:O,addressTableLookups:N})}}const wa={deserializeMessageVersion(r){const t=r[0],e=t&Xo;return e===t?"legacy":e},deserialize:r=>{const t=wa.deserializeMessageVersion(r);if(t==="legacy")return Qn.from(r);if(t===0)return ei.deserialize(r);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};let Sr=function(r){return r[r.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",r[r.PROCESSED=1]="PROCESSED",r[r.TIMED_OUT=2]="TIMED_OUT",r[r.NONCE_INVALID=3]="NONCE_INVALID",r}({});const mv=me.Buffer.alloc(Xi).fill(0);class qe{constructor(t){this.keys=void 0,this.programId=void 0,this.data=me.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n})),programId:this.programId.toJSON(),data:[...this.data]}}}class He{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:e,nonceInfo:n}=t;this.minNonceContextSlot=e,this.nonceInfo=n}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(e=>{"instructions"in e?this.instructions=this.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?this.instructions.push(e):this.instructions.push(new qe(e))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?e=[this.nonceInfo.nonceInstruction,...this.instructions]:e=this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");e.length<1&&console.warn("No instructions provided");let n;if(this.feePayer)n=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)n=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let M=0;M<e.length;M++)if(e[M].programId===void 0)throw new Error(`Transaction instruction index ${M} has undefined program id`);const o=[],i=[];e.forEach(M=>{M.keys.forEach(G=>{i.push({...G})});const F=M.programId.toString();o.includes(F)||o.push(F)}),o.forEach(M=>{i.push({pubkey:new Xt(M),isSigner:!1,isWritable:!1})});const u=[];i.forEach(M=>{const F=M.pubkey.toString(),G=u.findIndex(Q=>Q.pubkey.toString()===F);G>-1?(u[G].isWritable=u[G].isWritable||M.isWritable,u[G].isSigner=u[G].isSigner||M.isSigner):u.push(M)}),u.sort(function(M,F){if(M.isSigner!==F.isSigner)return M.isSigner?-1:1;if(M.isWritable!==F.isWritable)return M.isWritable?-1:1;const G={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return M.pubkey.toBase58().localeCompare(F.pubkey.toBase58(),"en",G)});const d=u.findIndex(M=>M.pubkey.equals(n));if(d>-1){const[M]=u.splice(d,1);M.isSigner=!0,M.isWritable=!0,u.unshift(M)}else u.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const M of this.signatures){const F=u.findIndex(G=>G.pubkey.equals(M.publicKey));if(F>-1)u[F].isSigner||(u[F].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${M.publicKey.toString()}`)}let l=0,v=0,S=0;const O=[],C=[];u.forEach(({pubkey:M,isSigner:F,isWritable:G})=>{F?(O.push(M.toString()),l+=1,G||(v+=1)):(C.push(M.toString()),G||(S+=1))});const N=O.concat(C),B=e.map(M=>{const{data:F,programId:G}=M;return{programIdIndex:N.indexOf(G.toString()),accounts:M.keys.map(Q=>N.indexOf(Q.pubkey.toString())),data:Sn.encode(F)}});return B.forEach(M=>{De(M.programIdIndex>=0),M.accounts.forEach(F=>De(F>=0))}),new Qn({header:{numRequiredSignatures:l,numReadonlySignedAccounts:v,numReadonlyUnsignedAccounts:S},accountKeys:N,recentBlockhash:t,instructions:B})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===e.length&&this.signatures.every((o,i)=>e[i].equals(o.publicKey))||(this.signatures=e.map(n=>({signature:null,publicKey:n}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");const e=new Set;this.signatures=t.filter(n=>{const o=n.toString();return e.has(o)?!1:(e.add(o),!0)}).map(n=>({signature:null,publicKey:n}))}sign(...t){if(t.length===0)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const u=i.publicKey.toString();e.has(u)||(e.add(u),n.push(i))}this.signatures=n.map(i=>({signature:null,publicKey:i.publicKey}));const o=this._compile();this._partialSign(o,...n)}partialSign(...t){if(t.length===0)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const u=i.publicKey.toString();e.has(u)||(e.add(u),n.push(i))}const o=this._compile();this._partialSign(o,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach(o=>{const i=ga(n,o.secretKey);this._addSignature(o.publicKey,ke(i))})}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){De(e.length===64);const n=this.signatures.findIndex(o=>t.equals(o.publicKey));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=me.Buffer.from(e)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,e){const n={};for(const{signature:o,publicKey:i}of this.signatures)o===null?e&&(n.missing||=[]).push(i):sv(o,t,i.toBytes())||(n.invalid||=[]).push(i);return n.invalid||n.missing?n:void 0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),o=this.serializeMessage();if(n){const i=this._getMessageSignednessErrors(o,e);if(i){let u="Signature verification failed.";throw i.invalid&&(u+=`
5
+ For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[M1]:"No signature verification implementation could be found.",[D1]:"No key generation implementation could be found.",[U1]:"No signing implementation could be found.",[F1]:"No key export implementation could be found.",[qh]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[K2]:"Transaction processing left an account with an outstanding borrowed reference",[N2]:"Account in use",[x2]:"Account loaded twice",[L2]:"Attempt to debit an account but found no record of a prior credit.",[J2]:"Transaction loads an address table account that doesn't exist",[M2]:"This transaction has already been processed",[D2]:"Blockhash not found",[U2]:"Loader call chain is too deep",[G2]:"Transactions are currently disabled due to cluster maintenance",[og]:"Transaction contains a duplicate instruction ($index) that is not allowed",[B2]:"Insufficient funds for fee",[sg]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[P2]:"This account may not be used to pay transaction fees",[H2]:"Transaction contains an invalid account reference",[tg]:"Transaction loads an address table account with invalid data",[eg]:"Transaction address table lookup uses an invalid index",[Q2]:"Transaction loads an address table account with an invalid owner",[cg]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[W2]:"This program may not be used for executing instructions",[ng]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[q2]:"Transaction loads a writable account that cannot be written",[ag]:"Transaction exceeded max loaded accounts data size cap",[F2]:"Transaction requires a fee but has no signature present",[C2]:"Attempt to load a program that does not exist",[lg]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[ug]:"ResanitizationNeeded",[z2]:"Transaction failed to sanitize accounts offsets correctly",[V2]:"Transaction did not pass signature verification",[X2]:"Transaction locked too many accounts",[fg]:"Sum of account balances before and after transaction do not match",[T2]:"The transaction failed with the error `$errorName`",[Y2]:"Transaction version is unsupported",[Z2]:"Transaction would exceed account data limit within the block",[ig]:"Transaction would exceed total account data limit",[$2]:"Transaction would exceed max account limit within the block",[j2]:"Transaction would exceed max Block Cost Limit",[rg]:"Transaction would exceed max Vote Cost Limit",[S2]:"Attempted to sign a transaction with an address that is not a signer for it",[w2]:"Transaction is missing an address at index: $index.",[A2]:"Transaction has no expected signers therefore it cannot be encoded",[f2]:"Transaction does not have a blockhash lifetime",[d2]:"Transaction is not a durable nonce transaction",[p2]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[g2]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[v2]:"No fee payer set in CompiledTransaction",[m2]:"Could not find program address at index $index",[k2]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[O2]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[b2]:"Transaction is missing a fee payer.",[_2]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[R2]:"Transaction first instruction is not advance nonce account instruction.",[E2]:"Transaction with no instructions cannot be durable nonce transaction.",[u2]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[l2]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[I2]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[y2]:"Transaction is missing signatures for addresses: $addresses.",[h2]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},Er="i",ar="t";function jg(r,t={}){const e=Kg[r];if(e.length===0)return"";let n;function o(u){if(n[ar]===2){const d=e.slice(n[Er]+1,u);i.push(d in t?`${t[d]}`:`$${d}`)}else n[ar]===1&&i.push(e.slice(n[Er],u))}const i=[];return e.split("").forEach((u,d)=>{if(d===0){n={[Er]:0,[ar]:e[0]==="\\"?0:e[0]==="$"?2:1};return}let l;switch(n[ar]){case 0:l={[Er]:d,[ar]:1};break;case 1:u==="\\"?l={[Er]:d,[ar]:0}:u==="$"&&(l={[Er]:d,[ar]:2});break;case 2:u==="\\"?l={[Er]:d,[ar]:0}:u==="$"?l={[Er]:d,[ar]:2}:u.match(/\w/)||(l={[Er]:d,[ar]:1});break}l&&(n!==l&&o(d),n=l)}),o(),i.join("")}function Yg(r,t={}){if(process.env.NODE_ENV!=="production")return jg(r,t);{let e=`Solana error #${r}; Decode this error by running \`npx @solana/errors decode -- ${r}`;return Object.keys(t).length&&(e+=` '${Gg(t)}'`),`${e}\``}}var bi=class extends Error{cause=this.cause;context;constructor(...[r,t]){let e,n;if(t){const{cause:i,...u}=t;i&&(n={cause:i}),Object.keys(u).length>0&&(e=u)}const o=Yg(r,e);super(o,n),this.context={__code:r,...e},this.name="SolanaError"}};function qg(r,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(r)}function $g(r){return Object.freeze({...r,encode:t=>{const e=new Uint8Array(qg(t,r));return r.write(t,e,0),e}})}function Zg(r){return Object.freeze({...r,decode:(t,e=0)=>r.read(t,e)[0]})}function _i(r){return"fixedSize"in r&&typeof r.fixedSize=="number"}function Xg(r,t){if(_i(r)!==_i(t))throw new bi(gu);if(_i(r)&&_i(t)&&r.fixedSize!==t.fixedSize)throw new bi(mu,{decoderFixedSize:t.fixedSize,encoderFixedSize:r.fixedSize});if(!_i(r)&&!_i(t)&&r.maxSize!==t.maxSize)throw new bi(vu,{decoderMaxSize:t.maxSize,encoderMaxSize:r.maxSize});return{...t,...r,decode:t.decode,encode:r.encode,read:t.read,write:r.write}}function Jg(r,t,e=0){if(t.length-e<=0)throw new bi(hu,{codecDescription:r})}function Qg(r,t,e,n=0){const o=e.length-n;if(o<t)throw new bi(pu,{bytesLength:o,codecDescription:r,expected:t})}function tm(r,t,e,n){if(n<t||n>e)throw new bi(yu,{codecDescription:r,max:e,min:t,value:n})}function bu(r){return r?.endian!==1}function em(r){return $g({fixedSize:r.size,write(t,e,n){r.range&&tm(r.name,r.range[0],r.range[1],t);const o=new ArrayBuffer(r.size);return r.set(new DataView(o),t,bu(r.config)),e.set(new Uint8Array(o),n),n+r.size}})}function nm(r){return Zg({fixedSize:r.size,read(t,e=0){Jg(r.name,t,e),Qg(r.name,r.size,t,e);const n=new DataView(rm(t,e,r.size));return[r.get(n,bu(r.config)),e+r.size]}})}function rm(r,t,e){const n=r.byteOffset+(t??0),o=e??r.byteLength;return r.buffer.slice(n,n+o)}var _u=(r={})=>em({config:r,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,e,n)=>t.setBigUint64(0,BigInt(e),n),size:8}),im=(r={})=>nm({config:r,get:(t,e)=>t.getBigUint64(0,e),name:"u64",size:8}),om=(r={})=>Xg(_u(r),im(r));class sm extends TypeError{constructor(t,e){let n;const{message:o,explanation:i,...u}=t,{path:d}=t,l=d.length===0?o:`At path: ${d.join(".")} -- ${o}`;super(i??l),i!=null&&(this.cause=l),Object.assign(this,u),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...e()])}}function am(r){return ji(r)&&typeof r[Symbol.iterator]=="function"}function ji(r){return typeof r=="object"&&r!=null}function Go(r){return ji(r)&&!Array.isArray(r)}function Jn(r){return typeof r=="symbol"?r.toString():typeof r=="string"?JSON.stringify(r):`${r}`}function cm(r){const{done:t,value:e}=r.next();return t?void 0:e}function um(r,t,e,n){if(r===!0)return;r===!1?r={}:typeof r=="string"&&(r={message:r});const{path:o,branch:i}=t,{type:u}=e,{refinement:d,message:l=`Expected a value of type \`${u}\`${d?` with refinement \`${d}\``:""}, but received: \`${Jn(n)}\``}=r;return{value:n,type:u,refinement:d,key:o[o.length-1],path:o,branch:i,...r,message:l}}function*Eu(r,t,e,n){am(r)||(r=[r]);for(const o of r){const i=um(o,t,e,n);i&&(yield i)}}function*ea(r,t,e={}){const{path:n=[],branch:o=[r],coerce:i=!1,mask:u=!1}=e,d={path:n,branch:o,mask:u};i&&(r=t.coercer(r,d));let l="valid";for(const v of t.validator(r,d))v.explanation=e.message,l="not_valid",yield[v,void 0];for(let[v,S,O]of t.entries(r,d)){const C=ea(S,O,{path:v===void 0?n:[...n,v],branch:v===void 0?o:[...o,S],coerce:i,mask:u,message:e.message});for(const N of C)N[0]?(l=N[0].refinement!=null?"not_refined":"not_valid",yield[N[0],void 0]):i&&(S=N[1],v===void 0?r=S:r instanceof Map?r.set(v,S):r instanceof Set?r.add(S):ji(r)&&(S!==void 0||v in r)&&(r[v]=S))}if(l!=="not_valid")for(const v of t.refiner(r,d))v.explanation=e.message,l="not_refined",yield[v,void 0];l==="valid"&&(yield[void 0,r])}let cr=class{constructor(t){const{type:e,schema:n,validator:o,refiner:i,coercer:u=l=>l,entries:d=function*(){}}=t;this.type=e,this.schema=n,this.entries=d,this.coercer=u,o?this.validator=(l,v)=>{const S=o(l,v);return Eu(S,v,this,l)}:this.validator=()=>[],i?this.refiner=(l,v)=>{const S=i(l,v);return Eu(S,v,this,l)}:this.refiner=()=>[]}assert(t,e){return Ru(t,this,e)}create(t,e){return Qt(t,this,e)}is(t){return Su(t,this)}mask(t,e){return lm(t,this,e)}validate(t,e={}){return Yi(t,this,e)}};function Ru(r,t,e){const n=Yi(r,t,{message:e});if(n[0])throw n[0]}function Qt(r,t,e){const n=Yi(r,t,{coerce:!0,message:e});if(n[0])throw n[0];return n[1]}function lm(r,t,e){const n=Yi(r,t,{coerce:!0,mask:!0,message:e});if(n[0])throw n[0];return n[1]}function Su(r,t){return!Yi(r,t)[0]}function Yi(r,t,e={}){const n=ea(r,t,e),o=cm(n);return o[0]?[new sm(o[0],function*(){for(const u of n)u[0]&&(yield u[0])}),void 0]:[void 0,o[1]]}function Jr(r,t){return new cr({type:r,schema:null,validator:t})}function fm(){return Jr("any",()=>!0)}function re(r){return new cr({type:"array",schema:r,*entries(t){if(r&&Array.isArray(t))for(const[e,n]of t.entries())yield[e,n,r]},coercer(t){return Array.isArray(t)?t.slice():t},validator(t){return Array.isArray(t)||`Expected an array value, but received: ${Jn(t)}`}})}function ur(){return Jr("boolean",r=>typeof r=="boolean")}function na(r){return Jr("instance",t=>t instanceof r||`Expected a \`${r.name}\` instance, but received: ${Jn(t)}`)}function rn(r){const t=Jn(r),e=typeof r;return new cr({type:"literal",schema:e==="string"||e==="number"||e==="boolean"?r:null,validator(n){return n===r||`Expected the literal \`${t}\`, but received: ${Jn(n)}`}})}function dm(){return Jr("never",()=>!1)}function ie(r){return new cr({...r,validator:(t,e)=>t===null||r.validator(t,e),refiner:(t,e)=>t===null||r.refiner(t,e)})}function St(){return Jr("number",r=>typeof r=="number"&&!isNaN(r)||`Expected a number, but received: ${Jn(r)}`)}function ge(r){return new cr({...r,validator:(t,e)=>t===void 0||r.validator(t,e),refiner:(t,e)=>t===void 0||r.refiner(t,e)})}function Au(r,t){return new cr({type:"record",schema:null,*entries(e){if(ji(e))for(const n in e){const o=e[n];yield[n,n,r],yield[n,o,t]}},validator(e){return Go(e)||`Expected an object, but received: ${Jn(e)}`},coercer(e){return Go(e)?{...e}:e}})}function Zt(){return Jr("string",r=>typeof r=="string"||`Expected a string, but received: ${Jn(r)}`)}function ra(r){const t=dm();return new cr({type:"tuple",schema:null,*entries(e){if(Array.isArray(e)){const n=Math.max(r.length,e.length);for(let o=0;o<n;o++)yield[o,e[o],r[o]||t]}},validator(e){return Array.isArray(e)||`Expected an array, but received: ${Jn(e)}`},coercer(e){return Array.isArray(e)?e.slice():e}})}function Ft(r){const t=Object.keys(r);return new cr({type:"type",schema:r,*entries(e){if(ji(e))for(const n of t)yield[n,e[n],r[n]]},validator(e){return Go(e)||`Expected an object, but received: ${Jn(e)}`},coercer(e){return Go(e)?{...e}:e}})}function Dn(r){const t=r.map(e=>e.type).join(" | ");return new cr({type:"union",schema:null,coercer(e,n){for(const o of r){const[i,u]=o.validate(e,{coerce:!0,mask:n.mask});if(!i)return u}return e},validator(e,n){const o=[];for(const i of r){const[...u]=ea(e,i,n),[d]=u;if(d[0])for(const[l]of u)l&&o.push(l);else return[]}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${Jn(e)}`,...o]}})}function Ei(){return Jr("unknown",()=>!0)}function qi(r,t,e){return new cr({...r,coercer:(n,o)=>Su(n,t)?r.coercer(e(n,o),o):r.coercer(n,o)})}var Ko,hm=new Uint8Array(16);function Iu(){if(!Ko&&(Ko=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ko))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ko(hm)}const pm=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function jo(r){return typeof r=="string"&&pm.test(r)}for(var Nn=[],ia=0;ia<256;++ia)Nn.push((ia+256).toString(16).substr(1));function Yo(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=(Nn[r[t+0]]+Nn[r[t+1]]+Nn[r[t+2]]+Nn[r[t+3]]+"-"+Nn[r[t+4]]+Nn[r[t+5]]+"-"+Nn[r[t+6]]+Nn[r[t+7]]+"-"+Nn[r[t+8]]+Nn[r[t+9]]+"-"+Nn[r[t+10]]+Nn[r[t+11]]+Nn[r[t+12]]+Nn[r[t+13]]+Nn[r[t+14]]+Nn[r[t+15]]).toLowerCase();if(!jo(e))throw TypeError("Stringified UUID is invalid");return e}var ku,oa,sa=0,aa=0;function gm(r,t,e){var n=t&&e||0,o=t||new Array(16);r=r||{};var i=r.node||ku,u=r.clockseq!==void 0?r.clockseq:oa;if(i==null||u==null){var d=r.random||(r.rng||Iu)();i==null&&(i=ku=[d[0]|1,d[1],d[2],d[3],d[4],d[5]]),u==null&&(u=oa=(d[6]<<8|d[7])&16383)}var l=r.msecs!==void 0?r.msecs:Date.now(),v=r.nsecs!==void 0?r.nsecs:aa+1,S=l-sa+(v-aa)/1e4;if(S<0&&r.clockseq===void 0&&(u=u+1&16383),(S<0||l>sa)&&r.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");sa=l,aa=v,oa=u,l+=122192928e5;var O=((l&268435455)*1e4+v)%4294967296;o[n++]=O>>>24&255,o[n++]=O>>>16&255,o[n++]=O>>>8&255,o[n++]=O&255;var C=l/4294967296*1e4&268435455;o[n++]=C>>>8&255,o[n++]=C&255,o[n++]=C>>>24&15|16,o[n++]=C>>>16&255,o[n++]=u>>>8|128,o[n++]=u&255;for(var N=0;N<6;++N)o[n+N]=i[N];return t||Yo(o)}function Ou(r){if(!jo(r))throw TypeError("Invalid UUID");var t,e=new Uint8Array(16);return e[0]=(t=parseInt(r.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=t&255,e[4]=(t=parseInt(r.slice(9,13),16))>>>8,e[5]=t&255,e[6]=(t=parseInt(r.slice(14,18),16))>>>8,e[7]=t&255,e[8]=(t=parseInt(r.slice(19,23),16))>>>8,e[9]=t&255,e[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=t&255,e}function mm(r){r=unescape(encodeURIComponent(r));for(var t=[],e=0;e<r.length;++e)t.push(r.charCodeAt(e));return t}var vm="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ym="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Tu(r,t,e){function n(o,i,u,d){if(typeof o=="string"&&(o=mm(o)),typeof i=="string"&&(i=Ou(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+o.length);if(l.set(i),l.set(o,i.length),l=e(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,u){d=d||0;for(var v=0;v<16;++v)u[d+v]=l[v];return u}return Yo(l)}try{n.name=r}catch{}return n.DNS=vm,n.URL=ym,n}function wm(r){if(typeof r=="string"){var t=unescape(encodeURIComponent(r));r=new Uint8Array(t.length);for(var e=0;e<t.length;++e)r[e]=t.charCodeAt(e)}return bm(_m(Em(r),r.length*8))}function bm(r){for(var t=[],e=r.length*32,n="0123456789abcdef",o=0;o<e;o+=8){var i=r[o>>5]>>>o%32&255,u=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);t.push(u)}return t}function Nu(r){return(r+64>>>9<<4)+14+1}function _m(r,t){r[t>>5]|=128<<t%32,r[Nu(t)-1]=t;for(var e=1732584193,n=-271733879,o=-1732584194,i=271733878,u=0;u<r.length;u+=16){var d=e,l=n,v=o,S=i;e=Ln(e,n,o,i,r[u],7,-680876936),i=Ln(i,e,n,o,r[u+1],12,-389564586),o=Ln(o,i,e,n,r[u+2],17,606105819),n=Ln(n,o,i,e,r[u+3],22,-1044525330),e=Ln(e,n,o,i,r[u+4],7,-176418897),i=Ln(i,e,n,o,r[u+5],12,1200080426),o=Ln(o,i,e,n,r[u+6],17,-1473231341),n=Ln(n,o,i,e,r[u+7],22,-45705983),e=Ln(e,n,o,i,r[u+8],7,1770035416),i=Ln(i,e,n,o,r[u+9],12,-1958414417),o=Ln(o,i,e,n,r[u+10],17,-42063),n=Ln(n,o,i,e,r[u+11],22,-1990404162),e=Ln(e,n,o,i,r[u+12],7,1804603682),i=Ln(i,e,n,o,r[u+13],12,-40341101),o=Ln(o,i,e,n,r[u+14],17,-1502002290),n=Ln(n,o,i,e,r[u+15],22,1236535329),e=Cn(e,n,o,i,r[u+1],5,-165796510),i=Cn(i,e,n,o,r[u+6],9,-1069501632),o=Cn(o,i,e,n,r[u+11],14,643717713),n=Cn(n,o,i,e,r[u],20,-373897302),e=Cn(e,n,o,i,r[u+5],5,-701558691),i=Cn(i,e,n,o,r[u+10],9,38016083),o=Cn(o,i,e,n,r[u+15],14,-660478335),n=Cn(n,o,i,e,r[u+4],20,-405537848),e=Cn(e,n,o,i,r[u+9],5,568446438),i=Cn(i,e,n,o,r[u+14],9,-1019803690),o=Cn(o,i,e,n,r[u+3],14,-187363961),n=Cn(n,o,i,e,r[u+8],20,1163531501),e=Cn(e,n,o,i,r[u+13],5,-1444681467),i=Cn(i,e,n,o,r[u+2],9,-51403784),o=Cn(o,i,e,n,r[u+7],14,1735328473),n=Cn(n,o,i,e,r[u+12],20,-1926607734),e=Bn(e,n,o,i,r[u+5],4,-378558),i=Bn(i,e,n,o,r[u+8],11,-2022574463),o=Bn(o,i,e,n,r[u+11],16,1839030562),n=Bn(n,o,i,e,r[u+14],23,-35309556),e=Bn(e,n,o,i,r[u+1],4,-1530992060),i=Bn(i,e,n,o,r[u+4],11,1272893353),o=Bn(o,i,e,n,r[u+7],16,-155497632),n=Bn(n,o,i,e,r[u+10],23,-1094730640),e=Bn(e,n,o,i,r[u+13],4,681279174),i=Bn(i,e,n,o,r[u],11,-358537222),o=Bn(o,i,e,n,r[u+3],16,-722521979),n=Bn(n,o,i,e,r[u+6],23,76029189),e=Bn(e,n,o,i,r[u+9],4,-640364487),i=Bn(i,e,n,o,r[u+12],11,-421815835),o=Bn(o,i,e,n,r[u+15],16,530742520),n=Bn(n,o,i,e,r[u+2],23,-995338651),e=Pn(e,n,o,i,r[u],6,-198630844),i=Pn(i,e,n,o,r[u+7],10,1126891415),o=Pn(o,i,e,n,r[u+14],15,-1416354905),n=Pn(n,o,i,e,r[u+5],21,-57434055),e=Pn(e,n,o,i,r[u+12],6,1700485571),i=Pn(i,e,n,o,r[u+3],10,-1894986606),o=Pn(o,i,e,n,r[u+10],15,-1051523),n=Pn(n,o,i,e,r[u+1],21,-2054922799),e=Pn(e,n,o,i,r[u+8],6,1873313359),i=Pn(i,e,n,o,r[u+15],10,-30611744),o=Pn(o,i,e,n,r[u+6],15,-1560198380),n=Pn(n,o,i,e,r[u+13],21,1309151649),e=Pn(e,n,o,i,r[u+4],6,-145523070),i=Pn(i,e,n,o,r[u+11],10,-1120210379),o=Pn(o,i,e,n,r[u+2],15,718787259),n=Pn(n,o,i,e,r[u+9],21,-343485551),e=Br(e,d),n=Br(n,l),o=Br(o,v),i=Br(i,S)}return[e,n,o,i]}function Em(r){if(r.length===0)return[];for(var t=r.length*8,e=new Uint32Array(Nu(t)),n=0;n<t;n+=8)e[n>>5]|=(r[n/8]&255)<<n%32;return e}function Br(r,t){var e=(r&65535)+(t&65535),n=(r>>16)+(t>>16)+(e>>16);return n<<16|e&65535}function Rm(r,t){return r<<t|r>>>32-t}function qo(r,t,e,n,o,i){return Br(Rm(Br(Br(t,r),Br(n,i)),o),e)}function Ln(r,t,e,n,o,i,u){return qo(t&e|~t&n,r,t,o,i,u)}function Cn(r,t,e,n,o,i,u){return qo(t&n|e&~n,r,t,o,i,u)}function Bn(r,t,e,n,o,i,u){return qo(t^e^n,r,t,o,i,u)}function Pn(r,t,e,n,o,i,u){return qo(e^(t|~n),r,t,o,i,u)}var Sm=Tu("v3",48,wm);function Am(r,t,e){r=r||{};var n=r.random||(r.rng||Iu)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){e=e||0;for(var o=0;o<16;++o)t[e+o]=n[o];return t}return Yo(n)}function Im(r,t,e,n){switch(r){case 0:return t&e^~t&n;case 1:return t^e^n;case 2:return t&e^t&n^e&n;case 3:return t^e^n}}function ca(r,t){return r<<t|r>>>32-t}function km(r){var t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var n=unescape(encodeURIComponent(r));r=[];for(var o=0;o<n.length;++o)r.push(n.charCodeAt(o))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var i=r.length/4+2,u=Math.ceil(i/16),d=new Array(u),l=0;l<u;++l){for(var v=new Uint32Array(16),S=0;S<16;++S)v[S]=r[l*64+S*4]<<24|r[l*64+S*4+1]<<16|r[l*64+S*4+2]<<8|r[l*64+S*4+3];d[l]=v}d[u-1][14]=(r.length-1)*8/Math.pow(2,32),d[u-1][14]=Math.floor(d[u-1][14]),d[u-1][15]=(r.length-1)*8&4294967295;for(var O=0;O<u;++O){for(var C=new Uint32Array(80),N=0;N<16;++N)C[N]=d[O][N];for(var B=16;B<80;++B)C[B]=ca(C[B-3]^C[B-8]^C[B-14]^C[B-16],1);for(var M=e[0],F=e[1],G=e[2],Q=e[3],et=e[4],ct=0;ct<80;++ct){var ft=Math.floor(ct/20),ot=ca(M,5)+Im(ft,F,G,Q)+et+t[ft]+C[ct]>>>0;et=Q,Q=G,G=ca(F,30)>>>0,F=M,M=ot}e[0]=e[0]+M>>>0,e[1]=e[1]+F>>>0,e[2]=e[2]+G>>>0,e[3]=e[3]+Q>>>0,e[4]=e[4]+et>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}var Om=Tu("v5",80,km);const Tm="00000000-0000-0000-0000-000000000000";function Nm(r){if(!jo(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)}const xu=Cs(Object.freeze(Object.defineProperty({__proto__:null,NIL:Tm,parse:Ou,stringify:Yo,v1:gm,v3:Sm,v4:Am,v5:Om,validate:jo,version:Nm},Symbol.toStringTag,{value:"Module"})));var ua,Lu;function xm(){if(Lu)return ua;Lu=1;const r=xu.v4;return ua=function(e,n,o,i){if(typeof e!="string")throw new TypeError(e+" must be a string");i=i||{};const u=typeof i.version=="number"?i.version:2;if(u!==1&&u!==2)throw new TypeError(u+" must be 1 or 2");const d={method:e};if(u===2&&(d.jsonrpc="2.0"),n){if(typeof n!="object"&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");d.params=n}if(typeof o>"u"){const l=typeof i.generator=="function"?i.generator:function(){return r()};d.id=l(d,i)}else u===2&&o===null?i.notificationIdNull&&(d.id=null):d.id=o;return d},ua}var la,Cu;function Lm(){if(Cu)return la;Cu=1;const r=xu.v4,t=xm(),e=function(n,o){if(!(this instanceof e))return new e(n,o);o||(o={}),this.options={reviver:typeof o.reviver<"u"?o.reviver:null,replacer:typeof o.replacer<"u"?o.replacer:null,generator:typeof o.generator<"u"?o.generator:function(){return r()},version:typeof o.version<"u"?o.version:2,notificationIdNull:typeof o.notificationIdNull=="boolean"?o.notificationIdNull:!1},this.callServer=n};return la=e,e.prototype.request=function(n,o,i,u){const d=this;let l=null;const v=Array.isArray(n)&&typeof o=="function";if(this.options.version===1&&v)throw new TypeError("JSON-RPC 1.0 does not support batching");if(v||!v&&n&&typeof n=="object"&&typeof o=="function")u=o,l=n;else{typeof i=="function"&&(u=i,i=void 0);const C=typeof u=="function";try{l=t(n,o,i,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(N){if(C)return u(N);throw N}if(!C)return l}let O;try{O=JSON.stringify(l,this.options.replacer)}catch(C){return u(C)}return this.callServer(O,function(C,N){d._parseResponse(C,N,u)}),l},e.prototype._parseResponse=function(n,o,i){if(n){i(n);return}if(!o)return i();let u;try{u=JSON.parse(o,this.options.reviver)}catch(d){return i(d)}if(i.length===3)if(Array.isArray(u)){const d=function(v){return typeof v.error<"u"},l=function(v){return!d(v)};return i(null,u.filter(d),u.filter(l))}else return i(null,u.error,u.result);i(null,u)},la}var Cm=Lm();const Bm=Vi(Cm);var fa={exports:{}},Bu;function Pm(){return Bu||(Bu=1,function(r){var t=Object.prototype.hasOwnProperty,e="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(e=!1));function o(l,v,S){this.fn=l,this.context=v,this.once=S||!1}function i(l,v,S,O,C){if(typeof S!="function")throw new TypeError("The listener must be a function");var N=new o(S,O||l,C),B=e?e+v:v;return l._events[B]?l._events[B].fn?l._events[B]=[l._events[B],N]:l._events[B].push(N):(l._events[B]=N,l._eventsCount++),l}function u(l,v){--l._eventsCount===0?l._events=new n:delete l._events[v]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var v=[],S,O;if(this._eventsCount===0)return v;for(O in S=this._events)t.call(S,O)&&v.push(e?O.slice(1):O);return Object.getOwnPropertySymbols?v.concat(Object.getOwnPropertySymbols(S)):v},d.prototype.listeners=function(v){var S=e?e+v:v,O=this._events[S];if(!O)return[];if(O.fn)return[O.fn];for(var C=0,N=O.length,B=new Array(N);C<N;C++)B[C]=O[C].fn;return B},d.prototype.listenerCount=function(v){var S=e?e+v:v,O=this._events[S];return O?O.fn?1:O.length:0},d.prototype.emit=function(v,S,O,C,N,B){var M=e?e+v:v;if(!this._events[M])return!1;var F=this._events[M],G=arguments.length,Q,et;if(F.fn){switch(F.once&&this.removeListener(v,F.fn,void 0,!0),G){case 1:return F.fn.call(F.context),!0;case 2:return F.fn.call(F.context,S),!0;case 3:return F.fn.call(F.context,S,O),!0;case 4:return F.fn.call(F.context,S,O,C),!0;case 5:return F.fn.call(F.context,S,O,C,N),!0;case 6:return F.fn.call(F.context,S,O,C,N,B),!0}for(et=1,Q=new Array(G-1);et<G;et++)Q[et-1]=arguments[et];F.fn.apply(F.context,Q)}else{var ct=F.length,ft;for(et=0;et<ct;et++)switch(F[et].once&&this.removeListener(v,F[et].fn,void 0,!0),G){case 1:F[et].fn.call(F[et].context);break;case 2:F[et].fn.call(F[et].context,S);break;case 3:F[et].fn.call(F[et].context,S,O);break;case 4:F[et].fn.call(F[et].context,S,O,C);break;default:if(!Q)for(ft=1,Q=new Array(G-1);ft<G;ft++)Q[ft-1]=arguments[ft];F[et].fn.apply(F[et].context,Q)}}return!0},d.prototype.on=function(v,S,O){return i(this,v,S,O,!1)},d.prototype.once=function(v,S,O){return i(this,v,S,O,!0)},d.prototype.removeListener=function(v,S,O,C){var N=e?e+v:v;if(!this._events[N])return this;if(!S)return u(this,N),this;var B=this._events[N];if(B.fn)B.fn===S&&(!C||B.once)&&(!O||B.context===O)&&u(this,N);else{for(var M=0,F=[],G=B.length;M<G;M++)(B[M].fn!==S||C&&!B[M].once||O&&B[M].context!==O)&&F.push(B[M]);F.length?this._events[N]=F.length===1?F[0]:F:u(this,N)}return this},d.prototype.removeAllListeners=function(v){var S;return v?(S=e?e+v:v,this._events[S]&&u(this,S)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=e,d.EventEmitter=d,r.exports=d}(fa)),fa.exports}var Mm=Pm();const Pu=Vi(Mm);var Dm=class extends Pu{socket;constructor(r,t,e){super(),this.socket=new window.WebSocket(r,e),this.socket.onopen=()=>this.emit("open"),this.socket.onmessage=n=>this.emit("message",n.data),this.socket.onerror=n=>this.emit("error",n),this.socket.onclose=n=>{this.emit("close",n.code,n.reason)}}send(r,t,e){const n=e||t;try{this.socket.send(r),n()}catch(o){n(o)}}close(r,t){this.socket.close(r,t)}addEventListener(r,t,e){this.socket.addEventListener(r,t,e)}};function Um(r,t){return new Dm(r,t)}var Fm=class{encode(r){return JSON.stringify(r)}decode(r){return JSON.parse(r)}},Hm=class extends Pu{address;rpc_id;queue;options;autoconnect;ready;reconnect;reconnect_timer_id;reconnect_interval;max_reconnects;rest_options;current_reconnects;generate_request_id;socket;webSocketFactory;dataPack;constructor(r,t="ws://localhost:8080",{autoconnect:e=!0,reconnect:n=!0,reconnect_interval:o=1e3,max_reconnects:i=5,...u}={},d,l){super(),this.webSocketFactory=r,this.queue={},this.rpc_id=0,this.address=t,this.autoconnect=e,this.ready=!1,this.reconnect=n,this.reconnect_timer_id=void 0,this.reconnect_interval=o,this.max_reconnects=i,this.rest_options=u,this.current_reconnects=0,this.generate_request_id=d||(()=>++this.rpc_id),l?this.dataPack=l:this.dataPack=new Fm,this.autoconnect&&this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}connect(){this.socket||this._connect(this.address,{autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects,...this.rest_options})}call(r,t,e,n){return!n&&typeof e=="object"&&(n=e,e=null),new Promise((o,i)=>{if(!this.ready)return i(new Error("socket not ready"));const u=this.generate_request_id(r,t),d={jsonrpc:"2.0",method:r,params:t||void 0,id:u};this.socket.send(this.dataPack.encode(d),n,l=>{if(l)return i(l);this.queue[u]={promise:[o,i]},e&&(this.queue[u].timeout=setTimeout(()=>{delete this.queue[u],i(new Error("reply timeout"))},e))})})}async login(r){const t=await this.call("rpc.login",r);if(!t)throw new Error("authentication failed");return t}async listMethods(){return await this.call("__listMethods")}notify(r,t){return new Promise((e,n)=>{if(!this.ready)return n(new Error("socket not ready"));const o={jsonrpc:"2.0",method:r,params:t};this.socket.send(this.dataPack.encode(o),i=>{if(i)return n(i);e()})})}async subscribe(r){typeof r=="string"&&(r=[r]);const t=await this.call("rpc.on",r);if(typeof r=="string"&&t[r]!=="ok")throw new Error("Failed subscribing to an event '"+r+"' with: "+t[r]);return t}async unsubscribe(r){typeof r=="string"&&(r=[r]);const t=await this.call("rpc.off",r);if(typeof r=="string"&&t[r]!=="ok")throw new Error("Failed unsubscribing from an event with: "+t);return t}close(r,t){this.socket.close(r||1e3,t)}setAutoReconnect(r){this.reconnect=r}setReconnectInterval(r){this.reconnect_interval=r}setMaxReconnects(r){this.max_reconnects=r}_connect(r,t){clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(r,t),this.socket.addEventListener("open",()=>{this.ready=!0,this.emit("open"),this.current_reconnects=0}),this.socket.addEventListener("message",({data:e})=>{e instanceof ArrayBuffer&&(e=ve.Buffer.from(e).toString());try{e=this.dataPack.decode(e)}catch{return}if(e.notification&&this.listeners(e.notification).length){if(!Object.keys(e.params).length)return this.emit(e.notification);const n=[e.notification];if(e.params.constructor===Object)n.push(e.params);else for(let o=0;o<e.params.length;o++)n.push(e.params[o]);return Promise.resolve().then(()=>{this.emit.apply(this,n)})}if(!this.queue[e.id])return e.method?Promise.resolve().then(()=>{this.emit(e.method,e?.params)}):void 0;"error"in e=="result"in e&&this.queue[e.id].promise[1](new Error('Server response malformed. Response must include either "result" or "error", but not both.')),this.queue[e.id].timeout&&clearTimeout(this.queue[e.id].timeout),e.error?this.queue[e.id].promise[1](e.error):this.queue[e.id].promise[0](e.result),delete this.queue[e.id]}),this.socket.addEventListener("error",e=>this.emit("error",e)),this.socket.addEventListener("close",({code:e,reason:n})=>{this.ready&&setTimeout(()=>this.emit("close",e,n),0),this.ready=!1,this.socket=void 0,e!==1e3&&(this.current_reconnects++,this.reconnect&&(this.max_reconnects>this.current_reconnects||this.max_reconnects===0)&&(this.reconnect_timer_id=setTimeout(()=>this._connect(r,t),this.reconnect_interval)))})}};const Mu=[],Du=[],Uu=[],Vm=BigInt(0),$i=BigInt(1),Wm=BigInt(2),zm=BigInt(7),Gm=BigInt(256),Km=BigInt(113);for(let r=0,t=$i,e=1,n=0;r<24;r++){[e,n]=[n,(2*e+3*n)%5],Mu.push(2*(5*n+e)),Du.push((r+1)*(r+2)/2%64);let o=Vm;for(let i=0;i<7;i++)t=(t<<$i^(t>>zm)*Km)%Gm,t&Wm&&(o^=$i<<($i<<BigInt(i))-$i);Uu.push(o)}const[jm,Ym]=Fc(Uu,!0),Fu=(r,t,e)=>e>32?Wc(r,t,e):Hc(r,t,e),Hu=(r,t,e)=>e>32?zc(r,t,e):Vc(r,t,e);function qm(r,t=24){const e=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let u=0;u<10;u++)e[u]=r[u]^r[u+10]^r[u+20]^r[u+30]^r[u+40];for(let u=0;u<10;u+=2){const d=(u+8)%10,l=(u+2)%10,v=e[l],S=e[l+1],O=Fu(v,S,1)^e[d],C=Hu(v,S,1)^e[d+1];for(let N=0;N<50;N+=10)r[u+N]^=O,r[u+N+1]^=C}let o=r[2],i=r[3];for(let u=0;u<24;u++){const d=Du[u],l=Fu(o,i,d),v=Hu(o,i,d),S=Mu[u];o=r[S],i=r[S+1],r[S]=l,r[S+1]=v}for(let u=0;u<50;u+=10){for(let d=0;d<10;d++)e[d]=r[u+d];for(let d=0;d<10;d++)r[u+d]^=~e[(d+2)%10]&e[(d+4)%10]}r[0]^=jm[n],r[1]^=Ym[n]}e.fill(0)}class da extends Us{constructor(t,e,n,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Lo(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Ad(this.state)}keccak(){Bc||Pc(this.state32),qm(this.state32,this.rounds),Bc||Pc(this.state32),this.posOut=0,this.pos=0}update(t){hi(this);const{blockLen:e,state:n}=this;t=Co(t);const o=t.length;for(let i=0;i<o;){const u=Math.min(e-this.pos,o-i);for(let d=0;d<u;d++)n[this.pos++]^=t[i++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:o}=this;t[n]^=e,(e&128)!==0&&n===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){hi(this,!1),zi(t),this.finish();const e=this.state,{blockLen:n}=this;for(let o=0,i=t.length;o<i;){this.posOut>=n&&this.keccak();const u=Math.min(n-this.posOut,i-o);t.set(e.subarray(this.posOut,this.posOut+u),o),this.posOut+=u,o+=u}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Lo(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Cc(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:o,rounds:i,enableXOF:u}=this;return t||(t=new da(e,n,o,u,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=o,t.enableXOF=u,t.destroyed=this.destroyed,t}}const Vu=((r,t,e)=>Fs(()=>new da(t,r,e)))(1,136,256/8);class Wu extends Us{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,Sd(t);const n=Co(e);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let u=0;u<i.length;u++)i[u]^=54;this.iHash.update(i),this.oHash=t.create();for(let u=0;u<i.length;u++)i[u]^=106;this.oHash.update(i),i.fill(0)}update(t){return hi(this),this.iHash.update(t),this}digestInto(t){hi(this),zi(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:o,destroyed:i,blockLen:u,outputLen:d}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=u,t.outputLen=d,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const zu=(r,t,e)=>new Wu(r,t).update(e).digest();zu.create=(r,t)=>new Wu(r,t);function $m(r){const t=Ys(r);vi(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:e,Fp:n,a:o}=t;if(e){if(!n.eql(o,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof e!="object"||typeof e.beta!="bigint"||typeof e.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}const{bytesToNumberBE:Zm,hexToBytes:Xm}=eh,Qr={Err:class extends Error{constructor(t=""){super(t)}},_parseInt(r){const{Err:t}=Qr;if(r.length<2||r[0]!==2)throw new t("Invalid signature integer tag");const e=r[1],n=r.subarray(2,e+2);if(!e||n.length!==e)throw new t("Invalid signature integer: wrong length");if(n[0]&128)throw new t("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new t("Invalid signature integer: unnecessary leading zero");return{d:Zm(n),l:r.subarray(e+2)}},toSig(r){const{Err:t}=Qr,e=typeof r=="string"?Xm(r):r;Gi(e);let n=e.length;if(n<2||e[0]!=48)throw new t("Invalid signature tag");if(e[1]!==n-2)throw new t("Invalid signature: incorrect length");const{d:o,l:i}=Qr._parseInt(e.subarray(2)),{d:u,l:d}=Qr._parseInt(i);if(d.length)throw new t("Invalid signature: left bytes after parsing");return{r:o,s:u}},hexFromSig(r){const t=v=>Number.parseInt(v[0],16)&8?"00"+v:v,e=v=>{const S=v.toString(16);return S.length&1?`0${S}`:S},n=t(e(r.s)),o=t(e(r.r)),i=n.length/2,u=o.length/2,d=e(i),l=e(u);return`30${e(u+i+4)}02${l}${o}02${d}${n}`}},Rr=BigInt(0),Zn=BigInt(1);BigInt(2);const Gu=BigInt(3);BigInt(4);function Jm(r){const t=$m(r),{Fp:e}=t,n=t.toBytes||((B,M,F)=>{const G=M.toAffine();return Zr(Uint8Array.from([4]),e.toBytes(G.x),e.toBytes(G.y))}),o=t.fromBytes||(B=>{const M=B.subarray(1),F=e.fromBytes(M.subarray(0,e.BYTES)),G=e.fromBytes(M.subarray(e.BYTES,2*e.BYTES));return{x:F,y:G}});function i(B){const{a:M,b:F}=t,G=e.sqr(B),Q=e.mul(G,B);return e.add(e.add(Q,e.mul(B,M)),F)}if(!e.eql(e.sqr(t.Gy),i(t.Gx)))throw new Error("bad generator point: equation left != right");function u(B){return typeof B=="bigint"&&Rr<B&&B<t.n}function d(B){if(!u(B))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function l(B){const{allowedPrivateKeyLengths:M,nByteLength:F,wrapPrivateKey:G,n:Q}=t;if(M&&typeof B!="bigint"){if(Yr(B)&&(B=qr(B)),typeof B!="string"||!M.includes(B.length))throw new Error("Invalid key");B=B.padStart(F*2,"0")}let et;try{et=typeof B=="bigint"?B:$r(_n("private key",B,F))}catch{throw new Error(`private key must be ${F} bytes, hex or bigint, not ${typeof B}`)}return G&&(et=en(et,Q)),d(et),et}const v=new Map;function S(B){if(!(B instanceof O))throw new Error("ProjectivePoint expected")}class O{constructor(M,F,G){if(this.px=M,this.py=F,this.pz=G,M==null||!e.isValid(M))throw new Error("x required");if(F==null||!e.isValid(F))throw new Error("y required");if(G==null||!e.isValid(G))throw new Error("z required")}static fromAffine(M){const{x:F,y:G}=M||{};if(!M||!e.isValid(F)||!e.isValid(G))throw new Error("invalid affine point");if(M instanceof O)throw new Error("projective point not allowed");const Q=et=>e.eql(et,e.ZERO);return Q(F)&&Q(G)?O.ZERO:new O(F,G,e.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(M){const F=e.invertBatch(M.map(G=>G.pz));return M.map((G,Q)=>G.toAffine(F[Q])).map(O.fromAffine)}static fromHex(M){const F=O.fromAffine(o(_n("pointHex",M)));return F.assertValidity(),F}static fromPrivateKey(M){return O.BASE.multiply(l(M))}_setWindowSize(M){this._WINDOW_SIZE=M,v.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!e.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:M,y:F}=this.toAffine();if(!e.isValid(M)||!e.isValid(F))throw new Error("bad point: x or y not FE");const G=e.sqr(F),Q=i(M);if(!e.eql(G,Q))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:M}=this.toAffine();if(e.isOdd)return!e.isOdd(M);throw new Error("Field doesn't support isOdd")}equals(M){S(M);const{px:F,py:G,pz:Q}=this,{px:et,py:ct,pz:ft}=M,ot=e.eql(e.mul(F,ft),e.mul(et,Q)),bt=e.eql(e.mul(G,ft),e.mul(ct,Q));return ot&&bt}negate(){return new O(this.px,e.neg(this.py),this.pz)}double(){const{a:M,b:F}=t,G=e.mul(F,Gu),{px:Q,py:et,pz:ct}=this;let ft=e.ZERO,ot=e.ZERO,bt=e.ZERO,Rt=e.mul(Q,Q),At=e.mul(et,et),gt=e.mul(ct,ct),wt=e.mul(Q,et);return wt=e.add(wt,wt),bt=e.mul(Q,ct),bt=e.add(bt,bt),ft=e.mul(M,bt),ot=e.mul(G,gt),ot=e.add(ft,ot),ft=e.sub(At,ot),ot=e.add(At,ot),ot=e.mul(ft,ot),ft=e.mul(wt,ft),bt=e.mul(G,bt),gt=e.mul(M,gt),wt=e.sub(Rt,gt),wt=e.mul(M,wt),wt=e.add(wt,bt),bt=e.add(Rt,Rt),Rt=e.add(bt,Rt),Rt=e.add(Rt,gt),Rt=e.mul(Rt,wt),ot=e.add(ot,Rt),gt=e.mul(et,ct),gt=e.add(gt,gt),Rt=e.mul(gt,wt),ft=e.sub(ft,Rt),bt=e.mul(gt,At),bt=e.add(bt,bt),bt=e.add(bt,bt),new O(ft,ot,bt)}add(M){S(M);const{px:F,py:G,pz:Q}=this,{px:et,py:ct,pz:ft}=M;let ot=e.ZERO,bt=e.ZERO,Rt=e.ZERO;const At=t.a,gt=e.mul(t.b,Gu);let wt=e.mul(F,et),kt=e.mul(G,ct),q=e.mul(Q,ft),h=e.add(F,G),T=e.add(et,ct);h=e.mul(h,T),T=e.add(wt,kt),h=e.sub(h,T),T=e.add(F,Q);let D=e.add(et,ft);return T=e.mul(T,D),D=e.add(wt,q),T=e.sub(T,D),D=e.add(G,Q),ot=e.add(ct,ft),D=e.mul(D,ot),ot=e.add(kt,q),D=e.sub(D,ot),Rt=e.mul(At,T),ot=e.mul(gt,q),Rt=e.add(ot,Rt),ot=e.sub(kt,Rt),Rt=e.add(kt,Rt),bt=e.mul(ot,Rt),kt=e.add(wt,wt),kt=e.add(kt,wt),q=e.mul(At,q),T=e.mul(gt,T),kt=e.add(kt,q),q=e.sub(wt,q),q=e.mul(At,q),T=e.add(T,q),wt=e.mul(kt,T),bt=e.add(bt,wt),wt=e.mul(D,T),ot=e.mul(h,ot),ot=e.sub(ot,wt),wt=e.mul(h,kt),Rt=e.mul(D,Rt),Rt=e.add(Rt,wt),new O(ot,bt,Rt)}subtract(M){return this.add(M.negate())}is0(){return this.equals(O.ZERO)}wNAF(M){return N.wNAFCached(this,v,M,F=>{const G=e.invertBatch(F.map(Q=>Q.pz));return F.map((Q,et)=>Q.toAffine(G[et])).map(O.fromAffine)})}multiplyUnsafe(M){const F=O.ZERO;if(M===Rr)return F;if(d(M),M===Zn)return this;const{endo:G}=t;if(!G)return N.unsafeLadder(this,M);let{k1neg:Q,k1:et,k2neg:ct,k2:ft}=G.splitScalar(M),ot=F,bt=F,Rt=this;for(;et>Rr||ft>Rr;)et&Zn&&(ot=ot.add(Rt)),ft&Zn&&(bt=bt.add(Rt)),Rt=Rt.double(),et>>=Zn,ft>>=Zn;return Q&&(ot=ot.negate()),ct&&(bt=bt.negate()),bt=new O(e.mul(bt.px,G.beta),bt.py,bt.pz),ot.add(bt)}multiply(M){d(M);let F=M,G,Q;const{endo:et}=t;if(et){const{k1neg:ct,k1:ft,k2neg:ot,k2:bt}=et.splitScalar(F);let{p:Rt,f:At}=this.wNAF(ft),{p:gt,f:wt}=this.wNAF(bt);Rt=N.constTimeNegate(ct,Rt),gt=N.constTimeNegate(ot,gt),gt=new O(e.mul(gt.px,et.beta),gt.py,gt.pz),G=Rt.add(gt),Q=At.add(wt)}else{const{p:ct,f:ft}=this.wNAF(F);G=ct,Q=ft}return O.normalizeZ([G,Q])[0]}multiplyAndAddUnsafe(M,F,G){const Q=O.BASE,et=(ft,ot)=>ot===Rr||ot===Zn||!ft.equals(Q)?ft.multiplyUnsafe(ot):ft.multiply(ot),ct=et(this,F).add(et(M,G));return ct.is0()?void 0:ct}toAffine(M){const{px:F,py:G,pz:Q}=this,et=this.is0();M==null&&(M=et?e.ONE:e.inv(Q));const ct=e.mul(F,M),ft=e.mul(G,M),ot=e.mul(Q,M);if(et)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ot,e.ONE))throw new Error("invZ was invalid");return{x:ct,y:ft}}isTorsionFree(){const{h:M,isTorsionFree:F}=t;if(M===Zn)return!0;if(F)return F(O,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:M,clearCofactor:F}=t;return M===Zn?this:F?F(O,this):this.multiplyUnsafe(t.h)}toRawBytes(M=!0){return this.assertValidity(),n(O,this,M)}toHex(M=!0){return qr(this.toRawBytes(M))}}O.BASE=new O(t.Gx,t.Gy,e.ONE),O.ZERO=new O(e.ZERO,e.ONE,e.ZERO);const C=t.nBitLength,N=eu(O,t.endo?Math.ceil(C/2):C);return{CURVE:t,ProjectivePoint:O,normPrivateKeyToScalar:l,weierstrassEquation:i,isWithinCurveOrder:u}}function Qm(r){const t=Ys(r);return vi(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function tv(r){const t=Qm(r),{Fp:e,n}=t,o=e.BYTES+1,i=2*e.BYTES+1;function u(T){return Rr<T&&T<e.ORDER}function d(T){return en(T,n)}function l(T){return Ks(T,n)}const{ProjectivePoint:v,normPrivateKeyToScalar:S,weierstrassEquation:O,isWithinCurveOrder:C}=Jm({...t,toBytes(T,D,Z){const j=D.toAffine(),X=e.toBytes(j.x),at=Zr;return Z?at(Uint8Array.from([D.hasEvenY()?2:3]),X):at(Uint8Array.from([4]),X,e.toBytes(j.y))},fromBytes(T){const D=T.length,Z=T[0],j=T.subarray(1);if(D===o&&(Z===2||Z===3)){const X=$r(j);if(!u(X))throw new Error("Point is not on curve");const at=O(X);let K;try{K=e.sqrt(at)}catch(z){const $=z instanceof Error?": "+z.message:"";throw new Error("Point is not on curve"+$)}const p=(K&Zn)===Zn;return(Z&1)===1!==p&&(K=e.neg(K)),{x:X,y:K}}else if(D===i&&Z===4){const X=e.fromBytes(j.subarray(0,e.BYTES)),at=e.fromBytes(j.subarray(e.BYTES,2*e.BYTES));return{x:X,y:at}}else throw new Error(`Point of length ${D} was invalid. Expected ${o} compressed bytes or ${i} uncompressed bytes`)}}),N=T=>qr(mi(T,t.nByteLength));function B(T){const D=n>>Zn;return T>D}function M(T){return B(T)?d(-T):T}const F=(T,D,Z)=>$r(T.slice(D,Z));class G{constructor(D,Z,j){this.r=D,this.s=Z,this.recovery=j,this.assertValidity()}static fromCompact(D){const Z=t.nByteLength;return D=_n("compactSignature",D,Z*2),new G(F(D,0,Z),F(D,Z,2*Z))}static fromDER(D){const{r:Z,s:j}=Qr.toSig(_n("DER",D));return new G(Z,j)}assertValidity(){if(!C(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!C(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(D){return new G(this.r,this.s,D)}recoverPublicKey(D){const{r:Z,s:j,recovery:X}=this,at=bt(_n("msgHash",D));if(X==null||![0,1,2,3].includes(X))throw new Error("recovery id invalid");const K=X===2||X===3?Z+t.n:Z;if(K>=e.ORDER)throw new Error("recovery id 2 or 3 invalid");const p=(X&1)===0?"02":"03",E=v.fromHex(p+N(K)),z=l(K),$=d(-at*z),dt=d(j*z),_t=v.BASE.multiplyAndAddUnsafe(E,$,dt);if(!_t)throw new Error("point at infinify");return _t.assertValidity(),_t}hasHighS(){return B(this.s)}normalizeS(){return this.hasHighS()?new G(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return pi(this.toDERHex())}toDERHex(){return Qr.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return pi(this.toCompactHex())}toCompactHex(){return N(this.r)+N(this.s)}}const Q={isValidPrivateKey(T){try{return S(T),!0}catch{return!1}},normPrivateKeyToScalar:S,randomPrivateKey:()=>{const T=tu(t.n);return fh(t.randomBytes(T),t.n)},precompute(T=8,D=v.BASE){return D._setWindowSize(T),D.multiply(BigInt(3)),D}};function et(T,D=!0){return v.fromPrivateKey(T).toRawBytes(D)}function ct(T){const D=Yr(T),Z=typeof T=="string",j=(D||Z)&&T.length;return D?j===o||j===i:Z?j===2*o||j===2*i:T instanceof v}function ft(T,D,Z=!0){if(ct(T))throw new Error("first arg must be private key");if(!ct(D))throw new Error("second arg must be public key");return v.fromHex(D).multiply(S(T)).toRawBytes(Z)}const ot=t.bits2int||function(T){const D=$r(T),Z=T.length*8-t.nBitLength;return Z>0?D>>BigInt(Z):D},bt=t.bits2int_modN||function(T){return d(ot(T))},Rt=Ws(t.nBitLength);function At(T){if(typeof T!="bigint")throw new Error("bigint expected");if(!(Rr<=T&&T<Rt))throw new Error(`bigint expected < 2^${t.nBitLength}`);return mi(T,t.nByteLength)}function gt(T,D,Z=wt){if(["recovered","canonical"].some(Yt=>Yt in Z))throw new Error("sign() legacy options not supported");const{hash:j,randomBytes:X}=t;let{lowS:at,prehash:K,extraEntropy:p}=Z;at==null&&(at=!0),T=_n("msgHash",T),K&&(T=_n("prehashed msgHash",j(T)));const E=bt(T),z=S(D),$=[At(z),At(E)];if(p!=null&&p!==!1){const Yt=p===!0?X(e.BYTES):p;$.push(_n("extraEntropy",Yt))}const dt=Zr(...$),_t=E;function Dt(Yt){const zt=ot(Yt);if(!C(zt))return;const fe=l(zt),le=v.BASE.multiply(zt).toAffine(),_e=d(le.x);if(_e===Rr)return;const we=d(fe*d(_t+_e*z));if(we===Rr)return;let Ee=(le.x===_e?0:2)|Number(le.y&Zn),je=we;return at&&B(we)&&(je=M(we),Ee^=1),new G(_e,je,Ee)}return{seed:dt,k2sig:Dt}}const wt={lowS:t.lowS,prehash:!1},kt={lowS:t.lowS,prehash:!1};function q(T,D,Z=wt){const{seed:j,k2sig:X}=gt(T,D,Z),at=t;return qc(at.hash.outputLen,at.nByteLength,at.hmac)(j,X)}v.BASE._setWindowSize(8);function h(T,D,Z,j=kt){const X=T;if(D=_n("msgHash",D),Z=_n("publicKey",Z),"strict"in j)throw new Error("options.strict was renamed to lowS");const{lowS:at,prehash:K}=j;let p,E;try{if(typeof X=="string"||Yr(X))try{p=G.fromDER(X)}catch(le){if(!(le instanceof Qr.Err))throw le;p=G.fromCompact(X)}else if(typeof X=="object"&&typeof X.r=="bigint"&&typeof X.s=="bigint"){const{r:le,s:_e}=X;p=new G(le,_e)}else throw new Error("PARSE");E=v.fromHex(Z)}catch(le){if(le.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(at&&p.hasHighS())return!1;K&&(D=t.hash(D));const{r:z,s:$}=p,dt=bt(D),_t=l($),Dt=d(dt*_t),Yt=d(z*_t),zt=v.BASE.multiplyAndAddUnsafe(E,Dt,Yt)?.toAffine();return zt?d(zt.x)===z:!1}return{CURVE:t,getPublicKey:et,getSharedSecret:ft,sign:q,verify:h,ProjectivePoint:v,Signature:G,utils:Q}}function ev(r){return{hash:r,hmac:(t,...e)=>zu(r,t,Od(...e)),randomBytes:Mc}}function nv(r,t){const e=n=>tv({...r,...ev(n)});return Object.freeze({...e(t),create:e})}const Ku=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ju=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),rv=BigInt(1),ha=BigInt(2),Yu=(r,t)=>(r+t/ha)/t;function iv(r){const t=Ku,e=BigInt(3),n=BigInt(6),o=BigInt(11),i=BigInt(22),u=BigInt(23),d=BigInt(44),l=BigInt(88),v=r*r*r%t,S=v*v*r%t,O=cn(S,e,t)*S%t,C=cn(O,e,t)*S%t,N=cn(C,ha,t)*v%t,B=cn(N,o,t)*N%t,M=cn(B,i,t)*B%t,F=cn(M,d,t)*M%t,G=cn(F,l,t)*F%t,Q=cn(G,d,t)*M%t,et=cn(Q,e,t)*S%t,ct=cn(et,u,t)*B%t,ft=cn(ct,n,t)*v%t,ot=cn(ft,ha,t);if(!pa.eql(pa.sqr(ot),r))throw new Error("Cannot find square root");return ot}const pa=Jc(Ku,void 0,void 0,{sqrt:iv}),$o=nv({a:BigInt(0),b:BigInt(7),Fp:pa,n:ju,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:r=>{const t=ju,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-rv*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=e,u=BigInt("0x100000000000000000000000000000000"),d=Yu(i*r,t),l=Yu(-n*r,t);let v=en(r-d*e-l*o,t),S=en(-d*n-l*i,t);const O=v>u,C=S>u;if(O&&(v=t-v),C&&(S=t-S),v>u||S>u)throw new Error("splitScalar: Endomorphism failed, k="+r);return{k1neg:O,k1:v,k2neg:C,k2:S}}}},Xs);BigInt(0),$o.ProjectivePoint;const ov=yi.utils.randomPrivateKey,qu=()=>{const r=yi.utils.randomPrivateKey(),t=Zo(r),e=new Uint8Array(64);return e.set(r),e.set(t,32),{publicKey:t,secretKey:e}},Zo=yi.getPublicKey;function $u(r){try{return yi.ExtendedPoint.fromHex(r),!0}catch{return!1}}const ga=(r,t)=>yi.sign(r,t.slice(0,32)),sv=yi.verify,ke=r=>ve.Buffer.isBuffer(r)?r:r instanceof Uint8Array?ve.Buffer.from(r.buffer,r.byteOffset,r.byteLength):ve.Buffer.from(r);class ma{constructor(t){Object.assign(this,t)}encode(){return ve.Buffer.from(ta.serialize(Zi,this))}static decode(t){return ta.deserialize(Zi,this,t)}static decodeUnchecked(t){return ta.deserializeUnchecked(Zi,this,t)}}class av extends ma{constructor(t){if(super(t),this.enum="",Object.keys(t).length!==1)throw new Error("Enum can only take single value");Object.keys(t).map(e=>{this.enum=e})}}const Zi=new Map;var Zu;const Xu=32,lr=32;function cv(r){return r._bn!==void 0}let Ju=1;class Jt extends ma{constructor(t){if(super({}),this._bn=void 0,cv(t))this._bn=t._bn;else{if(typeof t=="string"){const e=Sn.decode(t);if(e.length!=lr)throw new Error("Invalid public key input");this._bn=new su(e)}else this._bn=new su(t);if(this._bn.byteLength()>lr)throw new Error("Invalid public key input")}}static unique(){const t=new Jt(Ju);return Ju+=1,new Jt(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return Sn.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(ve.Buffer);if(t.length===lr)return t;const e=ve.Buffer.alloc(32);return t.copy(e,32-t.length),e}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const o=ve.Buffer.concat([t.toBuffer(),ve.Buffer.from(e),n.toBuffer()]),i=Xs(o);return new Jt(i)}static createProgramAddressSync(t,e){let n=ve.Buffer.alloc(0);t.forEach(function(i){if(i.length>Xu)throw new TypeError("Max seed length exceeded");n=ve.Buffer.concat([n,ke(i)])}),n=ve.Buffer.concat([n,e.toBuffer(),ve.Buffer.from("ProgramDerivedAddress")]);const o=Xs(n);if($u(o))throw new Error("Invalid seeds, address must fall off the curve");return new Jt(o)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n=255,o;for(;n!=0;){try{const i=t.concat(ve.Buffer.from([n]));o=this.createProgramAddressSync(i,e)}catch(i){if(i instanceof TypeError)throw i;n--;continue}return[o,n]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){const e=new Jt(t);return $u(e.toBytes())}}Zu=Jt,Jt.default=new Zu("11111111111111111111111111111111"),Zi.set(Jt,{kind:"struct",fields:[["_bn","u256"]]});class uv{constructor(t){if(this._publicKey=void 0,this._secretKey=void 0,t){const e=ke(t);if(t.length!==64)throw new Error("bad secret key size");this._publicKey=e.slice(32,64),this._secretKey=e.slice(0,32)}else this._secretKey=ke(ov()),this._publicKey=ke(Zo(this._secretKey))}get publicKey(){return new Jt(this._publicKey)}get secretKey(){return ve.Buffer.concat([this._secretKey,this._publicKey],64)}}const lv=new Jt("BPFLoader1111111111111111111111111111111111"),Pr=1232,Xo=127,Xi=64;class va extends Error{constructor(t){super(`Signature ${t} has expired: block height exceeded.`),this.signature=void 0,this.signature=t}}Object.defineProperty(va.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class ya extends Error{constructor(t,e){super(`Transaction was not confirmed in ${e.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${t} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=t}}Object.defineProperty(ya.prototype,"name",{value:"TransactionExpiredTimeoutError"});class Ri extends Error{constructor(t){super(`Signature ${t} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=t}}Object.defineProperty(Ri.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class Ji{constructor(t,e){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=e}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const e of this.keySegments()){if(t<e.length)return e[t];t-=e.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const n=new Map;this.keySegments().flat().forEach((i,u)=>{n.set(i.toBase58(),u)});const o=i=>{const u=n.get(i.toBase58());if(u===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return u};return t.map(i=>({programIdIndex:o(i.programId),accountKeyIndexes:i.keys.map(u=>o(u.pubkey)),data:i.data}))}}const Ne=(r="publicKey")=>st.blob(32,r),fv=(r="signature")=>st.blob(64,r),ti=(r="string")=>{const t=st.struct([st.u32("length"),st.u32("lengthPadding"),st.blob(st.offset(st.u32(),-8),"chars")],r),e=t.decode.bind(t),n=t.encode.bind(t),o=t;return o.decode=(i,u)=>e(i,u).chars.toString(),o.encode=(i,u,d)=>{const l={chars:ve.Buffer.from(i,"utf8")};return n(l,u,d)},o.alloc=i=>st.u32().span+st.u32().span+ve.Buffer.from(i,"utf8").length,o},dv=(r="authorized")=>st.struct([Ne("staker"),Ne("withdrawer")],r),hv=(r="lockup")=>st.struct([st.ns64("unixTimestamp"),st.ns64("epoch"),Ne("custodian")],r),pv=(r="voteInit")=>st.struct([Ne("nodePubkey"),Ne("authorizedVoter"),Ne("authorizedWithdrawer"),st.u8("commission")],r),gv=(r="voteAuthorizeWithSeedArgs")=>st.struct([st.u32("voteAuthorizationType"),Ne("currentAuthorityDerivedKeyOwnerPubkey"),ti("currentAuthorityDerivedKeySeed"),Ne("newAuthorized")],r);function Qu(r,t){const e=o=>{if(o.span>=0)return o.span;if(typeof o.alloc=="function")return o.alloc(t[o.property]);if("count"in o&&"elementLayout"in o){const i=t[o.property];if(Array.isArray(i))return i.length*e(o.elementLayout)}else if("fields"in o)return Qu({layout:o},t[o.property]);return 0};let n=0;return r.layout.fields.forEach(o=>{n+=e(o)}),n}function Hn(r){let t=0,e=0;for(;;){let n=r.shift();if(t|=(n&127)<<e*7,e+=1,(n&128)===0)break}return t}function Kn(r,t){let e=t;for(;;){let n=e&127;if(e>>=7,e==0){r.push(n);break}else n|=128,r.push(n)}}function De(r,t){if(!r)throw new Error(t||"Assertion failed")}class Jo{constructor(t,e){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=e}static compile(t,e){const n=new Map,o=u=>{const d=u.toBase58();let l=n.get(d);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},n.set(d,l)),l},i=o(e);i.isSigner=!0,i.isWritable=!0;for(const u of t){o(u.programId).isInvoked=!0;for(const d of u.keys){const l=o(d.pubkey);l.isSigner||=d.isSigner,l.isWritable||=d.isWritable}}return new Jo(e,n)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];De(t.length<=256,"Max static account keys length exceeded");const e=t.filter(([,l])=>l.isSigner&&l.isWritable),n=t.filter(([,l])=>l.isSigner&&!l.isWritable),o=t.filter(([,l])=>!l.isSigner&&l.isWritable),i=t.filter(([,l])=>!l.isSigner&&!l.isWritable),u={numRequiredSignatures:e.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};{De(e.length>0,"Expected at least one writable signer key");const[l]=e[0];De(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const d=[...e.map(([l])=>new Jt(l)),...n.map(([l])=>new Jt(l)),...o.map(([l])=>new Jt(l)),...i.map(([l])=>new Jt(l))];return[u,d]}extractTableLookup(t){const[e,n]=this.drainKeysFoundInLookupTable(t.state.addresses,u=>!u.isSigner&&!u.isInvoked&&u.isWritable),[o,i]=this.drainKeysFoundInLookupTable(t.state.addresses,u=>!u.isSigner&&!u.isInvoked&&!u.isWritable);if(!(e.length===0&&o.length===0))return[{accountKey:t.key,writableIndexes:e,readonlyIndexes:o},{writable:n,readonly:i}]}drainKeysFoundInLookupTable(t,e){const n=new Array,o=new Array;for(const[i,u]of this.keyMetaMap.entries())if(e(u)){const d=new Jt(i),l=t.findIndex(v=>v.equals(d));l>=0&&(De(l<256,"Max lookup table index exceeded"),n.push(l),o.push(d),this.keyMetaMap.delete(i))}return[n,o]}}const tl="Reached end of buffer unexpectedly";function fr(r){if(r.length===0)throw new Error(tl);return r.shift()}function Vn(r,...t){const[e]=t;if(t.length===2?e+(t[1]??0)>r.length:e>=r.length)throw new Error(tl);return r.splice(...t)}class Qn{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(e=>new Jt(e)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(e=>this.indexToProgramIds.set(e.programIdIndex,this.accountKeys[e.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:Sn.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new Ji(this.staticAccountKeys)}static compile(t){const e=Jo.compile(t.instructions,t.payerKey),[n,o]=e.getMessageComponents(),u=new Ji(o).compileInstructions(t.instructions).map(d=>({programIdIndex:d.programIdIndex,accounts:d.accountKeyIndexes,data:Sn.encode(d.data)}));return new Qn({header:n,accountKeys:o,recentBlockhash:t.recentBlockhash,instructions:u})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){const n=t-e,i=this.accountKeys.length-e-this.header.numReadonlyUnsignedAccounts;return n<i}else{const n=e-this.header.numReadonlySignedAccounts;return t<n}}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,e)=>!this.isProgramId(e))}serialize(){const t=this.accountKeys.length;let e=[];Kn(e,t);const n=this.instructions.map(O=>{const{accounts:C,programIdIndex:N}=O,B=Array.from(Sn.decode(O.data));let M=[];Kn(M,C.length);let F=[];return Kn(F,B.length),{programIdIndex:N,keyIndicesCount:ve.Buffer.from(M),keyIndices:C,dataLength:ve.Buffer.from(F),data:B}});let o=[];Kn(o,n.length);let i=ve.Buffer.alloc(Pr);ve.Buffer.from(o).copy(i);let u=o.length;n.forEach(O=>{const N=st.struct([st.u8("programIdIndex"),st.blob(O.keyIndicesCount.length,"keyIndicesCount"),st.seq(st.u8("keyIndex"),O.keyIndices.length,"keyIndices"),st.blob(O.dataLength.length,"dataLength"),st.seq(st.u8("userdatum"),O.data.length,"data")]).encode(O,i,u);u+=N}),i=i.slice(0,u);const d=st.struct([st.blob(1,"numRequiredSignatures"),st.blob(1,"numReadonlySignedAccounts"),st.blob(1,"numReadonlyUnsignedAccounts"),st.blob(e.length,"keyCount"),st.seq(Ne("key"),t,"keys"),Ne("recentBlockhash")]),l={numRequiredSignatures:ve.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:ve.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:ve.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:ve.Buffer.from(e),keys:this.accountKeys.map(O=>ke(O.toBytes())),recentBlockhash:Sn.decode(this.recentBlockhash)};let v=ve.Buffer.alloc(2048);const S=d.encode(l,v);return i.copy(v,S),v.slice(0,S+i.length)}static from(t){let e=[...t];const n=fr(e);if(n!==(n&Xo))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const o=fr(e),i=fr(e),u=Hn(e);let d=[];for(let C=0;C<u;C++){const N=Vn(e,0,lr);d.push(new Jt(ve.Buffer.from(N)))}const l=Vn(e,0,lr),v=Hn(e);let S=[];for(let C=0;C<v;C++){const N=fr(e),B=Hn(e),M=Vn(e,0,B),F=Hn(e),G=Vn(e,0,F),Q=Sn.encode(ve.Buffer.from(G));S.push({programIdIndex:N,accounts:M,data:Q})}const O={header:{numRequiredSignatures:n,numReadonlySignedAccounts:o,numReadonlyUnsignedAccounts:i},recentBlockhash:Sn.encode(ve.Buffer.from(l)),accountKeys:d,instructions:S};return new Qn(O)}}class ei{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const e of this.addressTableLookups)t+=e.readonlyIndexes.length+e.writableIndexes.length;return t}getAccountKeys(t){let e;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");e=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)e=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Ji(this.staticAccountKeys,e)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures,n=this.staticAccountKeys.length;if(t>=n){const o=t-n,i=this.addressTableLookups.reduce((u,d)=>u+d.writableIndexes.length,0);return o<i}else if(t>=this.header.numRequiredSignatures){const o=t-e,u=n-e-this.header.numReadonlyUnsignedAccounts;return o<u}else{const o=e-this.header.numReadonlySignedAccounts;return t<o}}resolveAddressTableLookups(t){const e={writable:[],readonly:[]};for(const n of this.addressTableLookups){const o=t.find(i=>i.key.equals(n.accountKey));if(!o)throw new Error(`Failed to find address lookup table account for table key ${n.accountKey.toBase58()}`);for(const i of n.writableIndexes)if(i<o.state.addresses.length)e.writable.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${n.accountKey.toBase58()}`);for(const i of n.readonlyIndexes)if(i<o.state.addresses.length)e.readonly.push(o.state.addresses[i]);else throw new Error(`Failed to find address for index ${i} in address lookup table ${n.accountKey.toBase58()}`)}return e}static compile(t){const e=Jo.compile(t.instructions,t.payerKey),n=new Array,o={writable:new Array,readonly:new Array},i=t.addressLookupTableAccounts||[];for(const S of i){const O=e.extractTableLookup(S);if(O!==void 0){const[C,{writable:N,readonly:B}]=O;n.push(C),o.writable.push(...N),o.readonly.push(...B)}}const[u,d]=e.getMessageComponents(),v=new Ji(d,o).compileInstructions(t.instructions);return new ei({header:u,staticAccountKeys:d,recentBlockhash:t.recentBlockhash,compiledInstructions:v,addressTableLookups:n})}serialize(){const t=Array();Kn(t,this.staticAccountKeys.length);const e=this.serializeInstructions(),n=Array();Kn(n,this.compiledInstructions.length);const o=this.serializeAddressTableLookups(),i=Array();Kn(i,this.addressTableLookups.length);const u=st.struct([st.u8("prefix"),st.struct([st.u8("numRequiredSignatures"),st.u8("numReadonlySignedAccounts"),st.u8("numReadonlyUnsignedAccounts")],"header"),st.blob(t.length,"staticAccountKeysLength"),st.seq(Ne(),this.staticAccountKeys.length,"staticAccountKeys"),Ne("recentBlockhash"),st.blob(n.length,"instructionsLength"),st.blob(e.length,"serializedInstructions"),st.blob(i.length,"addressTableLookupsLength"),st.blob(o.length,"serializedAddressTableLookups")]),d=new Uint8Array(Pr),v=u.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(S=>S.toBytes()),recentBlockhash:Sn.decode(this.recentBlockhash),instructionsLength:new Uint8Array(n),serializedInstructions:e,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:o},d);return d.slice(0,v)}serializeInstructions(){let t=0;const e=new Uint8Array(Pr);for(const n of this.compiledInstructions){const o=Array();Kn(o,n.accountKeyIndexes.length);const i=Array();Kn(i,n.data.length);const u=st.struct([st.u8("programIdIndex"),st.blob(o.length,"encodedAccountKeyIndexesLength"),st.seq(st.u8(),n.accountKeyIndexes.length,"accountKeyIndexes"),st.blob(i.length,"encodedDataLength"),st.blob(n.data.length,"data")]);t+=u.encode({programIdIndex:n.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(o),accountKeyIndexes:n.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:n.data},e,t)}return e.slice(0,t)}serializeAddressTableLookups(){let t=0;const e=new Uint8Array(Pr);for(const n of this.addressTableLookups){const o=Array();Kn(o,n.writableIndexes.length);const i=Array();Kn(i,n.readonlyIndexes.length);const u=st.struct([Ne("accountKey"),st.blob(o.length,"encodedWritableIndexesLength"),st.seq(st.u8(),n.writableIndexes.length,"writableIndexes"),st.blob(i.length,"encodedReadonlyIndexesLength"),st.seq(st.u8(),n.readonlyIndexes.length,"readonlyIndexes")]);t+=u.encode({accountKey:n.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(o),writableIndexes:n.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:n.readonlyIndexes},e,t)}return e.slice(0,t)}static deserialize(t){let e=[...t];const n=fr(e),o=n&Xo;De(n!==o,"Expected versioned message but received legacy message");const i=o;De(i===0,`Expected versioned message with version 0 but found version ${i}`);const u={numRequiredSignatures:fr(e),numReadonlySignedAccounts:fr(e),numReadonlyUnsignedAccounts:fr(e)},d=[],l=Hn(e);for(let B=0;B<l;B++)d.push(new Jt(Vn(e,0,lr)));const v=Sn.encode(Vn(e,0,lr)),S=Hn(e),O=[];for(let B=0;B<S;B++){const M=fr(e),F=Hn(e),G=Vn(e,0,F),Q=Hn(e),et=new Uint8Array(Vn(e,0,Q));O.push({programIdIndex:M,accountKeyIndexes:G,data:et})}const C=Hn(e),N=[];for(let B=0;B<C;B++){const M=new Jt(Vn(e,0,lr)),F=Hn(e),G=Vn(e,0,F),Q=Hn(e),et=Vn(e,0,Q);N.push({accountKey:M,writableIndexes:G,readonlyIndexes:et})}return new ei({header:u,staticAccountKeys:d,recentBlockhash:v,compiledInstructions:O,addressTableLookups:N})}}const wa={deserializeMessageVersion(r){const t=r[0],e=t&Xo;return e===t?"legacy":e},deserialize:r=>{const t=wa.deserializeMessageVersion(r);if(t==="legacy")return Qn.from(r);if(t===0)return ei.deserialize(r);throw new Error(`Transaction message version ${t} deserialization is not supported`)}};let Sr=function(r){return r[r.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",r[r.PROCESSED=1]="PROCESSED",r[r.TIMED_OUT=2]="TIMED_OUT",r[r.NONCE_INVALID=3]="NONCE_INVALID",r}({});const mv=ve.Buffer.alloc(Xi).fill(0);class qe{constructor(t){this.keys=void 0,this.programId=void 0,this.data=ve.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n})),programId:this.programId.toJSON(),data:[...this.data]}}}class He{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!!t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:e,nonceInfo:n}=t;this.minNonceContextSlot=e,this.nonceInfo=n}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(t.length===0)throw new Error("No instructions");return t.forEach(e=>{"instructions"in e?this.instructions=this.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?this.instructions.push(e):this.instructions.push(new qe(e))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e;if(this.nonceInfo?(t=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?e=[this.nonceInfo.nonceInstruction,...this.instructions]:e=this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");e.length<1&&console.warn("No instructions provided");let n;if(this.feePayer)n=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)n=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let M=0;M<e.length;M++)if(e[M].programId===void 0)throw new Error(`Transaction instruction index ${M} has undefined program id`);const o=[],i=[];e.forEach(M=>{M.keys.forEach(G=>{i.push({...G})});const F=M.programId.toString();o.includes(F)||o.push(F)}),o.forEach(M=>{i.push({pubkey:new Jt(M),isSigner:!1,isWritable:!1})});const u=[];i.forEach(M=>{const F=M.pubkey.toString(),G=u.findIndex(Q=>Q.pubkey.toString()===F);G>-1?(u[G].isWritable=u[G].isWritable||M.isWritable,u[G].isSigner=u[G].isSigner||M.isSigner):u.push(M)}),u.sort(function(M,F){if(M.isSigner!==F.isSigner)return M.isSigner?-1:1;if(M.isWritable!==F.isWritable)return M.isWritable?-1:1;const G={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return M.pubkey.toBase58().localeCompare(F.pubkey.toBase58(),"en",G)});const d=u.findIndex(M=>M.pubkey.equals(n));if(d>-1){const[M]=u.splice(d,1);M.isSigner=!0,M.isWritable=!0,u.unshift(M)}else u.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const M of this.signatures){const F=u.findIndex(G=>G.pubkey.equals(M.publicKey));if(F>-1)u[F].isSigner||(u[F].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw new Error(`unknown signer: ${M.publicKey.toString()}`)}let l=0,v=0,S=0;const O=[],C=[];u.forEach(({pubkey:M,isSigner:F,isWritable:G})=>{F?(O.push(M.toString()),l+=1,G||(v+=1)):(C.push(M.toString()),G||(S+=1))});const N=O.concat(C),B=e.map(M=>{const{data:F,programId:G}=M;return{programIdIndex:N.indexOf(G.toString()),accounts:M.keys.map(Q=>N.indexOf(Q.pubkey.toString())),data:Sn.encode(F)}});return B.forEach(M=>{De(M.programIdIndex>=0),M.accounts.forEach(F=>De(F>=0))}),new Qn({header:{numRequiredSignatures:l,numReadonlySignedAccounts:v,numReadonlyUnsignedAccounts:S},accountKeys:N,recentBlockhash:t,instructions:B})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);return this.signatures.length===e.length&&this.signatures.every((o,i)=>e[i].equals(o.publicKey))||(this.signatures=e.map(n=>({signature:null,publicKey:n}))),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(t.length===0)throw new Error("No signers");const e=new Set;this.signatures=t.filter(n=>{const o=n.toString();return e.has(o)?!1:(e.add(o),!0)}).map(n=>({signature:null,publicKey:n}))}sign(...t){if(t.length===0)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const u=i.publicKey.toString();e.has(u)||(e.add(u),n.push(i))}this.signatures=n.map(i=>({signature:null,publicKey:i.publicKey}));const o=this._compile();this._partialSign(o,...n)}partialSign(...t){if(t.length===0)throw new Error("No signers");const e=new Set,n=[];for(const i of t){const u=i.publicKey.toString();e.has(u)||(e.add(u),n.push(i))}const o=this._compile();this._partialSign(o,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach(o=>{const i=ga(n,o.secretKey);this._addSignature(o.publicKey,ke(i))})}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){De(e.length===64);const n=this.signatures.findIndex(o=>t.equals(o.publicKey));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=ve.Buffer.from(e)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,e){const n={};for(const{signature:o,publicKey:i}of this.signatures)o===null?e&&(n.missing||=[]).push(i):sv(o,t,i.toBytes())||(n.invalid||=[]).push(i);return n.invalid||n.missing?n:void 0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),o=this.serializeMessage();if(n){const i=this._getMessageSignednessErrors(o,e);if(i){let u="Signature verification failed.";throw i.invalid&&(u+=`
11
6
  Invalid signature for public key${i.invalid.length===1?"":"(s)"} [\`${i.invalid.map(d=>d.toBase58()).join("`, `")}\`].`),i.missing&&(u+=`
12
- Missing signature for public key${i.missing.length===1?"":"(s)"} [\`${i.missing.map(d=>d.toBase58()).join("`, `")}\`].`),new Error(u)}}return this._serialize(o)}_serialize(t){const{signatures:e}=this,n=[];Kn(n,e.length);const o=n.length+e.length*64+t.length,i=me.Buffer.alloc(o);return De(e.length<256),me.Buffer.from(n).copy(i,0),e.forEach(({signature:u},d)=>{u!==null&&(De(u.length===64,"signature has invalid length"),me.Buffer.from(u).copy(i,n.length+d*64))}),t.copy(i,n.length+e.length*64),De(i.length<=Pr,`Transaction too large: ${i.length} > ${Pr}`),i}get keys(){return De(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return De(this.instructions.length===1),this.instructions[0].programId}get data(){return De(this.instructions.length===1),this.instructions[0].data}static from(t){let e=[...t];const n=Hn(e);let o=[];for(let i=0;i<n;i++){const u=Vn(e,0,Xi);o.push(Sn.encode(me.Buffer.from(u)))}return He.populate(Qn.from(e),o)}static populate(t,e=[]){const n=new He;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach((o,i)=>{const u={signature:o==Sn.encode(mv)?null:Sn.decode(o),publicKey:t.accountKeys[i]};n.signatures.push(u)}),t.instructions.forEach(o=>{const i=o.accounts.map(u=>{const d=t.accountKeys[u];return{pubkey:d,isSigner:n.signatures.some(l=>l.publicKey.toString()===d.toString())||t.isAccountSigner(u),isWritable:t.isAccountWritable(u)}});n.instructions.push(new qe({keys:i,programId:t.accountKeys[o.programIdIndex],data:Sn.decode(o.data)}))}),n._message=t,n._json=n.toJSON(),n}}class ba{constructor(t){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}static decompile(t,e){const{header:n,compiledInstructions:o,recentBlockhash:i}=t,{numRequiredSignatures:u,numReadonlySignedAccounts:d,numReadonlyUnsignedAccounts:l}=n,v=u-d;De(v>0,"Message header is invalid");const S=t.staticAccountKeys.length-u-l;De(S>=0,"Message header is invalid");const O=t.getAccountKeys(e),C=O.get(0);if(C===void 0)throw new Error("Failed to decompile message because no account keys were found");const N=[];for(const B of o){const M=[];for(const G of B.accountKeyIndexes){const Q=O.get(G);if(Q===void 0)throw new Error(`Failed to find key for account key index ${G}`);const et=G<u;let ct;et?ct=G<v:G<O.staticAccountKeys.length?ct=G-u<S:ct=G-O.staticAccountKeys.length<O.accountKeysFromLookups.writable.length,M.push({pubkey:Q,isSigner:G<n.numRequiredSignatures,isWritable:ct})}const F=O.get(B.programIdIndex);if(F===void 0)throw new Error(`Failed to find program id for program id index ${B.programIdIndex}`);N.push(new qe({programId:F,data:ke(B.data),keys:M}))}return new ba({payerKey:C,instructions:N,recentBlockhash:i})}compileToLegacyMessage(){return Qn.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(t){return ei.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}class _a{get version(){return this.message.version}constructor(t,e){if(this.signatures=void 0,this.message=void 0,e!==void 0)De(e.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=e;else{const n=[];for(let o=0;o<t.header.numRequiredSignatures;o++)n.push(new Uint8Array(Xi));this.signatures=n}this.message=t}serialize(){const t=this.message.serialize(),e=Array();Kn(e,this.signatures.length);const n=st.struct([st.blob(e.length,"encodedSignaturesLength"),st.seq(fv(),this.signatures.length,"signatures"),st.blob(t.length,"serializedMessage")]),o=new Uint8Array(2048),i=n.encode({encodedSignaturesLength:new Uint8Array(e),signatures:this.signatures,serializedMessage:t},o);return o.slice(0,i)}static deserialize(t){let e=[...t];const n=[],o=Hn(e);for(let u=0;u<o;u++)n.push(new Uint8Array(Vn(e,0,Xi)));const i=wa.deserialize(new Uint8Array(e));return new _a(i,n)}sign(t){const e=this.message.serialize(),n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const o of t){const i=n.findIndex(u=>u.equals(o.publicKey));De(i>=0,`Cannot sign with non signer key ${o.publicKey.toBase58()}`),this.signatures[i]=ga(e,o.secretKey)}}addSignature(t,e){De(e.byteLength===64,"Signature must be 64 bytes long");const o=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));De(o>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[o]=e}}const el=1e3/(160/64),dr=new Xt("SysvarC1ock11111111111111111111111111111111"),vv=new Xt("SysvarEpochSchedu1e111111111111111111111111"),yv=new Xt("Sysvar1nstructions1111111111111111111111111"),Qo=new Xt("SysvarRecentB1ockHashes11111111111111111111"),Si=new Xt("SysvarRent111111111111111111111111111111111"),wv=new Xt("SysvarRewards111111111111111111111111111111"),bv=new Xt("SysvarS1otHashes111111111111111111111111111"),_v=new Xt("SysvarS1otHistory11111111111111111111111111"),ts=new Xt("SysvarStakeHistory1111111111111111111111111");class Qi extends Error{constructor({action:t,signature:e,transactionMessage:n,logs:o}){const i=o?`Logs:
7
+ Missing signature for public key${i.missing.length===1?"":"(s)"} [\`${i.missing.map(d=>d.toBase58()).join("`, `")}\`].`),new Error(u)}}return this._serialize(o)}_serialize(t){const{signatures:e}=this,n=[];Kn(n,e.length);const o=n.length+e.length*64+t.length,i=ve.Buffer.alloc(o);return De(e.length<256),ve.Buffer.from(n).copy(i,0),e.forEach(({signature:u},d)=>{u!==null&&(De(u.length===64,"signature has invalid length"),ve.Buffer.from(u).copy(i,n.length+d*64))}),t.copy(i,n.length+e.length*64),De(i.length<=Pr,`Transaction too large: ${i.length} > ${Pr}`),i}get keys(){return De(this.instructions.length===1),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return De(this.instructions.length===1),this.instructions[0].programId}get data(){return De(this.instructions.length===1),this.instructions[0].data}static from(t){let e=[...t];const n=Hn(e);let o=[];for(let i=0;i<n;i++){const u=Vn(e,0,Xi);o.push(Sn.encode(ve.Buffer.from(u)))}return He.populate(Qn.from(e),o)}static populate(t,e=[]){const n=new He;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach((o,i)=>{const u={signature:o==Sn.encode(mv)?null:Sn.decode(o),publicKey:t.accountKeys[i]};n.signatures.push(u)}),t.instructions.forEach(o=>{const i=o.accounts.map(u=>{const d=t.accountKeys[u];return{pubkey:d,isSigner:n.signatures.some(l=>l.publicKey.toString()===d.toString())||t.isAccountSigner(u),isWritable:t.isAccountWritable(u)}});n.instructions.push(new qe({keys:i,programId:t.accountKeys[o.programIdIndex],data:Sn.decode(o.data)}))}),n._message=t,n._json=n.toJSON(),n}}class ba{constructor(t){this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}static decompile(t,e){const{header:n,compiledInstructions:o,recentBlockhash:i}=t,{numRequiredSignatures:u,numReadonlySignedAccounts:d,numReadonlyUnsignedAccounts:l}=n,v=u-d;De(v>0,"Message header is invalid");const S=t.staticAccountKeys.length-u-l;De(S>=0,"Message header is invalid");const O=t.getAccountKeys(e),C=O.get(0);if(C===void 0)throw new Error("Failed to decompile message because no account keys were found");const N=[];for(const B of o){const M=[];for(const G of B.accountKeyIndexes){const Q=O.get(G);if(Q===void 0)throw new Error(`Failed to find key for account key index ${G}`);const et=G<u;let ct;et?ct=G<v:G<O.staticAccountKeys.length?ct=G-u<S:ct=G-O.staticAccountKeys.length<O.accountKeysFromLookups.writable.length,M.push({pubkey:Q,isSigner:G<n.numRequiredSignatures,isWritable:ct})}const F=O.get(B.programIdIndex);if(F===void 0)throw new Error(`Failed to find program id for program id index ${B.programIdIndex}`);N.push(new qe({programId:F,data:ke(B.data),keys:M}))}return new ba({payerKey:C,instructions:N,recentBlockhash:i})}compileToLegacyMessage(){return Qn.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}compileToV0Message(t){return ei.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}class _a{get version(){return this.message.version}constructor(t,e){if(this.signatures=void 0,this.message=void 0,e!==void 0)De(e.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=e;else{const n=[];for(let o=0;o<t.header.numRequiredSignatures;o++)n.push(new Uint8Array(Xi));this.signatures=n}this.message=t}serialize(){const t=this.message.serialize(),e=Array();Kn(e,this.signatures.length);const n=st.struct([st.blob(e.length,"encodedSignaturesLength"),st.seq(fv(),this.signatures.length,"signatures"),st.blob(t.length,"serializedMessage")]),o=new Uint8Array(2048),i=n.encode({encodedSignaturesLength:new Uint8Array(e),signatures:this.signatures,serializedMessage:t},o);return o.slice(0,i)}static deserialize(t){let e=[...t];const n=[],o=Hn(e);for(let u=0;u<o;u++)n.push(new Uint8Array(Vn(e,0,Xi)));const i=wa.deserialize(new Uint8Array(e));return new _a(i,n)}sign(t){const e=this.message.serialize(),n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const o of t){const i=n.findIndex(u=>u.equals(o.publicKey));De(i>=0,`Cannot sign with non signer key ${o.publicKey.toBase58()}`),this.signatures[i]=ga(e,o.secretKey)}}addSignature(t,e){De(e.byteLength===64,"Signature must be 64 bytes long");const o=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(i=>i.equals(t));De(o>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[o]=e}}const el=1e3/(160/64),dr=new Jt("SysvarC1ock11111111111111111111111111111111"),vv=new Jt("SysvarEpochSchedu1e111111111111111111111111"),yv=new Jt("Sysvar1nstructions1111111111111111111111111"),Qo=new Jt("SysvarRecentB1ockHashes11111111111111111111"),Si=new Jt("SysvarRent111111111111111111111111111111111"),wv=new Jt("SysvarRewards111111111111111111111111111111"),bv=new Jt("SysvarS1otHashes111111111111111111111111111"),_v=new Jt("SysvarS1otHistory11111111111111111111111111"),ts=new Jt("SysvarStakeHistory1111111111111111111111111");class Qi extends Error{constructor({action:t,signature:e,transactionMessage:n,logs:o}){const i=o?`Logs:
13
8
  ${JSON.stringify(o.slice(-10),null,2)}. `:"",u="\nCatch the `SendTransactionError` and call `getLogs()` on it for full details.";let d;switch(t){case"send":d=`Transaction ${e} resulted in an error.
14
9
  ${n}. `+i+u;break;case"simulate":d=`Simulation failed.
15
10
  Message: ${n}.
16
- `+i+u;break;default:d=`Unknown action '${(l=>l)(t)}'`}super(d),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=e,this.transactionMessage=n,this.transactionLogs=o||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const t=this.transactionLogs;if(!(t!=null&&typeof t=="object"&&"then"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((e,n)=>{t.getTransaction(this.signature).then(o=>{if(o&&o.meta&&o.meta.logMessages){const i=o.meta.logMessages;this.transactionLogs=i,e(i)}else n(new Error("Log messages not found"))}).catch(n)})),await this.transactionLogs}}const Ev={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class ce extends Error{constructor({code:t,message:e,data:n},o){super(o!=null?`${o}: ${e}`:e),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}async function Ea(r,t,e,n){const o=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment,maxRetries:n.maxRetries,minContextSlot:n.minContextSlot},i=await r.sendTransaction(t,e,o);let u;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)u=(await r.confirmTransaction({abortSignal:n?.abortSignal,signature:i,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},n&&n.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){const{nonceInstruction:d}=t.nonceInfo,l=d.keys[0].pubkey;u=(await r.confirmTransaction({abortSignal:n?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:l,nonceValue:t.nonceInfo.nonce,signature:i},n&&n.commitment)).value}else n?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),u=(await r.confirmTransaction(i,n&&n.commitment)).value;if(u.err)throw i!=null?new Qi({action:"send",signature:i,transactionMessage:`Status: (${JSON.stringify(u)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(u)})`);return i}function ni(r){return new Promise(t=>setTimeout(t,r))}function Be(r,t){const e=r.layout.span>=0?r.layout.span:Qu(r,t),n=me.Buffer.alloc(e),o=Object.assign({instruction:r.index},t);return r.layout.encode(o,n),n}function We(r,t){let e;try{e=r.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(e.instruction!==r.index)throw new Error(`invalid instruction; instruction index mismatch ${e.instruction} != ${r.index}`);return e}const nl=st.nu64("lamportsPerSignature"),rl=st.struct([st.u32("version"),st.u32("state"),Ne("authorizedPubkey"),Ne("nonce"),st.struct([nl],"feeCalculator")]),Ra=rl.span;class es{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=rl.decode(ke(t),0);return new es({authorizedPubkey:new Xt(e.authorizedPubkey),nonce:new Xt(e.nonce).toString(),feeCalculator:e.feeCalculator})}}function Ai(r){const t=st.blob(8,r),e=t.decode.bind(t),n=t.encode.bind(t),o=t,i=om();return o.decode=(u,d)=>{const l=e(u,d);return i.decode(l)},o.encode=(u,d,l)=>{const v=i.encode(u);return n(v,d,l)},o}class Rv{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(Ze))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a SystemInstruction");return o}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:o}=We(Ze.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new Xt(o)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=We(Ze.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:o}=We(Ze.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new Xt(o)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=We(Ze.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:o,programId:i}=We(Ze.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Xt(e),seed:n,space:o,programId:new Xt(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=We(Ze.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new Xt(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:o}=We(Ze.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Xt(e),seed:n,programId:new Xt(o)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:o,space:i,programId:u}=We(Ze.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new Xt(e),seed:n,lamports:o,space:i,programId:new Xt(u)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=We(Ze.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new Xt(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),We(Ze.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=We(Ze.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=We(Ze.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new Xt(e)}}static checkProgramId(t){if(!t.equals(An.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Ze=Object.freeze({Create:{index:0,layout:st.struct([st.u32("instruction"),st.ns64("lamports"),st.ns64("space"),Ne("programId")])},Assign:{index:1,layout:st.struct([st.u32("instruction"),Ne("programId")])},Transfer:{index:2,layout:st.struct([st.u32("instruction"),Ai("lamports")])},CreateWithSeed:{index:3,layout:st.struct([st.u32("instruction"),Ne("base"),ti("seed"),st.ns64("lamports"),st.ns64("space"),Ne("programId")])},AdvanceNonceAccount:{index:4,layout:st.struct([st.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:st.struct([st.u32("instruction"),Ne("authorized")])},AuthorizeNonceAccount:{index:7,layout:st.struct([st.u32("instruction"),Ne("authorized")])},Allocate:{index:8,layout:st.struct([st.u32("instruction"),st.ns64("space")])},AllocateWithSeed:{index:9,layout:st.struct([st.u32("instruction"),Ne("base"),ti("seed"),st.ns64("space"),Ne("programId")])},AssignWithSeed:{index:10,layout:st.struct([st.u32("instruction"),Ne("base"),ti("seed"),Ne("programId")])},TransferWithSeed:{index:11,layout:st.struct([st.u32("instruction"),Ai("lamports"),ti("seed"),Ne("programId")])},UpgradeNonceAccount:{index:12,layout:st.struct([st.u32("instruction")])}});class An{constructor(){}static createAccount(t){const e=Ze.Create,n=Be(e,{lamports:t.lamports,space:t.space,programId:ke(t.programId.toBuffer())});return new qe({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:n})}static transfer(t){let e,n;if("basePubkey"in t){const o=Ze.TransferWithSeed;e=Be(o,{lamports:BigInt(t.lamports),seed:t.seed,programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{const o=Ze.Transfer;e=Be(o,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new qe({keys:n,programId:this.programId,data:e})}static assign(t){let e,n;if("basePubkey"in t){const o=Ze.AssignWithSeed;e=Be(o,{base:ke(t.basePubkey.toBuffer()),seed:t.seed,programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const o=Ze.Assign;e=Be(o,{programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new qe({keys:n,programId:this.programId,data:e})}static createAccountWithSeed(t){const e=Ze.CreateWithSeed,n=Be(e,{base:ke(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:ke(t.programId.toBuffer())});let o=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||o.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new qe({keys:o,programId:this.programId,data:n})}static createNonceAccount(t){const e=new He;"basePubkey"in t&&"seed"in t?e.add(An.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Ra,programId:this.programId})):e.add(An.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Ra,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return e.add(this.nonceInitialize(n)),e}static nonceInitialize(t){const e=Ze.InitializeNonceAccount,n=Be(e,{authorized:ke(t.authorizedPubkey.toBuffer())}),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Qo,isSigner:!1,isWritable:!1},{pubkey:Si,isSigner:!1,isWritable:!1}],programId:this.programId,data:n};return new qe(o)}static nonceAdvance(t){const e=Ze.AdvanceNonceAccount,n=Be(e),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Qo,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n};return new qe(o)}static nonceWithdraw(t){const e=Ze.WithdrawNonceAccount,n=Be(e,{lamports:t.lamports});return new qe({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:Qo,isSigner:!1,isWritable:!1},{pubkey:Si,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static nonceAuthorize(t){const e=Ze.AuthorizeNonceAccount,n=Be(e,{authorized:ke(t.newAuthorizedPubkey.toBuffer())});return new qe({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static allocate(t){let e,n;if("basePubkey"in t){const o=Ze.AllocateWithSeed;e=Be(o,{base:ke(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const o=Ze.Allocate;e=Be(o,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new qe({keys:n,programId:this.programId,data:e})}}An.programId=new Xt("11111111111111111111111111111111");const Sv=Pr-300;class ri{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/ri.chunkSize)+1+1)}static async load(t,e,n,o,i){{const O=await t.getMinimumBalanceForRentExemption(i.length),C=await t.getAccountInfo(n.publicKey,"confirmed");let N=null;if(C!==null){if(C.executable)return console.error("Program load failed, account is already executable"),!1;C.data.length!==i.length&&(N=N||new He,N.add(An.allocate({accountPubkey:n.publicKey,space:i.length}))),C.owner.equals(o)||(N=N||new He,N.add(An.assign({accountPubkey:n.publicKey,programId:o}))),C.lamports<O&&(N=N||new He,N.add(An.transfer({fromPubkey:e.publicKey,toPubkey:n.publicKey,lamports:O-C.lamports})))}else N=new He().add(An.createAccount({fromPubkey:e.publicKey,newAccountPubkey:n.publicKey,lamports:O>0?O:1,space:i.length,programId:o}));N!==null&&await Ea(t,N,[e,n],{commitment:"confirmed"})}const u=st.struct([st.u32("instruction"),st.u32("offset"),st.u32("bytesLength"),st.u32("bytesLengthPadding"),st.seq(st.u8("byte"),st.offset(st.u32(),-8),"bytes")]),d=ri.chunkSize;let l=0,v=i,S=[];for(;v.length>0;){const O=v.slice(0,d),C=me.Buffer.alloc(d+16);u.encode({instruction:0,offset:l,bytes:O,bytesLength:0,bytesLengthPadding:0},C);const N=new He().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:C});S.push(Ea(t,N,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")&&await ni(1e3/4),l+=d,v=v.slice(d)}await Promise.all(S);{const O=st.struct([st.u32("instruction")]),C=me.Buffer.alloc(O.span);O.encode({instruction:1},C);const N=new He().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:Si,isSigner:!1,isWritable:!1}],programId:o,data:C}),B="processed",M=await t.sendTransaction(N,[e,n],{preflightCommitment:B}),{context:F,value:G}=await t.confirmTransaction({signature:M,lastValidBlockHeight:N.lastValidBlockHeight,blockhash:N.recentBlockhash},B);if(G.err)throw new Error(`Transaction ${M} failed (${JSON.stringify(G)})`);for(;;){try{if(await t.getSlot({commitment:B})>F.slot)break}catch{}await new Promise(Q=>setTimeout(Q,Math.round(el/2)))}}return!0}}ri.chunkSize=Sv;const Av=new Xt("BPFLoader2111111111111111111111111111111111");class Iv{static getMinNumSignatures(t){return ri.getMinNumSignatures(t)}static load(t,e,n,o,i){return ri.load(t,e,n,i,o)}}function kv(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Sa,il;function Ov(){if(il)return Sa;il=1;var r=Object.prototype.toString,t=Object.keys||function(n){var o=[];for(var i in n)o.push(i);return o};function e(n,o){var i,u,d,l,v,S,O;if(n===!0)return"true";if(n===!1)return"false";switch(typeof n){case"object":if(n===null)return null;if(n.toJSON&&typeof n.toJSON=="function")return e(n.toJSON(),o);if(O=r.call(n),O==="[object Array]"){for(d="[",u=n.length-1,i=0;i<u;i++)d+=e(n[i],!0)+",";return u>-1&&(d+=e(n[i],!0)),d+"]"}else if(O==="[object Object]"){for(l=t(n).sort(),u=l.length,d="",i=0;i<u;)v=l[i],S=e(n[v],!1),S!==void 0&&(d&&(d+=","),d+=JSON.stringify(v)+":"+S),i++;return"{"+d+"}"}else return JSON.stringify(n);case"function":case"undefined":return o?null:void 0;case"string":return JSON.stringify(n);default:return isFinite(n)?n:null}}return Sa=function(n){var o=e(n,!1);if(o!==void 0)return""+o},Sa}var Tv=Ov(),ol=kv(Tv);const to=32;function Aa(r){let t=0;for(;r>1;)r/=2,t++;return t}function Nv(r){return r===0?1:(r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r|=r>>32,r+1)}class sl{constructor(t,e,n,o,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=o,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const e=Aa(Nv(t+to+1))-Aa(to)-1,n=this.getSlotsInEpoch(e),o=t-(n-to);return[e,o]}else{const e=t-this.firstNormalSlot,n=Math.floor(e/this.slotsPerEpoch),o=this.firstNormalEpoch+n,i=e%this.slotsPerEpoch;return[o,i]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?(Math.pow(2,t)-1)*to:(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Aa(to)):this.slotsPerEpoch}}var xv=globalThis.fetch;class Lv extends Hm{constructor(t,e,n){const o=i=>{const u=Um(i,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...e});return"socket"in u?this.underlyingSocket=u.socket:this.underlyingSocket=u,u};super(o,t,e,n),this.underlyingSocket=void 0}call(...t){const e=this.underlyingSocket?.readyState;return e===1?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+e+")"))}notify(...t){const e=this.underlyingSocket?.readyState;return e===1?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+e+")"))}}function Cv(r,t){let e;try{e=r.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(e.typeIndex!==r.index)throw new Error(`invalid account data; account type mismatch ${e.typeIndex} != ${r.index}`);return e}const al=56;class Ia{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){const t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){const e=Cv(Bv,t),n=t.length-al;De(n>=0,"lookup table is invalid"),De(n%32===0,"lookup table is invalid");const o=n/32,{addresses:i}=st.struct([st.seq(Ne(),o,"addresses")]).decode(t.slice(al));return{deactivationSlot:e.deactivationSlot,lastExtendedSlot:e.lastExtendedSlot,lastExtendedSlotStartIndex:e.lastExtendedStartIndex,authority:e.authority.length!==0?new Xt(e.authority[0]):void 0,addresses:i.map(u=>new Xt(u))}}}const Bv={index:1,layout:st.struct([st.u32("typeIndex"),Ai("deactivationSlot"),st.nu64("lastExtendedSlot"),st.u8("lastExtendedStartIndex"),st.u8(),st.seq(Ne(),st.offset(st.u8(),-1),"authority")])},Pv=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function Mv(r){const t=r.match(Pv);if(t==null)throw TypeError(`Failed to validate endpoint URL \`${r}\``);const[e,n,o,i]=t,u=r.startsWith("https:")?"wss:":"ws:",d=o==null?null:parseInt(o.slice(1),10),l=d==null?"":`:${d+1}`;return`${u}//${n}${l}${i}`}const on=qi(na(Xt),$t(),r=>new Xt(r)),cl=ra([$t(),rn("base64")]),ka=qi(na(me.Buffer),cl,r=>me.Buffer.from(r[0],"base64")),ul=30*1e3;function Dv(r){if(/^https?:/.test(r)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return r}function Xe(r){let t,e;if(typeof r=="string")t=r;else if(r){const{commitment:n,...o}=r;t=n,e=o}return{commitment:t,config:e}}function ll(r){return r.map(t=>"memcmp"in t?{...t,memcmp:{...t.memcmp,encoding:t.memcmp.encoding??"base58"}}:t)}function fl(r){return Dn([Ht({jsonrpc:rn("2.0"),id:$t(),result:r}),Ht({jsonrpc:rn("2.0"),id:$t(),error:Ht({code:Ei(),message:$t(),data:he(fm())})})])}const Uv=fl(Ei());function Oe(r){return qi(fl(r),Uv,t=>"error"in t?t:{...t,result:Jt(t.result,r)})}function mn(r){return Oe(Ht({context:Ht({slot:St()}),value:r}))}function ns(r){return Ht({context:Ht({slot:St()}),value:r})}function Oa(r,t){return r===0?new ei({header:t.header,staticAccountKeys:t.accountKeys.map(e=>new Xt(e)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Sn.decode(e.data)})),addressTableLookups:t.addressTableLookups}):new Qn(t)}const Fv=Ht({foundation:St(),foundationTerm:St(),initial:St(),taper:St(),terminal:St()}),Hv=Oe(ne(re(Ht({epoch:St(),effectiveSlot:St(),amount:St(),postBalance:St(),commission:he(re(St()))})))),Vv=ne(Ht({slot:St(),prioritizationFee:St()})),Wv=Ht({total:St(),validator:St(),foundation:St(),epoch:St()}),zv=Ht({epoch:St(),slotIndex:St(),slotsInEpoch:St(),absoluteSlot:St(),blockHeight:he(St()),transactionCount:he(St())}),Gv=Ht({slotsPerEpoch:St(),leaderScheduleSlotOffset:St(),warmup:ur(),firstNormalEpoch:St(),firstNormalSlot:St()}),Kv=Au($t(),ne(St())),ii=re(Dn([Ht({}),$t()])),jv=Ht({err:ii}),Yv=rn("receivedSignature"),qv=Ht({"solana-core":$t(),"feature-set":he(St())}),$v=Ht({program:$t(),programId:on,parsed:Ei()}),Zv=Ht({programId:on,accounts:ne(on),data:$t()}),dl=mn(Ht({err:re(Dn([Ht({}),$t()])),logs:re(ne($t())),accounts:he(re(ne(re(Ht({executable:ur(),owner:$t(),lamports:St(),data:ne($t()),rentEpoch:he(St())}))))),unitsConsumed:he(St()),returnData:he(re(Ht({programId:$t(),data:ra([$t(),rn("base64")])}))),innerInstructions:he(re(ne(Ht({index:St(),instructions:ne(Dn([$v,Zv]))}))))})),Xv=mn(Ht({byIdentity:Au($t(),ne(St())),range:Ht({firstSlot:St(),lastSlot:St()})}));function Jv(r,t,e,n,o,i){const u=e||xv;let d;i!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let l;return n&&(l=async(S,O)=>{const C=await new Promise((N,B)=>{try{n(S,O,(M,F)=>N([M,F]))}catch(M){B(M)}});return await u(...C)}),new Bm(async(S,O)=>{const C={method:"POST",body:S,agent:d,headers:Object.assign({"Content-Type":"application/json"},t||{},J3)};try{let N=5,B,M=500;for(;l?B=await l(r,C):B=await u(r,C),!(B.status!==429||o===!0||(N-=1,N===0));)console.error(`Server responded with ${B.status} ${B.statusText}. Retrying after ${M}ms delay...`),await ni(M),M*=2;const F=await B.text();B.ok?O(null,F):O(new Error(`${B.status} ${B.statusText}: ${F}`))}catch(N){N instanceof Error&&O(N)}},{})}function Qv(r){return(t,e)=>new Promise((n,o)=>{r.request(t,e,(i,u)=>{if(i){o(i);return}n(u)})})}function t3(r){return t=>new Promise((e,n)=>{t.length===0&&e([]);const o=t.map(i=>r.request(i.methodName,i.args));r.request(o,(i,u)=>{if(i){n(i);return}e(u)})})}const e3=Oe(Fv),n3=Oe(Wv),r3=Oe(Vv),i3=Oe(zv),o3=Oe(Gv),s3=Oe(Kv),a3=Oe(St()),c3=mn(Ht({total:St(),circulating:St(),nonCirculating:St(),nonCirculatingAccounts:ne(on)})),Ta=Ht({amount:$t(),uiAmount:re(St()),decimals:St(),uiAmountString:he($t())}),u3=mn(ne(Ht({address:on,amount:$t(),uiAmount:re(St()),decimals:St(),uiAmountString:he($t())}))),l3=mn(ne(Ht({pubkey:on,account:Ht({executable:ur(),owner:on,lamports:St(),data:ka,rentEpoch:St()})}))),Na=Ht({program:$t(),parsed:Ei(),space:St()}),f3=mn(ne(Ht({pubkey:on,account:Ht({executable:ur(),owner:on,lamports:St(),data:Na,rentEpoch:St()})}))),d3=mn(ne(Ht({lamports:St(),address:on}))),eo=Ht({executable:ur(),owner:on,lamports:St(),data:ka,rentEpoch:St()}),h3=Ht({pubkey:on,account:eo}),p3=qi(Dn([na(me.Buffer),Na]),Dn([cl,Na]),r=>Array.isArray(r)?Jt(r,ka):r),xa=Ht({executable:ur(),owner:on,lamports:St(),data:p3,rentEpoch:St()}),g3=Ht({pubkey:on,account:xa}),m3=Ht({state:Dn([rn("active"),rn("inactive"),rn("activating"),rn("deactivating")]),active:St(),inactive:St()}),v3=Oe(ne(Ht({signature:$t(),slot:St(),err:ii,memo:re($t()),blockTime:he(re(St()))}))),y3=Oe(ne(Ht({signature:$t(),slot:St(),err:ii,memo:re($t()),blockTime:he(re(St()))}))),w3=Ht({subscription:St(),result:ns(eo)}),b3=Ht({pubkey:on,account:eo}),_3=Ht({subscription:St(),result:ns(b3)}),E3=Ht({parent:St(),slot:St(),root:St()}),R3=Ht({subscription:St(),result:E3}),S3=Dn([Ht({type:Dn([rn("firstShredReceived"),rn("completed"),rn("optimisticConfirmation"),rn("root")]),slot:St(),timestamp:St()}),Ht({type:rn("createdBank"),parent:St(),slot:St(),timestamp:St()}),Ht({type:rn("frozen"),slot:St(),timestamp:St(),stats:Ht({numTransactionEntries:St(),numSuccessfulTransactions:St(),numFailedTransactions:St(),maxTransactionsPerEntry:St()})}),Ht({type:rn("dead"),slot:St(),timestamp:St(),err:$t()})]),A3=Ht({subscription:St(),result:S3}),I3=Ht({subscription:St(),result:ns(Dn([jv,Yv]))}),k3=Ht({subscription:St(),result:St()}),O3=Ht({pubkey:$t(),gossip:re($t()),tpu:re($t()),rpc:re($t()),version:re($t())}),hl=Ht({votePubkey:$t(),nodePubkey:$t(),activatedStake:St(),epochVoteAccount:ur(),epochCredits:ne(ra([St(),St(),St()])),commission:St(),lastVote:St(),rootSlot:re(St())}),T3=Oe(Ht({current:ne(hl),delinquent:ne(hl)})),N3=Dn([rn("processed"),rn("confirmed"),rn("finalized")]),x3=Ht({slot:St(),confirmations:re(St()),err:ii,confirmationStatus:he(N3)}),L3=mn(ne(re(x3))),C3=Oe(St()),pl=Ht({accountKey:on,writableIndexes:ne(St()),readonlyIndexes:ne(St())}),La=Ht({signatures:ne($t()),message:Ht({accountKeys:ne($t()),header:Ht({numRequiredSignatures:St(),numReadonlySignedAccounts:St(),numReadonlyUnsignedAccounts:St()}),instructions:ne(Ht({accounts:ne(St()),data:$t(),programIdIndex:St()})),recentBlockhash:$t(),addressTableLookups:he(ne(pl))})}),gl=Ht({pubkey:on,signer:ur(),writable:ur(),source:he(Dn([rn("transaction"),rn("lookupTable")]))}),ml=Ht({accountKeys:ne(gl),signatures:ne($t())}),vl=Ht({parsed:Ei(),program:$t(),programId:on}),yl=Ht({accounts:ne(on),data:$t(),programId:on}),B3=Dn([yl,vl]),P3=Dn([Ht({parsed:Ei(),program:$t(),programId:$t()}),Ht({accounts:ne($t()),data:$t(),programId:$t()})]),wl=qi(B3,P3,r=>"accounts"in r?Jt(r,yl):Jt(r,vl)),bl=Ht({signatures:ne($t()),message:Ht({accountKeys:ne(gl),instructions:ne(wl),recentBlockhash:$t(),addressTableLookups:he(re(ne(pl)))})}),rs=Ht({accountIndex:St(),mint:$t(),owner:he($t()),programId:he($t()),uiTokenAmount:Ta}),_l=Ht({writable:ne(on),readonly:ne(on)}),is=Ht({err:ii,fee:St(),innerInstructions:he(re(ne(Ht({index:St(),instructions:ne(Ht({accounts:ne(St()),data:$t(),programIdIndex:St()}))})))),preBalances:ne(St()),postBalances:ne(St()),logMessages:he(re(ne($t()))),preTokenBalances:he(re(ne(rs))),postTokenBalances:he(re(ne(rs))),loadedAddresses:he(_l),computeUnitsConsumed:he(St())}),Ca=Ht({err:ii,fee:St(),innerInstructions:he(re(ne(Ht({index:St(),instructions:ne(wl)})))),preBalances:ne(St()),postBalances:ne(St()),logMessages:he(re(ne($t()))),preTokenBalances:he(re(ne(rs))),postTokenBalances:he(re(ne(rs))),loadedAddresses:he(_l),computeUnitsConsumed:he(St())}),Ii=Dn([rn(0),rn("legacy")]),oi=Ht({pubkey:$t(),lamports:St(),postBalance:re(St()),rewardType:re($t()),commission:he(re(St()))}),M3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),transactions:ne(Ht({transaction:La,meta:re(is),version:he(Ii)})),rewards:he(ne(oi)),blockTime:re(St()),blockHeight:re(St())}))),D3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),rewards:he(ne(oi)),blockTime:re(St()),blockHeight:re(St())}))),U3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),transactions:ne(Ht({transaction:ml,meta:re(is),version:he(Ii)})),rewards:he(ne(oi)),blockTime:re(St()),blockHeight:re(St())}))),F3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),transactions:ne(Ht({transaction:bl,meta:re(Ca),version:he(Ii)})),rewards:he(ne(oi)),blockTime:re(St()),blockHeight:re(St())}))),H3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),transactions:ne(Ht({transaction:ml,meta:re(Ca),version:he(Ii)})),rewards:he(ne(oi)),blockTime:re(St()),blockHeight:re(St())}))),V3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),rewards:he(ne(oi)),blockTime:re(St()),blockHeight:re(St())}))),W3=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),transactions:ne(Ht({transaction:La,meta:re(is)})),rewards:he(ne(oi)),blockTime:re(St())}))),El=Oe(re(Ht({blockhash:$t(),previousBlockhash:$t(),parentSlot:St(),signatures:ne($t()),blockTime:re(St())}))),Ba=Oe(re(Ht({slot:St(),meta:re(is),blockTime:he(re(St())),transaction:La,version:he(Ii)}))),os=Oe(re(Ht({slot:St(),transaction:bl,meta:re(Ca),blockTime:he(re(St())),version:he(Ii)}))),z3=mn(Ht({blockhash:$t(),lastValidBlockHeight:St()})),G3=mn(ur()),K3=Ht({slot:St(),numTransactions:St(),numSlots:St(),samplePeriodSecs:St()}),j3=Oe(ne(K3)),Y3=mn(re(Ht({feeCalculator:Ht({lamportsPerSignature:St()})}))),q3=Oe($t()),$3=Oe($t()),Z3=Ht({err:ii,logs:ne($t()),signature:$t()}),X3=Ht({result:ns(Z3),subscription:St()}),J3={"solana-client":"js/1.0.0-maintenance"};class Q3{constructor(t,e){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const v={};return async S=>{const{commitment:O,config:C}=Xe(S),N=this._buildArgs([],O,void 0,C),B=ol(N);return v[B]=v[B]??(async()=>{try{const M=await this._rpcRequest("getBlockHeight",N),F=Jt(M,Oe(St()));if("error"in F)throw new ce(F.error,"failed to get block height information");return F.result}finally{delete v[B]}})(),await v[B]}})();let n,o,i,u,d,l;e&&typeof e=="string"?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,n=e.wsEndpoint,o=e.httpHeaders,i=e.fetch,u=e.fetchMiddleware,d=e.disableRetryOnRateLimit,l=e.httpAgent),this._rpcEndpoint=Dv(t),this._rpcWsEndpoint=n||Mv(t),this._rpcClient=Jv(t,o,i,u,d,l),this._rpcRequest=Qv(this._rpcClient),this._rpcBatchRequest=t3(this._rpcClient),this._rpcWebSocket=new Lv(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,void 0,o),u=await this._rpcRequest("getBalance",i),d=Jt(u,mn(St()));if("error"in d)throw new ce(d.error,`failed to get balance for ${t.toBase58()}`);return d.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then(n=>n.value).catch(n=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+n)})}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=Jt(e,Oe(re(St())));if("error"in n)throw new ce(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=Jt(t,Oe(St()));if("error"in e)throw new ce(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=Jt(t,a3);if("error"in e)throw new ce(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};typeof t=="string"?e={commitment:t}:t?e={...t,commitment:t&&t.commitment||this.commitment}:e={commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),o=Jt(n,c3);if("error"in o)throw new ce(o.error,"failed to get supply");return o.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),o=await this._rpcRequest("getTokenSupply",n),i=Jt(o,mn(Ta));if("error"in i)throw new ce(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),o=await this._rpcRequest("getTokenAccountBalance",n),i=Jt(o,mn(Ta));if("error"in i)throw new ce(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:o,config:i}=Xe(n);let u=[t.toBase58()];"mint"in e?u.push({mint:e.mint.toBase58()}):u.push({programId:e.programId.toBase58()});const d=this._buildArgs(u,o,"base64",i),l=await this._rpcRequest("getTokenAccountsByOwner",d),v=Jt(l,l3);if("error"in v)throw new ce(v.error,`failed to get token accounts owned by account ${t.toBase58()}`);return v.result}async getParsedTokenAccountsByOwner(t,e,n){let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const i=this._buildArgs(o,n,"jsonParsed"),u=await this._rpcRequest("getTokenAccountsByOwner",i),d=Jt(u,f3);if("error"in d)throw new ce(d.error,`failed to get token accounts owned by account ${t.toBase58()}`);return d.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],o=await this._rpcRequest("getLargestAccounts",n),i=Jt(o,d3);if("error"in i)throw new ce(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),o=await this._rpcRequest("getTokenLargestAccounts",n),i=Jt(o,u3);if("error"in i)throw new ce(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,"base64",o),u=await this._rpcRequest("getAccountInfo",i),d=Jt(u,mn(re(eo)));if("error"in d)throw new ce(d.error,`failed to get info about account ${t.toBase58()}`);return d.result}async getParsedAccountInfo(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",o),u=await this._rpcRequest("getAccountInfo",i),d=Jt(u,mn(re(xa)));if("error"in d)throw new ce(d.error,`failed to get info about account ${t.toBase58()}`);return d.result}async getAccountInfo(t,e){try{return(await this.getAccountInfoAndContext(t,e)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleParsedAccounts(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(v=>v.toBase58()),u=this._buildArgs([i],n,"jsonParsed",o),d=await this._rpcRequest("getMultipleAccounts",u),l=Jt(d,mn(ne(re(xa))));if("error"in l)throw new ce(l.error,`failed to get info for accounts ${i}`);return l.result}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(v=>v.toBase58()),u=this._buildArgs([i],n,"base64",o),d=await this._rpcRequest("getMultipleAccounts",u),l=Jt(d,mn(ne(re(eo))));if("error"in l)throw new ce(l.error,`failed to get info for accounts ${i}`);return l.result}async getMultipleAccountsInfo(t,e){return(await this.getMultipleAccountsInfoAndContext(t,e)).value}async getStakeActivation(t,e,n){const{commitment:o,config:i}=Xe(e),u=this._buildArgs([t.toBase58()],o,void 0,{...i,epoch:n??i?.epoch}),d=await this._rpcRequest("getStakeActivation",u),l=Jt(d,Oe(m3));if("error"in l)throw new ce(l.error,`failed to get Stake Activation ${t.toBase58()}`);return l.result}async getProgramAccounts(t,e){const{commitment:n,config:o}=Xe(e),{encoding:i,...u}=o||{},d=this._buildArgs([t.toBase58()],n,i||"base64",{...u,...u.filters?{filters:ll(u.filters)}:null}),l=await this._rpcRequest("getProgramAccounts",d),v=ne(h3),S=u.withContext===!0?Jt(l,mn(v)):Jt(l,Oe(v));if("error"in S)throw new ce(S.error,`failed to get accounts owned by program ${t.toBase58()}`);return S.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",o),u=await this._rpcRequest("getProgramAccounts",i),d=Jt(u,Oe(ne(g3)));if("error"in d)throw new ce(d.error,`failed to get accounts owned by program ${t.toBase58()}`);return d.result}async confirmTransaction(t,e){let n;if(typeof t=="string")n=t;else{const i=t;if(i.abortSignal?.aborted)return Promise.reject(i.abortSignal.reason);n=i.signature}let o;try{o=Sn.decode(n)}catch{throw new Error("signature must be base58 encoded: "+n)}return De(o.length===64,"signature has invalid length"),typeof t=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:e||this.commitment,signature:n}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:e||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise((e,n)=>{t!=null&&(t.aborted?n(t.reason):t.addEventListener("abort",()=>{n(t.reason)}))})}getTransactionConfirmationPromise({commitment:t,signature:e}){let n,o,i=!1;const u=new Promise((l,v)=>{try{n=this.onSignature(e,(O,C)=>{n=void 0;const N={context:C,value:O};l({__type:Sr.PROCESSED,response:N})},t);const S=new Promise(O=>{n==null?O():o=this._onSubscriptionStateChange(n,C=>{C==="subscribed"&&O()})});(async()=>{if(await S,i)return;const O=await this.getSignatureStatus(e);if(i||O==null)return;const{context:C,value:N}=O;if(N!=null)if(N?.err)v(N.err);else{switch(t){case"confirmed":case"single":case"singleGossip":{if(N.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(N.confirmationStatus==="processed"||N.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}i=!0,l({__type:Sr.PROCESSED,response:{context:C,value:N}})}})()}catch(S){v(S)}});return{abortConfirmation:()=>{o&&(o(),o=void 0),n!=null&&(this.removeSignatureListener(n),n=void 0)},confirmationPromise:u}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:e,lastValidBlockHeight:n,signature:o}}){let i=!1;const u=new Promise(O=>{const C=async()=>{try{return await this.getBlockHeight(t)}catch{return-1}};(async()=>{let N=await C();if(!i){for(;N<=n;)if(await ni(1e3),i||(N=await C(),i))return;O({__type:Sr.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:d,confirmationPromise:l}=this.getTransactionConfirmationPromise({commitment:t,signature:o}),v=this.getCancellationPromise(e);let S;try{const O=await Promise.race([v,l,u]);if(O.__type===Sr.PROCESSED)S=O.response;else throw new va(o)}finally{i=!0,d()}return S}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:e,minContextSlot:n,nonceAccountPubkey:o,nonceValue:i,signature:u}}){let d=!1;const l=new Promise(N=>{let B=i,M=null;const F=async()=>{try{const{context:G,value:Q}=await this.getNonceAndContext(o,{commitment:t,minContextSlot:n});return M=G.slot,Q?.nonce}catch{return B}};(async()=>{if(B=await F(),!d)for(;;){if(i!==B){N({__type:Sr.NONCE_INVALID,slotInWhichNonceDidAdvance:M});return}if(await ni(2e3),d||(B=await F(),d))return}})()}),{abortConfirmation:v,confirmationPromise:S}=this.getTransactionConfirmationPromise({commitment:t,signature:u}),O=this.getCancellationPromise(e);let C;try{const N=await Promise.race([O,S,l]);if(N.__type===Sr.PROCESSED)C=N.response;else{let B;for(;;){const M=await this.getSignatureStatus(u);if(M==null)break;if(M.context.slot<(N.slotInWhichNonceDidAdvance??n)){await ni(400);continue}B=M;break}if(B?.value){const M=t||"finalized",{confirmationStatus:F}=B.value;switch(M){case"processed":case"recent":if(F!=="processed"&&F!=="confirmed"&&F!=="finalized")throw new Ri(u);break;case"confirmed":case"single":case"singleGossip":if(F!=="confirmed"&&F!=="finalized")throw new Ri(u);break;case"finalized":case"max":case"root":if(F!=="finalized")throw new Ri(u);break;default:}C={context:B.context,value:{err:B.value.err}}}else throw new Ri(u)}}finally{d=!0,v()}return C}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:e}){let n;const o=new Promise(l=>{let v=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{v=this._confirmTransactionInitialTimeout||3e4;break}}n=setTimeout(()=>l({__type:Sr.TIMED_OUT,timeoutMs:v}),v)}),{abortConfirmation:i,confirmationPromise:u}=this.getTransactionConfirmationPromise({commitment:t,signature:e});let d;try{const l=await Promise.race([u,o]);if(l.__type===Sr.PROCESSED)d=l.response;else throw new ya(e,l.timeoutMs/1e3)}finally{clearTimeout(n),i()}return d}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=Jt(t,Oe(ne(O3)));if("error"in e)throw new ce(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),o=Jt(n,T3);if("error"in o)throw new ce(o.error,"failed to get vote accounts");return o.result}async getSlot(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",o),u=Jt(i,Oe(St()));if("error"in u)throw new ce(u.error,"failed to get slot");return u.result}async getSlotLeader(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",o),u=Jt(i,Oe($t()));if("error"in u)throw new ce(u.error,"failed to get slot leader");return u.result}async getSlotLeaders(t,e){const n=[t,e],o=await this._rpcRequest("getSlotLeaders",n),i=Jt(o,Oe(ne(on)));if("error"in i)throw new ce(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:o}=await this.getSignatureStatuses([t],e);De(o.length===1);const i=o[0];return{context:n,value:i}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const o=await this._rpcRequest("getSignatureStatuses",n),i=Jt(o,L3);if("error"in i)throw new ce(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",o),u=Jt(i,Oe(St()));if("error"in u)throw new ce(u.error,"failed to get transaction count");return u.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),o=Jt(n,e3);if("error"in o)throw new ce(o.error,"failed to get inflation");return o.result}async getInflationReward(t,e,n){const{commitment:o,config:i}=Xe(n),u=this._buildArgs([t.map(v=>v.toBase58())],o,void 0,{...i,epoch:e??i?.epoch}),d=await this._rpcRequest("getInflationReward",u),l=Jt(d,Hv);if("error"in l)throw new ce(l.error,"failed to get inflation reward");return l.result}async getInflationRate(){const t=await this._rpcRequest("getInflationRate",[]),e=Jt(t,n3);if("error"in e)throw new ce(e.error,"failed to get inflation rate");return e.result}async getEpochInfo(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",o),u=Jt(i,i3);if("error"in u)throw new ce(u.error,"failed to get epoch info");return u.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=Jt(t,o3);if("error"in e)throw new ce(e.error,"failed to get epoch schedule");const n=e.result;return new sl(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=Jt(t,s3);if("error"in e)throw new ce(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),o=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=Jt(o,C3);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const{context:e,value:{blockhash:n}}=await this.getLatestBlockhashAndContext(t);return{context:e,value:{blockhash:n,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=Jt(e,j3);if("error"in n)throw new ce(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),o=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=Jt(o,Y3);if("error"in i)throw new ce(i.error,"failed to get fee calculator");const{context:u,value:d}=i.result;return{context:u,value:d!==null?d.feeCalculator:null}}async getFeeForMessage(t,e){const n=ke(t.serialize()).toString("base64"),o=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",o),u=Jt(i,mn(re(St())));if("error"in u)throw new ce(u.error,"failed to get fee for message");if(u.result===null)throw new Error("invalid blockhash");return u.result}async getRecentPrioritizationFees(t){const e=t?.lockedWritableAccounts?.map(u=>u.toBase58()),n=e?.length?[e]:[],o=await this._rpcRequest("getRecentPrioritizationFees",n),i=Jt(o,r3);if("error"in i)throw new ce(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",o),u=Jt(i,z3);if("error"in u)throw new ce(u.error,"failed to get latest blockhash");return u.result}async isBlockhashValid(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t],n,void 0,o),u=await this._rpcRequest("isBlockhashValid",i),d=Jt(u,G3);if("error"in d)throw new ce(d.error,"failed to determine if the blockhash `"+t+"`is valid");return d.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=Jt(t,Oe(qv));if("error"in e)throw new ce(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=Jt(t,Oe($t()));if("error"in e)throw new ce(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,o),u=await this._rpcRequest("getBlock",i);try{switch(o?.transactionDetails){case"accounts":{const d=Jt(u,U3);if("error"in d)throw d.error;return d.result}case"none":{const d=Jt(u,D3);if("error"in d)throw d.error;return d.result}default:{const d=Jt(u,M3);if("error"in d)throw d.error;const{result:l}=d;return l?{...l,transactions:l.transactions.map(({transaction:v,meta:S,version:O})=>({meta:S,transaction:{...v,message:Oa(O,v.message)},version:O}))}:null}}}catch(d){throw new ce(d,"failed to get confirmed block")}}async getParsedBlock(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",o),u=await this._rpcRequest("getBlock",i);try{switch(o?.transactionDetails){case"accounts":{const d=Jt(u,H3);if("error"in d)throw d.error;return d.result}case"none":{const d=Jt(u,V3);if("error"in d)throw d.error;return d.result}default:{const d=Jt(u,F3);if("error"in d)throw d.error;return d.result}}}catch(d){throw new ce(d,"failed to get block")}}async getBlockProduction(t){let e,n;if(typeof t=="string")n=t;else if(t){const{commitment:d,...l}=t;n=d,e=l}const o=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",o),u=Jt(i,Xv);if("error"in u)throw new ce(u.error,"failed to get block production information");return u.result}async getTransaction(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,o),u=await this._rpcRequest("getTransaction",i),d=Jt(u,Ba);if("error"in d)throw new ce(d.error,"failed to get transaction");const l=d.result;return l&&{...l,transaction:{...l.transaction,message:Oa(l.version,l.transaction.message)}}}async getParsedTransaction(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",o),u=await this._rpcRequest("getTransaction",i),d=Jt(u,os);if("error"in d)throw new ce(d.error,"failed to get transaction");return d.result}async getParsedTransactions(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(l=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([l],n,"jsonParsed",o)}));return(await this._rpcBatchRequest(i)).map(l=>{const v=Jt(l,os);if("error"in v)throw new ce(v.error,"failed to get transactions");return v.result})}async getTransactions(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(l=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([l],n,void 0,o)}));return(await this._rpcBatchRequest(i)).map(l=>{const v=Jt(l,Ba);if("error"in v)throw new ce(v.error,"failed to get transactions");const S=v.result;return S&&{...S,transaction:{...S.transaction,message:Oa(S.version,S.transaction.message)}}})}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),o=await this._rpcRequest("getBlock",n),i=Jt(o,W3);if("error"in i)throw new ce(i.error,"failed to get confirmed block");const u=i.result;if(!u)throw new Error("Confirmed block "+t+" not found");const d={...u,transactions:u.transactions.map(({transaction:l,meta:v})=>{const S=new Qn(l.message);return{meta:v,transaction:{...l,message:S}}})};return{...d,transactions:d.transactions.map(({transaction:l,meta:v})=>({meta:v,transaction:He.populate(l.message,l.signatures)}))}}async getBlocks(t,e,n){const o=this._buildArgsAtLeastConfirmed(e!==void 0?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",o),u=Jt(i,Oe(ne(St())));if("error"in u)throw new ce(u.error,"failed to get blocks");return u.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",n),i=Jt(o,El);if("error"in i)throw new ce(i.error,"failed to get block");const u=i.result;if(!u)throw new Error("Block "+t+" not found");return u}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",n),i=Jt(o,El);if("error"in i)throw new ce(i.error,"failed to get confirmed block");const u=i.result;if(!u)throw new Error("Confirmed block "+t+" not found");return u}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),o=await this._rpcRequest("getTransaction",n),i=Jt(o,Ba);if("error"in i)throw new ce(i.error,"failed to get transaction");const u=i.result;if(!u)return u;const d=new Qn(u.transaction.message),l=u.transaction.signatures;return{...u,transaction:He.populate(d,l)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),o=await this._rpcRequest("getTransaction",n),i=Jt(o,os);if("error"in i)throw new ce(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map(u=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([u],e,"jsonParsed")}));return(await this._rpcBatchRequest(n)).map(u=>{const d=Jt(u,os);if("error"in d)throw new ce(d.error,"failed to get confirmed transactions");return d.result})}async getConfirmedSignaturesForAddress(t,e,n){let o={},i=await this.getFirstAvailableBlock();for(;!("until"in o)&&(e--,!(e<=0||e<i));)try{const l=await this.getConfirmedBlockSignatures(e,"finalized");l.signatures.length>0&&(o.until=l.signatures[l.signatures.length-1].toString())}catch(l){if(l instanceof Error&&l.message.includes("skipped"))continue;throw l}let u=await this.getSlot("finalized");for(;!("before"in o)&&(n++,!(n>u));)try{const l=await this.getConfirmedBlockSignatures(n);l.signatures.length>0&&(o.before=l.signatures[l.signatures.length-1].toString())}catch(l){if(l instanceof Error&&l.message.includes("skipped"))continue;throw l}return(await this.getConfirmedSignaturesForAddress2(t,o)).map(l=>l.signature)}async getConfirmedSignaturesForAddress2(t,e,n){const o=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",o),u=Jt(i,v3);if("error"in u)throw new ce(u.error,"failed to get confirmed signatures for address");return u.result}async getSignaturesForAddress(t,e,n){const o=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",o),u=Jt(i,y3);if("error"in u)throw new ce(u.error,"failed to get signatures for address");return u.result}async getAddressLookupTable(t,e){const{context:n,value:o}=await this.getAccountInfoAndContext(t,e);let i=null;return o!==null&&(i=new Ia({key:t,state:Ia.deserialize(o.data)})),{context:n,value:i}}async getNonceAndContext(t,e){const{context:n,value:o}=await this.getAccountInfoAndContext(t,e);let i=null;return o!==null&&(i=es.fromAccountData(o.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then(n=>n.value).catch(n=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+n)})}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),o=Jt(n,q3);if("error"in o)throw new ce(o.error,`airdrop to ${t.toBase58()} failed`);return o.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await ni(100);const n=Date.now()-this._blockhashInfo.lastFetch>=ul;if(this._blockhashInfo.latestBlockhash!==null&&!n)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let o=0;o<50;o++){const i=await this.getLatestBlockhash("finalized");if(n!==i.blockhash)return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},i;await ni(el/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",o),u=Jt(i,mn(St()));if("error"in u)throw new ce(u.error,"failed to get stake minimum delegation");return u.result}async simulateTransaction(t,e,n){if("message"in t){const M=t.serialize(),F=me.Buffer.from(M).toString("base64");if(Array.isArray(e)||n!==void 0)throw new Error("Invalid arguments");const G=e||{};G.encoding="base64","commitment"in G||(G.commitment=this.commitment),e&&typeof e=="object"&&"innerInstructions"in e&&(G.innerInstructions=e.innerInstructions);const Q=[F,G],et=await this._rpcRequest("simulateTransaction",Q),ct=Jt(et,dl);if("error"in ct)throw new Error("failed to simulate transaction: "+ct.error.message);return ct.result}let o;if(t instanceof He){let B=t;o=new He,o.feePayer=B.feePayer,o.instructions=t.instructions,o.nonceInfo=B.nonceInfo,o.signatures=B.signatures}else o=He.populate(t),o._message=o._json=void 0;if(e!==void 0&&!Array.isArray(e))throw new Error("Invalid arguments");const i=e;if(o.nonceInfo&&i)o.sign(...i);else{let B=this._disableBlockhashCaching;for(;;){const M=await this._blockhashWithExpiryBlockHeight(B);if(o.lastValidBlockHeight=M.lastValidBlockHeight,o.recentBlockhash=M.blockhash,!i)break;if(o.sign(...i),!o.signature)throw new Error("!signature");const F=o.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(F)&&!this._blockhashInfo.transactionSignatures.includes(F)){this._blockhashInfo.simulatedSignatures.push(F);break}else B=!0}}const u=o._compile(),d=u.serialize(),v=o._serialize(d).toString("base64"),S={encoding:"base64",commitment:this.commitment};if(n){const B=(Array.isArray(n)?n:u.nonProgramIds()).map(M=>M.toBase58());S.accounts={encoding:"base64",addresses:B}}i&&(S.sigVerify=!0),e&&typeof e=="object"&&"innerInstructions"in e&&(S.innerInstructions=e.innerInstructions);const O=[v,S],C=await this._rpcRequest("simulateTransaction",O),N=Jt(C,dl);if("error"in N){let B;if("data"in N.error&&(B=N.error.data.logs,B&&Array.isArray(B))){const M=`
17
- `,F=M+B.join(M);console.error(N.error.message,F)}throw new Qi({action:"simulate",signature:"",transactionMessage:N.error.message,logs:B})}return N.result}async sendTransaction(t,e,n){if("version"in t){if(e&&Array.isArray(e))throw new Error("Invalid arguments");const u=t.serialize();return await this.sendRawTransaction(u,e)}if(e===void 0||!Array.isArray(e))throw new Error("Invalid arguments");const o=e;if(t.nonceInfo)t.sign(...o);else{let u=this._disableBlockhashCaching;for(;;){const d=await this._blockhashWithExpiryBlockHeight(u);if(t.lastValidBlockHeight=d.lastValidBlockHeight,t.recentBlockhash=d.blockhash,t.sign(...o),!t.signature)throw new Error("!signature");const l=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(l))u=!0;else{this._blockhashInfo.transactionSignatures.push(l);break}}}const i=t.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(t,e){const n=ke(t).toString("base64");return await this.sendEncodedTransaction(n,e)}async sendEncodedTransaction(t,e){const n={encoding:"base64"},o=e&&e.skipPreflight,i=o===!0?"processed":e&&e.preflightCommitment||this.commitment;e&&e.maxRetries!=null&&(n.maxRetries=e.maxRetries),e&&e.minContextSlot!=null&&(n.minContextSlot=e.minContextSlot),o&&(n.skipPreflight=o),i&&(n.preflightCommitment=i);const u=[t,n],d=await this._rpcRequest("sendTransaction",u),l=Jt(d,$3);if("error"in l){let v;throw"data"in l.error&&(v=l.error.data.logs),new Qi({action:o?"send":"simulate",signature:"",transactionMessage:l.error.message,logs:v})}return l.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([e,n])=>{this._setSubscription(e,{...n,state:"pending"})})}_setSubscription(t,e){const n=this._subscriptionsByHash[t]?.state;if(this._subscriptionsByHash[t]=e,n!==e.state){const o=this._subscriptionStateChangeCallbacksByHash[t];o&&o.forEach(i=>{try{i(e.state)}catch{}})}}_onSubscriptionStateChange(t,e){const n=this._subscriptionHashByClientSubscriptionId[t];if(n==null)return()=>{};const o=this._subscriptionStateChangeCallbacksByHash[n]||=new Set;return o.add(e),()=>{o.delete(e),o.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const o=this._subscriptionsByHash[n];if(o!==void 0)switch(o.state){case"pending":case"unsubscribed":if(o.callbacks.size===0){delete this._subscriptionsByHash[n],o.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[o.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:u}=o;try{this._setSubscription(n,{...o,state:"subscribing"});const d=await this._rpcWebSocket.call(u,i);this._setSubscription(n,{...o,serverSubscriptionId:d,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[d]=o.callbacks,await this._updateSubscriptions()}catch(d){if(console.error(`Received ${d instanceof Error?"":"JSON-RPC "}error calling \`${u}\``,{args:i,error:d}),!e())return;this._setSubscription(n,{...o,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":o.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:u}=o;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(n,{...o,state:"unsubscribing"}),this._setSubscription(n,{...o,state:"unsubscribing"});try{await this._rpcWebSocket.call(u,[i])}catch(d){if(d instanceof Error&&console.error(`${u} error:`,d.message),!e())return;this._setSubscription(n,{...o,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...o,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];n!==void 0&&n.forEach(o=>{try{o(...e)}catch(i){console.error(i)}})}_wsOnAccountNotification(t){const{result:e,subscription:n}=Jt(t,w3);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,o=ol([t.method,e]),i=this._subscriptionsByHash[o];return i===void 0?this._subscriptionsByHash[o]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[n]=o,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const u=this._subscriptionsByHash[o];De(u!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),u.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const{commitment:o,config:i}=Xe(n),u=this._buildArgs([t.toBase58()],o||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},u)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=Jt(t,_3);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,o){const{commitment:i,config:u}=Xe(n),d=this._buildArgs([t.toBase58()],i||this._commitment||"finalized","base64",u||(o?{filters:ll(o)}:void 0));return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},d)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const o=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},o)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=Jt(t,X3);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=Jt(t,R3);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=Jt(t,A3);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,o){const i=e||this._commitment;if(i||n||o){let u={};n&&(u.encoding=n),i&&(u.commitment=i),o&&(u=Object.assign(u,o)),t.push(u)}return t}_buildArgsAtLeastConfirmed(t,e,n,o){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,o)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=Jt(t,I3);e.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,e.value==="receivedSignature"?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const o=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(u,d)=>{if(u.type==="status"){e(u.result,d);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return i}onSignatureWithOptions(t,e,n){const{commitment:o,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},u=this._buildArgs([t],o,void 0,i),d=this._makeSubscription({callback:(l,v)=>{e(l,v);try{this.removeSignatureListener(d)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},u);return d}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=Jt(t,k3);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class ki{constructor(t){this._keypair=void 0,this._keypair=t??qu()}static generate(){return new ki(qu())}static fromSecretKey(t,e){if(t.byteLength!==64)throw new Error("bad secret key size");const n=t.slice(32,64);if(!e||!e.skipValidation){const o=t.slice(0,32),i=Zo(o);for(let u=0;u<32;u++)if(n[u]!==i[u])throw new Error("provided secretKey is invalid")}return new ki({publicKey:n,secretKey:t})}static fromSeed(t){const e=Zo(t),n=new Uint8Array(64);return n.set(t),n.set(e,32),new ki({publicKey:e,secretKey:n})}get publicKey(){return new Xt(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const Ar=Object.freeze({CreateLookupTable:{index:0,layout:st.struct([st.u32("instruction"),Ai("recentSlot"),st.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:st.struct([st.u32("instruction")])},ExtendLookupTable:{index:2,layout:st.struct([st.u32("instruction"),Ai(),st.seq(Ne(),st.offset(st.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:st.struct([st.u32("instruction")])},CloseLookupTable:{index:4,layout:st.struct([st.u32("instruction")])}});class ty{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(Ar))if(u.index==n){o=i;break}if(!o)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return o}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:e}=We(Ar.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(e)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:e}=We(Ar.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:e.map(n=>new Xt(n))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Pa.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}class Pa{constructor(){}static createLookupTable(t){const[e,n]=Xt.findProgramAddressSync([t.authority.toBuffer(),_u().encode(t.recentSlot)],this.programId),o=Ar.CreateLookupTable,i=Be(o,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:An.programId,isSigner:!1,isWritable:!1}];return[new qe({programId:this.programId,keys:u,data:i}),e]}static freezeLookupTable(t){const e=Ar.FreezeLookupTable,n=Be(e),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new qe({programId:this.programId,keys:o,data:n})}static extendLookupTable(t){const e=Ar.ExtendLookupTable,n=Be(e,{addresses:t.addresses.map(i=>i.toBytes())}),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&o.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:An.programId,isSigner:!1,isWritable:!1}),new qe({programId:this.programId,keys:o,data:n})}static deactivateLookupTable(t){const e=Ar.DeactivateLookupTable,n=Be(e),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new qe({programId:this.programId,keys:o,data:n})}static closeLookupTable(t){const e=Ar.CloseLookupTable,n=Be(e),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new qe({programId:this.programId,keys:o,data:n})}}Pa.programId=new Xt("AddressLookupTab1e1111111111111111111111111");class ey{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u8("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(hr))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return o}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=We(hr.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=We(hr.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=We(hr.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=We(hr.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(Ma.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const hr=Object.freeze({RequestUnits:{index:0,layout:st.struct([st.u8("instruction"),st.u32("units"),st.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:st.struct([st.u8("instruction"),st.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:st.struct([st.u8("instruction"),st.u32("units")])},SetComputeUnitPrice:{index:3,layout:st.struct([st.u8("instruction"),Ai("microLamports")])}});class Ma{constructor(){}static requestUnits(t){const e=hr.RequestUnits,n=Be(e,t);return new qe({keys:[],programId:this.programId,data:n})}static requestHeapFrame(t){const e=hr.RequestHeapFrame,n=Be(e,t);return new qe({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(t){const e=hr.SetComputeUnitLimit,n=Be(e,t);return new qe({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(t){const e=hr.SetComputeUnitPrice,n=Be(e,{microLamports:BigInt(t.microLamports)});return new qe({keys:[],programId:this.programId,data:n})}}Ma.programId=new Xt("ComputeBudget111111111111111111111111111111");const Rl=64,Sl=32,Al=64,Il=st.struct([st.u8("numSignatures"),st.u8("padding"),st.u16("signatureOffset"),st.u16("signatureInstructionIndex"),st.u16("publicKeyOffset"),st.u16("publicKeyInstructionIndex"),st.u16("messageDataOffset"),st.u16("messageDataSize"),st.u16("messageInstructionIndex")]);class ss{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:o,instructionIndex:i}=t;De(e.length===Sl,`Public Key must be ${Sl} bytes but received ${e.length} bytes`),De(o.length===Al,`Signature must be ${Al} bytes but received ${o.length} bytes`);const u=Il.span,d=u+e.length,l=d+o.length,v=1,S=me.Buffer.alloc(l+n.length),O=i??65535;return Il.encode({numSignatures:v,padding:0,signatureOffset:d,signatureInstructionIndex:O,publicKeyOffset:u,publicKeyInstructionIndex:O,messageDataOffset:l,messageDataSize:n.length,messageInstructionIndex:O},S),S.fill(e,u),S.fill(o,d),S.fill(n,l),new qe({keys:[],programId:ss.programId,data:S})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:o}=t;De(e.length===Rl,`Private key must be ${Rl} bytes but received ${e.length} bytes`);try{const i=ki.fromSecretKey(e),u=i.publicKey.toBytes(),d=ga(n,i.secretKey);return this.createInstructionWithPublicKey({publicKey:u,message:n,signature:d,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}ss.programId=new Xt("Ed25519SigVerify111111111111111111111111111");const ny=(r,t)=>{const e=$o.sign(r,t);return[e.toCompactRawBytes(),e.recovery]};$o.utils.isValidPrivateKey;const ry=$o.getPublicKey,kl=32,Da=20,Ol=64,iy=11,Ua=st.struct([st.u8("numSignatures"),st.u16("signatureOffset"),st.u8("signatureInstructionIndex"),st.u16("ethAddressOffset"),st.u8("ethAddressInstructionIndex"),st.u16("messageDataOffset"),st.u16("messageDataSize"),st.u8("messageInstructionIndex"),st.blob(20,"ethAddress"),st.blob(64,"signature"),st.u8("recoveryId")]);class Oi{constructor(){}static publicKeyToEthAddress(t){De(t.length===Ol,`Public key must be ${Ol} bytes but received ${t.length} bytes`);try{return me.Buffer.from(Vu(ke(t))).slice(-Da)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:o,recoveryId:i,instructionIndex:u}=t;return Oi.createInstructionWithEthAddress({ethAddress:Oi.publicKeyToEthAddress(e),message:n,signature:o,recoveryId:i,instructionIndex:u})}static createInstructionWithEthAddress(t){const{ethAddress:e,message:n,signature:o,recoveryId:i,instructionIndex:u=0}=t;let d;typeof e=="string"?e.startsWith("0x")?d=me.Buffer.from(e.substr(2),"hex"):d=me.Buffer.from(e,"hex"):d=e,De(d.length===Da,`Address must be ${Da} bytes but received ${d.length} bytes`);const l=1+iy,v=l,S=l+d.length,O=S+o.length+1,C=1,N=me.Buffer.alloc(Ua.span+n.length);return Ua.encode({numSignatures:C,signatureOffset:S,signatureInstructionIndex:u,ethAddressOffset:v,ethAddressInstructionIndex:u,messageDataOffset:O,messageDataSize:n.length,messageInstructionIndex:u,signature:ke(o),ethAddress:ke(d),recoveryId:i},N),N.fill(ke(n),Ua.span),new qe({keys:[],programId:Oi.programId,data:N})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:o}=t;De(e.length===kl,`Private key must be ${kl} bytes but received ${e.length} bytes`);try{const i=ke(e),u=ry(i,!1).slice(1),d=me.Buffer.from(Vu(ke(n))),[l,v]=ny(d,i);return this.createInstructionWithPublicKey({publicKey:u,message:n,signature:l,recoveryId:v,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Oi.programId=new Xt("KeccakSecp256k11111111111111111111111111111");var Tl;const Nl=new Xt("StakeConfig11111111111111111111111111111111");class xl{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class no{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Tl=no,no.default=new Tl(0,0,Xt.default);class oy{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(In))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a StakeInstruction");return o}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=We(In.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new xl(new Xt(e.staker),new Xt(e.withdrawer)),lockup:new no(n.unixTimestamp,n.epoch,new Xt(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),We(In.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=We(In.Authorize,t.data),o={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Xt(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:o,authorityOwner:i}=We(In.AuthorizeWithSeed,t.data),u={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:o,authorityOwner:new Xt(i),newAuthorizedPubkey:new Xt(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(u.custodianPubkey=t.keys[3].pubkey),u}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=We(In.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),We(In.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=We(In.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),We(In.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(as.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const In=Object.freeze({Initialize:{index:0,layout:st.struct([st.u32("instruction"),dv(),hv()])},Authorize:{index:1,layout:st.struct([st.u32("instruction"),Ne("newAuthorized"),st.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:st.struct([st.u32("instruction")])},Split:{index:3,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},Withdraw:{index:4,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},Deactivate:{index:5,layout:st.struct([st.u32("instruction")])},Merge:{index:7,layout:st.struct([st.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:st.struct([st.u32("instruction"),Ne("newAuthorized"),st.u32("stakeAuthorizationType"),ti("authoritySeed"),Ne("authorityOwner")])}}),sy=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class as{constructor(){}static initialize(t){const{stakePubkey:e,authorized:n,lockup:o}=t,i=o||no.default,u=In.Initialize,d=Be(u,{authorized:{staker:ke(n.staker.toBuffer()),withdrawer:ke(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:ke(i.custodian.toBuffer())}}),l={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Si,isSigner:!1,isWritable:!1}],programId:this.programId,data:d};return new qe(l)}static createAccountWithSeed(t){const e=new He;e.add(An.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:o,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:o,lockup:i}))}static createAccount(t){const e=new He;e.add(An.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:o,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:o,lockup:i}))}static delegate(t){const{stakePubkey:e,authorizedPubkey:n,votePubkey:o}=t,i=In.Delegate,u=Be(i);return new He().add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ts,isSigner:!1,isWritable:!1},{pubkey:Nl,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static authorize(t){const{stakePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:o,stakeAuthorizationType:i,custodianPubkey:u}=t,d=In.Authorize,l=Be(d,{newAuthorized:ke(o.toBuffer()),stakeAuthorizationType:i.index}),v=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return u&&v.push({pubkey:u,isSigner:!0,isWritable:!1}),new He().add({keys:v,programId:this.programId,data:l})}static authorizeWithSeed(t){const{stakePubkey:e,authorityBase:n,authoritySeed:o,authorityOwner:i,newAuthorizedPubkey:u,stakeAuthorizationType:d,custodianPubkey:l}=t,v=In.AuthorizeWithSeed,S=Be(v,{newAuthorized:ke(u.toBuffer()),stakeAuthorizationType:d.index,authoritySeed:o,authorityOwner:ke(i.toBuffer())}),O=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1}];return l&&O.push({pubkey:l,isSigner:!0,isWritable:!1}),new He().add({keys:O,programId:this.programId,data:S})}static splitInstruction(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:o,lamports:i}=t,u=In.Split,d=Be(u,{lamports:i});return new qe({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:d})}static split(t,e){const n=new He;return n.add(An.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:e,space:this.space,programId:this.programId})),n.add(this.splitInstruction(t))}static splitWithSeed(t,e){const{stakePubkey:n,authorizedPubkey:o,splitStakePubkey:i,basePubkey:u,seed:d,lamports:l}=t,v=new He;return v.add(An.allocate({accountPubkey:i,basePubkey:u,seed:d,space:this.space,programId:this.programId})),e&&e>0&&v.add(An.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:e})),v.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:o,splitStakePubkey:i,lamports:l}))}static merge(t){const{stakePubkey:e,sourceStakePubKey:n,authorizedPubkey:o}=t,i=In.Merge,u=Be(i);return new He().add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ts,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static withdraw(t){const{stakePubkey:e,authorizedPubkey:n,toPubkey:o,lamports:i,custodianPubkey:u}=t,d=In.Withdraw,l=Be(d,{lamports:i}),v=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ts,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return u&&v.push({pubkey:u,isSigner:!0,isWritable:!1}),new He().add({keys:v,programId:this.programId,data:l})}static deactivate(t){const{stakePubkey:e,authorizedPubkey:n}=t,o=In.Deactivate,i=Be(o);return new He().add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}as.programId=new Xt("Stake11111111111111111111111111111111111111"),as.space=200;class Ll{constructor(t,e,n,o){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=e,this.authorizedWithdrawer=n,this.commission=o}}class ay{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(pr))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a VoteInstruction");return o}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:e}=We(pr.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new Ll(new Xt(e.nodePubkey),new Xt(e.authorizedVoter),new Xt(e.authorizedWithdrawer),e.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,voteAuthorizationType:n}=We(pr.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Xt(e),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:e,currentAuthorityDerivedKeySeed:n,newAuthorized:o,voteAuthorizationType:i}}=We(pr.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new Xt(e),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new Xt(o),voteAuthorizationType:{index:i},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=We(pr.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:e,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Ti.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const pr=Object.freeze({InitializeAccount:{index:0,layout:st.struct([st.u32("instruction"),pv()])},Authorize:{index:1,layout:st.struct([st.u32("instruction"),Ne("newAuthorized"),st.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:st.struct([st.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:st.struct([st.u32("instruction"),gv()])}}),cy=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Ti{constructor(){}static initializeAccount(t){const{votePubkey:e,nodePubkey:n,voteInit:o}=t,i=pr.InitializeAccount,u=Be(i,{voteInit:{nodePubkey:ke(o.nodePubkey.toBuffer()),authorizedVoter:ke(o.authorizedVoter.toBuffer()),authorizedWithdrawer:ke(o.authorizedWithdrawer.toBuffer()),commission:o.commission}}),d={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Si,isSigner:!1,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u};return new qe(d)}static createAccount(t){const e=new He;return e.add(An.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:o,voteAuthorizationType:i}=t,u=pr.Authorize,d=Be(u,{newAuthorized:ke(o.toBuffer()),voteAuthorizationType:i.index}),l=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new He().add({keys:l,programId:this.programId,data:d})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:e,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:o,newAuthorizedPubkey:i,voteAuthorizationType:u,votePubkey:d}=t,l=pr.AuthorizeWithSeed,v=Be(l,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:ke(n.toBuffer()),currentAuthorityDerivedKeySeed:o,newAuthorized:ke(i.toBuffer()),voteAuthorizationType:u.index}}),S=[{pubkey:d,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return new He().add({keys:S,programId:this.programId,data:v})}static withdraw(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,lamports:o,toPubkey:i}=t,u=pr.Withdraw,d=Be(u,{lamports:o}),l=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new He().add({keys:l,programId:this.programId,data:d})}static safeWithdraw(t,e,n){if(t.lamports>e-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return Ti.withdraw(t)}static updateValidatorIdentity(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,nodePubkey:o}=t,i=pr.UpdateValidatorIdentity,u=Be(i),d=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new He().add({keys:d,programId:this.programId,data:u})}}Ti.programId=new Xt("Vote111111111111111111111111111111111111111"),Ti.space=3762;const Cl=new Xt("Va1idator1nfo111111111111111111111111111111"),uy=Ht({name:$t(),website:he($t()),details:he($t()),iconUrl:he($t()),keybaseUsername:he($t())});class Fa{constructor(t,e){this.key=void 0,this.info=void 0,this.key=t,this.info=e}static fromConfigData(t){let e=[...t];if(Hn(e)!==2)return null;const o=[];for(let i=0;i<2;i++){const u=new Xt(Vn(e,0,lr)),d=fr(e)===1;o.push({publicKey:u,isSigner:d})}if(o[0].publicKey.equals(Cl)&&o[1].isSigner){const i=ti().decode(me.Buffer.from(e)),u=JSON.parse(i);return Ru(u,uy),new Fa(o[1].publicKey,u)}return null}}const ly=new Xt("Vote111111111111111111111111111111111111111"),fy=st.struct([Ne("nodePubkey"),Ne("authorizedWithdrawer"),st.u8("commission"),st.nu64(),st.seq(st.struct([st.nu64("slot"),st.u32("confirmationCount")]),st.offset(st.u32(),-8),"votes"),st.u8("rootSlotValid"),st.nu64("rootSlot"),st.nu64(),st.seq(st.struct([st.nu64("epoch"),Ne("authorizedVoter")]),st.offset(st.u32(),-8),"authorizedVoters"),st.struct([st.seq(st.struct([Ne("authorizedPubkey"),st.nu64("epochOfLastAuthorizedSwitch"),st.nu64("targetEpoch")]),32,"buf"),st.nu64("idx"),st.u8("isEmpty")],"priorVoters"),st.nu64(),st.seq(st.struct([st.nu64("epoch"),st.nu64("credits"),st.nu64("prevCredits")]),st.offset(st.u32(),-8),"epochCredits"),st.struct([st.nu64("slot"),st.nu64("timestamp")],"lastTimestamp")]);class Ha{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const n=fy.decode(ke(t),4);let o=n.rootSlot;return n.rootSlotValid||(o=null),new Ha({nodePubkey:new Xt(n.nodePubkey),authorizedWithdrawer:new Xt(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:o,authorizedVoters:n.authorizedVoters.map(dy),priorVoters:hy(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function dy({authorizedVoter:r,epoch:t}){return{epoch:t,authorizedVoter:new Xt(r)}}function Bl({authorizedPubkey:r,epochOfLastAuthorizedSwitch:t,targetEpoch:e}){return{authorizedPubkey:new Xt(r),epochOfLastAuthorizedSwitch:t,targetEpoch:e}}function hy({buf:r,idx:t,isEmpty:e}){return e?[]:[...r.slice(t+1).map(Bl),...r.slice(0,t).map(Bl)]}const Pl={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function py(r,t){const e=t===!1?"http":"https";if(!r)return Pl[e].devnet;const n=Pl[e][r];if(!n)throw new Error(`Unknown ${e} cluster: ${r}`);return n}async function gy(r,t,e,n){let o,i;e&&Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")||e&&Object.prototype.hasOwnProperty.call(e,"nonceValue")?(o=e,i=n):i=e;const u=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},d=await r.sendRawTransaction(t,u),l=i&&i.commitment,S=(await(o?r.confirmTransaction(o,l):r.confirmTransaction(d,l))).value;if(S.err)throw d!=null?new Qi({action:u?.skipPreflight?"send":"simulate",signature:d,transactionMessage:`Status: (${JSON.stringify(S)})`}):new Error(`Raw transaction ${d} failed (${JSON.stringify(S)})`);return d}const cs=Object.freeze(Object.defineProperty({__proto__:null,Account:uv,AddressLookupTableAccount:Ia,AddressLookupTableInstruction:ty,AddressLookupTableProgram:Pa,Authorized:xl,BLOCKHASH_CACHE_TIMEOUT_MS:ul,BPF_LOADER_DEPRECATED_PROGRAM_ID:lv,BPF_LOADER_PROGRAM_ID:Av,BpfLoader:Iv,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:hr,ComputeBudgetInstruction:ey,ComputeBudgetProgram:Ma,Connection:Q3,Ed25519Program:ss,Enum:av,EpochSchedule:sl,FeeCalculatorLayout:nl,Keypair:ki,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Ar,Loader:ri,Lockup:no,MAX_SEED_LENGTH:Xu,Message:Qn,MessageAccountKeys:Ji,MessageV0:ei,NONCE_ACCOUNT_LENGTH:Ra,NonceAccount:es,PACKET_DATA_SIZE:Pr,PUBLIC_KEY_LENGTH:lr,PublicKey:Xt,SIGNATURE_LENGTH_IN_BYTES:Xi,SOLANA_SCHEMA:Zi,STAKE_CONFIG_ID:Nl,STAKE_INSTRUCTION_LAYOUTS:In,SYSTEM_INSTRUCTION_LAYOUTS:Ze,SYSVAR_CLOCK_PUBKEY:dr,SYSVAR_EPOCH_SCHEDULE_PUBKEY:vv,SYSVAR_INSTRUCTIONS_PUBKEY:yv,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:Qo,SYSVAR_RENT_PUBKEY:Si,SYSVAR_REWARDS_PUBKEY:wv,SYSVAR_SLOT_HASHES_PUBKEY:bv,SYSVAR_SLOT_HISTORY_PUBKEY:_v,SYSVAR_STAKE_HISTORY_PUBKEY:ts,Secp256k1Program:Oi,SendTransactionError:Qi,SolanaJSONRPCError:ce,SolanaJSONRPCErrorCode:Ev,StakeAuthorizationLayout:sy,StakeInstruction:oy,StakeProgram:as,Struct:ma,SystemInstruction:Rv,SystemProgram:An,Transaction:He,TransactionExpiredBlockheightExceededError:va,TransactionExpiredNonceInvalidError:Ri,TransactionExpiredTimeoutError:ya,TransactionInstruction:qe,TransactionMessage:ba,TransactionStatus:Sr,VALIDATOR_INFO_KEY:Cl,VERSION_PREFIX_MASK:Xo,VOTE_PROGRAM_ID:ly,ValidatorInfo:Fa,VersionedMessage:wa,VersionedTransaction:_a,VoteAccount:Ha,VoteAuthorizationLayout:cy,VoteInit:Ll,VoteInstruction:ay,VoteProgram:Ti,clusterApiUrl:py,sendAndConfirmRawTransaction:gy,sendAndConfirmTransaction:Ea},Symbol.toStringTag,{value:"Module"})),Mr=Sn;var Va={exports:{}},Ml;function my(){return Ml||(Ml=1,function(r){var t=function(){var e=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function u(l,v){if(!i[l]){i[l]={};for(var S=0;S<l.length;S++)i[l][l.charAt(S)]=S}return i[l][v]}var d={compressToBase64:function(l){if(l==null)return"";var v=d._compress(l,6,function(S){return n.charAt(S)});switch(v.length%4){default:case 0:return v;case 1:return v+"===";case 2:return v+"==";case 3:return v+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:d._decompress(l.length,32,function(v){return u(n,l.charAt(v))})},compressToUTF16:function(l){return l==null?"":d._compress(l,15,function(v){return e(v+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:d._decompress(l.length,16384,function(v){return l.charCodeAt(v)-32})},compressToUint8Array:function(l){for(var v=d.compress(l),S=new Uint8Array(v.length*2),O=0,C=v.length;O<C;O++){var N=v.charCodeAt(O);S[O*2]=N>>>8,S[O*2+1]=N%256}return S},decompressFromUint8Array:function(l){if(l==null)return d.decompress(l);for(var v=new Array(l.length/2),S=0,O=v.length;S<O;S++)v[S]=l[S*2]*256+l[S*2+1];var C=[];return v.forEach(function(N){C.push(e(N))}),d.decompress(C.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":d._compress(l,6,function(v){return o.charAt(v)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),d._decompress(l.length,32,function(v){return u(o,l.charAt(v))}))},compress:function(l){return d._compress(l,16,function(v){return e(v)})},_compress:function(l,v,S){if(l==null)return"";var O,C,N={},B={},M="",F="",G="",Q=2,et=3,ct=2,ft=[],ot=0,bt=0,Rt;for(Rt=0;Rt<l.length;Rt+=1)if(M=l.charAt(Rt),Object.prototype.hasOwnProperty.call(N,M)||(N[M]=et++,B[M]=!0),F=G+M,Object.prototype.hasOwnProperty.call(N,F))G=F;else{if(Object.prototype.hasOwnProperty.call(B,G)){if(G.charCodeAt(0)<256){for(O=0;O<ct;O++)ot=ot<<1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++;for(C=G.charCodeAt(0),O=0;O<8;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}else{for(C=1,O=0;O<ct;O++)ot=ot<<1|C,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=0;for(C=G.charCodeAt(0),O=0;O<16;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}Q--,Q==0&&(Q=Math.pow(2,ct),ct++),delete B[G]}else for(C=N[G],O=0;O<ct;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1;Q--,Q==0&&(Q=Math.pow(2,ct),ct++),N[F]=et++,G=String(M)}if(G!==""){if(Object.prototype.hasOwnProperty.call(B,G)){if(G.charCodeAt(0)<256){for(O=0;O<ct;O++)ot=ot<<1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++;for(C=G.charCodeAt(0),O=0;O<8;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}else{for(C=1,O=0;O<ct;O++)ot=ot<<1|C,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=0;for(C=G.charCodeAt(0),O=0;O<16;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}Q--,Q==0&&(Q=Math.pow(2,ct),ct++),delete B[G]}else for(C=N[G],O=0;O<ct;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1;Q--,Q==0&&(Q=Math.pow(2,ct),ct++)}for(C=2,O=0;O<ct;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1;for(;;)if(ot=ot<<1,bt==v-1){ft.push(S(ot));break}else bt++;return ft.join("")},decompress:function(l){return l==null?"":l==""?null:d._decompress(l.length,32768,function(v){return l.charCodeAt(v)})},_decompress:function(l,v,S){var O=[],C=4,N=4,B=3,M="",F=[],G,Q,et,ct,ft,ot,bt,Rt={val:S(0),position:v,index:1};for(G=0;G<3;G+=1)O[G]=G;for(et=0,ft=Math.pow(2,2),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;switch(et){case 0:for(et=0,ft=Math.pow(2,8),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;bt=e(et);break;case 1:for(et=0,ft=Math.pow(2,16),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;bt=e(et);break;case 2:return""}for(O[3]=bt,Q=bt,F.push(bt);;){if(Rt.index>l)return"";for(et=0,ft=Math.pow(2,B),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;switch(bt=et){case 0:for(et=0,ft=Math.pow(2,8),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;O[N++]=e(et),bt=N-1,C--;break;case 1:for(et=0,ft=Math.pow(2,16),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;O[N++]=e(et),bt=N-1,C--;break;case 2:return F.join("")}if(C==0&&(C=Math.pow(2,B),B++),O[bt])M=O[bt];else if(bt===N)M=Q+Q.charAt(0);else return null;F.push(M),O[N++]=Q+M.charAt(0),C--,Q=M,C==0&&(C=Math.pow(2,B),B++)}}};return d}();r!=null?r.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Va)),Va.exports}var vy=my();const tr=Vi(vy);var Wa=(r=>(r.USD="USD",r.AED="AED",r.AFN="AFN",r.ALL="ALL",r.AMD="AMD",r.ANG="ANG",r.AOA="AOA",r.ARS="ARS",r.AUD="AUD",r.AWG="AWG",r.AZN="AZN",r.BAM="BAM",r.BBD="BBD",r.BDT="BDT",r.BGN="BGN",r.BHD="BHD",r.BIF="BIF",r.BMD="BMD",r.BND="BND",r.BOB="BOB",r.BRL="BRL",r.BSD="BSD",r.BTN="BTN",r.BWP="BWP",r.BYN="BYN",r.BZD="BZD",r.CAD="CAD",r.CHF="CHF",r.CLF="CLF",r.CLP="CLP",r.CNY="CNY",r.COP="COP",r.CRC="CRC",r.CUP="CUP",r.CVE="CVE",r.CZK="CZK",r.DJF="DJF",r.DKK="DKK",r.DOP="DOP",r.DZD="DZD",r.EGP="EGP",r.ETB="ETB",r.EUR="EUR",r.FJD="FJD",r.GBP="GBP",r.GEL="GEL",r.GHS="GHS",r.GMD="GMD",r.GNF="GNF",r.GTQ="GTQ",r.GYD="GYD",r.HKD="HKD",r.HNL="HNL",r.HTG="HTG",r.HUF="HUF",r.IDR="IDR",r.ILS="ILS",r.INR="INR",r.IQD="IQD",r.IRR="IRR",r.ISK="ISK",r.JMD="JMD",r.JOD="JOD",r.JPY="JPY",r.KES="KES",r.KGS="KGS",r.KHR="KHR",r.KMF="KMF",r.KRW="KRW",r.KWD="KWD",r.KYD="KYD",r.KZT="KZT",r.LAK="LAK",r.LBP="LBP",r.LKR="LKR",r.LRD="LRD",r.LSL="LSL",r.LYD="LYD",r.MAD="MAD",r.MDL="MDL",r.MGA="MGA",r.MKD="MKD",r.MMK="MMK",r.MNT="MNT",r.MOP="MOP",r.MRU="MRU",r.MUR="MUR",r.MWK="MWK",r.MVR="MVR",r.MXN="MXN",r.MYR="MYR",r.MZN="MZN",r.NAD="NAD",r.NGN="NGN",r.NIO="NIO",r.NOK="NOK",r.NPR="NPR",r.NZD="NZD",r.OMR="OMR",r.PAB="PAB",r.PEN="PEN",r.PGK="PGK",r.PHP="PHP",r.PKR="PKR",r.PLN="PLN",r.PYG="PYG",r.QAR="QAR",r.RON="RON",r.RSD="RSD",r.RWF="RWF",r.SAR="SAR",r.SCR="SCR",r.SDG="SDG",r.SEK="SEK",r.SGD="SGD",r.SLE="SLE",r.SLL="SLL",r.SOS="SOS",r.SRD="SRD",r.STN="STN",r.SVC="SVC",r.SYP="SYP",r.SZL="SZL",r.THB="THB",r.TJS="TJS",r.TMT="TMT",r.TND="TND",r.TOP="TOP",r.TRY="TRY",r.TTD="TTD",r.TWD="TWD",r.TZS="TZS",r.UAH="UAH",r.UGX="UGX",r.UYU="UYU",r.UZS="UZS",r.VND="VND",r.VUV="VUV",r.WST="WST",r.XAF="XAF",r.XCD="XCD",r.XOF="XOF",r.XPF="XPF",r.YER="YER",r.ZAR="ZAR",r.ZMW="ZMW",r.ZWL="ZWL",r.CDF="CDF",r.ERN="ERN",r.FKP="FKP",r.KPW="KPW",r.RUB="RUB",r.SBD="SBD",r.SHP="SHP",r.SSP="SSP",r.VES="VES",r))(Wa||{});const yy={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BND:"096",BOB:"068",BRL:"986",BTN:"064",BWP:"072",BZD:"084",CAD:"124",CHF:"756",CLP:"152",CNY:"156",COP:"170",CRC:"188",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ETB:"230",EUR:"978",GBP:"826",GEL:"981",GHS:"936",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HTG:"332",HUF:"348",IDR:"360",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MRU:"929",MUR:"480",MVR:"462",MXN:"484",MYR:"458",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RWF:"646",SAR:"682",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SLE:"925",SLL:"694",SOS:"706",STN:"930",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",UYU:"858",UZS:"860",VND:"704",XAF:"950",XCD:"951",XOF:"952",XPF:"953",YER:"886",ZAR:"710",ZMW:"967",ARS:"032",BMD:"060",BSD:"044",BYN:"933",CUP:"192",FJD:"242",ILS:"376",LAK:"418",LBP:"422",MWK:"454",MZN:"943",PGK:"598",SRD:"968",TOP:"776",VUV:"548",WST:"882",ZWL:"932",CLF:"990",CDF:"976",ERN:"232",FKP:"238",KPW:"408",RUB:"643",SBD:"090",SHP:"654",SSP:"728",VES:"928"},Dl={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function wy(r){return r in Dl}const Ul={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function by(r){return r in Ul}const _y=new Set(["CLF"]),Ey=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),Ry=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function Sy(r){return _y.has(r)?4:Ey.has(r)?3:Ry.has(r)?0:2}function Ay(r,t){return r.currency===t}/*! For license information please see nsure-web-sdk.mjs.LICENSE.txt */var Iy={269:function(r,t,e){e.r(t),e.d(t,{ERROR_API_KEY_EXPIRED:function(){return Ls},ERROR_API_KEY_INVALID:function(){return xs},ERROR_API_KEY_MISSING:function(){return Ns},ERROR_BAD_REQUEST_FORMAT:function(){return pd},ERROR_BAD_RESPONSE_FORMAT:function(){return cc},ERROR_CLIENT_TIMEOUT:function(){return oc},ERROR_CSP_BLOCK:function(){return uc},ERROR_FORBIDDEN_ENDPOINT:function(){return Nf},ERROR_FORBIDDEN_HEADER:function(){return wd},ERROR_FORBIDDEN_ORIGIN:function(){return yd},ERROR_GENERAL_SERVER_FAILURE:function(){return gd},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return Tf},ERROR_INTEGRATION_FAILURE:function(){return xf},ERROR_INVALID_ENDPOINT:function(){return lc},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return Pf},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return Bf},ERROR_NETWORK_ABORT:function(){return ac},ERROR_NETWORK_CONNECTION:function(){return sc},ERROR_NETWORK_RESTRICTED:function(){return Cf},ERROR_RATE_LIMIT:function(){return vd},ERROR_SERVER_TIMEOUT:function(){return md},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return kf},ERROR_TOKEN_EXPIRED:function(){return Rw},ERROR_TOKEN_INVALID:function(){return Ew},ERROR_TOKEN_MISSING:function(){return _w},ERROR_UNSUPPORTED_VERSION:function(){return Of},ERROR_WRONG_REGION:function(){return If},default:function(){return Sw},defaultEndpoint:function(){return _s},defaultTlsEndpoint:function(){return Es},load:function(){return l0},makeBotdModule:function(){return lw},makeConsoleDebugModule:function(){return ww},makeIdentificationModule:function(){return mw},makeLatencyReportModule:function(){return yw},makeRemoteDebugModule:function(){return bw},makeValidationModule:function(){return vw}});var n=e(635);function o(s,c){return new Promise(function(a){return setTimeout(a,s,c)})}function i(s){return!!s&&typeof s.then=="function"}function u(s,c){try{var a=s();i(a)?a.then(function(f){return c(!0,f)},function(f){return c(!1,f)}):c(!0,a)}catch(f){c(!1,f)}}function d(s,c,a){return a===void 0&&(a=16),(0,n.sH)(this,void 0,void 0,function(){var f,g,w,b;return(0,n.YH)(this,function(_){switch(_.label){case 0:f=Array(s.length),g=Date.now(),w=0,_.label=1;case 1:return w<s.length?(f[w]=c(s[w],w),(b=Date.now())>=g+a?(g=b,[4,new Promise(function(m){var I=new MessageChannel;I.port1.onmessage=function(){return m()},I.port2.postMessage(null)})]):[3,3]):[3,4];case 2:_.sent(),_.label=3;case 3:return++w,[3,1];case 4:return[2,f]}})})}function l(s){return s.then(void 0,function(){}),s}function v(s){return parseInt(s)}function S(s){return parseFloat(s)}function O(s,c){return typeof s=="number"&&isNaN(s)?c:s}function C(s){return s.reduce(function(c,a){return c+(a?1:0)},0)}function N(s,c){var a=s[0]>>>16,f=65535&s[0],g=s[1]>>>16,w=65535&s[1],b=c[0]>>>16,_=65535&c[0],m=c[1]>>>16,I=0,L=0,x=0,Y=0;x+=(Y+=w+(65535&c[1]))>>>16,Y&=65535,L+=(x+=g+m)>>>16,x&=65535,I+=(L+=f+_)>>>16,L&=65535,I+=a+b,I&=65535,s[0]=I<<16|L,s[1]=x<<16|Y}function B(s,c){var a=s[0]>>>16,f=65535&s[0],g=s[1]>>>16,w=65535&s[1],b=c[0]>>>16,_=65535&c[0],m=c[1]>>>16,I=65535&c[1],L=0,x=0,Y=0,J=0;Y+=(J+=w*I)>>>16,J&=65535,x+=(Y+=g*I)>>>16,Y&=65535,x+=(Y+=w*m)>>>16,Y&=65535,L+=(x+=f*I)>>>16,x&=65535,L+=(x+=g*m)>>>16,x&=65535,L+=(x+=w*_)>>>16,x&=65535,L+=a*I+f*m+g*_+w*b,L&=65535,s[0]=L<<16|x,s[1]=Y<<16|J}function M(s,c){var a=s[0];(c%=64)==32?(s[0]=s[1],s[1]=a):c<32?(s[0]=a<<c|s[1]>>>32-c,s[1]=s[1]<<c|a>>>32-c):(c-=32,s[0]=s[1]<<c|a>>>32-c,s[1]=a<<c|s[1]>>>32-c)}function F(s,c){(c%=64)!=0&&(c<32?(s[0]=s[1]>>>32-c,s[1]=s[1]<<c):(s[0]=s[1]<<c-32,s[1]=0))}function G(s,c){s[0]^=c[0],s[1]^=c[1]}var Q=[4283543511,3981806797],et=[3301882366,444984403];function ct(s){var c=[0,s[0]>>>1];G(s,c),B(s,Q),c[1]=s[0]>>>1,G(s,c),B(s,et),c[1]=s[0]>>>1,G(s,c)}var ft=[2277735313,289559509],ot=[1291169091,658871167],bt=[0,5],Rt=[0,1390208809],At=[0,944331445];function gt(s){return typeof s!="function"}function wt(s,c,a,f){var g=Object.keys(s).filter(function(b){return!function(_,m){for(var I=0,L=_.length;I<L;++I)if(_[I]===m)return!0;return!1}(a,b)}),w=l(d(g,function(b){return function(_,m){var I=l(new Promise(function(L){var x=Date.now();u(_.bind(null,m),function(){for(var Y=[],J=0;J<arguments.length;J++)Y[J]=arguments[J];var tt=Date.now()-x;if(!Y[0])return L(function(){return{error:Y[1],duration:tt}});var nt=Y[1];if(gt(nt))return L(function(){return{value:nt,duration:tt}});L(function(){return new Promise(function(ut){var pt=Date.now();u(nt,function(){for(var Et=[],ht=0;ht<arguments.length;ht++)Et[ht]=arguments[ht];var yt=tt+Date.now()-pt;if(!Et[0])return ut({error:Et[1],duration:yt});ut({value:Et[1],duration:yt})})})})})}));return function(){return I.then(function(L){return L()})}}(s[b],c)},f));return function(){return(0,n.sH)(this,void 0,void 0,function(){var b,_,m,I;return(0,n.YH)(this,function(L){switch(L.label){case 0:return[4,w];case 1:return[4,d(L.sent(),function(x){return l(x())},f)];case 2:return b=L.sent(),[4,Promise.all(b)];case 3:for(_=L.sent(),m={},I=0;I<g.length;++I)m[g[I]]=_[I];return[2,m]}})})}}function kt(s,c){var a=function(f){return gt(f)?c(f):function(){var g=f();return i(g)?g.then(c):c(g)}};return function(f){var g=s(f);return i(g)?g.then(a):a(g)}}function q(){var s=window,c=navigator;return C(["MSCSSMatrix"in s,"msSetImmediate"in s,"msIndexedDB"in s,"msMaxTouchPoints"in c,"msPointerEnabled"in c])>=4}function h(){var s=window,c=navigator;return C(["msWriteProfilerMark"in s,"MSStream"in s,"msLaunchUri"in c,"msSaveBlob"in c])>=3&&!q()}function T(){var s=window,c=navigator;return C(["webkitPersistentStorage"in c,"webkitTemporaryStorage"in c,(c.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in s,"BatteryManager"in s,"webkitMediaStream"in s,"webkitSpeechGrammar"in s])>=5}function D(){var s=window;return C(["ApplePayError"in s,"CSSPrimitiveValue"in s,"Counter"in s,navigator.vendor.indexOf("Apple")===0,"RGBColor"in s,"WebKitMediaKeys"in s])>=4}function Z(){var s=window,c=s.HTMLElement,a=s.Document;return C(["safari"in s,!("ongestureend"in s),!("TouchEvent"in s),!("orientation"in s),c&&!("autocapitalize"in c.prototype),a&&"pointerLockElement"in a.prototype])>=4}function j(){var s,c,a=window;return C(["buildID"in navigator,"MozAppearance"in((c=(s=document.documentElement)===null||s===void 0?void 0:s.style)!==null&&c!==void 0?c:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function X(){var s=document;return s.fullscreenElement||s.msFullscreenElement||s.mozFullScreenElement||s.webkitFullscreenElement||null}function at(){var s=T(),c=j(),a=window,f=navigator,g="connection";return s?C([!("SharedWorker"in a),f[g]&&"ontypechange"in f[g],!("sinkId"in new Audio)])>=2:!!c&&C(["onorientationchange"in a,"orientation"in a,/android/i.test(f.appVersion)])>=2}function K(){var s=navigator,c=window,a=Audio.prototype,f=c.visualViewport;return C(["srLatency"in a,"srChannelCount"in a,"devicePosture"in s,f&&"segments"in f,"getTextInformation"in Image.prototype])>=3}function p(){var s=window,c=s.OfflineAudioContext||s.webkitOfflineAudioContext;if(!c)return-2;if(D()&&!Z()&&!function(){var I=window;return C(["DOMRectList"in I,"RTCPeerConnectionIceEvent"in I,"SVGGeometryElement"in I,"ontransitioncancel"in I])>=3}())return-1;var a=new c(1,5e3,44100),f=a.createOscillator();f.type="triangle",f.frequency.value=1e4;var g=a.createDynamicsCompressor();g.threshold.value=-50,g.knee.value=40,g.ratio.value=12,g.attack.value=0,g.release.value=.25,f.connect(g),g.connect(a.destination),f.start(0);var w=function(I){var L=function(){};return[new Promise(function(x,Y){var J=!1,tt=0,nt=0;I.oncomplete=function(Et){return x(Et.renderedBuffer)};var ut=function(){setTimeout(function(){return Y(E("timeout"))},Math.min(500,nt+5e3-Date.now()))},pt=function(){try{var Et=I.startRendering();switch(i(Et)&&l(Et),I.state){case"running":nt=Date.now(),J&&ut();break;case"suspended":document.hidden||tt++,J&&tt>=3?Y(E("suspended")):setTimeout(pt,500)}}catch(ht){Y(ht)}};pt(),L=function(){J||(J=!0,nt>0&&ut())}}),L]}(a),b=w[0],_=w[1],m=l(b.then(function(I){return function(L){for(var x=0,Y=0;Y<L.length;++Y)x+=Math.abs(L[Y]);return x}(I.getChannelData(0).subarray(4500))},function(I){if(I.name==="timeout"||I.name==="suspended")return-3;throw I}));return function(){return _(),m}}function E(s){var c=new Error(s);return c.name=s,c}function z(s,c,a){var f,g,w;return a===void 0&&(a=50),(0,n.sH)(this,void 0,void 0,function(){var b,_;return(0,n.YH)(this,function(m){switch(m.label){case 0:b=document,m.label=1;case 1:return b.body?[3,3]:[4,o(a)];case 2:return m.sent(),[3,1];case 3:_=b.createElement("iframe"),m.label=4;case 4:return m.trys.push([4,,10,11]),[4,new Promise(function(I,L){var x=!1,Y=function(){x=!0,I()};_.onload=Y,_.onerror=function(nt){x=!0,L(nt)};var J=_.style;J.setProperty("display","block","important"),J.position="absolute",J.top="0",J.left="0",J.visibility="hidden",c&&"srcdoc"in _?_.srcdoc=c:_.src="about:blank",b.body.appendChild(_);var tt=function(){var nt,ut;x||(((ut=(nt=_.contentWindow)===null||nt===void 0?void 0:nt.document)===null||ut===void 0?void 0:ut.readyState)==="complete"?Y():setTimeout(tt,10))};tt()})];case 5:m.sent(),m.label=6;case 6:return!((g=(f=_.contentWindow)===null||f===void 0?void 0:f.document)===null||g===void 0)&&g.body?[3,8]:[4,o(a)];case 7:return m.sent(),[3,6];case 8:return[4,s(_,_.contentWindow)];case 9:return[2,m.sent()];case 10:return(w=_.parentNode)===null||w===void 0||w.removeChild(_),[7];case 11:return[2]}})})}function $(s){for(var c=function(I){for(var L,x,Y="Unexpected syntax '".concat(I,"'"),J=/^\s*([a-z-]*)(.*)$/i.exec(I),tt=J[1]||void 0,nt={},ut=/([.:#][\w-]+|\[.+?\])/gi,pt=function(Vt,Wt){nt[Vt]=nt[Vt]||[],nt[Vt].push(Wt)};;){var Et=ut.exec(J[2]);if(!Et)break;var ht=Et[0];switch(ht[0]){case".":pt("class",ht.slice(1));break;case"#":pt("id",ht.slice(1));break;case"[":var yt=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(ht);if(!yt)throw new Error(Y);pt(yt[1],(x=(L=yt[4])!==null&&L!==void 0?L:yt[5])!==null&&x!==void 0?x:"");break;default:throw new Error(Y)}}return[tt,nt]}(s),a=c[0],f=c[1],g=document.createElement(a??"div"),w=0,b=Object.keys(f);w<b.length;w++){var _=b[w],m=f[_].join(" ");_==="style"?dt(g.style,m):g.setAttribute(_,m)}return g}function dt(s,c){for(var a=0,f=c.split(";");a<f.length;a++){var g=f[a],w=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(g);if(w){var b=w[1],_=w[2],m=w[4];s.setProperty(b,_,m||"")}}}var _t=["monospace","sans-serif","serif"],Ut=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Pt(s){var c,a,f,g=!1,w=function(){var m=document.createElement("canvas");return m.width=1,m.height=1,[m,m.getContext("2d")]}(),b=w[0],_=w[1];return function(m,I){return!(!I||!m.toDataURL)}(b,_)?(g=function(m){return m.rect(0,0,10,10),m.rect(2,2,6,6),!m.isPointInPath(5,5,"evenodd")}(_),c=function(m,I){(function(x,Y){x.width=240,x.height=60,Y.textBaseline="alphabetic",Y.fillStyle="#f60",Y.fillRect(100,1,62,20),Y.fillStyle="#069",Y.font='11pt "Times New Roman"';var J="Cwm fjordbank gly ".concat("😃");Y.fillText(J,2,15),Y.fillStyle="rgba(102, 204, 0, 0.2)",Y.font="18pt Arial",Y.fillText(J,4,45)})(m,I);var L=ve(m);return L!==ve(m)?["unstable","unstable"]:(function(x,Y){x.width=122,x.height=110,Y.globalCompositeOperation="multiply";for(var J=0,tt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];J<tt.length;J++){var nt=tt[J],ut=nt[0],pt=nt[1],Et=nt[2];Y.fillStyle=ut,Y.beginPath(),Y.arc(pt,Et,40,0,2*Math.PI,!0),Y.closePath(),Y.fill()}Y.fillStyle="#f9c",Y.arc(60,60,60,0,2*Math.PI,!0),Y.arc(60,60,20,0,2*Math.PI,!0),Y.fill("evenodd")}(m,I),[ve(m),L])}(b,_),a=c[0],f=c[1]):a=f="unsupported",{winding:g,geometry:a,text:f}}function ve(s){return s.toDataURL()}function pe(){var s=screen,c=function(f){return O(v(f),null)},a=[c(s.width),c(s.height)];return a.sort().reverse(),a}var ue,_e;function we(){var s=this;return function(){if(_e===void 0){var c=function(){var a=Ee();je(a)?_e=setTimeout(c,2500):(ue=a,_e=void 0)};c()}}(),function(){return(0,n.sH)(s,void 0,void 0,function(){var c;return(0,n.YH)(this,function(a){switch(a.label){case 0:return je(c=Ee())?ue?[2,(0,n.fX)([],ue,!0)]:X()?[4,(f=document,(f.exitFullscreen||f.msExitFullscreen||f.mozCancelFullScreen||f.webkitExitFullscreen).call(f))]:[3,2]:[3,2];case 1:a.sent(),c=Ee(),a.label=2;case 2:return je(c)||(ue=c),[2,c]}var f})})}}function Ee(){var s=screen;return[O(S(s.availTop),null),O(S(s.width)-S(s.availWidth)-O(S(s.availLeft),0),null),O(S(s.height)-S(s.availHeight)-O(S(s.availTop),0),null),O(S(s.availLeft),null)]}function je(s){for(var c=0;c<4;++c)if(s[c])return!1;return!0}function xe(s){var c;return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w,b,_,m;return(0,n.YH)(this,function(I){switch(I.label){case 0:for(a=document,f=a.createElement("div"),g=new Array(s.length),w={},y(f),m=0;m<s.length;++m)(b=$(s[m])).tagName==="DIALOG"&&b.show(),y(_=a.createElement("div")),_.appendChild(b),f.appendChild(_),g[m]=b;I.label=1;case 1:return a.body?[3,3]:[4,o(50)];case 2:return I.sent(),[3,1];case 3:a.body.appendChild(f);try{for(m=0;m<s.length;++m)g[m].offsetParent||(w[s[m]]=!0)}finally{(c=f.parentNode)===null||c===void 0||c.removeChild(f)}return[2,w]}})})}function y(s){s.style.setProperty("visibility","hidden","important"),s.style.setProperty("display","block","important")}function P(s){return matchMedia("(inverted-colors: ".concat(s,")")).matches}function H(s){return matchMedia("(forced-colors: ".concat(s,")")).matches}function lt(s){return matchMedia("(prefers-contrast: ".concat(s,")")).matches}function mt(s){return matchMedia("(prefers-reduced-motion: ".concat(s,")")).matches}function vt(s){return matchMedia("(prefers-reduced-transparency: ".concat(s,")")).matches}function xt(s){return matchMedia("(dynamic-range: ".concat(s,")")).matches}var Gt=Math,te=function(){return 0},U={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},R=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),k=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),A=["FRAGMENT_SHADER","VERTEX_SHADER"],V=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],W="WEBGL_debug_renderer_info";function it(s){if(s.webgl)return s.webgl.context;var c,a=document.createElement("canvas");a.addEventListener("webglCreateContextError",function(){return c=void 0});for(var f=0,g=["webgl","experimental-webgl"];f<g.length;f++){var w=g[f];try{c=a.getContext(w)}catch{}if(c)break}return s.webgl={context:c},c}function Lt(s,c,a){var f=s.getShaderPrecisionFormat(s[c],s[a]);return f?[f.rangeMin,f.rangeMax,f.precision]:[]}function Ct(s){return Object.keys(s.__proto__).filter(Dt)}function Dt(s){return typeof s=="string"&&!s.match(/[^A-Z0-9_x]/)}function Mt(){return j()}function rt(s){return typeof s.getParameter=="function"}var Kt=function(){var s=this;return z(function(c,a){var f=a.document;return(0,n.sH)(s,void 0,void 0,function(){var g,w,b,_,m,I,L,x,Y,J,tt;return(0,n.YH)(this,function(nt){for((g=f.body).style.fontSize="48px",(w=f.createElement("div")).style.setProperty("visibility","hidden","important"),b={},_={},m=function(ut){var pt=f.createElement("span"),Et=pt.style;return Et.position="absolute",Et.top="0",Et.left="0",Et.fontFamily=ut,pt.textContent="mmMwWLliI0O&1",w.appendChild(pt),pt},I=function(ut,pt){return m("'".concat(ut,"',").concat(pt))},L=function(){for(var ut={},pt=function(yt){ut[yt]=_t.map(function(Vt){return I(yt,Vt)})},Et=0,ht=Ut;Et<ht.length;Et++)pt(ht[Et]);return ut},x=function(ut){return _t.some(function(pt,Et){return ut[Et].offsetWidth!==b[pt]||ut[Et].offsetHeight!==_[pt]})},Y=_t.map(m),J=L(),g.appendChild(w),tt=0;tt<_t.length;tt++)b[_t[tt]]=Y[tt].offsetWidth,_[_t[tt]]=Y[tt].offsetHeight;return[2,Ut.filter(function(ut){return x(J[ut])})]})})})},be=function(s){var c=(s===void 0?{}:s).debug;return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w,b;return(0,n.YH)(this,function(_){switch(_.label){case 0:return D()||at()?(m=atob,a={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',m("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",m("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",m("LnNwb25zb3JpdA=="),".ylamainos",m("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",m("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",m("LmhlYWRlci1ibG9ja2VkLWFk"),m("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",m("I2FkXzMwMFgyNTA="),m("I2Jhbm5lcmZsb2F0MjI="),m("I2NhbXBhaWduLWJhbm5lcg=="),m("I0FkLUNvbnRlbnQ=")],adGuardChinese:[m("LlppX2FkX2FfSA=="),m("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",m("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),m("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",m("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",m("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",m("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),m("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),m("LmFkZ29vZ2xl"),m("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[m("YW1wLWF1dG8tYWRz"),m("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",m("I2FkX2ludmlld19hcmVh")],adGuardRussian:[m("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),m("LnJlY2xhbWE="),'div[id^="smi2adblock"]',m("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[m("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),m("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",m("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),m("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),m("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",m("I3Jla2xhbWk="),m("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),m("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),m("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[m("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",m("LndpZGdldF9wb19hZHNfd2lkZ2V0"),m("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",m("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[m("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),m("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",m("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",m("I3Jla2xhbW5pLWJveA=="),m("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",m("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[m("I2FkdmVydGVudGll"),m("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",m("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",m("LnNwb25zb3JsaW5rZ3J1ZW4="),m("I3dlcmJ1bmdza3k="),m("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),m("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[m("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",m("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[m("LnJla2xhbW9zX3RhcnBhcw=="),m("LnJla2xhbW9zX251b3JvZG9z"),m("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),m("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),m("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[m("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[m("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),m("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",m("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[m("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),m("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),m("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",m("LmFkX19tYWlu"),m("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[m("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[m("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),m("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[m("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),m("I2xpdmVyZUFkV3JhcHBlcg=="),m("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),m("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[m("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",m("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),m("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),m("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[m("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),m("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),m("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",m("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),m("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),m("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),m("ZGl2I3NrYXBpZWNfYWQ=")],ro:[m("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),m("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),m("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[m("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),m("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),m("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",m("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),m("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",m("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},f=Object.keys(a),[4,xe((b=[]).concat.apply(b,f.map(function(I){return a[I]})))]):[2,void 0];case 1:return g=_.sent(),c&&function(I,L){for(var x="DOM blockers debug:\n```",Y=0,J=Object.keys(I);Y<J.length;Y++){var tt=J[Y];x+=`
11
+ `+i+u;break;default:d=`Unknown action '${(l=>l)(t)}'`}super(d),this.signature=void 0,this.transactionMessage=void 0,this.transactionLogs=void 0,this.signature=e,this.transactionMessage=n,this.transactionLogs=o||void 0}get transactionError(){return{message:this.transactionMessage,logs:Array.isArray(this.transactionLogs)?this.transactionLogs:void 0}}get logs(){const t=this.transactionLogs;if(!(t!=null&&typeof t=="object"&&"then"in t))return t}async getLogs(t){return Array.isArray(this.transactionLogs)||(this.transactionLogs=new Promise((e,n)=>{t.getTransaction(this.signature).then(o=>{if(o&&o.meta&&o.meta.logMessages){const i=o.meta.logMessages;this.transactionLogs=i,e(i)}else n(new Error("Log messages not found"))}).catch(n)})),await this.transactionLogs}}const Ev={JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016};class ue extends Error{constructor({code:t,message:e,data:n},o){super(o!=null?`${o}: ${e}`:e),this.code=void 0,this.data=void 0,this.code=t,this.data=n,this.name="SolanaJSONRPCError"}}async function Ea(r,t,e,n){const o=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment,maxRetries:n.maxRetries,minContextSlot:n.minContextSlot},i=await r.sendTransaction(t,e,o);let u;if(t.recentBlockhash!=null&&t.lastValidBlockHeight!=null)u=(await r.confirmTransaction({abortSignal:n?.abortSignal,signature:i,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},n&&n.commitment)).value;else if(t.minNonceContextSlot!=null&&t.nonceInfo!=null){const{nonceInstruction:d}=t.nonceInfo,l=d.keys[0].pubkey;u=(await r.confirmTransaction({abortSignal:n?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:l,nonceValue:t.nonceInfo.nonce,signature:i},n&&n.commitment)).value}else n?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),u=(await r.confirmTransaction(i,n&&n.commitment)).value;if(u.err)throw i!=null?new Qi({action:"send",signature:i,transactionMessage:`Status: (${JSON.stringify(u)})`}):new Error(`Transaction ${i} failed (${JSON.stringify(u)})`);return i}function ni(r){return new Promise(t=>setTimeout(t,r))}function Be(r,t){const e=r.layout.span>=0?r.layout.span:Qu(r,t),n=ve.Buffer.alloc(e),o=Object.assign({instruction:r.index},t);return r.layout.encode(o,n),n}function We(r,t){let e;try{e=r.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(e.instruction!==r.index)throw new Error(`invalid instruction; instruction index mismatch ${e.instruction} != ${r.index}`);return e}const nl=st.nu64("lamportsPerSignature"),rl=st.struct([st.u32("version"),st.u32("state"),Ne("authorizedPubkey"),Ne("nonce"),st.struct([nl],"feeCalculator")]),Ra=rl.span;class es{constructor(t){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}static fromAccountData(t){const e=rl.decode(ke(t),0);return new es({authorizedPubkey:new Jt(e.authorizedPubkey),nonce:new Jt(e.nonce).toString(),feeCalculator:e.feeCalculator})}}function Ai(r){const t=st.blob(8,r),e=t.decode.bind(t),n=t.encode.bind(t),o=t,i=om();return o.decode=(u,d)=>{const l=e(u,d);return i.decode(l)},o.encode=(u,d,l)=>{const v=i.encode(u);return n(v,d,l)},o}class Rv{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(Ze))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a SystemInstruction");return o}static decodeCreateAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e,space:n,programId:o}=We(Ze.Create,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,lamports:e,space:n,programId:new Jt(o)}}static decodeTransfer(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{lamports:e}=We(Ze.Transfer,t.data);return{fromPubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,lamports:e}}static decodeTransferWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e,seed:n,programId:o}=We(Ze.TransferWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,basePubkey:t.keys[1].pubkey,toPubkey:t.keys[2].pubkey,lamports:e,seed:n,programId:new Jt(o)}}static decodeAllocate(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{space:e}=We(Ze.Allocate,t.data);return{accountPubkey:t.keys[0].pubkey,space:e}}static decodeAllocateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,space:o,programId:i}=We(Ze.AllocateWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Jt(e),seed:n,space:o,programId:new Jt(i)}}static decodeAssign(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{programId:e}=We(Ze.Assign,t.data);return{accountPubkey:t.keys[0].pubkey,programId:new Jt(e)}}static decodeAssignWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,1);const{base:e,seed:n,programId:o}=We(Ze.AssignWithSeed,t.data);return{accountPubkey:t.keys[0].pubkey,basePubkey:new Jt(e),seed:n,programId:new Jt(o)}}static decodeCreateWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{base:e,seed:n,lamports:o,space:i,programId:u}=We(Ze.CreateWithSeed,t.data);return{fromPubkey:t.keys[0].pubkey,newAccountPubkey:t.keys[1].pubkey,basePubkey:new Jt(e),seed:n,lamports:o,space:i,programId:new Jt(u)}}static decodeNonceInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{authorized:e}=We(Ze.InitializeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:new Jt(e)}}static decodeNonceAdvance(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),We(Ze.AdvanceNonceAccount,t.data),{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static decodeNonceWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=We(Ze.WithdrawNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e}}static decodeNonceAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e}=We(Ze.AuthorizeNonceAccount,t.data);return{noncePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[1].pubkey,newAuthorizedPubkey:new Jt(e)}}static checkProgramId(t){if(!t.equals(An.programId))throw new Error("invalid instruction; programId is not SystemProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const Ze=Object.freeze({Create:{index:0,layout:st.struct([st.u32("instruction"),st.ns64("lamports"),st.ns64("space"),Ne("programId")])},Assign:{index:1,layout:st.struct([st.u32("instruction"),Ne("programId")])},Transfer:{index:2,layout:st.struct([st.u32("instruction"),Ai("lamports")])},CreateWithSeed:{index:3,layout:st.struct([st.u32("instruction"),Ne("base"),ti("seed"),st.ns64("lamports"),st.ns64("space"),Ne("programId")])},AdvanceNonceAccount:{index:4,layout:st.struct([st.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:st.struct([st.u32("instruction"),Ne("authorized")])},AuthorizeNonceAccount:{index:7,layout:st.struct([st.u32("instruction"),Ne("authorized")])},Allocate:{index:8,layout:st.struct([st.u32("instruction"),st.ns64("space")])},AllocateWithSeed:{index:9,layout:st.struct([st.u32("instruction"),Ne("base"),ti("seed"),st.ns64("space"),Ne("programId")])},AssignWithSeed:{index:10,layout:st.struct([st.u32("instruction"),Ne("base"),ti("seed"),Ne("programId")])},TransferWithSeed:{index:11,layout:st.struct([st.u32("instruction"),Ai("lamports"),ti("seed"),Ne("programId")])},UpgradeNonceAccount:{index:12,layout:st.struct([st.u32("instruction")])}});class An{constructor(){}static createAccount(t){const e=Ze.Create,n=Be(e,{lamports:t.lamports,space:t.space,programId:ke(t.programId.toBuffer())});return new qe({keys:[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:n})}static transfer(t){let e,n;if("basePubkey"in t){const o=Ze.TransferWithSeed;e=Be(o,{lamports:BigInt(t.lamports),seed:t.seed,programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}else{const o=Ze.Transfer;e=Be(o,{lamports:BigInt(t.lamports)}),n=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0}]}return new qe({keys:n,programId:this.programId,data:e})}static assign(t){let e,n;if("basePubkey"in t){const o=Ze.AssignWithSeed;e=Be(o,{base:ke(t.basePubkey.toBuffer()),seed:t.seed,programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const o=Ze.Assign;e=Be(o,{programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new qe({keys:n,programId:this.programId,data:e})}static createAccountWithSeed(t){const e=Ze.CreateWithSeed,n=Be(e,{base:ke(t.basePubkey.toBuffer()),seed:t.seed,lamports:t.lamports,space:t.space,programId:ke(t.programId.toBuffer())});let o=[{pubkey:t.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:t.newAccountPubkey,isSigner:!1,isWritable:!0}];return t.basePubkey.equals(t.fromPubkey)||o.push({pubkey:t.basePubkey,isSigner:!0,isWritable:!1}),new qe({keys:o,programId:this.programId,data:n})}static createNonceAccount(t){const e=new He;"basePubkey"in t&&"seed"in t?e.add(An.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:Ra,programId:this.programId})):e.add(An.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.noncePubkey,lamports:t.lamports,space:Ra,programId:this.programId}));const n={noncePubkey:t.noncePubkey,authorizedPubkey:t.authorizedPubkey};return e.add(this.nonceInitialize(n)),e}static nonceInitialize(t){const e=Ze.InitializeNonceAccount,n=Be(e,{authorized:ke(t.authorizedPubkey.toBuffer())}),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Qo,isSigner:!1,isWritable:!1},{pubkey:Si,isSigner:!1,isWritable:!1}],programId:this.programId,data:n};return new qe(o)}static nonceAdvance(t){const e=Ze.AdvanceNonceAccount,n=Be(e),o={keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:Qo,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n};return new qe(o)}static nonceWithdraw(t){const e=Ze.WithdrawNonceAccount,n=Be(e,{lamports:t.lamports});return new qe({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.toPubkey,isSigner:!1,isWritable:!0},{pubkey:Qo,isSigner:!1,isWritable:!1},{pubkey:Si,isSigner:!1,isWritable:!1},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static nonceAuthorize(t){const e=Ze.AuthorizeNonceAccount,n=Be(e,{authorized:ke(t.newAuthorizedPubkey.toBuffer())});return new qe({keys:[{pubkey:t.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:t.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:n})}static allocate(t){let e,n;if("basePubkey"in t){const o=Ze.AllocateWithSeed;e=Be(o,{base:ke(t.basePubkey.toBuffer()),seed:t.seed,space:t.space,programId:ke(t.programId.toBuffer())}),n=[{pubkey:t.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:t.basePubkey,isSigner:!0,isWritable:!1}]}else{const o=Ze.Allocate;e=Be(o,{space:t.space}),n=[{pubkey:t.accountPubkey,isSigner:!0,isWritable:!0}]}return new qe({keys:n,programId:this.programId,data:e})}}An.programId=new Jt("11111111111111111111111111111111");const Sv=Pr-300;class ri{constructor(){}static getMinNumSignatures(t){return 2*(Math.ceil(t/ri.chunkSize)+1+1)}static async load(t,e,n,o,i){{const O=await t.getMinimumBalanceForRentExemption(i.length),C=await t.getAccountInfo(n.publicKey,"confirmed");let N=null;if(C!==null){if(C.executable)return console.error("Program load failed, account is already executable"),!1;C.data.length!==i.length&&(N=N||new He,N.add(An.allocate({accountPubkey:n.publicKey,space:i.length}))),C.owner.equals(o)||(N=N||new He,N.add(An.assign({accountPubkey:n.publicKey,programId:o}))),C.lamports<O&&(N=N||new He,N.add(An.transfer({fromPubkey:e.publicKey,toPubkey:n.publicKey,lamports:O-C.lamports})))}else N=new He().add(An.createAccount({fromPubkey:e.publicKey,newAccountPubkey:n.publicKey,lamports:O>0?O:1,space:i.length,programId:o}));N!==null&&await Ea(t,N,[e,n],{commitment:"confirmed"})}const u=st.struct([st.u32("instruction"),st.u32("offset"),st.u32("bytesLength"),st.u32("bytesLengthPadding"),st.seq(st.u8("byte"),st.offset(st.u32(),-8),"bytes")]),d=ri.chunkSize;let l=0,v=i,S=[];for(;v.length>0;){const O=v.slice(0,d),C=ve.Buffer.alloc(d+16);u.encode({instruction:0,offset:l,bytes:O,bytesLength:0,bytesLengthPadding:0},C);const N=new He().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:C});S.push(Ea(t,N,[e,n],{commitment:"confirmed"})),t._rpcEndpoint.includes("solana.com")&&await ni(1e3/4),l+=d,v=v.slice(d)}await Promise.all(S);{const O=st.struct([st.u32("instruction")]),C=ve.Buffer.alloc(O.span);O.encode({instruction:1},C);const N=new He().add({keys:[{pubkey:n.publicKey,isSigner:!0,isWritable:!0},{pubkey:Si,isSigner:!1,isWritable:!1}],programId:o,data:C}),B="processed",M=await t.sendTransaction(N,[e,n],{preflightCommitment:B}),{context:F,value:G}=await t.confirmTransaction({signature:M,lastValidBlockHeight:N.lastValidBlockHeight,blockhash:N.recentBlockhash},B);if(G.err)throw new Error(`Transaction ${M} failed (${JSON.stringify(G)})`);for(;;){try{if(await t.getSlot({commitment:B})>F.slot)break}catch{}await new Promise(Q=>setTimeout(Q,Math.round(el/2)))}}return!0}}ri.chunkSize=Sv;const Av=new Jt("BPFLoader2111111111111111111111111111111111");class Iv{static getMinNumSignatures(t){return ri.getMinNumSignatures(t)}static load(t,e,n,o,i){return ri.load(t,e,n,i,o)}}function kv(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Sa,il;function Ov(){if(il)return Sa;il=1;var r=Object.prototype.toString,t=Object.keys||function(n){var o=[];for(var i in n)o.push(i);return o};function e(n,o){var i,u,d,l,v,S,O;if(n===!0)return"true";if(n===!1)return"false";switch(typeof n){case"object":if(n===null)return null;if(n.toJSON&&typeof n.toJSON=="function")return e(n.toJSON(),o);if(O=r.call(n),O==="[object Array]"){for(d="[",u=n.length-1,i=0;i<u;i++)d+=e(n[i],!0)+",";return u>-1&&(d+=e(n[i],!0)),d+"]"}else if(O==="[object Object]"){for(l=t(n).sort(),u=l.length,d="",i=0;i<u;)v=l[i],S=e(n[v],!1),S!==void 0&&(d&&(d+=","),d+=JSON.stringify(v)+":"+S),i++;return"{"+d+"}"}else return JSON.stringify(n);case"function":case"undefined":return o?null:void 0;case"string":return JSON.stringify(n);default:return isFinite(n)?n:null}}return Sa=function(n){var o=e(n,!1);if(o!==void 0)return""+o},Sa}var Tv=Ov(),ol=kv(Tv);const to=32;function Aa(r){let t=0;for(;r>1;)r/=2,t++;return t}function Nv(r){return r===0?1:(r--,r|=r>>1,r|=r>>2,r|=r>>4,r|=r>>8,r|=r>>16,r|=r>>32,r+1)}class sl{constructor(t,e,n,o,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=e,this.warmup=n,this.firstNormalEpoch=o,this.firstNormalSlot=i}getEpoch(t){return this.getEpochAndSlotIndex(t)[0]}getEpochAndSlotIndex(t){if(t<this.firstNormalSlot){const e=Aa(Nv(t+to+1))-Aa(to)-1,n=this.getSlotsInEpoch(e),o=t-(n-to);return[e,o]}else{const e=t-this.firstNormalSlot,n=Math.floor(e/this.slotsPerEpoch),o=this.firstNormalEpoch+n,i=e%this.slotsPerEpoch;return[o,i]}}getFirstSlotInEpoch(t){return t<=this.firstNormalEpoch?(Math.pow(2,t)-1)*to:(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}getSlotsInEpoch(t){return t<this.firstNormalEpoch?Math.pow(2,t+Aa(to)):this.slotsPerEpoch}}var xv=globalThis.fetch;class Lv extends Hm{constructor(t,e,n){const o=i=>{const u=Um(i,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...e});return"socket"in u?this.underlyingSocket=u.socket:this.underlyingSocket=u,u};super(o,t,e,n),this.underlyingSocket=void 0}call(...t){const e=this.underlyingSocket?.readyState;return e===1?super.call(...t):Promise.reject(new Error("Tried to call a JSON-RPC method `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+e+")"))}notify(...t){const e=this.underlyingSocket?.readyState;return e===1?super.notify(...t):Promise.reject(new Error("Tried to send a JSON-RPC notification `"+t[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+e+")"))}}function Cv(r,t){let e;try{e=r.layout.decode(t)}catch(n){throw new Error("invalid instruction; "+n)}if(e.typeIndex!==r.index)throw new Error(`invalid account data; account type mismatch ${e.typeIndex} != ${r.index}`);return e}const al=56;class Ia{constructor(t){this.key=void 0,this.state=void 0,this.key=t.key,this.state=t.state}isActive(){const t=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===t}static deserialize(t){const e=Cv(Bv,t),n=t.length-al;De(n>=0,"lookup table is invalid"),De(n%32===0,"lookup table is invalid");const o=n/32,{addresses:i}=st.struct([st.seq(Ne(),o,"addresses")]).decode(t.slice(al));return{deactivationSlot:e.deactivationSlot,lastExtendedSlot:e.lastExtendedSlot,lastExtendedSlotStartIndex:e.lastExtendedStartIndex,authority:e.authority.length!==0?new Jt(e.authority[0]):void 0,addresses:i.map(u=>new Jt(u))}}}const Bv={index:1,layout:st.struct([st.u32("typeIndex"),Ai("deactivationSlot"),st.nu64("lastExtendedSlot"),st.u8("lastExtendedStartIndex"),st.u8(),st.seq(Ne(),st.offset(st.u8(),-1),"authority")])},Pv=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;function Mv(r){const t=r.match(Pv);if(t==null)throw TypeError(`Failed to validate endpoint URL \`${r}\``);const[e,n,o,i]=t,u=r.startsWith("https:")?"wss:":"ws:",d=o==null?null:parseInt(o.slice(1),10),l=d==null?"":`:${d+1}`;return`${u}//${n}${l}${i}`}const on=qi(na(Jt),Zt(),r=>new Jt(r)),cl=ra([Zt(),rn("base64")]),ka=qi(na(ve.Buffer),cl,r=>ve.Buffer.from(r[0],"base64")),ul=30*1e3;function Dv(r){if(/^https?:/.test(r)===!1)throw new TypeError("Endpoint URL must start with `http:` or `https:`.");return r}function Xe(r){let t,e;if(typeof r=="string")t=r;else if(r){const{commitment:n,...o}=r;t=n,e=o}return{commitment:t,config:e}}function ll(r){return r.map(t=>"memcmp"in t?{...t,memcmp:{...t.memcmp,encoding:t.memcmp.encoding??"base58"}}:t)}function fl(r){return Dn([Ft({jsonrpc:rn("2.0"),id:Zt(),result:r}),Ft({jsonrpc:rn("2.0"),id:Zt(),error:Ft({code:Ei(),message:Zt(),data:ge(fm())})})])}const Uv=fl(Ei());function Oe(r){return qi(fl(r),Uv,t=>"error"in t?t:{...t,result:Qt(t.result,r)})}function mn(r){return Oe(Ft({context:Ft({slot:St()}),value:r}))}function ns(r){return Ft({context:Ft({slot:St()}),value:r})}function Oa(r,t){return r===0?new ei({header:t.header,staticAccountKeys:t.accountKeys.map(e=>new Jt(e)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Sn.decode(e.data)})),addressTableLookups:t.addressTableLookups}):new Qn(t)}const Fv=Ft({foundation:St(),foundationTerm:St(),initial:St(),taper:St(),terminal:St()}),Hv=Oe(re(ie(Ft({epoch:St(),effectiveSlot:St(),amount:St(),postBalance:St(),commission:ge(ie(St()))})))),Vv=re(Ft({slot:St(),prioritizationFee:St()})),Wv=Ft({total:St(),validator:St(),foundation:St(),epoch:St()}),zv=Ft({epoch:St(),slotIndex:St(),slotsInEpoch:St(),absoluteSlot:St(),blockHeight:ge(St()),transactionCount:ge(St())}),Gv=Ft({slotsPerEpoch:St(),leaderScheduleSlotOffset:St(),warmup:ur(),firstNormalEpoch:St(),firstNormalSlot:St()}),Kv=Au(Zt(),re(St())),ii=ie(Dn([Ft({}),Zt()])),jv=Ft({err:ii}),Yv=rn("receivedSignature"),qv=Ft({"solana-core":Zt(),"feature-set":ge(St())}),$v=Ft({program:Zt(),programId:on,parsed:Ei()}),Zv=Ft({programId:on,accounts:re(on),data:Zt()}),dl=mn(Ft({err:ie(Dn([Ft({}),Zt()])),logs:ie(re(Zt())),accounts:ge(ie(re(ie(Ft({executable:ur(),owner:Zt(),lamports:St(),data:re(Zt()),rentEpoch:ge(St())}))))),unitsConsumed:ge(St()),returnData:ge(ie(Ft({programId:Zt(),data:ra([Zt(),rn("base64")])}))),innerInstructions:ge(ie(re(Ft({index:St(),instructions:re(Dn([$v,Zv]))}))))})),Xv=mn(Ft({byIdentity:Au(Zt(),re(St())),range:Ft({firstSlot:St(),lastSlot:St()})}));function Jv(r,t,e,n,o,i){const u=e||xv;let d;i!=null&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");let l;return n&&(l=async(S,O)=>{const C=await new Promise((N,B)=>{try{n(S,O,(M,F)=>N([M,F]))}catch(M){B(M)}});return await u(...C)}),new Bm(async(S,O)=>{const C={method:"POST",body:S,agent:d,headers:Object.assign({"Content-Type":"application/json"},t||{},J3)};try{let N=5,B,M=500;for(;l?B=await l(r,C):B=await u(r,C),!(B.status!==429||o===!0||(N-=1,N===0));)console.error(`Server responded with ${B.status} ${B.statusText}. Retrying after ${M}ms delay...`),await ni(M),M*=2;const F=await B.text();B.ok?O(null,F):O(new Error(`${B.status} ${B.statusText}: ${F}`))}catch(N){N instanceof Error&&O(N)}},{})}function Qv(r){return(t,e)=>new Promise((n,o)=>{r.request(t,e,(i,u)=>{if(i){o(i);return}n(u)})})}function t3(r){return t=>new Promise((e,n)=>{t.length===0&&e([]);const o=t.map(i=>r.request(i.methodName,i.args));r.request(o,(i,u)=>{if(i){n(i);return}e(u)})})}const e3=Oe(Fv),n3=Oe(Wv),r3=Oe(Vv),i3=Oe(zv),o3=Oe(Gv),s3=Oe(Kv),a3=Oe(St()),c3=mn(Ft({total:St(),circulating:St(),nonCirculating:St(),nonCirculatingAccounts:re(on)})),Ta=Ft({amount:Zt(),uiAmount:ie(St()),decimals:St(),uiAmountString:ge(Zt())}),u3=mn(re(Ft({address:on,amount:Zt(),uiAmount:ie(St()),decimals:St(),uiAmountString:ge(Zt())}))),l3=mn(re(Ft({pubkey:on,account:Ft({executable:ur(),owner:on,lamports:St(),data:ka,rentEpoch:St()})}))),Na=Ft({program:Zt(),parsed:Ei(),space:St()}),f3=mn(re(Ft({pubkey:on,account:Ft({executable:ur(),owner:on,lamports:St(),data:Na,rentEpoch:St()})}))),d3=mn(re(Ft({lamports:St(),address:on}))),eo=Ft({executable:ur(),owner:on,lamports:St(),data:ka,rentEpoch:St()}),h3=Ft({pubkey:on,account:eo}),p3=qi(Dn([na(ve.Buffer),Na]),Dn([cl,Na]),r=>Array.isArray(r)?Qt(r,ka):r),xa=Ft({executable:ur(),owner:on,lamports:St(),data:p3,rentEpoch:St()}),g3=Ft({pubkey:on,account:xa}),m3=Ft({state:Dn([rn("active"),rn("inactive"),rn("activating"),rn("deactivating")]),active:St(),inactive:St()}),v3=Oe(re(Ft({signature:Zt(),slot:St(),err:ii,memo:ie(Zt()),blockTime:ge(ie(St()))}))),y3=Oe(re(Ft({signature:Zt(),slot:St(),err:ii,memo:ie(Zt()),blockTime:ge(ie(St()))}))),w3=Ft({subscription:St(),result:ns(eo)}),b3=Ft({pubkey:on,account:eo}),_3=Ft({subscription:St(),result:ns(b3)}),E3=Ft({parent:St(),slot:St(),root:St()}),R3=Ft({subscription:St(),result:E3}),S3=Dn([Ft({type:Dn([rn("firstShredReceived"),rn("completed"),rn("optimisticConfirmation"),rn("root")]),slot:St(),timestamp:St()}),Ft({type:rn("createdBank"),parent:St(),slot:St(),timestamp:St()}),Ft({type:rn("frozen"),slot:St(),timestamp:St(),stats:Ft({numTransactionEntries:St(),numSuccessfulTransactions:St(),numFailedTransactions:St(),maxTransactionsPerEntry:St()})}),Ft({type:rn("dead"),slot:St(),timestamp:St(),err:Zt()})]),A3=Ft({subscription:St(),result:S3}),I3=Ft({subscription:St(),result:ns(Dn([jv,Yv]))}),k3=Ft({subscription:St(),result:St()}),O3=Ft({pubkey:Zt(),gossip:ie(Zt()),tpu:ie(Zt()),rpc:ie(Zt()),version:ie(Zt())}),hl=Ft({votePubkey:Zt(),nodePubkey:Zt(),activatedStake:St(),epochVoteAccount:ur(),epochCredits:re(ra([St(),St(),St()])),commission:St(),lastVote:St(),rootSlot:ie(St())}),T3=Oe(Ft({current:re(hl),delinquent:re(hl)})),N3=Dn([rn("processed"),rn("confirmed"),rn("finalized")]),x3=Ft({slot:St(),confirmations:ie(St()),err:ii,confirmationStatus:ge(N3)}),L3=mn(re(ie(x3))),C3=Oe(St()),pl=Ft({accountKey:on,writableIndexes:re(St()),readonlyIndexes:re(St())}),La=Ft({signatures:re(Zt()),message:Ft({accountKeys:re(Zt()),header:Ft({numRequiredSignatures:St(),numReadonlySignedAccounts:St(),numReadonlyUnsignedAccounts:St()}),instructions:re(Ft({accounts:re(St()),data:Zt(),programIdIndex:St()})),recentBlockhash:Zt(),addressTableLookups:ge(re(pl))})}),gl=Ft({pubkey:on,signer:ur(),writable:ur(),source:ge(Dn([rn("transaction"),rn("lookupTable")]))}),ml=Ft({accountKeys:re(gl),signatures:re(Zt())}),vl=Ft({parsed:Ei(),program:Zt(),programId:on}),yl=Ft({accounts:re(on),data:Zt(),programId:on}),B3=Dn([yl,vl]),P3=Dn([Ft({parsed:Ei(),program:Zt(),programId:Zt()}),Ft({accounts:re(Zt()),data:Zt(),programId:Zt()})]),wl=qi(B3,P3,r=>"accounts"in r?Qt(r,yl):Qt(r,vl)),bl=Ft({signatures:re(Zt()),message:Ft({accountKeys:re(gl),instructions:re(wl),recentBlockhash:Zt(),addressTableLookups:ge(ie(re(pl)))})}),rs=Ft({accountIndex:St(),mint:Zt(),owner:ge(Zt()),programId:ge(Zt()),uiTokenAmount:Ta}),_l=Ft({writable:re(on),readonly:re(on)}),is=Ft({err:ii,fee:St(),innerInstructions:ge(ie(re(Ft({index:St(),instructions:re(Ft({accounts:re(St()),data:Zt(),programIdIndex:St()}))})))),preBalances:re(St()),postBalances:re(St()),logMessages:ge(ie(re(Zt()))),preTokenBalances:ge(ie(re(rs))),postTokenBalances:ge(ie(re(rs))),loadedAddresses:ge(_l),computeUnitsConsumed:ge(St())}),Ca=Ft({err:ii,fee:St(),innerInstructions:ge(ie(re(Ft({index:St(),instructions:re(wl)})))),preBalances:re(St()),postBalances:re(St()),logMessages:ge(ie(re(Zt()))),preTokenBalances:ge(ie(re(rs))),postTokenBalances:ge(ie(re(rs))),loadedAddresses:ge(_l),computeUnitsConsumed:ge(St())}),Ii=Dn([rn(0),rn("legacy")]),oi=Ft({pubkey:Zt(),lamports:St(),postBalance:ie(St()),rewardType:ie(Zt()),commission:ge(ie(St()))}),M3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),transactions:re(Ft({transaction:La,meta:ie(is),version:ge(Ii)})),rewards:ge(re(oi)),blockTime:ie(St()),blockHeight:ie(St())}))),D3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),rewards:ge(re(oi)),blockTime:ie(St()),blockHeight:ie(St())}))),U3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),transactions:re(Ft({transaction:ml,meta:ie(is),version:ge(Ii)})),rewards:ge(re(oi)),blockTime:ie(St()),blockHeight:ie(St())}))),F3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),transactions:re(Ft({transaction:bl,meta:ie(Ca),version:ge(Ii)})),rewards:ge(re(oi)),blockTime:ie(St()),blockHeight:ie(St())}))),H3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),transactions:re(Ft({transaction:ml,meta:ie(Ca),version:ge(Ii)})),rewards:ge(re(oi)),blockTime:ie(St()),blockHeight:ie(St())}))),V3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),rewards:ge(re(oi)),blockTime:ie(St()),blockHeight:ie(St())}))),W3=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),transactions:re(Ft({transaction:La,meta:ie(is)})),rewards:ge(re(oi)),blockTime:ie(St())}))),El=Oe(ie(Ft({blockhash:Zt(),previousBlockhash:Zt(),parentSlot:St(),signatures:re(Zt()),blockTime:ie(St())}))),Ba=Oe(ie(Ft({slot:St(),meta:ie(is),blockTime:ge(ie(St())),transaction:La,version:ge(Ii)}))),os=Oe(ie(Ft({slot:St(),transaction:bl,meta:ie(Ca),blockTime:ge(ie(St())),version:ge(Ii)}))),z3=mn(Ft({blockhash:Zt(),lastValidBlockHeight:St()})),G3=mn(ur()),K3=Ft({slot:St(),numTransactions:St(),numSlots:St(),samplePeriodSecs:St()}),j3=Oe(re(K3)),Y3=mn(ie(Ft({feeCalculator:Ft({lamportsPerSignature:St()})}))),q3=Oe(Zt()),$3=Oe(Zt()),Z3=Ft({err:ii,logs:re(Zt()),signature:Zt()}),X3=Ft({result:ns(Z3),subscription:St()}),J3={"solana-client":"js/1.0.0-maintenance"};class Q3{constructor(t,e){this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={},this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{const v={};return async S=>{const{commitment:O,config:C}=Xe(S),N=this._buildArgs([],O,void 0,C),B=ol(N);return v[B]=v[B]??(async()=>{try{const M=await this._rpcRequest("getBlockHeight",N),F=Qt(M,Oe(St()));if("error"in F)throw new ue(F.error,"failed to get block height information");return F.result}finally{delete v[B]}})(),await v[B]}})();let n,o,i,u,d,l;e&&typeof e=="string"?this._commitment=e:e&&(this._commitment=e.commitment,this._confirmTransactionInitialTimeout=e.confirmTransactionInitialTimeout,n=e.wsEndpoint,o=e.httpHeaders,i=e.fetch,u=e.fetchMiddleware,d=e.disableRetryOnRateLimit,l=e.httpAgent),this._rpcEndpoint=Dv(t),this._rpcWsEndpoint=n||Mv(t),this._rpcClient=Jv(t,o,i,u,d,l),this._rpcRequest=Qv(this._rpcClient),this._rpcBatchRequest=t3(this._rpcClient),this._rpcWebSocket=new Lv(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,void 0,o),u=await this._rpcRequest("getBalance",i),d=Qt(u,mn(St()));if("error"in d)throw new ue(d.error,`failed to get balance for ${t.toBase58()}`);return d.result}async getBalance(t,e){return await this.getBalanceAndContext(t,e).then(n=>n.value).catch(n=>{throw new Error("failed to get balance of account "+t.toBase58()+": "+n)})}async getBlockTime(t){const e=await this._rpcRequest("getBlockTime",[t]),n=Qt(e,Oe(ie(St())));if("error"in n)throw new ue(n.error,`failed to get block time for slot ${t}`);return n.result}async getMinimumLedgerSlot(){const t=await this._rpcRequest("minimumLedgerSlot",[]),e=Qt(t,Oe(St()));if("error"in e)throw new ue(e.error,"failed to get minimum ledger slot");return e.result}async getFirstAvailableBlock(){const t=await this._rpcRequest("getFirstAvailableBlock",[]),e=Qt(t,a3);if("error"in e)throw new ue(e.error,"failed to get first available block");return e.result}async getSupply(t){let e={};typeof t=="string"?e={commitment:t}:t?e={...t,commitment:t&&t.commitment||this.commitment}:e={commitment:this.commitment};const n=await this._rpcRequest("getSupply",[e]),o=Qt(n,c3);if("error"in o)throw new ue(o.error,"failed to get supply");return o.result}async getTokenSupply(t,e){const n=this._buildArgs([t.toBase58()],e),o=await this._rpcRequest("getTokenSupply",n),i=Qt(o,mn(Ta));if("error"in i)throw new ue(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(t,e){const n=this._buildArgs([t.toBase58()],e),o=await this._rpcRequest("getTokenAccountBalance",n),i=Qt(o,mn(Ta));if("error"in i)throw new ue(i.error,"failed to get token account balance");return i.result}async getTokenAccountsByOwner(t,e,n){const{commitment:o,config:i}=Xe(n);let u=[t.toBase58()];"mint"in e?u.push({mint:e.mint.toBase58()}):u.push({programId:e.programId.toBase58()});const d=this._buildArgs(u,o,"base64",i),l=await this._rpcRequest("getTokenAccountsByOwner",d),v=Qt(l,l3);if("error"in v)throw new ue(v.error,`failed to get token accounts owned by account ${t.toBase58()}`);return v.result}async getParsedTokenAccountsByOwner(t,e,n){let o=[t.toBase58()];"mint"in e?o.push({mint:e.mint.toBase58()}):o.push({programId:e.programId.toBase58()});const i=this._buildArgs(o,n,"jsonParsed"),u=await this._rpcRequest("getTokenAccountsByOwner",i),d=Qt(u,f3);if("error"in d)throw new ue(d.error,`failed to get token accounts owned by account ${t.toBase58()}`);return d.result}async getLargestAccounts(t){const e={...t,commitment:t&&t.commitment||this.commitment},n=e.filter||e.commitment?[e]:[],o=await this._rpcRequest("getLargestAccounts",n),i=Qt(o,d3);if("error"in i)throw new ue(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(t,e){const n=this._buildArgs([t.toBase58()],e),o=await this._rpcRequest("getTokenLargestAccounts",n),i=Qt(o,u3);if("error"in i)throw new ue(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,"base64",o),u=await this._rpcRequest("getAccountInfo",i),d=Qt(u,mn(ie(eo)));if("error"in d)throw new ue(d.error,`failed to get info about account ${t.toBase58()}`);return d.result}async getParsedAccountInfo(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",o),u=await this._rpcRequest("getAccountInfo",i),d=Qt(u,mn(ie(xa)));if("error"in d)throw new ue(d.error,`failed to get info about account ${t.toBase58()}`);return d.result}async getAccountInfo(t,e){try{return(await this.getAccountInfoAndContext(t,e)).value}catch(n){throw new Error("failed to get info about account "+t.toBase58()+": "+n)}}async getMultipleParsedAccounts(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(v=>v.toBase58()),u=this._buildArgs([i],n,"jsonParsed",o),d=await this._rpcRequest("getMultipleAccounts",u),l=Qt(d,mn(re(ie(xa))));if("error"in l)throw new ue(l.error,`failed to get info for accounts ${i}`);return l.result}async getMultipleAccountsInfoAndContext(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(v=>v.toBase58()),u=this._buildArgs([i],n,"base64",o),d=await this._rpcRequest("getMultipleAccounts",u),l=Qt(d,mn(re(ie(eo))));if("error"in l)throw new ue(l.error,`failed to get info for accounts ${i}`);return l.result}async getMultipleAccountsInfo(t,e){return(await this.getMultipleAccountsInfoAndContext(t,e)).value}async getStakeActivation(t,e,n){const{commitment:o,config:i}=Xe(e),u=this._buildArgs([t.toBase58()],o,void 0,{...i,epoch:n??i?.epoch}),d=await this._rpcRequest("getStakeActivation",u),l=Qt(d,Oe(m3));if("error"in l)throw new ue(l.error,`failed to get Stake Activation ${t.toBase58()}`);return l.result}async getProgramAccounts(t,e){const{commitment:n,config:o}=Xe(e),{encoding:i,...u}=o||{},d=this._buildArgs([t.toBase58()],n,i||"base64",{...u,...u.filters?{filters:ll(u.filters)}:null}),l=await this._rpcRequest("getProgramAccounts",d),v=re(h3),S=u.withContext===!0?Qt(l,mn(v)):Qt(l,Oe(v));if("error"in S)throw new ue(S.error,`failed to get accounts owned by program ${t.toBase58()}`);return S.result}async getParsedProgramAccounts(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t.toBase58()],n,"jsonParsed",o),u=await this._rpcRequest("getProgramAccounts",i),d=Qt(u,Oe(re(g3)));if("error"in d)throw new ue(d.error,`failed to get accounts owned by program ${t.toBase58()}`);return d.result}async confirmTransaction(t,e){let n;if(typeof t=="string")n=t;else{const i=t;if(i.abortSignal?.aborted)return Promise.reject(i.abortSignal.reason);n=i.signature}let o;try{o=Sn.decode(n)}catch{throw new Error("signature must be base58 encoded: "+n)}return De(o.length===64,"signature has invalid length"),typeof t=="string"?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:e||this.commitment,signature:n}):"lastValidBlockHeight"in t?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e||this.commitment,strategy:t}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:e||this.commitment,strategy:t})}getCancellationPromise(t){return new Promise((e,n)=>{t!=null&&(t.aborted?n(t.reason):t.addEventListener("abort",()=>{n(t.reason)}))})}getTransactionConfirmationPromise({commitment:t,signature:e}){let n,o,i=!1;const u=new Promise((l,v)=>{try{n=this.onSignature(e,(O,C)=>{n=void 0;const N={context:C,value:O};l({__type:Sr.PROCESSED,response:N})},t);const S=new Promise(O=>{n==null?O():o=this._onSubscriptionStateChange(n,C=>{C==="subscribed"&&O()})});(async()=>{if(await S,i)return;const O=await this.getSignatureStatus(e);if(i||O==null)return;const{context:C,value:N}=O;if(N!=null)if(N?.err)v(N.err);else{switch(t){case"confirmed":case"single":case"singleGossip":{if(N.confirmationStatus==="processed")return;break}case"finalized":case"max":case"root":{if(N.confirmationStatus==="processed"||N.confirmationStatus==="confirmed")return;break}case"processed":case"recent":}i=!0,l({__type:Sr.PROCESSED,response:{context:C,value:N}})}})()}catch(S){v(S)}});return{abortConfirmation:()=>{o&&(o(),o=void 0),n!=null&&(this.removeSignatureListener(n),n=void 0)},confirmationPromise:u}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t,strategy:{abortSignal:e,lastValidBlockHeight:n,signature:o}}){let i=!1;const u=new Promise(O=>{const C=async()=>{try{return await this.getBlockHeight(t)}catch{return-1}};(async()=>{let N=await C();if(!i){for(;N<=n;)if(await ni(1e3),i||(N=await C(),i))return;O({__type:Sr.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:d,confirmationPromise:l}=this.getTransactionConfirmationPromise({commitment:t,signature:o}),v=this.getCancellationPromise(e);let S;try{const O=await Promise.race([v,l,u]);if(O.__type===Sr.PROCESSED)S=O.response;else throw new va(o)}finally{i=!0,d()}return S}async confirmTransactionUsingDurableNonceStrategy({commitment:t,strategy:{abortSignal:e,minContextSlot:n,nonceAccountPubkey:o,nonceValue:i,signature:u}}){let d=!1;const l=new Promise(N=>{let B=i,M=null;const F=async()=>{try{const{context:G,value:Q}=await this.getNonceAndContext(o,{commitment:t,minContextSlot:n});return M=G.slot,Q?.nonce}catch{return B}};(async()=>{if(B=await F(),!d)for(;;){if(i!==B){N({__type:Sr.NONCE_INVALID,slotInWhichNonceDidAdvance:M});return}if(await ni(2e3),d||(B=await F(),d))return}})()}),{abortConfirmation:v,confirmationPromise:S}=this.getTransactionConfirmationPromise({commitment:t,signature:u}),O=this.getCancellationPromise(e);let C;try{const N=await Promise.race([O,S,l]);if(N.__type===Sr.PROCESSED)C=N.response;else{let B;for(;;){const M=await this.getSignatureStatus(u);if(M==null)break;if(M.context.slot<(N.slotInWhichNonceDidAdvance??n)){await ni(400);continue}B=M;break}if(B?.value){const M=t||"finalized",{confirmationStatus:F}=B.value;switch(M){case"processed":case"recent":if(F!=="processed"&&F!=="confirmed"&&F!=="finalized")throw new Ri(u);break;case"confirmed":case"single":case"singleGossip":if(F!=="confirmed"&&F!=="finalized")throw new Ri(u);break;case"finalized":case"max":case"root":if(F!=="finalized")throw new Ri(u);break;default:}C={context:B.context,value:{err:B.value.err}}}else throw new Ri(u)}}finally{d=!0,v()}return C}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:t,signature:e}){let n;const o=new Promise(l=>{let v=this._confirmTransactionInitialTimeout||6e4;switch(t){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":{v=this._confirmTransactionInitialTimeout||3e4;break}}n=setTimeout(()=>l({__type:Sr.TIMED_OUT,timeoutMs:v}),v)}),{abortConfirmation:i,confirmationPromise:u}=this.getTransactionConfirmationPromise({commitment:t,signature:e});let d;try{const l=await Promise.race([u,o]);if(l.__type===Sr.PROCESSED)d=l.response;else throw new ya(e,l.timeoutMs/1e3)}finally{clearTimeout(n),i()}return d}async getClusterNodes(){const t=await this._rpcRequest("getClusterNodes",[]),e=Qt(t,Oe(re(O3)));if("error"in e)throw new ue(e.error,"failed to get cluster nodes");return e.result}async getVoteAccounts(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getVoteAccounts",e),o=Qt(n,T3);if("error"in o)throw new ue(o.error,"failed to get vote accounts");return o.result}async getSlot(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlot",o),u=Qt(i,Oe(St()));if("error"in u)throw new ue(u.error,"failed to get slot");return u.result}async getSlotLeader(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getSlotLeader",o),u=Qt(i,Oe(Zt()));if("error"in u)throw new ue(u.error,"failed to get slot leader");return u.result}async getSlotLeaders(t,e){const n=[t,e],o=await this._rpcRequest("getSlotLeaders",n),i=Qt(o,Oe(re(on)));if("error"in i)throw new ue(i.error,"failed to get slot leaders");return i.result}async getSignatureStatus(t,e){const{context:n,value:o}=await this.getSignatureStatuses([t],e);De(o.length===1);const i=o[0];return{context:n,value:i}}async getSignatureStatuses(t,e){const n=[t];e&&n.push(e);const o=await this._rpcRequest("getSignatureStatuses",n),i=Qt(o,L3);if("error"in i)throw new ue(i.error,"failed to get signature status");return i.result}async getTransactionCount(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getTransactionCount",o),u=Qt(i,Oe(St()));if("error"in u)throw new ue(u.error,"failed to get transaction count");return u.result}async getTotalSupply(t){return(await this.getSupply({commitment:t,excludeNonCirculatingAccountsList:!0})).value.total}async getInflationGovernor(t){const e=this._buildArgs([],t),n=await this._rpcRequest("getInflationGovernor",e),o=Qt(n,e3);if("error"in o)throw new ue(o.error,"failed to get inflation");return o.result}async getInflationReward(t,e,n){const{commitment:o,config:i}=Xe(n),u=this._buildArgs([t.map(v=>v.toBase58())],o,void 0,{...i,epoch:e??i?.epoch}),d=await this._rpcRequest("getInflationReward",u),l=Qt(d,Hv);if("error"in l)throw new ue(l.error,"failed to get inflation reward");return l.result}async getInflationRate(){const t=await this._rpcRequest("getInflationRate",[]),e=Qt(t,n3);if("error"in e)throw new ue(e.error,"failed to get inflation rate");return e.result}async getEpochInfo(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getEpochInfo",o),u=Qt(i,i3);if("error"in u)throw new ue(u.error,"failed to get epoch info");return u.result}async getEpochSchedule(){const t=await this._rpcRequest("getEpochSchedule",[]),e=Qt(t,o3);if("error"in e)throw new ue(e.error,"failed to get epoch schedule");const n=e.result;return new sl(n.slotsPerEpoch,n.leaderScheduleSlotOffset,n.warmup,n.firstNormalEpoch,n.firstNormalSlot)}async getLeaderSchedule(){const t=await this._rpcRequest("getLeaderSchedule",[]),e=Qt(t,s3);if("error"in e)throw new ue(e.error,"failed to get leader schedule");return e.result}async getMinimumBalanceForRentExemption(t,e){const n=this._buildArgs([t],e),o=await this._rpcRequest("getMinimumBalanceForRentExemption",n),i=Qt(o,C3);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(t){const{context:e,value:{blockhash:n}}=await this.getLatestBlockhashAndContext(t);return{context:e,value:{blockhash:n,feeCalculator:{get lamportsPerSignature(){throw new Error("The capability to fetch `lamportsPerSignature` using the `getRecentBlockhash` API is no longer offered by the network. Use the `getFeeForMessage` API to obtain the fee for a given message.")},toJSON(){return{}}}}}}async getRecentPerformanceSamples(t){const e=await this._rpcRequest("getRecentPerformanceSamples",t?[t]:[]),n=Qt(e,j3);if("error"in n)throw new ue(n.error,"failed to get recent performance samples");return n.result}async getFeeCalculatorForBlockhash(t,e){const n=this._buildArgs([t],e),o=await this._rpcRequest("getFeeCalculatorForBlockhash",n),i=Qt(o,Y3);if("error"in i)throw new ue(i.error,"failed to get fee calculator");const{context:u,value:d}=i.result;return{context:u,value:d!==null?d.feeCalculator:null}}async getFeeForMessage(t,e){const n=ke(t.serialize()).toString("base64"),o=this._buildArgs([n],e),i=await this._rpcRequest("getFeeForMessage",o),u=Qt(i,mn(ie(St())));if("error"in u)throw new ue(u.error,"failed to get fee for message");if(u.result===null)throw new Error("invalid blockhash");return u.result}async getRecentPrioritizationFees(t){const e=t?.lockedWritableAccounts?.map(u=>u.toBase58()),n=e?.length?[e]:[],o=await this._rpcRequest("getRecentPrioritizationFees",n),i=Qt(o,r3);if("error"in i)throw new ue(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(t){try{return(await this.getRecentBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(t){try{return(await this.getLatestBlockhashAndContext(t)).value}catch(e){throw new Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,void 0,n),i=await this._rpcRequest("getLatestBlockhash",o),u=Qt(i,z3);if("error"in u)throw new ue(u.error,"failed to get latest blockhash");return u.result}async isBlockhashValid(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgs([t],n,void 0,o),u=await this._rpcRequest("isBlockhashValid",i),d=Qt(u,G3);if("error"in d)throw new ue(d.error,"failed to determine if the blockhash `"+t+"`is valid");return d.result}async getVersion(){const t=await this._rpcRequest("getVersion",[]),e=Qt(t,Oe(qv));if("error"in e)throw new ue(e.error,"failed to get version");return e.result}async getGenesisHash(){const t=await this._rpcRequest("getGenesisHash",[]),e=Qt(t,Oe(Zt()));if("error"in e)throw new ue(e.error,"failed to get genesis hash");return e.result}async getBlock(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,o),u=await this._rpcRequest("getBlock",i);try{switch(o?.transactionDetails){case"accounts":{const d=Qt(u,U3);if("error"in d)throw d.error;return d.result}case"none":{const d=Qt(u,D3);if("error"in d)throw d.error;return d.result}default:{const d=Qt(u,M3);if("error"in d)throw d.error;const{result:l}=d;return l?{...l,transactions:l.transactions.map(({transaction:v,meta:S,version:O})=>({meta:S,transaction:{...v,message:Oa(O,v.message)},version:O}))}:null}}}catch(d){throw new ue(d,"failed to get confirmed block")}}async getParsedBlock(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",o),u=await this._rpcRequest("getBlock",i);try{switch(o?.transactionDetails){case"accounts":{const d=Qt(u,H3);if("error"in d)throw d.error;return d.result}case"none":{const d=Qt(u,V3);if("error"in d)throw d.error;return d.result}default:{const d=Qt(u,F3);if("error"in d)throw d.error;return d.result}}}catch(d){throw new ue(d,"failed to get block")}}async getBlockProduction(t){let e,n;if(typeof t=="string")n=t;else if(t){const{commitment:d,...l}=t;n=d,e=l}const o=this._buildArgs([],n,"base64",e),i=await this._rpcRequest("getBlockProduction",o),u=Qt(i,Xv);if("error"in u)throw new ue(u.error,"failed to get block production information");return u.result}async getTransaction(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,void 0,o),u=await this._rpcRequest("getTransaction",i),d=Qt(u,Ba);if("error"in d)throw new ue(d.error,"failed to get transaction");const l=d.result;return l&&{...l,transaction:{...l.transaction,message:Oa(l.version,l.transaction.message)}}}async getParsedTransaction(t,e){const{commitment:n,config:o}=Xe(e),i=this._buildArgsAtLeastConfirmed([t],n,"jsonParsed",o),u=await this._rpcRequest("getTransaction",i),d=Qt(u,os);if("error"in d)throw new ue(d.error,"failed to get transaction");return d.result}async getParsedTransactions(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(l=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([l],n,"jsonParsed",o)}));return(await this._rpcBatchRequest(i)).map(l=>{const v=Qt(l,os);if("error"in v)throw new ue(v.error,"failed to get transactions");return v.result})}async getTransactions(t,e){const{commitment:n,config:o}=Xe(e),i=t.map(l=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([l],n,void 0,o)}));return(await this._rpcBatchRequest(i)).map(l=>{const v=Qt(l,Ba);if("error"in v)throw new ue(v.error,"failed to get transactions");const S=v.result;return S&&{...S,transaction:{...S.transaction,message:Oa(S.version,S.transaction.message)}}})}async getConfirmedBlock(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),o=await this._rpcRequest("getBlock",n),i=Qt(o,W3);if("error"in i)throw new ue(i.error,"failed to get confirmed block");const u=i.result;if(!u)throw new Error("Confirmed block "+t+" not found");const d={...u,transactions:u.transactions.map(({transaction:l,meta:v})=>{const S=new Qn(l.message);return{meta:v,transaction:{...l,message:S}}})};return{...d,transactions:d.transactions.map(({transaction:l,meta:v})=>({meta:v,transaction:He.populate(l.message,l.signatures)}))}}async getBlocks(t,e,n){const o=this._buildArgsAtLeastConfirmed(e!==void 0?[t,e]:[t],n),i=await this._rpcRequest("getBlocks",o),u=Qt(i,Oe(re(St())));if("error"in u)throw new ue(u.error,"failed to get blocks");return u.result}async getBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",n),i=Qt(o,El);if("error"in i)throw new ue(i.error,"failed to get block");const u=i.result;if(!u)throw new Error("Block "+t+" not found");return u}async getConfirmedBlockSignatures(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,void 0,{transactionDetails:"signatures",rewards:!1}),o=await this._rpcRequest("getBlock",n),i=Qt(o,El);if("error"in i)throw new ue(i.error,"failed to get confirmed block");const u=i.result;if(!u)throw new Error("Confirmed block "+t+" not found");return u}async getConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e),o=await this._rpcRequest("getTransaction",n),i=Qt(o,Ba);if("error"in i)throw new ue(i.error,"failed to get transaction");const u=i.result;if(!u)return u;const d=new Qn(u.transaction.message),l=u.transaction.signatures;return{...u,transaction:He.populate(d,l)}}async getParsedConfirmedTransaction(t,e){const n=this._buildArgsAtLeastConfirmed([t],e,"jsonParsed"),o=await this._rpcRequest("getTransaction",n),i=Qt(o,os);if("error"in i)throw new ue(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(t,e){const n=t.map(u=>({methodName:"getTransaction",args:this._buildArgsAtLeastConfirmed([u],e,"jsonParsed")}));return(await this._rpcBatchRequest(n)).map(u=>{const d=Qt(u,os);if("error"in d)throw new ue(d.error,"failed to get confirmed transactions");return d.result})}async getConfirmedSignaturesForAddress(t,e,n){let o={},i=await this.getFirstAvailableBlock();for(;!("until"in o)&&(e--,!(e<=0||e<i));)try{const l=await this.getConfirmedBlockSignatures(e,"finalized");l.signatures.length>0&&(o.until=l.signatures[l.signatures.length-1].toString())}catch(l){if(l instanceof Error&&l.message.includes("skipped"))continue;throw l}let u=await this.getSlot("finalized");for(;!("before"in o)&&(n++,!(n>u));)try{const l=await this.getConfirmedBlockSignatures(n);l.signatures.length>0&&(o.before=l.signatures[l.signatures.length-1].toString())}catch(l){if(l instanceof Error&&l.message.includes("skipped"))continue;throw l}return(await this.getConfirmedSignaturesForAddress2(t,o)).map(l=>l.signature)}async getConfirmedSignaturesForAddress2(t,e,n){const o=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",o),u=Qt(i,v3);if("error"in u)throw new ue(u.error,"failed to get confirmed signatures for address");return u.result}async getSignaturesForAddress(t,e,n){const o=this._buildArgsAtLeastConfirmed([t.toBase58()],n,void 0,e),i=await this._rpcRequest("getSignaturesForAddress",o),u=Qt(i,y3);if("error"in u)throw new ue(u.error,"failed to get signatures for address");return u.result}async getAddressLookupTable(t,e){const{context:n,value:o}=await this.getAccountInfoAndContext(t,e);let i=null;return o!==null&&(i=new Ia({key:t,state:Ia.deserialize(o.data)})),{context:n,value:i}}async getNonceAndContext(t,e){const{context:n,value:o}=await this.getAccountInfoAndContext(t,e);let i=null;return o!==null&&(i=es.fromAccountData(o.data)),{context:n,value:i}}async getNonce(t,e){return await this.getNonceAndContext(t,e).then(n=>n.value).catch(n=>{throw new Error("failed to get nonce for account "+t.toBase58()+": "+n)})}async requestAirdrop(t,e){const n=await this._rpcRequest("requestAirdrop",[t.toBase58(),e]),o=Qt(n,q3);if("error"in o)throw new ue(o.error,`airdrop to ${t.toBase58()} failed`);return o.result}async _blockhashWithExpiryBlockHeight(t){if(!t){for(;this._pollingBlockhash;)await ni(100);const n=Date.now()-this._blockhashInfo.lastFetch>=ul;if(this._blockhashInfo.latestBlockhash!==null&&!n)return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{const t=Date.now(),e=this._blockhashInfo.latestBlockhash,n=e?e.blockhash:null;for(let o=0;o<50;o++){const i=await this.getLatestBlockhash("finalized");if(n!==i.blockhash)return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},i;await ni(el/2)}throw new Error(`Unable to obtain a new blockhash after ${Date.now()-t}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(t){const{commitment:e,config:n}=Xe(t),o=this._buildArgs([],e,"base64",n),i=await this._rpcRequest("getStakeMinimumDelegation",o),u=Qt(i,mn(St()));if("error"in u)throw new ue(u.error,"failed to get stake minimum delegation");return u.result}async simulateTransaction(t,e,n){if("message"in t){const M=t.serialize(),F=ve.Buffer.from(M).toString("base64");if(Array.isArray(e)||n!==void 0)throw new Error("Invalid arguments");const G=e||{};G.encoding="base64","commitment"in G||(G.commitment=this.commitment),e&&typeof e=="object"&&"innerInstructions"in e&&(G.innerInstructions=e.innerInstructions);const Q=[F,G],et=await this._rpcRequest("simulateTransaction",Q),ct=Qt(et,dl);if("error"in ct)throw new Error("failed to simulate transaction: "+ct.error.message);return ct.result}let o;if(t instanceof He){let B=t;o=new He,o.feePayer=B.feePayer,o.instructions=t.instructions,o.nonceInfo=B.nonceInfo,o.signatures=B.signatures}else o=He.populate(t),o._message=o._json=void 0;if(e!==void 0&&!Array.isArray(e))throw new Error("Invalid arguments");const i=e;if(o.nonceInfo&&i)o.sign(...i);else{let B=this._disableBlockhashCaching;for(;;){const M=await this._blockhashWithExpiryBlockHeight(B);if(o.lastValidBlockHeight=M.lastValidBlockHeight,o.recentBlockhash=M.blockhash,!i)break;if(o.sign(...i),!o.signature)throw new Error("!signature");const F=o.signature.toString("base64");if(!this._blockhashInfo.simulatedSignatures.includes(F)&&!this._blockhashInfo.transactionSignatures.includes(F)){this._blockhashInfo.simulatedSignatures.push(F);break}else B=!0}}const u=o._compile(),d=u.serialize(),v=o._serialize(d).toString("base64"),S={encoding:"base64",commitment:this.commitment};if(n){const B=(Array.isArray(n)?n:u.nonProgramIds()).map(M=>M.toBase58());S.accounts={encoding:"base64",addresses:B}}i&&(S.sigVerify=!0),e&&typeof e=="object"&&"innerInstructions"in e&&(S.innerInstructions=e.innerInstructions);const O=[v,S],C=await this._rpcRequest("simulateTransaction",O),N=Qt(C,dl);if("error"in N){let B;if("data"in N.error&&(B=N.error.data.logs,B&&Array.isArray(B))){const M=`
12
+ `,F=M+B.join(M);console.error(N.error.message,F)}throw new Qi({action:"simulate",signature:"",transactionMessage:N.error.message,logs:B})}return N.result}async sendTransaction(t,e,n){if("version"in t){if(e&&Array.isArray(e))throw new Error("Invalid arguments");const u=t.serialize();return await this.sendRawTransaction(u,e)}if(e===void 0||!Array.isArray(e))throw new Error("Invalid arguments");const o=e;if(t.nonceInfo)t.sign(...o);else{let u=this._disableBlockhashCaching;for(;;){const d=await this._blockhashWithExpiryBlockHeight(u);if(t.lastValidBlockHeight=d.lastValidBlockHeight,t.recentBlockhash=d.blockhash,t.sign(...o),!t.signature)throw new Error("!signature");const l=t.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(l))u=!0;else{this._blockhashInfo.transactionSignatures.push(l);break}}}const i=t.serialize();return await this.sendRawTransaction(i,n)}async sendRawTransaction(t,e){const n=ke(t).toString("base64");return await this.sendEncodedTransaction(n,e)}async sendEncodedTransaction(t,e){const n={encoding:"base64"},o=e&&e.skipPreflight,i=o===!0?"processed":e&&e.preflightCommitment||this.commitment;e&&e.maxRetries!=null&&(n.maxRetries=e.maxRetries),e&&e.minContextSlot!=null&&(n.minContextSlot=e.minContextSlot),o&&(n.skipPreflight=o),i&&(n.preflightCommitment=i);const u=[t,n],d=await this._rpcRequest("sendTransaction",u),l=Qt(d,$3);if("error"in l){let v;throw"data"in l.error&&(v=l.error.data.logs),new Qi({action:o?"send":"simulate",signature:"",transactionMessage:l.error.message,logs:v})}return l.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}_wsOnClose(t){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),t===1e3){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([e,n])=>{this._setSubscription(e,{...n,state:"pending"})})}_setSubscription(t,e){const n=this._subscriptionsByHash[t]?.state;if(this._subscriptionsByHash[t]=e,n!==e.state){const o=this._subscriptionStateChangeCallbacksByHash[t];o&&o.forEach(i=>{try{i(e.state)}catch{}})}}_onSubscriptionStateChange(t,e){const n=this._subscriptionHashByClientSubscriptionId[t];if(n==null)return()=>{};const o=this._subscriptionStateChangeCallbacksByHash[n]||=new Set;return o.add(e),()=>{o.delete(e),o.size===0&&delete this._subscriptionStateChangeCallbacksByHash[n]}}async _updateSubscriptions(){if(Object.keys(this._subscriptionsByHash).length===0){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(n){n instanceof Error&&console.log(`Error when closing socket connection: ${n.message}`)}},500));return}if(this._rpcWebSocketIdleTimeout!==null&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}const t=this._rpcWebSocketGeneration,e=()=>t===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async n=>{const o=this._subscriptionsByHash[n];if(o!==void 0)switch(o.state){case"pending":case"unsubscribed":if(o.callbacks.size===0){delete this._subscriptionsByHash[n],o.state==="unsubscribed"&&delete this._subscriptionCallbacksByServerSubscriptionId[o.serverSubscriptionId],await this._updateSubscriptions();return}await(async()=>{const{args:i,method:u}=o;try{this._setSubscription(n,{...o,state:"subscribing"});const d=await this._rpcWebSocket.call(u,i);this._setSubscription(n,{...o,serverSubscriptionId:d,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[d]=o.callbacks,await this._updateSubscriptions()}catch(d){if(console.error(`Received ${d instanceof Error?"":"JSON-RPC "}error calling \`${u}\``,{args:i,error:d}),!e())return;this._setSubscription(n,{...o,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":o.callbacks.size===0&&await(async()=>{const{serverSubscriptionId:i,unsubscribeMethod:u}=o;if(this._subscriptionsAutoDisposedByRpc.has(i))this._subscriptionsAutoDisposedByRpc.delete(i);else{this._setSubscription(n,{...o,state:"unsubscribing"}),this._setSubscription(n,{...o,state:"unsubscribing"});try{await this._rpcWebSocket.call(u,[i])}catch(d){if(d instanceof Error&&console.error(`${u} error:`,d.message),!e())return;this._setSubscription(n,{...o,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(n,{...o,state:"unsubscribed"}),await this._updateSubscriptions()})();break}}))}_handleServerNotification(t,e){const n=this._subscriptionCallbacksByServerSubscriptionId[t];n!==void 0&&n.forEach(o=>{try{o(...e)}catch(i){console.error(i)}})}_wsOnAccountNotification(t){const{result:e,subscription:n}=Qt(t,w3);this._handleServerNotification(n,[e.value,e.context])}_makeSubscription(t,e){const n=this._nextClientSubscriptionId++,o=ol([t.method,e]),i=this._subscriptionsByHash[o];return i===void 0?this._subscriptionsByHash[o]={...t,args:e,callbacks:new Set([t.callback]),state:"pending"}:i.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[n]=o,this._subscriptionDisposeFunctionsByClientSubscriptionId[n]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[n],delete this._subscriptionHashByClientSubscriptionId[n];const u=this._subscriptionsByHash[o];De(u!==void 0,`Could not find a \`Subscription\` when tearing down client subscription #${n}`),u.callbacks.delete(t.callback),await this._updateSubscriptions()},this._updateSubscriptions(),n}onAccountChange(t,e,n){const{commitment:o,config:i}=Xe(n),u=this._buildArgs([t.toBase58()],o||this._commitment||"finalized","base64",i);return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},u)}async removeAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"account change")}_wsOnProgramAccountNotification(t){const{result:e,subscription:n}=Qt(t,_3);this._handleServerNotification(n,[{accountId:e.value.pubkey,accountInfo:e.value.account},e.context])}onProgramAccountChange(t,e,n,o){const{commitment:i,config:u}=Xe(n),d=this._buildArgs([t.toBase58()],i||this._commitment||"finalized","base64",u||(o?{filters:ll(o)}:void 0));return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},d)}async removeProgramAccountChangeListener(t){await this._unsubscribeClientSubscription(t,"program account change")}onLogs(t,e,n){const o=this._buildArgs([typeof t=="object"?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},o)}async removeOnLogsListener(t){await this._unsubscribeClientSubscription(t,"logs")}_wsOnLogsNotification(t){const{result:e,subscription:n}=Qt(t,X3);this._handleServerNotification(n,[e.value,e.context])}_wsOnSlotNotification(t){const{result:e,subscription:n}=Qt(t,R3);this._handleServerNotification(n,[e])}onSlotChange(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(t){await this._unsubscribeClientSubscription(t,"slot change")}_wsOnSlotUpdatesNotification(t){const{result:e,subscription:n}=Qt(t,A3);this._handleServerNotification(n,[e])}onSlotUpdate(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(t){await this._unsubscribeClientSubscription(t,"slot update")}async _unsubscribeClientSubscription(t,e){const n=this._subscriptionDisposeFunctionsByClientSubscriptionId[t];n?await n():console.warn(`Ignored unsubscribe request because an active subscription with id \`${t}\` for '${e}' events could not be found.`)}_buildArgs(t,e,n,o){const i=e||this._commitment;if(i||n||o){let u={};n&&(u.encoding=n),i&&(u.commitment=i),o&&(u=Object.assign(u,o)),t.push(u)}return t}_buildArgsAtLeastConfirmed(t,e,n,o){const i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,o)}_wsOnSignatureNotification(t){const{result:e,subscription:n}=Qt(t,I3);e.value!=="receivedSignature"&&this._subscriptionsAutoDisposedByRpc.add(n),this._handleServerNotification(n,e.value==="receivedSignature"?[{type:"received"},e.context]:[{type:"status",result:e.value},e.context])}onSignature(t,e,n){const o=this._buildArgs([t],n||this._commitment||"finalized"),i=this._makeSubscription({callback:(u,d)=>{if(u.type==="status"){e(u.result,d);try{this.removeSignatureListener(i)}catch{}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return i}onSignatureWithOptions(t,e,n){const{commitment:o,...i}={...n,commitment:n&&n.commitment||this._commitment||"finalized"},u=this._buildArgs([t],o,void 0,i),d=this._makeSubscription({callback:(l,v)=>{e(l,v);try{this.removeSignatureListener(d)}catch{}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},u);return d}async removeSignatureListener(t){await this._unsubscribeClientSubscription(t,"signature result")}_wsOnRootNotification(t){const{result:e,subscription:n}=Qt(t,k3);this._handleServerNotification(n,[e])}onRootChange(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(t){await this._unsubscribeClientSubscription(t,"root change")}}class ki{constructor(t){this._keypair=void 0,this._keypair=t??qu()}static generate(){return new ki(qu())}static fromSecretKey(t,e){if(t.byteLength!==64)throw new Error("bad secret key size");const n=t.slice(32,64);if(!e||!e.skipValidation){const o=t.slice(0,32),i=Zo(o);for(let u=0;u<32;u++)if(n[u]!==i[u])throw new Error("provided secretKey is invalid")}return new ki({publicKey:n,secretKey:t})}static fromSeed(t){const e=Zo(t),n=new Uint8Array(64);return n.set(t),n.set(e,32),new ki({publicKey:e,secretKey:n})}get publicKey(){return new Jt(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}const Ar=Object.freeze({CreateLookupTable:{index:0,layout:st.struct([st.u32("instruction"),Ai("recentSlot"),st.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:st.struct([st.u32("instruction")])},ExtendLookupTable:{index:2,layout:st.struct([st.u32("instruction"),Ai(),st.seq(Ne(),st.offset(st.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:st.struct([st.u32("instruction")])},CloseLookupTable:{index:4,layout:st.struct([st.u32("instruction")])}});class ty{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(Ar))if(u.index==n){o=i;break}if(!o)throw new Error("Invalid Instruction. Should be a LookupTable Instruction");return o}static decodeCreateLookupTable(t){this.checkProgramId(t.programId),this.checkKeysLength(t.keys,4);const{recentSlot:e}=We(Ar.CreateLookupTable,t.data);return{authority:t.keys[1].pubkey,payer:t.keys[2].pubkey,recentSlot:Number(e)}}static decodeExtendLookupTable(t){if(this.checkProgramId(t.programId),t.keys.length<2)throw new Error(`invalid instruction; found ${t.keys.length} keys, expected at least 2`);const{addresses:e}=We(Ar.ExtendLookupTable,t.data);return{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,payer:t.keys.length>2?t.keys[2].pubkey:void 0,addresses:e.map(n=>new Jt(n))}}static decodeCloseLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}static decodeFreezeLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static decodeDeactivateLookupTable(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Pa.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}static checkKeysLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}class Pa{constructor(){}static createLookupTable(t){const[e,n]=Jt.findProgramAddressSync([t.authority.toBuffer(),_u().encode(t.recentSlot)],this.programId),o=Ar.CreateLookupTable,i=Be(o,{recentSlot:BigInt(t.recentSlot),bumpSeed:n}),u=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:An.programId,isSigner:!1,isWritable:!1}];return[new qe({programId:this.programId,keys:u,data:i}),e]}static freezeLookupTable(t){const e=Ar.FreezeLookupTable,n=Be(e),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new qe({programId:this.programId,keys:o,data:n})}static extendLookupTable(t){const e=Ar.ExtendLookupTable,n=Be(e,{addresses:t.addresses.map(i=>i.toBytes())}),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return t.payer&&o.push({pubkey:t.payer,isSigner:!0,isWritable:!0},{pubkey:An.programId,isSigner:!1,isWritable:!1}),new qe({programId:this.programId,keys:o,data:n})}static deactivateLookupTable(t){const e=Ar.DeactivateLookupTable,n=Be(e),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1}];return new qe({programId:this.programId,keys:o,data:n})}static closeLookupTable(t){const e=Ar.CloseLookupTable,n=Be(e),o=[{pubkey:t.lookupTable,isSigner:!1,isWritable:!0},{pubkey:t.authority,isSigner:!0,isWritable:!1},{pubkey:t.recipient,isSigner:!1,isWritable:!0}];return new qe({programId:this.programId,keys:o,data:n})}}Pa.programId=new Jt("AddressLookupTab1e1111111111111111111111111");class ey{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u8("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(hr))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a ComputeBudgetInstruction");return o}static decodeRequestUnits(t){this.checkProgramId(t.programId);const{units:e,additionalFee:n}=We(hr.RequestUnits,t.data);return{units:e,additionalFee:n}}static decodeRequestHeapFrame(t){this.checkProgramId(t.programId);const{bytes:e}=We(hr.RequestHeapFrame,t.data);return{bytes:e}}static decodeSetComputeUnitLimit(t){this.checkProgramId(t.programId);const{units:e}=We(hr.SetComputeUnitLimit,t.data);return{units:e}}static decodeSetComputeUnitPrice(t){this.checkProgramId(t.programId);const{microLamports:e}=We(hr.SetComputeUnitPrice,t.data);return{microLamports:e}}static checkProgramId(t){if(!t.equals(Ma.programId))throw new Error("invalid instruction; programId is not ComputeBudgetProgram")}}const hr=Object.freeze({RequestUnits:{index:0,layout:st.struct([st.u8("instruction"),st.u32("units"),st.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:st.struct([st.u8("instruction"),st.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:st.struct([st.u8("instruction"),st.u32("units")])},SetComputeUnitPrice:{index:3,layout:st.struct([st.u8("instruction"),Ai("microLamports")])}});class Ma{constructor(){}static requestUnits(t){const e=hr.RequestUnits,n=Be(e,t);return new qe({keys:[],programId:this.programId,data:n})}static requestHeapFrame(t){const e=hr.RequestHeapFrame,n=Be(e,t);return new qe({keys:[],programId:this.programId,data:n})}static setComputeUnitLimit(t){const e=hr.SetComputeUnitLimit,n=Be(e,t);return new qe({keys:[],programId:this.programId,data:n})}static setComputeUnitPrice(t){const e=hr.SetComputeUnitPrice,n=Be(e,{microLamports:BigInt(t.microLamports)});return new qe({keys:[],programId:this.programId,data:n})}}Ma.programId=new Jt("ComputeBudget111111111111111111111111111111");const Rl=64,Sl=32,Al=64,Il=st.struct([st.u8("numSignatures"),st.u8("padding"),st.u16("signatureOffset"),st.u16("signatureInstructionIndex"),st.u16("publicKeyOffset"),st.u16("publicKeyInstructionIndex"),st.u16("messageDataOffset"),st.u16("messageDataSize"),st.u16("messageInstructionIndex")]);class ss{constructor(){}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:o,instructionIndex:i}=t;De(e.length===Sl,`Public Key must be ${Sl} bytes but received ${e.length} bytes`),De(o.length===Al,`Signature must be ${Al} bytes but received ${o.length} bytes`);const u=Il.span,d=u+e.length,l=d+o.length,v=1,S=ve.Buffer.alloc(l+n.length),O=i??65535;return Il.encode({numSignatures:v,padding:0,signatureOffset:d,signatureInstructionIndex:O,publicKeyOffset:u,publicKeyInstructionIndex:O,messageDataOffset:l,messageDataSize:n.length,messageInstructionIndex:O},S),S.fill(e,u),S.fill(o,d),S.fill(n,l),new qe({keys:[],programId:ss.programId,data:S})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:o}=t;De(e.length===Rl,`Private key must be ${Rl} bytes but received ${e.length} bytes`);try{const i=ki.fromSecretKey(e),u=i.publicKey.toBytes(),d=ga(n,i.secretKey);return this.createInstructionWithPublicKey({publicKey:u,message:n,signature:d,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}ss.programId=new Jt("Ed25519SigVerify111111111111111111111111111");const ny=(r,t)=>{const e=$o.sign(r,t);return[e.toCompactRawBytes(),e.recovery]};$o.utils.isValidPrivateKey;const ry=$o.getPublicKey,kl=32,Da=20,Ol=64,iy=11,Ua=st.struct([st.u8("numSignatures"),st.u16("signatureOffset"),st.u8("signatureInstructionIndex"),st.u16("ethAddressOffset"),st.u8("ethAddressInstructionIndex"),st.u16("messageDataOffset"),st.u16("messageDataSize"),st.u8("messageInstructionIndex"),st.blob(20,"ethAddress"),st.blob(64,"signature"),st.u8("recoveryId")]);class Oi{constructor(){}static publicKeyToEthAddress(t){De(t.length===Ol,`Public key must be ${Ol} bytes but received ${t.length} bytes`);try{return ve.Buffer.from(Vu(ke(t))).slice(-Da)}catch(e){throw new Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(t){const{publicKey:e,message:n,signature:o,recoveryId:i,instructionIndex:u}=t;return Oi.createInstructionWithEthAddress({ethAddress:Oi.publicKeyToEthAddress(e),message:n,signature:o,recoveryId:i,instructionIndex:u})}static createInstructionWithEthAddress(t){const{ethAddress:e,message:n,signature:o,recoveryId:i,instructionIndex:u=0}=t;let d;typeof e=="string"?e.startsWith("0x")?d=ve.Buffer.from(e.substr(2),"hex"):d=ve.Buffer.from(e,"hex"):d=e,De(d.length===Da,`Address must be ${Da} bytes but received ${d.length} bytes`);const l=1+iy,v=l,S=l+d.length,O=S+o.length+1,C=1,N=ve.Buffer.alloc(Ua.span+n.length);return Ua.encode({numSignatures:C,signatureOffset:S,signatureInstructionIndex:u,ethAddressOffset:v,ethAddressInstructionIndex:u,messageDataOffset:O,messageDataSize:n.length,messageInstructionIndex:u,signature:ke(o),ethAddress:ke(d),recoveryId:i},N),N.fill(ke(n),Ua.span),new qe({keys:[],programId:Oi.programId,data:N})}static createInstructionWithPrivateKey(t){const{privateKey:e,message:n,instructionIndex:o}=t;De(e.length===kl,`Private key must be ${kl} bytes but received ${e.length} bytes`);try{const i=ke(e),u=ry(i,!1).slice(1),d=ve.Buffer.from(Vu(ke(n))),[l,v]=ny(d,i);return this.createInstructionWithPublicKey({publicKey:u,message:n,signature:l,recoveryId:v,instructionIndex:o})}catch(i){throw new Error(`Error creating instruction; ${i}`)}}}Oi.programId=new Jt("KeccakSecp256k11111111111111111111111111111");var Tl;const Nl=new Jt("StakeConfig11111111111111111111111111111111");class xl{constructor(t,e){this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=e}}class no{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Tl=no,no.default=new Tl(0,0,Jt.default);class oy{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(In))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a StakeInstruction");return o}static decodeInitialize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{authorized:e,lockup:n}=We(In.Initialize,t.data);return{stakePubkey:t.keys[0].pubkey,authorized:new xl(new Jt(e.staker),new Jt(e.withdrawer)),lockup:new no(n.unixTimestamp,n.epoch,new Jt(n.custodian))}}static decodeDelegate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,6),We(In.Delegate,t.data),{stakePubkey:t.keys[0].pubkey,votePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[5].pubkey}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,stakeAuthorizationType:n}=We(In.Authorize,t.data),o={stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Jt(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(o.custodianPubkey=t.keys[3].pubkey),o}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);const{newAuthorized:e,stakeAuthorizationType:n,authoritySeed:o,authorityOwner:i}=We(In.AuthorizeWithSeed,t.data),u={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:o,authorityOwner:new Jt(i),newAuthorizedPubkey:new Jt(e),stakeAuthorizationType:{index:n}};return t.keys.length>3&&(u.custodianPubkey=t.keys[3].pubkey),u}static decodeSplit(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=We(In.Split,t.data);return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}static decodeMerge(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),We(In.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);const{lamports:e}=We(In.Withdraw,t.data),n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}static decodeDeactivate(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),We(In.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}static checkProgramId(t){if(!t.equals(as.programId))throw new Error("invalid instruction; programId is not StakeProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const In=Object.freeze({Initialize:{index:0,layout:st.struct([st.u32("instruction"),dv(),hv()])},Authorize:{index:1,layout:st.struct([st.u32("instruction"),Ne("newAuthorized"),st.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:st.struct([st.u32("instruction")])},Split:{index:3,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},Withdraw:{index:4,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},Deactivate:{index:5,layout:st.struct([st.u32("instruction")])},Merge:{index:7,layout:st.struct([st.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:st.struct([st.u32("instruction"),Ne("newAuthorized"),st.u32("stakeAuthorizationType"),ti("authoritySeed"),Ne("authorityOwner")])}}),sy=Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class as{constructor(){}static initialize(t){const{stakePubkey:e,authorized:n,lockup:o}=t,i=o||no.default,u=In.Initialize,d=Be(u,{authorized:{staker:ke(n.staker.toBuffer()),withdrawer:ke(n.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:ke(i.custodian.toBuffer())}}),l={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Si,isSigner:!1,isWritable:!1}],programId:this.programId,data:d};return new qe(l)}static createAccountWithSeed(t){const e=new He;e.add(An.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:o,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:o,lockup:i}))}static createAccount(t){const e=new He;e.add(An.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));const{stakePubkey:n,authorized:o,lockup:i}=t;return e.add(this.initialize({stakePubkey:n,authorized:o,lockup:i}))}static delegate(t){const{stakePubkey:e,authorizedPubkey:n,votePubkey:o}=t,i=In.Delegate,u=Be(i);return new He().add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ts,isSigner:!1,isWritable:!1},{pubkey:Nl,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static authorize(t){const{stakePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:o,stakeAuthorizationType:i,custodianPubkey:u}=t,d=In.Authorize,l=Be(d,{newAuthorized:ke(o.toBuffer()),stakeAuthorizationType:i.index}),v=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return u&&v.push({pubkey:u,isSigner:!0,isWritable:!1}),new He().add({keys:v,programId:this.programId,data:l})}static authorizeWithSeed(t){const{stakePubkey:e,authorityBase:n,authoritySeed:o,authorityOwner:i,newAuthorizedPubkey:u,stakeAuthorizationType:d,custodianPubkey:l}=t,v=In.AuthorizeWithSeed,S=Be(v,{newAuthorized:ke(u.toBuffer()),stakeAuthorizationType:d.index,authoritySeed:o,authorityOwner:ke(i.toBuffer())}),O=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1}];return l&&O.push({pubkey:l,isSigner:!0,isWritable:!1}),new He().add({keys:O,programId:this.programId,data:S})}static splitInstruction(t){const{stakePubkey:e,authorizedPubkey:n,splitStakePubkey:o,lamports:i}=t,u=In.Split,d=Be(u,{lamports:i});return new qe({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:d})}static split(t,e){const n=new He;return n.add(An.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:e,space:this.space,programId:this.programId})),n.add(this.splitInstruction(t))}static splitWithSeed(t,e){const{stakePubkey:n,authorizedPubkey:o,splitStakePubkey:i,basePubkey:u,seed:d,lamports:l}=t,v=new He;return v.add(An.allocate({accountPubkey:i,basePubkey:u,seed:d,space:this.space,programId:this.programId})),e&&e>0&&v.add(An.transfer({fromPubkey:t.authorizedPubkey,toPubkey:i,lamports:e})),v.add(this.splitInstruction({stakePubkey:n,authorizedPubkey:o,splitStakePubkey:i,lamports:l}))}static merge(t){const{stakePubkey:e,sourceStakePubKey:n,authorizedPubkey:o}=t,i=In.Merge,u=Be(i);return new He().add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ts,isSigner:!1,isWritable:!1},{pubkey:o,isSigner:!0,isWritable:!1}],programId:this.programId,data:u})}static withdraw(t){const{stakePubkey:e,authorizedPubkey:n,toPubkey:o,lamports:i,custodianPubkey:u}=t,d=In.Withdraw,l=Be(d,{lamports:i}),v=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:ts,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return u&&v.push({pubkey:u,isSigner:!0,isWritable:!1}),new He().add({keys:v,programId:this.programId,data:l})}static deactivate(t){const{stakePubkey:e,authorizedPubkey:n}=t,o=In.Deactivate,i=Be(o);return new He().add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}as.programId=new Jt("Stake11111111111111111111111111111111111111"),as.space=200;class Ll{constructor(t,e,n,o){this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=e,this.authorizedWithdrawer=n,this.commission=o}}class ay{constructor(){}static decodeInstructionType(t){this.checkProgramId(t.programId);const n=st.u32("instruction").decode(t.data);let o;for(const[i,u]of Object.entries(pr))if(u.index==n){o=i;break}if(!o)throw new Error("Instruction type incorrect; not a VoteInstruction");return o}static decodeInitializeAccount(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,4);const{voteInit:e}=We(pr.InitializeAccount,t.data);return{votePubkey:t.keys[0].pubkey,nodePubkey:t.keys[3].pubkey,voteInit:new Ll(new Jt(e.nodePubkey),new Jt(e.authorizedVoter),new Jt(e.authorizedWithdrawer),e.commission)}}static decodeAuthorize(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{newAuthorized:e,voteAuthorizationType:n}=We(pr.Authorize,t.data);return{votePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey,newAuthorizedPubkey:new Jt(e),voteAuthorizationType:{index:n}}}static decodeAuthorizeWithSeed(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:e,currentAuthorityDerivedKeySeed:n,newAuthorized:o,voteAuthorizationType:i}}=We(pr.AuthorizeWithSeed,t.data);return{currentAuthorityDerivedKeyBasePubkey:t.keys[2].pubkey,currentAuthorityDerivedKeyOwnerPubkey:new Jt(e),currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:new Jt(o),voteAuthorizationType:{index:i},votePubkey:t.keys[0].pubkey}}static decodeWithdraw(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);const{lamports:e}=We(pr.Withdraw,t.data);return{votePubkey:t.keys[0].pubkey,authorizedWithdrawerPubkey:t.keys[2].pubkey,lamports:e,toPubkey:t.keys[1].pubkey}}static checkProgramId(t){if(!t.equals(Ti.programId))throw new Error("invalid instruction; programId is not VoteProgram")}static checkKeyLength(t,e){if(t.length<e)throw new Error(`invalid instruction; found ${t.length} keys, expected at least ${e}`)}}const pr=Object.freeze({InitializeAccount:{index:0,layout:st.struct([st.u32("instruction"),pv()])},Authorize:{index:1,layout:st.struct([st.u32("instruction"),Ne("newAuthorized"),st.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:st.struct([st.u32("instruction"),st.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:st.struct([st.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:st.struct([st.u32("instruction"),gv()])}}),cy=Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class Ti{constructor(){}static initializeAccount(t){const{votePubkey:e,nodePubkey:n,voteInit:o}=t,i=pr.InitializeAccount,u=Be(i,{voteInit:{nodePubkey:ke(o.nodePubkey.toBuffer()),authorizedVoter:ke(o.authorizedVoter.toBuffer()),authorizedWithdrawer:ke(o.authorizedWithdrawer.toBuffer()),commission:o.commission}}),d={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Si,isSigner:!1,isWritable:!1},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:u};return new qe(d)}static createAccount(t){const e=new He;return e.add(An.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}static authorize(t){const{votePubkey:e,authorizedPubkey:n,newAuthorizedPubkey:o,voteAuthorizationType:i}=t,u=pr.Authorize,d=Be(u,{newAuthorized:ke(o.toBuffer()),voteAuthorizationType:i.index}),l=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new He().add({keys:l,programId:this.programId,data:d})}static authorizeWithSeed(t){const{currentAuthorityDerivedKeyBasePubkey:e,currentAuthorityDerivedKeyOwnerPubkey:n,currentAuthorityDerivedKeySeed:o,newAuthorizedPubkey:i,voteAuthorizationType:u,votePubkey:d}=t,l=pr.AuthorizeWithSeed,v=Be(l,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:ke(n.toBuffer()),currentAuthorityDerivedKeySeed:o,newAuthorized:ke(i.toBuffer()),voteAuthorizationType:u.index}}),S=[{pubkey:d,isSigner:!1,isWritable:!0},{pubkey:dr,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return new He().add({keys:S,programId:this.programId,data:v})}static withdraw(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,lamports:o,toPubkey:i}=t,u=pr.Withdraw,d=Be(u,{lamports:o}),l=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return new He().add({keys:l,programId:this.programId,data:d})}static safeWithdraw(t,e,n){if(t.lamports>e-n)throw new Error("Withdraw will leave vote account with insufficient funds.");return Ti.withdraw(t)}static updateValidatorIdentity(t){const{votePubkey:e,authorizedWithdrawerPubkey:n,nodePubkey:o}=t,i=pr.UpdateValidatorIdentity,u=Be(i),d=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!0,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return new He().add({keys:d,programId:this.programId,data:u})}}Ti.programId=new Jt("Vote111111111111111111111111111111111111111"),Ti.space=3762;const Cl=new Jt("Va1idator1nfo111111111111111111111111111111"),uy=Ft({name:Zt(),website:ge(Zt()),details:ge(Zt()),iconUrl:ge(Zt()),keybaseUsername:ge(Zt())});class Fa{constructor(t,e){this.key=void 0,this.info=void 0,this.key=t,this.info=e}static fromConfigData(t){let e=[...t];if(Hn(e)!==2)return null;const o=[];for(let i=0;i<2;i++){const u=new Jt(Vn(e,0,lr)),d=fr(e)===1;o.push({publicKey:u,isSigner:d})}if(o[0].publicKey.equals(Cl)&&o[1].isSigner){const i=ti().decode(ve.Buffer.from(e)),u=JSON.parse(i);return Ru(u,uy),new Fa(o[1].publicKey,u)}return null}}const ly=new Jt("Vote111111111111111111111111111111111111111"),fy=st.struct([Ne("nodePubkey"),Ne("authorizedWithdrawer"),st.u8("commission"),st.nu64(),st.seq(st.struct([st.nu64("slot"),st.u32("confirmationCount")]),st.offset(st.u32(),-8),"votes"),st.u8("rootSlotValid"),st.nu64("rootSlot"),st.nu64(),st.seq(st.struct([st.nu64("epoch"),Ne("authorizedVoter")]),st.offset(st.u32(),-8),"authorizedVoters"),st.struct([st.seq(st.struct([Ne("authorizedPubkey"),st.nu64("epochOfLastAuthorizedSwitch"),st.nu64("targetEpoch")]),32,"buf"),st.nu64("idx"),st.u8("isEmpty")],"priorVoters"),st.nu64(),st.seq(st.struct([st.nu64("epoch"),st.nu64("credits"),st.nu64("prevCredits")]),st.offset(st.u32(),-8),"epochCredits"),st.struct([st.nu64("slot"),st.nu64("timestamp")],"lastTimestamp")]);class Ha{constructor(t){this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}static fromAccountData(t){const n=fy.decode(ke(t),4);let o=n.rootSlot;return n.rootSlotValid||(o=null),new Ha({nodePubkey:new Jt(n.nodePubkey),authorizedWithdrawer:new Jt(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:o,authorizedVoters:n.authorizedVoters.map(dy),priorVoters:hy(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}function dy({authorizedVoter:r,epoch:t}){return{epoch:t,authorizedVoter:new Jt(r)}}function Bl({authorizedPubkey:r,epochOfLastAuthorizedSwitch:t,targetEpoch:e}){return{authorizedPubkey:new Jt(r),epochOfLastAuthorizedSwitch:t,targetEpoch:e}}function hy({buf:r,idx:t,isEmpty:e}){return e?[]:[...r.slice(t+1).map(Bl),...r.slice(0,t).map(Bl)]}const Pl={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function py(r,t){const e=t===!1?"http":"https";if(!r)return Pl[e].devnet;const n=Pl[e][r];if(!n)throw new Error(`Unknown ${e} cluster: ${r}`);return n}async function gy(r,t,e,n){let o,i;e&&Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")||e&&Object.prototype.hasOwnProperty.call(e,"nonceValue")?(o=e,i=n):i=e;const u=i&&{skipPreflight:i.skipPreflight,preflightCommitment:i.preflightCommitment||i.commitment,minContextSlot:i.minContextSlot},d=await r.sendRawTransaction(t,u),l=i&&i.commitment,S=(await(o?r.confirmTransaction(o,l):r.confirmTransaction(d,l))).value;if(S.err)throw d!=null?new Qi({action:u?.skipPreflight?"send":"simulate",signature:d,transactionMessage:`Status: (${JSON.stringify(S)})`}):new Error(`Raw transaction ${d} failed (${JSON.stringify(S)})`);return d}const cs=Object.freeze(Object.defineProperty({__proto__:null,Account:uv,AddressLookupTableAccount:Ia,AddressLookupTableInstruction:ty,AddressLookupTableProgram:Pa,Authorized:xl,BLOCKHASH_CACHE_TIMEOUT_MS:ul,BPF_LOADER_DEPRECATED_PROGRAM_ID:lv,BPF_LOADER_PROGRAM_ID:Av,BpfLoader:Iv,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:hr,ComputeBudgetInstruction:ey,ComputeBudgetProgram:Ma,Connection:Q3,Ed25519Program:ss,Enum:av,EpochSchedule:sl,FeeCalculatorLayout:nl,Keypair:ki,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Ar,Loader:ri,Lockup:no,MAX_SEED_LENGTH:Xu,Message:Qn,MessageAccountKeys:Ji,MessageV0:ei,NONCE_ACCOUNT_LENGTH:Ra,NonceAccount:es,PACKET_DATA_SIZE:Pr,PUBLIC_KEY_LENGTH:lr,PublicKey:Jt,SIGNATURE_LENGTH_IN_BYTES:Xi,SOLANA_SCHEMA:Zi,STAKE_CONFIG_ID:Nl,STAKE_INSTRUCTION_LAYOUTS:In,SYSTEM_INSTRUCTION_LAYOUTS:Ze,SYSVAR_CLOCK_PUBKEY:dr,SYSVAR_EPOCH_SCHEDULE_PUBKEY:vv,SYSVAR_INSTRUCTIONS_PUBKEY:yv,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:Qo,SYSVAR_RENT_PUBKEY:Si,SYSVAR_REWARDS_PUBKEY:wv,SYSVAR_SLOT_HASHES_PUBKEY:bv,SYSVAR_SLOT_HISTORY_PUBKEY:_v,SYSVAR_STAKE_HISTORY_PUBKEY:ts,Secp256k1Program:Oi,SendTransactionError:Qi,SolanaJSONRPCError:ue,SolanaJSONRPCErrorCode:Ev,StakeAuthorizationLayout:sy,StakeInstruction:oy,StakeProgram:as,Struct:ma,SystemInstruction:Rv,SystemProgram:An,Transaction:He,TransactionExpiredBlockheightExceededError:va,TransactionExpiredNonceInvalidError:Ri,TransactionExpiredTimeoutError:ya,TransactionInstruction:qe,TransactionMessage:ba,TransactionStatus:Sr,VALIDATOR_INFO_KEY:Cl,VERSION_PREFIX_MASK:Xo,VOTE_PROGRAM_ID:ly,ValidatorInfo:Fa,VersionedMessage:wa,VersionedTransaction:_a,VoteAccount:Ha,VoteAuthorizationLayout:cy,VoteInit:Ll,VoteInstruction:ay,VoteProgram:Ti,clusterApiUrl:py,sendAndConfirmRawTransaction:gy,sendAndConfirmTransaction:Ea},Symbol.toStringTag,{value:"Module"})),Mr=Sn;var Va={exports:{}},Ml;function my(){return Ml||(Ml=1,function(r){var t=function(){var e=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function u(l,v){if(!i[l]){i[l]={};for(var S=0;S<l.length;S++)i[l][l.charAt(S)]=S}return i[l][v]}var d={compressToBase64:function(l){if(l==null)return"";var v=d._compress(l,6,function(S){return n.charAt(S)});switch(v.length%4){default:case 0:return v;case 1:return v+"===";case 2:return v+"==";case 3:return v+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:d._decompress(l.length,32,function(v){return u(n,l.charAt(v))})},compressToUTF16:function(l){return l==null?"":d._compress(l,15,function(v){return e(v+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:d._decompress(l.length,16384,function(v){return l.charCodeAt(v)-32})},compressToUint8Array:function(l){for(var v=d.compress(l),S=new Uint8Array(v.length*2),O=0,C=v.length;O<C;O++){var N=v.charCodeAt(O);S[O*2]=N>>>8,S[O*2+1]=N%256}return S},decompressFromUint8Array:function(l){if(l==null)return d.decompress(l);for(var v=new Array(l.length/2),S=0,O=v.length;S<O;S++)v[S]=l[S*2]*256+l[S*2+1];var C=[];return v.forEach(function(N){C.push(e(N))}),d.decompress(C.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":d._compress(l,6,function(v){return o.charAt(v)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),d._decompress(l.length,32,function(v){return u(o,l.charAt(v))}))},compress:function(l){return d._compress(l,16,function(v){return e(v)})},_compress:function(l,v,S){if(l==null)return"";var O,C,N={},B={},M="",F="",G="",Q=2,et=3,ct=2,ft=[],ot=0,bt=0,Rt;for(Rt=0;Rt<l.length;Rt+=1)if(M=l.charAt(Rt),Object.prototype.hasOwnProperty.call(N,M)||(N[M]=et++,B[M]=!0),F=G+M,Object.prototype.hasOwnProperty.call(N,F))G=F;else{if(Object.prototype.hasOwnProperty.call(B,G)){if(G.charCodeAt(0)<256){for(O=0;O<ct;O++)ot=ot<<1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++;for(C=G.charCodeAt(0),O=0;O<8;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}else{for(C=1,O=0;O<ct;O++)ot=ot<<1|C,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=0;for(C=G.charCodeAt(0),O=0;O<16;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}Q--,Q==0&&(Q=Math.pow(2,ct),ct++),delete B[G]}else for(C=N[G],O=0;O<ct;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1;Q--,Q==0&&(Q=Math.pow(2,ct),ct++),N[F]=et++,G=String(M)}if(G!==""){if(Object.prototype.hasOwnProperty.call(B,G)){if(G.charCodeAt(0)<256){for(O=0;O<ct;O++)ot=ot<<1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++;for(C=G.charCodeAt(0),O=0;O<8;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}else{for(C=1,O=0;O<ct;O++)ot=ot<<1|C,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=0;for(C=G.charCodeAt(0),O=0;O<16;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1}Q--,Q==0&&(Q=Math.pow(2,ct),ct++),delete B[G]}else for(C=N[G],O=0;O<ct;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1;Q--,Q==0&&(Q=Math.pow(2,ct),ct++)}for(C=2,O=0;O<ct;O++)ot=ot<<1|C&1,bt==v-1?(bt=0,ft.push(S(ot)),ot=0):bt++,C=C>>1;for(;;)if(ot=ot<<1,bt==v-1){ft.push(S(ot));break}else bt++;return ft.join("")},decompress:function(l){return l==null?"":l==""?null:d._decompress(l.length,32768,function(v){return l.charCodeAt(v)})},_decompress:function(l,v,S){var O=[],C=4,N=4,B=3,M="",F=[],G,Q,et,ct,ft,ot,bt,Rt={val:S(0),position:v,index:1};for(G=0;G<3;G+=1)O[G]=G;for(et=0,ft=Math.pow(2,2),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;switch(et){case 0:for(et=0,ft=Math.pow(2,8),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;bt=e(et);break;case 1:for(et=0,ft=Math.pow(2,16),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;bt=e(et);break;case 2:return""}for(O[3]=bt,Q=bt,F.push(bt);;){if(Rt.index>l)return"";for(et=0,ft=Math.pow(2,B),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;switch(bt=et){case 0:for(et=0,ft=Math.pow(2,8),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;O[N++]=e(et),bt=N-1,C--;break;case 1:for(et=0,ft=Math.pow(2,16),ot=1;ot!=ft;)ct=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=v,Rt.val=S(Rt.index++)),et|=(ct>0?1:0)*ot,ot<<=1;O[N++]=e(et),bt=N-1,C--;break;case 2:return F.join("")}if(C==0&&(C=Math.pow(2,B),B++),O[bt])M=O[bt];else if(bt===N)M=Q+Q.charAt(0);else return null;F.push(M),O[N++]=Q+M.charAt(0),C--,Q=M,C==0&&(C=Math.pow(2,B),B++)}}};return d}();r!=null?r.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(Va)),Va.exports}var vy=my();const tr=Vi(vy);var Wa=(r=>(r.USD="USD",r.AED="AED",r.AFN="AFN",r.ALL="ALL",r.AMD="AMD",r.ANG="ANG",r.AOA="AOA",r.ARS="ARS",r.AUD="AUD",r.AWG="AWG",r.AZN="AZN",r.BAM="BAM",r.BBD="BBD",r.BDT="BDT",r.BGN="BGN",r.BHD="BHD",r.BIF="BIF",r.BMD="BMD",r.BND="BND",r.BOB="BOB",r.BRL="BRL",r.BSD="BSD",r.BTN="BTN",r.BWP="BWP",r.BYN="BYN",r.BZD="BZD",r.CAD="CAD",r.CHF="CHF",r.CLF="CLF",r.CLP="CLP",r.CNY="CNY",r.COP="COP",r.CRC="CRC",r.CUP="CUP",r.CVE="CVE",r.CZK="CZK",r.DJF="DJF",r.DKK="DKK",r.DOP="DOP",r.DZD="DZD",r.EGP="EGP",r.ETB="ETB",r.EUR="EUR",r.FJD="FJD",r.GBP="GBP",r.GEL="GEL",r.GHS="GHS",r.GMD="GMD",r.GNF="GNF",r.GTQ="GTQ",r.GYD="GYD",r.HKD="HKD",r.HNL="HNL",r.HTG="HTG",r.HUF="HUF",r.IDR="IDR",r.ILS="ILS",r.INR="INR",r.IQD="IQD",r.IRR="IRR",r.ISK="ISK",r.JMD="JMD",r.JOD="JOD",r.JPY="JPY",r.KES="KES",r.KGS="KGS",r.KHR="KHR",r.KMF="KMF",r.KRW="KRW",r.KWD="KWD",r.KYD="KYD",r.KZT="KZT",r.LAK="LAK",r.LBP="LBP",r.LKR="LKR",r.LRD="LRD",r.LSL="LSL",r.LYD="LYD",r.MAD="MAD",r.MDL="MDL",r.MGA="MGA",r.MKD="MKD",r.MMK="MMK",r.MNT="MNT",r.MOP="MOP",r.MRU="MRU",r.MUR="MUR",r.MWK="MWK",r.MVR="MVR",r.MXN="MXN",r.MYR="MYR",r.MZN="MZN",r.NAD="NAD",r.NGN="NGN",r.NIO="NIO",r.NOK="NOK",r.NPR="NPR",r.NZD="NZD",r.OMR="OMR",r.PAB="PAB",r.PEN="PEN",r.PGK="PGK",r.PHP="PHP",r.PKR="PKR",r.PLN="PLN",r.PYG="PYG",r.QAR="QAR",r.RON="RON",r.RSD="RSD",r.RWF="RWF",r.SAR="SAR",r.SCR="SCR",r.SDG="SDG",r.SEK="SEK",r.SGD="SGD",r.SLE="SLE",r.SLL="SLL",r.SOS="SOS",r.SRD="SRD",r.STN="STN",r.SVC="SVC",r.SYP="SYP",r.SZL="SZL",r.THB="THB",r.TJS="TJS",r.TMT="TMT",r.TND="TND",r.TOP="TOP",r.TRY="TRY",r.TTD="TTD",r.TWD="TWD",r.TZS="TZS",r.UAH="UAH",r.UGX="UGX",r.UYU="UYU",r.UZS="UZS",r.VND="VND",r.VUV="VUV",r.WST="WST",r.XAF="XAF",r.XCD="XCD",r.XOF="XOF",r.XPF="XPF",r.YER="YER",r.ZAR="ZAR",r.ZMW="ZMW",r.ZWL="ZWL",r.CDF="CDF",r.ERN="ERN",r.FKP="FKP",r.KPW="KPW",r.RUB="RUB",r.SBD="SBD",r.SHP="SHP",r.SSP="SSP",r.VES="VES",r))(Wa||{});const yy={AED:"784",AFN:"971",ALL:"008",AMD:"051",ANG:"532",AOA:"973",AUD:"036",AWG:"533",AZN:"944",BAM:"977",BBD:"052",BDT:"050",BGN:"975",BHD:"048",BIF:"108",BND:"096",BOB:"068",BRL:"986",BTN:"064",BWP:"072",BZD:"084",CAD:"124",CHF:"756",CLP:"152",CNY:"156",COP:"170",CRC:"188",CVE:"132",CZK:"203",DJF:"262",DKK:"208",DOP:"214",DZD:"012",EGP:"818",ETB:"230",EUR:"978",GBP:"826",GEL:"981",GHS:"936",GMD:"270",GNF:"324",GTQ:"320",GYD:"328",HKD:"344",HNL:"340",HTG:"332",HUF:"348",IDR:"360",INR:"356",IQD:"368",IRR:"364",ISK:"352",JMD:"388",JOD:"400",JPY:"392",KES:"404",KGS:"417",KHR:"116",KMF:"174",KRW:"410",KWD:"414",KYD:"136",KZT:"398",LKR:"144",LRD:"430",LSL:"426",LYD:"434",MAD:"504",MDL:"498",MGA:"969",MKD:"807",MMK:"104",MNT:"496",MOP:"446",MRU:"929",MUR:"480",MVR:"462",MXN:"484",MYR:"458",NAD:"516",NGN:"566",NIO:"558",NOK:"578",NPR:"524",NZD:"554",OMR:"512",PAB:"590",PEN:"604",PHP:"608",PKR:"586",PLN:"985",PYG:"600",QAR:"634",RON:"946",RSD:"941",RWF:"646",SAR:"682",SCR:"690",SDG:"938",SEK:"752",SGD:"702",SLE:"925",SLL:"694",SOS:"706",STN:"930",SVC:"222",SYP:"760",SZL:"748",THB:"764",TJS:"972",TMT:"934",TND:"788",TRY:"949",TTD:"780",TWD:"901",TZS:"834",UAH:"980",UGX:"800",USD:"840",UYU:"858",UZS:"860",VND:"704",XAF:"950",XCD:"951",XOF:"952",XPF:"953",YER:"886",ZAR:"710",ZMW:"967",ARS:"032",BMD:"060",BSD:"044",BYN:"933",CUP:"192",FJD:"242",ILS:"376",LAK:"418",LBP:"422",MWK:"454",MZN:"943",PGK:"598",SRD:"968",TOP:"776",VUV:"548",WST:"882",ZWL:"932",CLF:"990",CDF:"976",ERN:"232",FKP:"238",KPW:"408",RUB:"643",SBD:"090",SHP:"654",SSP:"728",VES:"928"},Dl={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function wy(r){return r in Dl}const Ul={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function by(r){return r in Ul}const _y=new Set(["CLF"]),Ey=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),Ry=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function Sy(r){return _y.has(r)?4:Ey.has(r)?3:Ry.has(r)?0:2}function Ay(r,t){return r.currency===t}var Iy={269:function(r,t,e){e.r(t),e.d(t,{ERROR_API_KEY_EXPIRED:function(){return Ls},ERROR_API_KEY_INVALID:function(){return xs},ERROR_API_KEY_MISSING:function(){return Ns},ERROR_BAD_REQUEST_FORMAT:function(){return pd},ERROR_BAD_RESPONSE_FORMAT:function(){return cc},ERROR_CLIENT_TIMEOUT:function(){return oc},ERROR_CSP_BLOCK:function(){return uc},ERROR_FORBIDDEN_ENDPOINT:function(){return Nf},ERROR_FORBIDDEN_HEADER:function(){return wd},ERROR_FORBIDDEN_ORIGIN:function(){return yd},ERROR_GENERAL_SERVER_FAILURE:function(){return gd},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return Tf},ERROR_INTEGRATION_FAILURE:function(){return xf},ERROR_INVALID_ENDPOINT:function(){return lc},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return Pf},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return Bf},ERROR_NETWORK_ABORT:function(){return ac},ERROR_NETWORK_CONNECTION:function(){return sc},ERROR_NETWORK_RESTRICTED:function(){return Cf},ERROR_RATE_LIMIT:function(){return vd},ERROR_SERVER_TIMEOUT:function(){return md},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return kf},ERROR_TOKEN_EXPIRED:function(){return Rw},ERROR_TOKEN_INVALID:function(){return Ew},ERROR_TOKEN_MISSING:function(){return _w},ERROR_UNSUPPORTED_VERSION:function(){return Of},ERROR_WRONG_REGION:function(){return If},default:function(){return Sw},defaultEndpoint:function(){return _s},defaultTlsEndpoint:function(){return Es},load:function(){return l0},makeBotdModule:function(){return lw},makeConsoleDebugModule:function(){return ww},makeIdentificationModule:function(){return mw},makeLatencyReportModule:function(){return yw},makeRemoteDebugModule:function(){return bw},makeValidationModule:function(){return vw}});var n=e(635);function o(s,c){return new Promise(function(a){return setTimeout(a,s,c)})}function i(s){return!!s&&typeof s.then=="function"}function u(s,c){try{var a=s();i(a)?a.then(function(f){return c(!0,f)},function(f){return c(!1,f)}):c(!0,a)}catch(f){c(!1,f)}}function d(s,c,a){return a===void 0&&(a=16),(0,n.sH)(this,void 0,void 0,function(){var f,g,w,b;return(0,n.YH)(this,function(_){switch(_.label){case 0:f=Array(s.length),g=Date.now(),w=0,_.label=1;case 1:return w<s.length?(f[w]=c(s[w],w),(b=Date.now())>=g+a?(g=b,[4,new Promise(function(m){var I=new MessageChannel;I.port1.onmessage=function(){return m()},I.port2.postMessage(null)})]):[3,3]):[3,4];case 2:_.sent(),_.label=3;case 3:return++w,[3,1];case 4:return[2,f]}})})}function l(s){return s.then(void 0,function(){}),s}function v(s){return parseInt(s)}function S(s){return parseFloat(s)}function O(s,c){return typeof s=="number"&&isNaN(s)?c:s}function C(s){return s.reduce(function(c,a){return c+(a?1:0)},0)}function N(s,c){var a=s[0]>>>16,f=65535&s[0],g=s[1]>>>16,w=65535&s[1],b=c[0]>>>16,_=65535&c[0],m=c[1]>>>16,I=0,L=0,x=0,Y=0;x+=(Y+=w+(65535&c[1]))>>>16,Y&=65535,L+=(x+=g+m)>>>16,x&=65535,I+=(L+=f+_)>>>16,L&=65535,I+=a+b,I&=65535,s[0]=I<<16|L,s[1]=x<<16|Y}function B(s,c){var a=s[0]>>>16,f=65535&s[0],g=s[1]>>>16,w=65535&s[1],b=c[0]>>>16,_=65535&c[0],m=c[1]>>>16,I=65535&c[1],L=0,x=0,Y=0,J=0;Y+=(J+=w*I)>>>16,J&=65535,x+=(Y+=g*I)>>>16,Y&=65535,x+=(Y+=w*m)>>>16,Y&=65535,L+=(x+=f*I)>>>16,x&=65535,L+=(x+=g*m)>>>16,x&=65535,L+=(x+=w*_)>>>16,x&=65535,L+=a*I+f*m+g*_+w*b,L&=65535,s[0]=L<<16|x,s[1]=Y<<16|J}function M(s,c){var a=s[0];(c%=64)==32?(s[0]=s[1],s[1]=a):c<32?(s[0]=a<<c|s[1]>>>32-c,s[1]=s[1]<<c|a>>>32-c):(c-=32,s[0]=s[1]<<c|a>>>32-c,s[1]=a<<c|s[1]>>>32-c)}function F(s,c){(c%=64)!=0&&(c<32?(s[0]=s[1]>>>32-c,s[1]=s[1]<<c):(s[0]=s[1]<<c-32,s[1]=0))}function G(s,c){s[0]^=c[0],s[1]^=c[1]}var Q=[4283543511,3981806797],et=[3301882366,444984403];function ct(s){var c=[0,s[0]>>>1];G(s,c),B(s,Q),c[1]=s[0]>>>1,G(s,c),B(s,et),c[1]=s[0]>>>1,G(s,c)}var ft=[2277735313,289559509],ot=[1291169091,658871167],bt=[0,5],Rt=[0,1390208809],At=[0,944331445];function gt(s){return typeof s!="function"}function wt(s,c,a,f){var g=Object.keys(s).filter(function(b){return!function(_,m){for(var I=0,L=_.length;I<L;++I)if(_[I]===m)return!0;return!1}(a,b)}),w=l(d(g,function(b){return function(_,m){var I=l(new Promise(function(L){var x=Date.now();u(_.bind(null,m),function(){for(var Y=[],J=0;J<arguments.length;J++)Y[J]=arguments[J];var tt=Date.now()-x;if(!Y[0])return L(function(){return{error:Y[1],duration:tt}});var nt=Y[1];if(gt(nt))return L(function(){return{value:nt,duration:tt}});L(function(){return new Promise(function(ut){var pt=Date.now();u(nt,function(){for(var Et=[],ht=0;ht<arguments.length;ht++)Et[ht]=arguments[ht];var yt=tt+Date.now()-pt;if(!Et[0])return ut({error:Et[1],duration:yt});ut({value:Et[1],duration:yt})})})})})}));return function(){return I.then(function(L){return L()})}}(s[b],c)},f));return function(){return(0,n.sH)(this,void 0,void 0,function(){var b,_,m,I;return(0,n.YH)(this,function(L){switch(L.label){case 0:return[4,w];case 1:return[4,d(L.sent(),function(x){return l(x())},f)];case 2:return b=L.sent(),[4,Promise.all(b)];case 3:for(_=L.sent(),m={},I=0;I<g.length;++I)m[g[I]]=_[I];return[2,m]}})})}}function kt(s,c){var a=function(f){return gt(f)?c(f):function(){var g=f();return i(g)?g.then(c):c(g)}};return function(f){var g=s(f);return i(g)?g.then(a):a(g)}}function q(){var s=window,c=navigator;return C(["MSCSSMatrix"in s,"msSetImmediate"in s,"msIndexedDB"in s,"msMaxTouchPoints"in c,"msPointerEnabled"in c])>=4}function h(){var s=window,c=navigator;return C(["msWriteProfilerMark"in s,"MSStream"in s,"msLaunchUri"in c,"msSaveBlob"in c])>=3&&!q()}function T(){var s=window,c=navigator;return C(["webkitPersistentStorage"in c,"webkitTemporaryStorage"in c,(c.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in s,"BatteryManager"in s,"webkitMediaStream"in s,"webkitSpeechGrammar"in s])>=5}function D(){var s=window;return C(["ApplePayError"in s,"CSSPrimitiveValue"in s,"Counter"in s,navigator.vendor.indexOf("Apple")===0,"RGBColor"in s,"WebKitMediaKeys"in s])>=4}function Z(){var s=window,c=s.HTMLElement,a=s.Document;return C(["safari"in s,!("ongestureend"in s),!("TouchEvent"in s),!("orientation"in s),c&&!("autocapitalize"in c.prototype),a&&"pointerLockElement"in a.prototype])>=4}function j(){var s,c,a=window;return C(["buildID"in navigator,"MozAppearance"in((c=(s=document.documentElement)===null||s===void 0?void 0:s.style)!==null&&c!==void 0?c:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4}function X(){var s=document;return s.fullscreenElement||s.msFullscreenElement||s.mozFullScreenElement||s.webkitFullscreenElement||null}function at(){var s=T(),c=j(),a=window,f=navigator,g="connection";return s?C([!("SharedWorker"in a),f[g]&&"ontypechange"in f[g],!("sinkId"in new Audio)])>=2:!!c&&C(["onorientationchange"in a,"orientation"in a,/android/i.test(f.appVersion)])>=2}function K(){var s=navigator,c=window,a=Audio.prototype,f=c.visualViewport;return C(["srLatency"in a,"srChannelCount"in a,"devicePosture"in s,f&&"segments"in f,"getTextInformation"in Image.prototype])>=3}function p(){var s=window,c=s.OfflineAudioContext||s.webkitOfflineAudioContext;if(!c)return-2;if(D()&&!Z()&&!function(){var I=window;return C(["DOMRectList"in I,"RTCPeerConnectionIceEvent"in I,"SVGGeometryElement"in I,"ontransitioncancel"in I])>=3}())return-1;var a=new c(1,5e3,44100),f=a.createOscillator();f.type="triangle",f.frequency.value=1e4;var g=a.createDynamicsCompressor();g.threshold.value=-50,g.knee.value=40,g.ratio.value=12,g.attack.value=0,g.release.value=.25,f.connect(g),g.connect(a.destination),f.start(0);var w=function(I){var L=function(){};return[new Promise(function(x,Y){var J=!1,tt=0,nt=0;I.oncomplete=function(Et){return x(Et.renderedBuffer)};var ut=function(){setTimeout(function(){return Y(E("timeout"))},Math.min(500,nt+5e3-Date.now()))},pt=function(){try{var Et=I.startRendering();switch(i(Et)&&l(Et),I.state){case"running":nt=Date.now(),J&&ut();break;case"suspended":document.hidden||tt++,J&&tt>=3?Y(E("suspended")):setTimeout(pt,500)}}catch(ht){Y(ht)}};pt(),L=function(){J||(J=!0,nt>0&&ut())}}),L]}(a),b=w[0],_=w[1],m=l(b.then(function(I){return function(L){for(var x=0,Y=0;Y<L.length;++Y)x+=Math.abs(L[Y]);return x}(I.getChannelData(0).subarray(4500))},function(I){if(I.name==="timeout"||I.name==="suspended")return-3;throw I}));return function(){return _(),m}}function E(s){var c=new Error(s);return c.name=s,c}function z(s,c,a){var f,g,w;return a===void 0&&(a=50),(0,n.sH)(this,void 0,void 0,function(){var b,_;return(0,n.YH)(this,function(m){switch(m.label){case 0:b=document,m.label=1;case 1:return b.body?[3,3]:[4,o(a)];case 2:return m.sent(),[3,1];case 3:_=b.createElement("iframe"),m.label=4;case 4:return m.trys.push([4,,10,11]),[4,new Promise(function(I,L){var x=!1,Y=function(){x=!0,I()};_.onload=Y,_.onerror=function(nt){x=!0,L(nt)};var J=_.style;J.setProperty("display","block","important"),J.position="absolute",J.top="0",J.left="0",J.visibility="hidden",c&&"srcdoc"in _?_.srcdoc=c:_.src="about:blank",b.body.appendChild(_);var tt=function(){var nt,ut;x||(((ut=(nt=_.contentWindow)===null||nt===void 0?void 0:nt.document)===null||ut===void 0?void 0:ut.readyState)==="complete"?Y():setTimeout(tt,10))};tt()})];case 5:m.sent(),m.label=6;case 6:return!((g=(f=_.contentWindow)===null||f===void 0?void 0:f.document)===null||g===void 0)&&g.body?[3,8]:[4,o(a)];case 7:return m.sent(),[3,6];case 8:return[4,s(_,_.contentWindow)];case 9:return[2,m.sent()];case 10:return(w=_.parentNode)===null||w===void 0||w.removeChild(_),[7];case 11:return[2]}})})}function $(s){for(var c=function(I){for(var L,x,Y="Unexpected syntax '".concat(I,"'"),J=/^\s*([a-z-]*)(.*)$/i.exec(I),tt=J[1]||void 0,nt={},ut=/([.:#][\w-]+|\[.+?\])/gi,pt=function(Ht,Vt){nt[Ht]=nt[Ht]||[],nt[Ht].push(Vt)};;){var Et=ut.exec(J[2]);if(!Et)break;var ht=Et[0];switch(ht[0]){case".":pt("class",ht.slice(1));break;case"#":pt("id",ht.slice(1));break;case"[":var yt=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(ht);if(!yt)throw new Error(Y);pt(yt[1],(x=(L=yt[4])!==null&&L!==void 0?L:yt[5])!==null&&x!==void 0?x:"");break;default:throw new Error(Y)}}return[tt,nt]}(s),a=c[0],f=c[1],g=document.createElement(a??"div"),w=0,b=Object.keys(f);w<b.length;w++){var _=b[w],m=f[_].join(" ");_==="style"?dt(g.style,m):g.setAttribute(_,m)}return g}function dt(s,c){for(var a=0,f=c.split(";");a<f.length;a++){var g=f[a],w=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(g);if(w){var b=w[1],_=w[2],m=w[4];s.setProperty(b,_,m||"")}}}var _t=["monospace","sans-serif","serif"],Dt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function Yt(s){var c,a,f,g=!1,w=function(){var m=document.createElement("canvas");return m.width=1,m.height=1,[m,m.getContext("2d")]}(),b=w[0],_=w[1];return function(m,I){return!(!I||!m.toDataURL)}(b,_)?(g=function(m){return m.rect(0,0,10,10),m.rect(2,2,6,6),!m.isPointInPath(5,5,"evenodd")}(_),c=function(m,I){(function(x,Y){x.width=240,x.height=60,Y.textBaseline="alphabetic",Y.fillStyle="#f60",Y.fillRect(100,1,62,20),Y.fillStyle="#069",Y.font='11pt "Times New Roman"';var J="Cwm fjordbank gly ".concat("😃");Y.fillText(J,2,15),Y.fillStyle="rgba(102, 204, 0, 0.2)",Y.font="18pt Arial",Y.fillText(J,4,45)})(m,I);var L=zt(m);return L!==zt(m)?["unstable","unstable"]:(function(x,Y){x.width=122,x.height=110,Y.globalCompositeOperation="multiply";for(var J=0,tt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];J<tt.length;J++){var nt=tt[J],ut=nt[0],pt=nt[1],Et=nt[2];Y.fillStyle=ut,Y.beginPath(),Y.arc(pt,Et,40,0,2*Math.PI,!0),Y.closePath(),Y.fill()}Y.fillStyle="#f9c",Y.arc(60,60,60,0,2*Math.PI,!0),Y.arc(60,60,20,0,2*Math.PI,!0),Y.fill("evenodd")}(m,I),[zt(m),L])}(b,_),a=c[0],f=c[1]):a=f="unsupported",{winding:g,geometry:a,text:f}}function zt(s){return s.toDataURL()}function fe(){var s=screen,c=function(f){return O(v(f),null)},a=[c(s.width),c(s.height)];return a.sort().reverse(),a}var le,_e;function we(){var s=this;return function(){if(_e===void 0){var c=function(){var a=Ee();je(a)?_e=setTimeout(c,2500):(le=a,_e=void 0)};c()}}(),function(){return(0,n.sH)(s,void 0,void 0,function(){var c;return(0,n.YH)(this,function(a){switch(a.label){case 0:return je(c=Ee())?le?[2,(0,n.fX)([],le,!0)]:X()?[4,(f=document,(f.exitFullscreen||f.msExitFullscreen||f.mozCancelFullScreen||f.webkitExitFullscreen).call(f))]:[3,2]:[3,2];case 1:a.sent(),c=Ee(),a.label=2;case 2:return je(c)||(le=c),[2,c]}var f})})}}function Ee(){var s=screen;return[O(S(s.availTop),null),O(S(s.width)-S(s.availWidth)-O(S(s.availLeft),0),null),O(S(s.height)-S(s.availHeight)-O(S(s.availTop),0),null),O(S(s.availLeft),null)]}function je(s){for(var c=0;c<4;++c)if(s[c])return!1;return!0}function xe(s){var c;return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w,b,_,m;return(0,n.YH)(this,function(I){switch(I.label){case 0:for(a=document,f=a.createElement("div"),g=new Array(s.length),w={},y(f),m=0;m<s.length;++m)(b=$(s[m])).tagName==="DIALOG"&&b.show(),y(_=a.createElement("div")),_.appendChild(b),f.appendChild(_),g[m]=b;I.label=1;case 1:return a.body?[3,3]:[4,o(50)];case 2:return I.sent(),[3,1];case 3:a.body.appendChild(f);try{for(m=0;m<s.length;++m)g[m].offsetParent||(w[s[m]]=!0)}finally{(c=f.parentNode)===null||c===void 0||c.removeChild(f)}return[2,w]}})})}function y(s){s.style.setProperty("visibility","hidden","important"),s.style.setProperty("display","block","important")}function P(s){return matchMedia("(inverted-colors: ".concat(s,")")).matches}function H(s){return matchMedia("(forced-colors: ".concat(s,")")).matches}function lt(s){return matchMedia("(prefers-contrast: ".concat(s,")")).matches}function mt(s){return matchMedia("(prefers-reduced-motion: ".concat(s,")")).matches}function vt(s){return matchMedia("(prefers-reduced-transparency: ".concat(s,")")).matches}function xt(s){return matchMedia("(dynamic-range: ".concat(s,")")).matches}var Gt=Math,ee=function(){return 0},U={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},R=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),k=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),A=["FRAGMENT_SHADER","VERTEX_SHADER"],V=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],W="WEBGL_debug_renderer_info";function it(s){if(s.webgl)return s.webgl.context;var c,a=document.createElement("canvas");a.addEventListener("webglCreateContextError",function(){return c=void 0});for(var f=0,g=["webgl","experimental-webgl"];f<g.length;f++){var w=g[f];try{c=a.getContext(w)}catch{}if(c)break}return s.webgl={context:c},c}function Lt(s,c,a){var f=s.getShaderPrecisionFormat(s[c],s[a]);return f?[f.rangeMin,f.rangeMax,f.precision]:[]}function Ct(s){return Object.keys(s.__proto__).filter(Mt)}function Mt(s){return typeof s=="string"&&!s.match(/[^A-Z0-9_x]/)}function Pt(){return j()}function rt(s){return typeof s.getParameter=="function"}var Kt=function(){var s=this;return z(function(c,a){var f=a.document;return(0,n.sH)(s,void 0,void 0,function(){var g,w,b,_,m,I,L,x,Y,J,tt;return(0,n.YH)(this,function(nt){for((g=f.body).style.fontSize="48px",(w=f.createElement("div")).style.setProperty("visibility","hidden","important"),b={},_={},m=function(ut){var pt=f.createElement("span"),Et=pt.style;return Et.position="absolute",Et.top="0",Et.left="0",Et.fontFamily=ut,pt.textContent="mmMwWLliI0O&1",w.appendChild(pt),pt},I=function(ut,pt){return m("'".concat(ut,"',").concat(pt))},L=function(){for(var ut={},pt=function(yt){ut[yt]=_t.map(function(Ht){return I(yt,Ht)})},Et=0,ht=Dt;Et<ht.length;Et++)pt(ht[Et]);return ut},x=function(ut){return _t.some(function(pt,Et){return ut[Et].offsetWidth!==b[pt]||ut[Et].offsetHeight!==_[pt]})},Y=_t.map(m),J=L(),g.appendChild(w),tt=0;tt<_t.length;tt++)b[_t[tt]]=Y[tt].offsetWidth,_[_t[tt]]=Y[tt].offsetHeight;return[2,Dt.filter(function(ut){return x(J[ut])})]})})})},be=function(s){var c=(s===void 0?{}:s).debug;return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w,b;return(0,n.YH)(this,function(_){switch(_.label){case 0:return D()||at()?(m=atob,a={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',m("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",m("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",m("LnNwb25zb3JpdA=="),".ylamainos",m("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",m("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",m("LmhlYWRlci1ibG9ja2VkLWFk"),m("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",m("I2FkXzMwMFgyNTA="),m("I2Jhbm5lcmZsb2F0MjI="),m("I2NhbXBhaWduLWJhbm5lcg=="),m("I0FkLUNvbnRlbnQ=")],adGuardChinese:[m("LlppX2FkX2FfSA=="),m("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",m("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),m("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",m("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",m("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",m("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),m("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),m("LmFkZ29vZ2xl"),m("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[m("YW1wLWF1dG8tYWRz"),m("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",m("I2FkX2ludmlld19hcmVh")],adGuardRussian:[m("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),m("LnJlY2xhbWE="),'div[id^="smi2adblock"]',m("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[m("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),m("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",m("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),m("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),m("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",m("I3Jla2xhbWk="),m("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),m("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),m("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[m("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",m("LndpZGdldF9wb19hZHNfd2lkZ2V0"),m("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",m("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[m("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),m("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",m("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",m("I3Jla2xhbW5pLWJveA=="),m("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",m("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[m("I2FkdmVydGVudGll"),m("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",m("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",m("LnNwb25zb3JsaW5rZ3J1ZW4="),m("I3dlcmJ1bmdza3k="),m("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),m("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[m("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",m("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[m("LnJla2xhbW9zX3RhcnBhcw=="),m("LnJla2xhbW9zX251b3JvZG9z"),m("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),m("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),m("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[m("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[m("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),m("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",m("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[m("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),m("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),m("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",m("LmFkX19tYWlu"),m("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[m("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[m("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),m("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[m("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),m("I2xpdmVyZUFkV3JhcHBlcg=="),m("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),m("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[m("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",m("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),m("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),m("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[m("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),m("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),m("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",m("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),m("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),m("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),m("ZGl2I3NrYXBpZWNfYWQ=")],ro:[m("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),m("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),m("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),m("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[m("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),m("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),m("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",m("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),m("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",m("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},f=Object.keys(a),[4,xe((b=[]).concat.apply(b,f.map(function(I){return a[I]})))]):[2,void 0];case 1:return g=_.sent(),c&&function(I,L){for(var x="DOM blockers debug:\n```",Y=0,J=Object.keys(I);Y<J.length;Y++){var tt=J[Y];x+=`
18
13
  `.concat(tt,":");for(var nt=0,ut=I[tt];nt<ut.length;nt++){var pt=ut[nt];x+=`
19
- `.concat(L[pt]?"🚫":"➡️"," ").concat(pt)}}console.log("".concat(x,"\n```"))}(a,g),(w=f.filter(function(I){var L=a[I];return C(L.map(function(x){return g[x]}))>.6*L.length})).sort(),[2,w]}var m})})},ie=function(){return s===void 0&&(s=4e3),z(function(c,a){var f=a.document,g=f.body,w=g.style;w.width="".concat(s,"px"),w.webkitTextSizeAdjust=w.textSizeAdjust="none",T()?g.style.zoom="".concat(1/a.devicePixelRatio):D()&&(g.style.zoom="reset");var b=f.createElement("div");return b.textContent=(0,n.fX)([],Array(s/20|0),!0).map(function(){return"word"}).join(" "),g.appendChild(b),function(_,m){for(var I={},L={},x=0,Y=Object.keys(U);x<Y.length;x++){var J=Y[x],tt=U[J],nt=tt[0],ut=nt===void 0?{}:nt,pt=tt[1],Et=pt===void 0?"mmMwWLliI0fiflO&1":pt,ht=_.createElement("span");ht.textContent=Et,ht.style.whiteSpace="nowrap";for(var yt=0,Vt=Object.keys(ut);yt<Vt.length;yt++){var Wt=Vt[yt],jt=ut[Wt];jt!==void 0&&(ht.style[Wt]=jt)}I[J]=ht,m.append(_.createElement("br"),ht)}for(var Tt=0,Ft=Object.keys(U);Tt<Ft.length;Tt++)L[J=Ft[Tt]]=I[J].getBoundingClientRect().width;return L}(f,g)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var s},se=function(){return navigator.oscpu},ye=function(){var s,c=navigator,a=[],f=c.language||c.userLanguage||c.browserLanguage||c.systemLanguage;if(f!==void 0&&a.push([f]),Array.isArray(c.languages))T()&&C([!("MediaSettingsRange"in(s=window)),"RTCEncodedAudioFrame"in s,""+s.Intl=="[object Intl]",""+s.Reflect=="[object Reflect]"])>=3||a.push(c.languages);else if(typeof c.languages=="string"){var g=c.languages;g&&a.push(g.split(","))}return a},de=function(){return window.screen.colorDepth},le=function(){return O(S(navigator.deviceMemory),void 0)},sn=function(){return O(v(navigator.hardwareConcurrency),void 0)},Se=function(){var s,c=(s=window.Intl)===null||s===void 0?void 0:s.DateTimeFormat;if(c){var a=new c().resolvedOptions().timeZone;if(a)return a}var f,g=(f=new Date().getFullYear(),-Math.max(S(new Date(f,0,1).getTimezoneOffset()),S(new Date(f,6,1).getTimezoneOffset())));return"UTC".concat(g>=0?"+":"").concat(g)},Te=function(){try{return!!window.sessionStorage}catch{return!0}},wn=function(){try{return!!window.localStorage}catch{return!0}},Ve=function(){return!!window.openDatabase},Ye=function(){return navigator.cpuClass},Ir=function(){var s=navigator.platform;return s==="MacIntel"&&D()&&!Z()?function(){if(navigator.platform==="iPad")return!0;var c=screen,a=c.width/c.height;return C(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,a>.65&&a<1.53])>=2}()?"iPad":"iPhone":s},Qe=function(){var s=navigator.plugins;if(s){for(var c=[],a=0;a<s.length;++a){var f=s[a];if(f){for(var g=[],w=0;w<f.length;++w){var b=f[w];g.push({type:b.type,suffixes:b.suffixes})}c.push({name:f.name,description:f.description,mimeTypes:g})}}return c}},Je=function(){var s,c=navigator,a=0;c.maxTouchPoints!==void 0?a=v(c.maxTouchPoints):c.msMaxTouchPoints!==void 0&&(a=c.msMaxTouchPoints);try{document.createEvent("TouchEvent"),s=!0}catch{s=!1}return{maxTouchPoints:a,touchEvent:s,touchStart:"ontouchstart"in window}},si=function(){return navigator.vendor||""},un=function(){for(var s=[],c=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];c<a.length;c++){var f=a[c],g=window[f];g&&typeof g=="object"&&s.push(f)}return s.sort()},ln=function(){var s=document;try{s.cookie="cookietest=1; SameSite=Strict;";var c=s.cookie.indexOf("cookietest=")!==-1;return s.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",c}catch{return!1}},hs=function(){for(var s=0,c=["rec2020","p3","srgb"];s<c.length;s++){var a=c[s];if(matchMedia("(color-gamut: ".concat(a,")")).matches)return a}},fn=function(){return!!P("inverted")||!P("none")&&void 0},dn=function(){return!!H("active")||!H("none")&&void 0},ps=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var s=0;s<=100;++s)if(matchMedia("(max-monochrome: ".concat(s,")")).matches)return s;throw new Error("Too high value")}},hn=function(){return lt("no-preference")?0:lt("high")||lt("more")?1:lt("low")||lt("less")?-1:lt("forced")?10:void 0},pn=function(){return!!mt("reduce")||!mt("no-preference")&&void 0},io=function(){return!!vt("reduce")||!vt("no-preference")&&void 0},oo=function(){return!!xt("high")||!xt("standard")&&void 0},so=function(){var s,c=Gt.acos||te,a=Gt.acosh||te,f=Gt.asin||te,g=Gt.asinh||te,w=Gt.atanh||te,b=Gt.atan||te,_=Gt.sin||te,m=Gt.sinh||te,I=Gt.cos||te,L=Gt.cosh||te,x=Gt.tan||te,Y=Gt.tanh||te,J=Gt.exp||te,tt=Gt.expm1||te,nt=Gt.log1p||te;return{acos:c(.12312423423423424),acosh:a(1e308),acoshPf:(s=1e154,Gt.log(s+Gt.sqrt(s*s-1))),asin:f(.12312423423423424),asinh:g(1),asinhPf:Gt.log(1+Gt.sqrt(2)),atanh:w(.5),atanhPf:Gt.log(3)/2,atan:b(.5),sin:_(-1e300),sinh:m(1),sinhPf:Gt.exp(1)-1/Gt.exp(1)/2,cos:I(10.000000000123),cosh:L(1),coshPf:(Gt.exp(1)+1/Gt.exp(1))/2,tan:x(-1e300),tanh:Y(1),tanhPf:(Gt.exp(2)-1)/(Gt.exp(2)+1),exp:J(1),expm1:tt(1),expm1Pf:Gt.exp(1)-1,log1p:nt(10),log1pPf:Gt.log(11),powPI:Gt.pow(Gt.PI,-100)}},ao=function(){return navigator.pdfViewerEnabled},co=function(){var s=new Float32Array(1),c=new Uint8Array(s.buffer);return s[0]=1/0,s[0]=s[0]-s[0],c[3]},uo=function(){var s,c=document.createElement("a"),a=(s=c.attributionSourceId)!==null&&s!==void 0?s:c.attributionsourceid;return a===void 0?void 0:String(a)},lo=function(){if(!at()&&!D())return-2;if(!window.AudioContext)return-1;var s=new AudioContext().baseLatency;return s==null?-1:isFinite(s)?s:-3},fo=function(){if(!window.Intl)return-1;var s=window.Intl.DateTimeFormat;if(!s)return-2;var c=s().resolvedOptions().locale;return c||c===""?c:-3},ho=function(s){var c,a,f,g,w,b,_=it(s.cache);if(!_)return-1;if(!rt(_))return-2;var m=Mt()?null:_.getExtension(W);return{version:((c=_.getParameter(_.VERSION))===null||c===void 0?void 0:c.toString())||"",vendor:((a=_.getParameter(_.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:m?(f=_.getParameter(m.UNMASKED_VENDOR_WEBGL))===null||f===void 0?void 0:f.toString():"",renderer:((g=_.getParameter(_.RENDERER))===null||g===void 0?void 0:g.toString())||"",rendererUnmasked:m?(w=_.getParameter(m.UNMASKED_RENDERER_WEBGL))===null||w===void 0?void 0:w.toString():"",shadingLanguageVersion:((b=_.getParameter(_.SHADING_LANGUAGE_VERSION))===null||b===void 0?void 0:b.toString())||""}},po=function(s){var c=it(s.cache);if(!c)return-1;if(!rt(c))return-2;var a=c.getSupportedExtensions(),f=c.getContextAttributes(),g=[],w=[],b=[],_=[],m=[];if(f)for(var I=0,L=Object.keys(f);I<L.length;I++){var x=L[I];w.push("".concat(x,"=").concat(f[x]))}for(var Y=0,J=Ct(c);Y<J.length;Y++){var tt=c[Vt=J[Y]];b.push("".concat(Vt,"=").concat(tt).concat(R.has(tt)?"=".concat(c.getParameter(tt)):""))}if(a)for(var nt=0,ut=a;nt<ut.length;nt++){var pt=ut[nt];if(!(pt===W&&Mt()||pt==="WEBGL_polygon_mode"&&(T()||D()))){var Et=c.getExtension(pt);if(Et)for(var ht=0,yt=Ct(Et);ht<yt.length;ht++){var Vt;tt=Et[Vt=yt[ht]],_.push("".concat(Vt,"=").concat(tt).concat(k.has(tt)?"=".concat(c.getParameter(tt)):""))}else g.push(pt)}}for(var Wt=0,jt=A;Wt<jt.length;Wt++)for(var Tt=jt[Wt],Ft=0,Yt=V;Ft<Yt.length;Ft++){var ee=Yt[Ft],oe=Lt(c,Tt,ee);m.push("".concat(Tt,".").concat(ee,"=").concat(oe.join(",")))}return _.sort(),b.sort(),{contextAttributes:w,parameters:b,shaderPrecisions:m,extensions:a,extensionParameters:_,unsupportedExtensions:g}},kn=function(s,c){var a=function(Y){for(var J=new Uint8Array(Y.length),tt=0;tt<Y.length;tt++){var nt=Y.charCodeAt(tt);if(nt>127)return new TextEncoder().encode(Y);J[tt]=nt}return J}(s);c=c||0;var f,g=[0,a.length],w=g[1]%16,b=g[1]-w,_=[0,c],m=[0,c],I=[0,0],L=[0,0];for(f=0;f<b;f+=16)I[0]=a[f+4]|a[f+5]<<8|a[f+6]<<16|a[f+7]<<24,I[1]=a[f]|a[f+1]<<8|a[f+2]<<16|a[f+3]<<24,L[0]=a[f+12]|a[f+13]<<8|a[f+14]<<16|a[f+15]<<24,L[1]=a[f+8]|a[f+9]<<8|a[f+10]<<16|a[f+11]<<24,B(I,ft),M(I,31),B(I,ot),G(_,I),M(_,27),N(_,m),B(_,bt),N(_,Rt),B(L,ot),M(L,33),B(L,ft),G(m,L),M(m,31),N(m,_),B(m,bt),N(m,At);I[0]=0,I[1]=0,L[0]=0,L[1]=0;var x=[0,0];switch(w){case 15:x[1]=a[f+14],F(x,48),G(L,x);case 14:x[1]=a[f+13],F(x,40),G(L,x);case 13:x[1]=a[f+12],F(x,32),G(L,x);case 12:x[1]=a[f+11],F(x,24),G(L,x);case 11:x[1]=a[f+10],F(x,16),G(L,x);case 10:x[1]=a[f+9],F(x,8),G(L,x);case 9:x[1]=a[f+8],G(L,x),B(L,ot),M(L,33),B(L,ft),G(m,L);case 8:x[1]=a[f+7],F(x,56),G(I,x);case 7:x[1]=a[f+6],F(x,48),G(I,x);case 6:x[1]=a[f+5],F(x,40),G(I,x);case 5:x[1]=a[f+4],F(x,32),G(I,x);case 4:x[1]=a[f+3],F(x,24),G(I,x);case 3:x[1]=a[f+2],F(x,16),G(I,x);case 2:x[1]=a[f+1],F(x,8),G(I,x);case 1:x[1]=a[f],G(I,x),B(I,ft),M(I,31),B(I,ot),G(_,I)}return G(_,g),G(m,g),N(_,m),N(m,_),ct(_),ct(m),N(_,m),N(m,_),("00000000"+(_[0]>>>0).toString(16)).slice(-8)+("00000000"+(_[1]>>>0).toString(16)).slice(-8)+("00000000"+(m[0]>>>0).toString(16)).slice(-8)+("00000000"+(m[1]>>>0).toString(16)).slice(-8)},go="phantomjs",mo="selenium",vo="headless_chrome",ze=function(s){function c(a,f){var g=s.call(this,f)||this;return g.state=a,g.name="BotdError",Object.setPrototypeOf(g,c.prototype),g}return(0,n.C6)(c,s),c}(Error);function yo(s,c){return s.indexOf(c)!==-1}function jn(s,c){return s.indexOf(c)!==-1}function Ci(s){return Object.getOwnPropertyNames(s)}function Bi(s){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];for(var f=function(_){if(typeof _=="string"){if(yo(s,_))return{value:!0}}else if(function(m,I){if("find"in m)return m.find(I);for(var L=0;L<m.length;L++)if(I(m[L]))return m[L]}(s,function(m){return _.test(m)})!=null)return{value:!0}},g=0,w=c;g<w.length;g++){var b=f(w[g]);if(typeof b=="object")return b.value}return!1}function wo(s){return s.reduce(function(c,a){return c+(a?1:0)},0)}function qa(){var s,c,a=window,f=navigator;return wo(["webkitPersistentStorage"in f,"webkitTemporaryStorage"in f,f.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in a,"BatteryManager"in a,"webkitMediaStream"in a,"webkitSpeechGrammar"in a])>=5?"chromium":wo(["ApplePayError"in a,"CSSPrimitiveValue"in a,"Counter"in a,f.vendor.indexOf("Apple")===0,"getStorageUpdates"in f,"WebKitMediaKeys"in a])>=4?"webkit":wo(["buildID"in navigator,"MozAppearance"in((c=(s=document.documentElement)===null||s===void 0?void 0:s.style)!==null&&c!==void 0?c:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4?"gecko":"unknown"}var Wn={android:function(){var s=qa(),c=s==="chromium",a=s==="gecko";if(!c&&!a)return!1;var f=window;return wo(["onorientationchange"in f,"orientation"in f,c&&!("SharedWorker"in f),a&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var s,c=(s=navigator.userAgent)===null||s===void 0?void 0:s.toLowerCase();return jn(c,"edg/")?"edge":jn(c,"trident")||jn(c,"msie")?"internet_explorer":jn(c,"wechat")?"wechat":jn(c,"firefox")?"firefox":jn(c,"opera")||jn(c,"opr")?"opera":jn(c,"chrome")?"chrome":jn(c,"safari")?"safari":"unknown"},browserEngineKind:qa,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var s=navigator.appVersion;if(s==null)throw new ze(-1,"navigator.appVersion is undefined");return s},rtt:function(){if(navigator.connection===void 0)throw new ze(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new ze(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(navigator.plugins===void 0)throw new ze(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new ze(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new ze(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new ze(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(s){if(s instanceof Error&&s.stack!=null)return s.stack.toString()}throw new ze(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var s=navigator.productSub;if(s===void 0)throw new ze(-1,"navigator.productSub is undefined");return s},windowExternal:function(){if(window.external===void 0)throw new ze(-1,"window.external is undefined");var s=window.external;if(typeof s.toString!="function")throw new ze(-2,"window.external.toString is not a function");return s.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new ze(-1,"navigator.mimeTypes is undefined");for(var s=navigator.mimeTypes,c=Object.getPrototypeOf(s)===MimeTypeArray.prototype,a=0;a<s.length;a++)c&&(c=Object.getPrototypeOf(s[a])===MimeType.prototype);return c},evalLength:function(){return eval.toString().length},webGL:function(){var s=document.createElement("canvas");if(typeof s.getContext!="function")throw new ze(-2,"HTMLCanvasElement.getContext is not a function");var c=s.getContext("webgl");if(c===null)throw new ze(-4,"WebGLRenderingContext is null");if(typeof c.getParameter!="function")throw new ze(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:c.getParameter(c.VENDOR),renderer:c.getParameter(c.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new ze(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var s,c=navigator,a=[],f=c.language||c.userLanguage||c.browserLanguage||c.systemLanguage;if(f!==void 0&&a.push([f]),Array.isArray(c.languages))qa()==="chromium"&&wo([!("MediaSettingsRange"in(s=window)),"RTCEncodedAudioFrame"in s,""+s.Intl=="[object Intl]",""+s.Reflect=="[object Reflect]"])>=3||a.push(c.languages);else if(typeof c.languages=="string"){var g=c.languages;g&&a.push(g.split(","))}return a},notificationPermissions:function(){return(0,n.sH)(this,void 0,void 0,function(){var s,c;return(0,n.YH)(this,function(a){switch(a.label){case 0:if(window.Notification===void 0)throw new ze(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new ze(-1,"navigator.permissions is undefined");if(typeof(s=navigator.permissions).query!="function")throw new ze(-2,"navigator.permissions.query is not a function");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,s.query({name:"notifications"})];case 2:return c=a.sent(),[2,window.Notification.permission==="denied"&&c.state==="prompt"];case 3:throw a.sent(),new ze(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}})})},documentElementKeys:function(){if(document.documentElement===void 0)throw new ze(-1,"document.documentElement is undefined");var s=document.documentElement;if(typeof s.getAttributeNames!="function")throw new ze(-2,"document.documentElement.getAttributeNames is not a function");return s.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new ze(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var s=window.process,c="window.process is";if(s===void 0)throw new ze(-1,"".concat(c," undefined"));if(s&&typeof s!="object")throw new ze(-3,"".concat(c," not an object"));return s},distinctiveProps:function(){var s,c,a=((s={}).awesomium={window:["awesomium"]},s.cef={window:["RunPerfTest"]},s.cefsharp={window:["CefSharp"]},s.coachjs={window:["emit"]},s.fminer={window:["fmget_targets"]},s.geb={window:["geb"]},s.nightmarejs={window:["__nightmare","nightmare"]},s.phantomas={window:["__phantomas"]},s[go]={window:["callPhantom","_phantom"]},s.rhino={window:["spawn"]},s[mo]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},s.webdriverio={window:["wdioElectron"]},s.webdriver={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},s[vo]={window:["domAutomation","domAutomationController"]},s),f={},g=Ci(window),w=[];for(c in window.document!==void 0&&(w=Ci(window.document)),a){var b=a[c];if(b!==void 0){var _=b.window!==void 0&&Bi.apply(void 0,(0,n.fX)([g],b.window,!1)),m=!(b.document===void 0||!w.length)&&Bi.apply(void 0,(0,n.fX)([w],b.document,!1));f[c]=_||m}}return f}};function bo(s,c){return new Promise(function(a){return $a(a,s,c)})}function $a(s,c){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];var g=Date.now()+c,w=0,b=function(){w=setTimeout(function(){Date.now()<g?b():s.apply(void 0,a)},g-Date.now())};return b(),function(){return clearTimeout(w)}}function gs(s,c){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];var g=document,w="visibilitychange",b=function(){return g.hidden?I():m()},_=function(L,x,Y){for(var J=[],tt=3;tt<arguments.length;tt++)J[tt-3]=arguments[tt];var nt,ut=!1,pt=L,Et=0,ht=function(){ut||nt||(Et=Date.now(),nt=$a(function(){ut=!0,Y.apply(void 0,J)},pt))};return x&&ht(),{start:ht,stop:function(){!ut&&nt&&(nt(),nt=void 0,pt-=Date.now()-Et)}}}(c,!g.hidden,function(){g.removeEventListener(w,b),s.apply(void 0,a)}),m=_.start,I=_.stop;return g.addEventListener(w,b),function(){g.removeEventListener(w,b),I()}}function Yn(s,c){return new Promise(function(a){return gs(a,s,c)})}function $l(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a;return(0,n.YH)(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,s()];case 1:return[2,f.sent()];case 2:return a=f.sent(),console.error(a),[2,c];case 3:return[2]}})})}function Za(s,c){return new Promise(function(a,f){var g=!1;c?.then(function(){return g=!0},function(){return g=!0}),(typeof s=="function"?Za(Promise.resolve(),c).then(s):s).then(function(w){g||a(w)},function(w){g||f(w)})})}function _o(s){return s.then(void 0,function(){}),s}function er(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w;return(0,n.YH)(this,function(b){switch(b.label){case 0:try{a=c().then(function(_){return f=[!0,_]},function(_){return f=[!1,_]})}catch(_){f=[!1,_]}return w=s.then(function(_){return g=[!0,_]},function(_){return g=[!1,_]}),[4,Promise.race([a,w])];case 1:return b.sent(),[2,function(){if(f){if(f[0])return f[1];throw f[1]}if(g){if(g[0])return g[1];throw g[1]}throw new Error("96375")}]}})})}function Zl(){var s,c,a=new Promise(function(f,g){s=f,c=g});return a.resolve=s,a.reject=c,a}function ms(s){return s instanceof Error||s!==null&&typeof s=="object"&&"name"in s}function Xl(s,c){var a=0;return function(){return Math.random()*Math.min(c,s*Math.pow(2,a++))}}function ai(s){return s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}function l4(s,c){return Object.prototype.hasOwnProperty.call(s,c)}function Pi(s,c,a,f){return s.addEventListener(c,a,f),function(){return s.removeEventListener(c,a,f)}}var Xa,Ja="0123456789abcdef";function Jl(s,c){if(c.length==0||c.length>s.length)return-1;for(var a=0;a<s.length;a++){for(var f=0,g=0;g<c.length;g++){if(s[a+g]!==c[g]){f=0;break}f++}if(f==c.length)return a}return-1}function Fr(s){for(var c=new Uint8Array(s.length),a=0;a<s.length;a++){var f=s.charCodeAt(a);if(f>127)return new TextEncoder().encode(s);c[a]=f}return c}function vs(s){if(typeof TextDecoder=="function"){var c=new TextDecoder().decode(s);if(c)return c}var a=ai(s);return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))}function Mi(s){return s.reduce(function(c,a){return c+(a?1:0)},0)}function Ql(s,c){return(s-c+256)%256}function mr(s){var c=ai(s);return btoa(String.fromCharCode.apply(null,c))}function ys(s){for(var c=atob(s),a=c.length,f=new Uint8Array(a),g=0;g<a;g++)f[g]=c.charCodeAt(g);return f}function vr(s){return tf(Fr(s))}function tf(s){var c=ai(s);Xa=Xa||function(){for(var g,w=new Uint32Array(256),b=0;b<256;b++){g=b;for(var _=0;_<8;_++)g=1&g?3988292384^g>>>1:g>>>1;w[b]=g}return w}();for(var a=-1,f=0;f<c.length;f++)a=a>>>8^Xa[255&(a^c[f])];return~a>>>0}function ef(s){return s===void 0?void 0:"".concat(s)}function f4(s,c){if(s!==void 0){if(!Array.isArray(s))throw new TypeError("Expected ".concat(c," to be an array, a ").concat(function(a){return typeof a=="object"?a?Object.prototype.toString.call(a):"null":typeof a}(s)," is given"));return s.map(String)}}function d4(s){for(var c=new Uint8Array(s.length/2),a=0;a<s.length;a+=2)c[a/2]=parseInt(s[a]+s[a+1],16);return c}function ws(s){if(s instanceof Array)return s.map(ws);if(s&&typeof s=="object"){for(var c={},a=0,f=Object.keys(s);a<f.length;a++){var g=f[a];c[g]=ws(s[g])}return c}return s}function h4(s,c){for(var a=[],f=Object.getOwnPropertyNames(s),g=0;g<f.length;g++){var w=f[g],b=vr(w);c.has(b)&&a.push({i:g,n:w})}return{l:f.length,p:a}}var Qa=new Uint32Array(2);function bs(){return crypto?(crypto.getRandomValues(Qa),(1048576*Qa[0]+(1048575&Qa[1]))/4503599627370496):Math.random()}function nf(s,c,a){a===void 0&&(a=bs);for(var f="",g=0;g<s;g++)f+=c.charAt(a()*c.length);return f}function Eo(s){return nf(s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function rf(){return[8,4,4,4,12].map(function(s){return nf(s,Ja)}).join("-")}var of=new Uint8Array(1);function p4(){return crypto.getRandomValues(of),of[0]}function sf(){return new TypeError("Can't pick from nothing")}function g4(s,c){return Math.floor(bs()*(c-s+1))+s}function af(s){return m4(s)?function(c){if(c.length===0)throw sf();return c[Math.floor(bs()*c.length)]}(s):function(c){for(var a=bs(),f=0,g=0,w=0,b=c;w<b.length;w++)f+=x=b[w][1];for(var _=0,m=c;_<m.length;_++){var I=m[_],L=I[0],x=I[1];if(a>=g/f&&a<(g+x)/f)return L;g+=x}throw sf()}(Object.entries(s))}var m4=Array.isArray,tc="3.11.11",_s={default:"endpoint"},cf={default:"tEndpoint"},Es={default:"tlsEndpoint"};function uf(s){return s?{query:!0,fragment:!0}:void 0}var lf="_vid";function ff(s){switch(s){case 0:return"load() start";case 1:return"load() success";case 2:return"load() fail";case 3:return"get() start";case 4:return"get() success";case 5:return"get() fail";case 6:return"TLS start";case 7:return"TLS success";case 8:return"TLS fail";case 9:return"TLS attempt start";case 10:return"TLS attempt success";case 11:return"TLS attempt fail";case 12:return"Signals start";case 13:return"Signals success";case 14:return"Signals fail";case 15:return"Ingress start";case 16:return"Ingress success";case 17:return"Ingress fail";case 18:return"Ingress attempt start";case 19:return"Ingress attempt success";case 20:return"Ingress attempt fail"}}function df(){return{len:0,arr:new Uint8Array(128)}}function yr(s,c){pf(s,s.len+1),s.arr[s.len++]=c}function Rs(s,c){pf(s,s.len+c.length),s.arr.set(c,s.len),s.len+=c.length}function hf(s){return s.arr.subarray(0,s.len)}function pf(s,c){if(s.arr.length<c){var a=new Uint8Array(Math.max(2*s.arr.length,c));a.set(s.arr),s.arr=a}}function gf(s){var c=df(),a=new WeakSet,f=function(g){if(typeof g=="string"){var w=g.replace(O4,function(ut){return"\\"+(Af[ut]||"u"+ut.charCodeAt(0).toString(16).padStart(4,"0"))});return yr(c,Ro),Rs(c,Fr(w)),void yr(c,Ro)}if(typeof g=="number"||g===!0||g===!1)return(Number.isNaN(g)||g===1/0||g===-1/0)&&(g=null),void Rs(c,Fr(String(g)));if(typeof g=="object"&&g){if(a.has(g))throw new TypeError("Recursive input");a.add(g);var b=g.toJSON;if(typeof b=="function")return void f(b.call(g));if(g instanceof Number||g instanceof String)return void f(g.valueOf());var _=!0,m=function(){_?_=!1:yr(c,ec)};if(Array.isArray(g)){yr(c,wf);for(var I=0,L=g;I<L.length;I++){var x=L[I];m(),f(x)}yr(c,bf)}else{yr(c,_f);for(var Y=0,J=Object.entries(g);Y<J.length;Y++){var tt=J[Y],nt=tt[0];v4(x=tt[1])||(m(),f(nt),yr(c,vf),f(x))}yr(c,Ef)}a.delete(g)}else Rs(c,ic)};return f(s),hf(c)}function Ss(s){var c=df(),a=ai(s),f=0,g=function(){return I(),a[f]===Ro?w():mf(a[f])?b():L(ic)?(f+=ic.length,null):L(Rf)?(f+=Rf.length,!0):L(Sf)?(f+=Sf.length,!1):a[f]===wf?_():a[f]===_f?m():x()},w=function(){for(c.len=0;f++,a[f]!==Ro;){if(a[f]===E4){if(f++,a[f]===rc){var J=parseInt(vs(a.subarray(f+1,f+5)),16);Rs(c,Fr(String.fromCharCode(J))),f+=4;continue}var tt=k4[a[f]];if(tt){yr(c,tt);continue}return x()}if(a[f]===void 0)return x();yr(c,a[f])}return f++,vs(hf(c))},b=function(){for(var J=f;a[f]===I4||a[f]===nc||a[f]===R4||a[f]===S4||mf(a[f]);)f++;return Number(vs(a.subarray(J,f)))},_=function(){var J=[];for(f++;;){if(I(),a[f]===bf){f++;break}if(J.length){if(a[f]!==ec)return x();f++}J.push(g())}return J},m=function(){var J={},tt=!0;for(f++;;){if(I(),a[f]===Ef){f++;break}if(!tt){if(a[f]!==ec)return x();f++,I()}if(a[f]!==Ro)return x();var nt=w();if(I(),a[f]!==vf)return x();f++,Object.defineProperty(J,nt,{value:g(),configurable:!0,enumerable:!0,writable:!0}),tt=!1}return J},I=function(){for(;a[f]===y4||a[f]===_4||a[f]===b4||a[f]===w4;)f++},L=function(J){for(var tt=0;tt<J.length;tt++)if(a[f+tt]!==J[tt])return!1;return!0},x=function(){throw new SyntaxError("Unexpected ".concat(f<a.length?"byte ".concat(f):"end"))},Y=g();return I(),a[f]!==void 0&&x(),Y}function v4(s){return s===void 0||typeof s=="function"||typeof s=="symbol"}function mf(s){return s>=yf&&s<yf+10||s===A4}var Ro=34,ec=44,vf=58,y4=32,w4=9,b4=13,_4=10,E4=92,yf=48,nc=101,rc=117,R4=69,S4=43,A4=45,I4=46,wf=91,bf=93,_f=123,Ef=125,ic=new Uint8Array([110,rc,108,108]),Rf=new Uint8Array([116,114,rc,nc]),Sf=new Uint8Array([102,97,108,115,nc]),Af={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},k4=function(){for(var s=new Uint8Array(128),c=0,a=Object.entries(Af);c<a.length;c++){var f=a[c],g=f[0];s[f[1].charCodeAt(0)]=g.charCodeAt(0)}return s}(),O4=/[\x00-\x1F"\\]/g,oc="Client timeout",sc="Network connection error",ac="Network request aborted",cc="Response cannot be parsed",uc="Blocked by CSP",lc="The endpoint parameter is not a valid URL";function ci(s,c,a){return a===void 0&&(a="..."),s.length<=c?s:"".concat(s.slice(0,Math.max(0,c-a.length))).concat(a)}function nr(s){for(var c="",a=0;a<s.length;++a)if(a>0){var f=s[a].toLowerCase();f!==s[a]?c+=" ".concat(f):c+=s[a]}else c+=s[a].toUpperCase();return c}var If=nr("WrongRegion"),kf=nr("SubscriptionNotActive"),Of=nr("UnsupportedVersion"),Tf=nr("InstallationMethodRestricted"),Nf=nr("HostnameRestricted"),xf=nr("IntegrationFailed"),Lf=nr("VisitorNotFound"),Cf=nr("NetworkRestricted"),Bf=nr("InvalidProxyIntegrationSecret"),Pf=nr("InvalidProxyIntegrationHeaders");function T4(s){var c;try{c=Ss(s.body)}catch{}return(0,n.Cl)((0,n.Cl)({},s),{bodyData:c})}function N4(s,c,a,f){var g=f.bodyData;return g===void 0?Vf(f):function(w){return w instanceof Object&&w.v==="2"&&w.products instanceof Object}(g)?function(w,b,_,m){var I,L=w.notifications,x=w.requestId,Y=w.sealedResult,J=w.error,tt=w.products,nt=function(Wt){for(var jt=[],Tt=0,Ft=Object.keys(Wt);Tt<Ft.length;Tt++){var Yt=Wt[Ft[Tt]];Yt&&jt.push(Yt)}return jt}(tt);Hf(L);for(var ut=0,pt=nt;ut<pt.length;ut++)Hf(pt[ut].notifications);if(J)return Mf(J,x,Y,_);for(var Et=0,ht=nt;Et<ht.length;Et++){var yt=ht[Et].error;if(yt)return Mf(yt,x,Y,_)}(function(Wt,jt,Tt){for(var Ft,Yt=0,ee=jt;Yt<ee.length;Yt++){var oe=ee[Yt];(Ft=oe.onResponse)===null||Ft===void 0||Ft.call(oe,Wt,Tt)}})(w,b,m);var Vt=(I=tt.identification)===null||I===void 0?void 0:I.data;return{result:Vt?(0,n.Cl)((0,n.Cl)({requestId:x},Y===void 0?{}:{sealedResult:Y}),Vt.result):Df(x,Y,_)}}(g,s,c,a):Vf(f)}function Mf(s,c,a,f){switch(s.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return Uf(c,a,!0,f);case"NotAvailableWithoutUA":return Uf(c,a,void 0,f);default:return{error:Ff(x4(s),c,s),stop:s.code==="VisitorNotFound"}}}function x4(s){var c,a=s.code,f=s.message;return a===void 0?f:(c=function(g){switch(g){case"TokenRequired":return"API key required";case"TokenNotFound":return"API key not found";case"TokenExpired":return"API key expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableForAIBots":return"Not available for AI bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}}(a))!==null&&c!==void 0?c:nr(a)}function Df(s,c,a){var f={requestId:s,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(c!==void 0&&(f.sealedResult=c),!a)return f;var g="n/a";return(0,n.Cl)((0,n.Cl)({},f),{incognito:!1,browserName:g,browserVersion:g,device:g,ip:g,os:g,osVersion:g,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}})}function Uf(s,c,a,f){return{result:(0,n.Cl)((0,n.Cl)({},Df(s,c,f)),{bot:(0,n.Cl)({probability:1},a===void 0?void 0:{safe:a})})}}function Ff(s,c,a){var f=new Error(s);return c!==void 0&&(f.requestId=c),a!==void 0&&(f.raw=a),f}function Hf(s){s?.forEach(L4)}function L4(s){var c=s.level,a=s.message;c==="error"?console.error(a):c==="warning"?console.warn(a):console.log(a)}function Vf(s){return{error:Ff(cc,void 0,{httpStatusCode:s.status,bodyBase64:mr(s.body)})}}var Wf="[Fingerprint Pro]";function C4(s){return s===void 0&&(s=Wf),function(c){var a=console.log;switch(c.e){case 2:case 5:case 8:case 11:case 14:case 20:a=console.error;break;case 13:var f=c.result;Object.keys(f).some(function(w){return"error"in f[w]})&&(a=console.warn);break;case 17:var g=c.error;a=c.stage===0&&ms(g)&&g.message===Lf?console.log:console.error}a.apply(console,function(w,b){var _=b.e,m=b.stage,I=(0,n.Tt)(b,["e","stage"]),L=[w,new Date().toISOString().slice(11),ff(_)];if(m!==void 0)switch(m){case 0:L.push("(fast)");break;case 1:L.push("(final)");break;default:I.stage=m}return L.push(I),L}(s,c))}}function B4(s){s===void 0&&(s="".concat(Wf," "));var c={};return function(a){switch(a.e){case 15:c[a.getCallId]=a.body;break;case 18:console.log("".concat(s,"Visitor id request"),c[a.getCallId]);break;case 19:console.log("".concat(s,"Visitor id response"),a.body);break;case 16:case 17:delete c[a.getCallId]}}}var zf="__fpjs_pvid";function Gf(){var s=window,c=s[zf];return s[zf]=typeof c=="string"?c:Eo(10)}function P4(){var s=window;try{return s.self!==s.top}catch{return!0}}function fc(){return!document.hidden}var Kf="stripped",dc=["path","query","fragment"];function As(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f=this;return(0,n.YH)(this,function(g){switch(g.label){case 0:return jf(c)?[2,s]:(a=Is(s),[4,Promise.all(dc.map(function(w){return(0,n.sH)(f,void 0,void 0,function(){var b,_,m;return(0,n.YH)(this,function(I){switch(I.label){case 0:return b=a[w],c[w]&&b?(_=a,m=w,[4,M4(w==="query"?(L=b,L.split("&").sort().join("&")):b)]):[3,2];case 1:_[m]=I.sent(),I.label=2;case 2:return[2]}var L})})}))]);case 1:return g.sent(),[2,ks(a)]}})})}function jf(s){return!(s&&dc.some(function(c){return s[c]}))}function Is(s){var c,a,f=s.split("#"),g=f[0],w=f.slice(1),b=g.split("?"),_=b[0],m=b.slice(1),I=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(_);return I?(c=(I[1]||"")+(I[4]||""),a=I[5]||""):(c="",a=_),{origin:c,path:a,query:m.length?m.join("?"):null,fragment:w.length?w.join("#"):null}}function ks(s){var c=s.origin,a=s.path,f=s.query,g=s.fragment;return c+a+(f===null?"":"?".concat(f))+(g===null?"":"#".concat(g))}function M4(s){var c;return(0,n.sH)(this,void 0,void 0,function(){var a;return(0,n.YH)(this,function(f){switch(f.label){case 0:return s===""?[2,""]:(a=(c=window.crypto)===null||c===void 0?void 0:c.subtle)!=null&&a.digest?[4,a.digest("SHA-256",Fr(s))]:[2,Kf];case 1:return[2,mr(f.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}})})}function D4(s,c){var a=Is(s),f=a.origin+a.path;return f&&!f.endsWith("/")&&(f+="/"),f+=c,a.origin="",a.path=f,ks(a)}function hc(s,c){for(var a=Is(s),f=a.query,g=0,w=Object.entries(c);g<w.length;g++)for(var b=w[g],_=b[0],m=b[1],I=0,L=Array.isArray(m)?m:[m];I<L.length;I++){var x=L[I];f="".concat(f?"".concat(f,"&"):"").concat(_,"=").concat(U4(x))}return a.query=f,ks(a)}function U4(s){return s.split("/").map(encodeURIComponent).join("/")}function F4(s){return function(c){var a=[],f=new Map,g=window.setInterval(function(){var b=a.shift();if(b){var _=b[0],m=b[1],I=_o(s(m));f.set(_,I)}},1);function w(){window.clearInterval(g)}return c.then(w,w),[a,f,c]}}function Yf(s){var c,a,f=Math.random();return c=f,a=s,s.container[0].push([c,a]),function(g,w,b){var _;function m(){window.clearInterval(_)}var I=g[1],L=g[2],x=new Promise(function(Y,J){_=window.setInterval(function(){var tt=I.get(w);if(tt)return I.delete(w),tt.then(Y,J)},1)});return x.then(m,m),b?.then(m,m),L.then(m,m),x}(s.container,f,s.abort)}var qf=F4(H4);function H4(s){return function(c,a,f,g){var w,b=document,_="securitypolicyviolation",m=function(L){var x=new URL(c,location.href),Y=L.blockedURI;Y!==x.href&&Y!==x.protocol.slice(0,-1)&&Y!==x.origin||(w=L,I())};b.addEventListener(_,m);var I=function(){return b.removeEventListener(_,m)};return g?.then(I,I),Promise.resolve().then(a).then(function(L){return I(),L},function(L){return new Promise(function(x){var Y=new MessageChannel;Y.port1.onmessage=function(){return x()},Y.port2.postMessage(null)}).then(function(){if(I(),w)return function(){throw $f()}();throw L})})}(s.url,function(){return a=(c=s).url,f=c.method,g=f===void 0?"get":f,w=c.body,b=c.headers,_=c.withCredentials,m=_!==void 0&&_,I=c.timeout,L=c.responseFormat,x=c.abort,new Promise(function(Y,J){if(function(Et){if(URL.prototype)try{return new URL(Et,location.href),!1}catch(ht){if(ht instanceof Error&&ht.name==="TypeError")return!0;throw ht}}(a))throw So("InvalidURLError","Invalid URL");var tt=new XMLHttpRequest;try{tt.open(g,a,!0)}catch(Et){throw Et instanceof Error&&/violate.+content security policy/i.test(Et.message)?$f():Et}if(tt.withCredentials=m,tt.timeout=I===void 0?0:Math.max(I,1),L==="binary"&&(tt.responseType="arraybuffer"),b)for(var nt=0,ut=Object.keys(b);nt<ut.length;nt++){var pt=ut[nt];tt.setRequestHeader(pt,b[pt])}tt.onload=function(){return Y(function(Et){return{body:Et.response,status:Et.status,statusText:Et.statusText,getHeader:function(ht){return function(yt,Vt){var Wt,jt=new RegExp("^".concat((Wt=Vt,Wt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(yt);return jt?jt[1]:void 0}(Et.getAllResponseHeaders(),ht)}}}(tt))},tt.ontimeout=function(){return J(So("TimeoutError","The request timed out"))},tt.onabort=function(){return J(So("AbortError","The request is aborted"))},tt.onerror=function(){return J(So("TypeError",navigator.onLine?"Connection error":"Network offline"))},tt.send(function(Et){var ht=function(){try{return new Blob([]),!1}catch{return!0}};if(Et instanceof ArrayBuffer){if(!ht())return new Uint8Array(Et)}else if(Et?.buffer instanceof ArrayBuffer&&ht())return Et.buffer;return Et}(w)),x?.catch(function(){}).then(function(){tt.onabort=null,tt.abort()})});var c,a,f,g,w,b,_,m,I,L,x},0,s.abort)}function So(s,c){var a=new Error(c);return a.name=s,a}function $f(){return So("CSPError","The request is blocked by the CSP")}function kr(s,c){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];s&&$l(function(){var g=c.apply(void 0,a);g!==void 0&&s(g)})}function Ao(s,c,a,f,g){return(0,n.sH)(this,void 0,void 0,function(){var w,b;return(0,n.YH)(this,function(_){switch(_.label){case 0:kr(s,c),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,g()];case 2:return w=_.sent(),[3,4];case 3:throw b=_.sent(),kr(s,f,b),b;case 4:return kr(s,a,w),[2,w]}})})}function V4(s){for(var c={},a=0,f=Object.keys(s);a<f.length;a++){var g=f[a],w=s[g];if("value"in w){w.value;var b=(0,n.Tt)(w,["value"]);c[g]=b}else c[g]=w}return c}function Zf(s){return typeof s.getCallId=="string"}function W4(s){if(typeof s!="object"||!s)return s;var c=s.modules;return c instanceof Array?(0,n.Cl)((0,n.Cl)({},s),{modules:c.map(function(a){if(typeof a!="object"||!a)return a;var f=a.key;return typeof f=="string"?{key:f}:a})}):s}function z4(){var s=window,c=navigator;return Mi(["maxTouchPoints"in c,"mediaCapabilities"in c,"PointerEvent"in s,"visualViewport"in s,"onafterprint"in s])>=4}function G4(){var s=window;return Mi(["mediaSession"in navigator,"BigInt64Array"in s,"FormDataEvent"in s,"ImageBitmap"in s,"WebGL2RenderingContext"in s,"onclose"in s])>=4}function K4(){var s=window;return Mi(["fromAsync"in Array,"OffscreenCanvas"in s,"CompressionStream"in s,"isWellFormed"in String.prototype])>=3}function j4(){var s,c=window;return Mi(["Iterator"in c,c.Error&&"isError"in c.Error,c.Atomics&&"pause"in c.Atomics,((s=c.Document)===null||s===void 0?void 0:s.prototype)&&"fragmentDirective"in c.Document.prototype,c.CSSRule&&!("UNKNOWN_RULE"in c.CSSRule),!("SVGDocument"in c)])>=4}function Xf(){var s=window;return Mi([!("PushManager"in s),!("AudioBuffer"in s),!("RTCPeerConnection"in s),!("geolocation"in navigator),!("ServiceWorker"in s)])>=3}function Y4(){var s=window;return Mi(["ClipboardItem"in s,"PerformanceEventTiming"in s,"RTCSctpTransport"in s])>=2}var q4=function(){function s(c){var a=this;this.onReportReady=c,this.isStopped=!1,this.pageStartTimestamp=function(){var tt,nt,ut=performance;if(ut.timeOrigin){var pt=(nt=(tt=ut.getEntriesByType)===null||tt===void 0?void 0:tt.call(ut,"navigation"))===null||nt===void 0?void 0:nt[0];if(pt)return ut.timeOrigin+(pt.responseStart||pt.unloadEventEnd)}return ut.timing.domLoading||ut.timing.responseStart||ut.timing.unloadEventEnd}(),this.events={};for(var f=window,g=document,w=[[g,"readystatechange",function(){return a.handleDocumentReadyStateChange()}],[g,"visibilitychange",function(){return a.handleVisibilityChange()}],[g,"pageshow",function(){return a.handlePageTransition(!0)}],[g,"pagehide",function(){return a.handlePageTransition(!1)}],[f,"unload",function(){return a.handlePageUnload()}]],b=0,_=w;b<_.length;b++){var m=_[b],I=m[0],L=m[1],x=m[2];I.addEventListener(L,x)}var Y=function(tt){var nt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map(function(ut){return Pi(document,ut,tt,void 0)});return function(){for(var ut=0,pt=nt;ut<pt.length;ut++)(0,pt[ut])()}}(function(){return a.handleFullscreenChange()}),J=function(tt){var nt=window,ut=navigator.connection;if(ut)return Pi(ut,"change",tt);var pt=Pi(nt,"online",tt),Et=Pi(nt,"offline",tt);return function(){pt(),Et()}}(function(){return a.handleNetworkConnectionChange()});this.stop=function(){a.isStopped=!0;for(var tt=0,nt=w;tt<nt.length;tt++){var ut=nt[tt],pt=ut[0],Et=ut[1],ht=ut[2];pt.removeEventListener(Et,ht)}Y(),J()}}return s.prototype.addEvent=function(c){var a;if(!this.isStopped){var f={time:new Date,type:"agentEvent",event:c};if(c.e===0){var g=c.options;this.urlHashing=(a=g?.urlHashing)!==null&&a!==void 0?a:uf(g?.stripUrlParams),f.documentReadyState=document.readyState,f.isPageVisible=fc(),f.isFullscreen=Jf(),f.network=Qf()}switch(this.storeAgentEvent(f),c.e){case 2:this.submitReport(c.agentId,void 0);break;case 4:case 5:this.submitReport(c.agentId,c.getCallId)}}},s.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},s.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:fc()})},s.prototype.handlePageTransition=function(c){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:c})},s.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:Jf()})},s.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:Qf()})},s.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var c=0,a=Object.keys(this.events);c<a.length;c++){var f=a[c],g=this.events[f];if(Object.keys(g.getCalls).length===0)this.submitReport(f,void 0);else for(var w=0,b=Object.keys(g.getCalls);w<b.length;w++){var _=b[w];$4(g.getCalls[_])||this.submitReport(f,_)}}this.stop()},s.prototype.storeAgentEvent=function(c){var a=c.event,f=a.agentId;if(this.events[f]||(this.events[f]={commonEvents:[],getCalls:{}}),Zf(a)){var g=a.getCallId;this.events[f].getCalls[g]||(this.events[f].getCalls[g]=[]),this.events[f].getCalls[g].push(c)}else this.events[f].commonEvents.push(c)},s.prototype.storeEnvironmentEvent=function(c){for(var a=0,f=Object.keys(this.events);a<f.length;a++){var g=f[a];this.events[g].commonEvents.push(c)}},s.prototype.submitReport=function(c,a){var f=function(w,b,_){var m=[];return w[b]&&(m.push.apply(m,w[b].commonEvents),_!==void 0&&m.push.apply(m,w[b].getCalls[_]||[])),m.sort(function(I,L){return I.time.getTime()-L.time.getTime()}),m}(this.events,c,a),g=function(w,b,_){for(var m,I,L,x,Y,J,tt,nt,ut,pt=function(Tt){for(var Ft={},Yt=0,ee=Tt;Yt<ee.length;Yt++){var oe=ee[Yt];oe.type==="agentEvent"&&(Ft[oe.event.e]=oe)}return Ft}(w),Et="null",ht=0,yt=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];ht<yt.length;ht++){var Vt=yt[ht],Wt=Vt[0],jt=Vt[1];if(pt[Wt]){Et=jt;break}}return{time:((m=w[w.length-1])===null||m===void 0?void 0:m.time)||new Date,pageUrl:location.href,pageStartTime:new Date(b),isInIframe:P4(),agentVersion:(I=pt[0])===null||I===void 0?void 0:I.event.version,userAgent:navigator.userAgent,pageViewId:Gf(),agentId:(L=pt[0])===null||L===void 0?void 0:L.event.agentId,getCallId:(x=pt[3])===null||x===void 0?void 0:x.event.getCallId,requestId:(J=(Y=pt[4])===null||Y===void 0?void 0:Y.event.result.requestId)!==null&&J!==void 0?J:(nt=(tt=pt[5])===null||tt===void 0?void 0:tt.event.error)===null||nt===void 0?void 0:nt.requestId,visitorId:(ut=pt[4])===null||ut===void 0?void 0:ut.event.result.visitorId,identificationState:Et,events:w,urlHashing:_}}(f,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(g)}catch(w){console.error(w)}},s}();function $4(s){return s.some(function(c){return c.type==="agentEvent"&&(c.event.e===4||c.event.e===5)})}function Jf(){return!!X()}function Qf(){var s=navigator.connection;return{online:navigator.onLine,downlink:s?.downlink,downlinkMax:s?.downlinkMax,effectiveType:s?.effectiveType,roundTrip:s?.rtt,saveData:s?.saveData,type:s?.type}}function Z4(s){var c=this,a=s.clientId,f=s.token,g=s.endpoint,w=g===void 0?"https://api.rollbar.com/api/1/item/":g,b=new q4(function(_){return(0,n.sH)(c,void 0,void 0,function(){var m;return(0,n.YH)(this,function(I){switch(I.label){case 0:return m=function(L,x,Y){return{access_token:Y,data:X4(L,x,void 0)}}(_,a,f),[4,t5(w,m)];case 1:return I.sent(),[2]}})})});return b.addEvent.bind(b)}function X4(s,c,a){var f;a===void 0&&(a=rf());var g=J4[s.identificationState],w=g.level,b=g.message,_=function(m,I){if(jf(I))return m;for(var L=Is(m),x=0,Y=dc;x<Y.length;x++){var J=Y[x];I[J]&&L[J]&&(L[J]=Kf)}return ks(L)}(s.pageUrl,s.urlHashing);return{environment:c,level:w,timestamp:Math.round(s.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:a,notifier:{name:"Fingerprint Pro monitoring",version:tc},request:{url:_,query_string:((f=/\?.*$/.exec(_))!==null&&f!==void 0?f:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:s.userAgent,code_version:s.agentVersion}},person:s.visitorId===void 0?void 0:{id:"visitorId:".concat(s.visitorId)},body:{telemetry:(0,n.fX)([{level:"debug",source:"client",timestamp_ms:s.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],s.events.map(Q4),!0),message:{body:b}},custom:{isInIframe:s.isInIframe,pageViewId:s.pageViewId,agentId:s.agentId,getCallId:s.getCallId,requestId:s.requestId,identificationState:s.identificationState}}}var J4={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Q4(s){var c={type:"manual",level:"debug",source:"client",timestamp_ms:s.time.getTime()};switch(s.type){case"documentReadyState":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:'Document ready state becomes "'.concat(s.state,'"')}});case"pageVisibilityToggle":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:"Page becomes ".concat(s.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:s.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:"Programmatic fullscreen ".concat(s.isFullscreen?"on":"off")}});case"networkChange":return(0,n.Cl)((0,n.Cl)({},c),{body:(0,n.Cl)((0,n.Cl)({},s.network),{message:"Network connection changes"})});case"pageUnload":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:"Page is about to unload (terminate)"}})}var a=s.event,f=function(I,L){L===void 0&&(L="info");var x=I;x.e,x.agentId,x.getCallId;for(var Y=(0,n.Tt)(x,["e","agentId","getCallId"]),J=(0,n.Cl)((0,n.Cl)({},c),{level:L,body:(0,n.Cl)({message:ff(a.e)},Y)}),tt=0,nt=["documentReadyState","isPageVisible","isFullscreen","network"];tt<nt.length;tt++){var ut=nt[tt];s[ut]!==void 0&&(J.body[ut]=s[ut])}return J};switch(a.e){case 0:a.version;var g=a.options,w=(0,n.Tt)(a,["version","options"]);return f((0,n.Cl)((0,n.Cl)({},w),{options:W4(g)}));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return f(a);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return f(a,"error");case 7:var b=a.result;return f((0,n.Cl)((0,n.Cl)({},a),{result:(0,n.Cl)((0,n.Cl)({},b),{v:"v"in b?b.v&&ci(b.v,1e3):void 0})}));case 10:return f((0,n.Cl)((0,n.Cl)({},a),{body:ci(a.body,1e3)}));case 13:var _=f((0,n.Cl)((0,n.Cl)({},a),{result:V4(a.result)}));return _.body.message+=" (the values are omitted)",_;case 19:var m=a.body;return m instanceof ArrayBuffer&&(m="(base64) ".concat(m.byteLength>1800?"".concat(mr(new Uint8Array(m,0,1800)),"..."):mr(m))),f((0,n.Cl)((0,n.Cl)({},a),{body:m}))}}function t5(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f;return(0,n.YH)(this,function(g){switch(g.label){case 0:a=function(w){return JSON.stringify(w,function(b,_){if(_ instanceof Error){var m=function(I,L){var x;return L===void 0&&(L=!1),(0,n.Cl)({name:I.name,message:I.message,stack:L?(x=I.stack)===null||x===void 0?void 0:x.split(`
20
- `):I.stack},I)}(_);return typeof m.stack=="string"&&(m.stack=ci(m.stack,1e3)),m}return _})}(c),f=Xl(1e3,1e4),g.label=1;case 1:return navigator.onLine&&function(w){var b,_=w.url,m=w.body,I=function(){var x,Y=(x=window.event)===null||x===void 0?void 0:x.type;return Y==="pagehide"||Y==="unload"}();if(I)try{if(!((b=navigator.sendBeacon)===null||b===void 0)&&b.call(navigator,_,m))return!0}catch(x){if(!(x instanceof Error&&x.message==="Illegal invocation"))throw x}var L=new XMLHttpRequest;L.open("POST",_,!I),m instanceof Blob&&L.setRequestHeader("Content-Type",m.type);try{L.send(m)}catch{return!1}return!0}({url:s,body:a})?[3,4]:[4,bo(f())];case 2:g.sent(),g.label=3;case 3:return[3,1];case 4:return[2]}})})}function t0(s,c,a,f,g){f===void 0&&(f=1/0);var w,b={failedAttempts:[]},_=function(x){var Y=function(nt){var ut=(0,n.fX)([],nt,!0);return{current:function(){return ut[0]},postpone:function(){var pt=ut.shift();pt!==void 0&&ut.push(pt)},exclude:function(){ut.shift()}}}(x),J=Xl(200,1e4),tt=new Set;return[Y.current(),function(nt,ut,pt){var Et;if(ut)Et=function(Wt){var jt=Wt.getHeader("retry-after");if(jt){if(/^\s*\d+(\.\d+)?\s*$/.test(jt))return 1e3*parseFloat(jt);var Tt=new Date(jt);return isNaN(Tt)?void 0:Tt.getTime()-Date.now()}}(ut),Et!==void 0?Y.postpone():Y.exclude();else if(pt instanceof Error&&(pt.name==="CSPError"||pt.name==="InvalidURLError"))Y.exclude(),Et=0;else{var ht=Date.now()-nt.getTime()<50,yt=Y.current();yt&&ht&&!tt.has(yt)&&(tt.add(yt),Et=0),Y.postpone()}var Vt=Y.current();return Vt===void 0?void 0:[Vt,Et??nt.getTime()+J()-Date.now()]}]}(s),m=_[0],I=_[1],L=(w=[g?.then(function(x){return b.aborted={resolve:!0,value:x}},function(x){return b.aborted={resolve:!1,error:x}}),(0,n.sH)(this,void 0,void 0,function(){var x,Y,J;return(0,n.YH)(this,function(tt){switch(tt.label){case 0:if(m===void 0)return[2];x=m,Y=function(nt){var ut,pt,Et,ht,yt,Vt;return(0,n.YH)(this,function(Wt){switch(Wt.label){case 0:ut=new Date,pt=void 0,Et=void 0,Wt.label=1;case 1:return Wt.trys.push([1,3,,4]),[4,Za(function(){return c(x,nt,g)},g)];case 2:return pt=Wt.sent(),[3,4];case 3:return ht=Wt.sent(),Et=ht,b.failedAttempts.push({level:0,endpoint:x,error:ht}),[3,4];case 4:if(pt){if("result"in(yt=a(pt)))return b.result=yt.result,[2,"break"];if(b.failedAttempts.push({level:1,endpoint:x,error:yt.error}),yt.stop)return[2,"break"]}return(Vt=I(ut,pt,Et))?[4,Za(bo(Vt[1]),g)]:[2,"break"];case 5:return Wt.sent(),x=Vt[0],[2]}})},J=0,tt.label=1;case 1:return J<f?[5,Y(J)]:[3,4];case 2:if(tt.sent()==="break")return[3,4];tt.label=3;case 3:return++J,[3,1];case 4:return[2]}})})],Promise.race(w.filter(function(x){return!!x}))).then(function(){return b});return{then:L.then.bind(L),current:b}}function e0(){return"js/".concat(tc)}var e5=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,n5=/@([^(^\s^}]+):(\d)+:(\d)+/i;function n0(s){return{e:r5(s)}}function r5(s){var c;try{s&&typeof s=="object"&&"message"in s?(c=String(s.message),"name"in s&&(c="".concat(s.name,": ").concat(c))):c=String(s)}catch(a){c="Code 3017: ".concat(a)}return ci(c,500)}function vn(s){return kt(s,function(c){return{s:0,v:c}})}function On(s,c){return kt(s,function(a){return{s:a==null?c:0,v:a??null}})}function r0(s){return kt(s,function(c){return typeof c=="number"?{s:c,v:null}:{s:0,v:c}})}function zn(s){var c=function(f){return{s:0,v:f}},a=function(f){if(!(f instanceof ze))throw f;var g=f.state;if(typeof g!="number")throw new Error("Unexpected non-numeric error state ".concat(JSON.stringify(g),". Error message: ").concat(f.message));return{s:g,v:null}};return function(){try{var f=s();return function(g){return!!g&&typeof g.then=="function"}(f)?f.then(c,a):c(f)}catch(g){return a(g)}}}function i5(s){var c=s.modules,a=s.components,f=a===void 0?{}:a,g=s.customComponent,w=s.apiKey,b=s.tls,_=s.tag,m=s.extendedResult,I=s.exposeComponents,L=s.linkedId,x=s.algorithm,Y=s.imi,J=s.storageKey,tt=s.products,nt=s.urlHashing,ut=s.ab,pt=s.fast,Et=s.requestId;return(0,n.sH)(this,void 0,void 0,function(){var ht,yt,Vt=this;return(0,n.YH)(this,function(Wt){switch(Wt.label){case 0:return ht=(0,n.Cl)(((yt={}).c=w,yt.t=(jt=_)&&typeof jt=="object"?jt:jt!=null?{tag:jt}:void 0,yt.cbd=m?1:void 0,yt.lid=L,yt.a=x,yt.m=Y.m,yt.l=Y.l,yt.ec=I?1:void 0,yt.mo=c.map(function(Tt){return Tt.key}).filter(function(Tt){return!!Tt}),yt.pr=tt,yt.s56=b,yt.s67=g?{s:0,v:g}:{s:-1,v:null},yt.sc=function(){var Tt,Ft=function(){var Yt,ee,oe,fe,Ae,Re=new Error,Le=(Yt=Re).fileName?Yt.fileName.split(" ")[0]:Yt.sourceURL?Yt.sourceURL:null;if(Le)return Le;if(Re.stack){var Ue=(oe=(ee=Re.stack.split(`
21
- `))[0],fe=ee[1],(Ae=e5.exec(fe)||n5.exec(oe))?Ae[1]:void 0);if(Ue)return Ue}return null}();return(Tt={}).u=Ft?ci(Ft,1e3):null,Tt}(),yt.uh=function(Tt){var Ft;if(Tt)return(Ft={}).p=Tt.path?1:void 0,Ft.q=Tt.query?1:void 0,Ft.f=Tt.fragment?1:void 0,Ft}(nt),yt.gt=1,yt.ab=ut,yt.hu=pt?0:Et?1:void 0,yt.ri=Et,yt),function(Tt){for(var Ft={},Yt=0,ee=Object.keys(Tt);Yt<ee.length;Yt++){var oe=ee[Yt],fe=Tt[oe];if(fe){var Ae="error"in fe?n0(fe.error):fe.value;Ft[oe]=Ae}}return Ft}(f)),[4,Promise.all(c.map(function(Tt){var Ft=Tt.toRequest;return(0,n.sH)(Vt,void 0,void 0,function(){var Yt,ee,oe;return(0,n.YH)(this,function(fe){switch(fe.label){case 0:return Ft?(ee=(Yt=Object).assign,oe=[ht],[4,Ft(J,nt)]):[3,2];case 1:ee.apply(Yt,oe.concat([fe.sent()])),fe.label=2;case 2:return[2]}})})}))];case 1:return Wt.sent(),[2,ht]}var jt})})}function i0(s,c,a,f,g){g===void 0&&(g=p4);var w=g()%(a+1),b=ai(s),_=1+c.length+1+w+f+b.length,m=new ArrayBuffer(_),I=new Uint8Array(m),L=0,x=g();I[L++]=x;for(var Y=0,J=c;Y<J.length;Y++){var tt=J[Y];I[L++]=x+tt}I[L++]=x+w;for(var nt=0;nt<w;++nt)I[L++]=g();var ut=new Uint8Array(f);for(nt=0;nt<f;++nt)ut[nt]=g(),I[L++]=ut[nt];for(nt=0;nt<b.length;++nt)I[L++]=b[nt]^ut[nt%f];return m}function pc(s,c,a){var f=function(){throw new Error("Invalid data")},g=ai(s);g.length<c.length+2&&f();for(var w=0;w<c.length;++w)Ql(g[1+w],g[0])!==c[w]&&f();var b=1+c.length,_=Ql(g[b],g[0]);g.length<b+1+_+a&&f();var m=b+1+_,I=m+a,L=new ArrayBuffer(g.length-I),x=new Uint8Array(L);for(w=0;w<x.length;++w)x[w]=g[I+w]^g[m+w%a];return L}function o5(s){return(0,n.sH)(this,void 0,void 0,function(){var c,a,f,g,w;return(0,n.YH)(this,function(b){switch(b.label){case 0:return o0()?(c=function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}}(),a=c[0],f=c[1],[4,s5(s,f)]):[2,[!1,s]];case 1:return g=b.sent(),w=a?g:function(_){return new Uint8Array(_.buffer,_.byteOffset+2,_.byteLength-6)}(g),[2,[!0,w]]}})})}function o0(){return typeof CompressionStream<"u"}function s5(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w,b,_,m,I,L,x,Y;return(0,n.YH)(this,function(J){switch(J.label){case 0:(a=c.writable.getWriter()).write(s),a.close(),f=c.readable.getReader(),g=[],w=0,J.label=1;case 1:return[4,f.read()];case 2:if(b=J.sent(),_=b.value,b.done)return[3,4];g.push(_),w+=_.byteLength,J.label=3;case 3:return[3,1];case 4:if(g.length===1)return[2,g[0]];for(m=new Uint8Array(w),I=0,L=0,x=g;L<x.length;L++)Y=x[L],m.set(Y,I),I+=Y.byteLength;return[2,m]}})})}var s0=[3,13],a5=[3,14];function c5(s,c){return i0(s,c?a5:s0,3,9)}function u5(s){var c=s.body,a=(0,n.Tt)(s,["body"]);return(0,n.sH)(this,void 0,void 0,function(){var f,g,w,b,_,m,I;return(0,n.YH)(this,function(L){switch(L.label){case 0:return a0(c)?[4,o5(c)]:[3,2];case 1:return b=L.sent(),[3,3];case 2:b=[!1,c],L.label=3;case 3:return g=(f=b)[0],w=f[1],[4,Yf((0,n.Cl)((0,n.Cl)({},a),{body:c5(w,g),responseFormat:"binary"}))];case 4:_=L.sent(),m=_.body,I=!1;try{m=pc(m,s0,9),I=!0}catch{}return[2,(0,n.Cl)((0,n.Cl)({},_),{body:m,wasSecret:I})]}})})}function a0(s){return s.byteLength>1024&&o0()}function c0(s,c,a,f,g){return(0,n.sH)(this,void 0,void 0,function(){var w,b,_,m,I=this;return(0,n.YH)(this,function(L){switch(L.label){case 0:if(s.length===0)throw new TypeError("The list of endpoints is empty");return w=s.map(function(x){return function(Y,J){var tt=J.apiKey,nt=J.integrations,ut=nt===void 0?[]:nt;return hc(Y,{ci:e0(),q:tt,ii:ut})}(x,c)}),[4,i5(c)];case 1:return b=L.sent(),_=gf(b),m=c.fast?0:1,[4,Ao(g,function(){return{e:15,stage:m,body:b,isCompressed:a0(_)}},function(x){return{e:16,stage:m,result:x}},function(x){return{e:17,stage:m,error:x}},function(){return(0,n.sH)(I,void 0,void 0,function(){return(0,n.YH)(this,function(x){switch(x.label){case 0:return[4,t0(w,l5.bind(null,_,g,m,a),N4.bind(null,c.modules,!!c.extendedResult,c.storageKey),1/0,f)];case 1:return[2,f5(x.sent())]}})})})];case 2:return[2,L.sent()]}})})}function l5(s,c,a,f,g,w,b){var _=this;return Ao(c,function(){return{e:18,stage:a,tryNumber:w,url:g}},function(m){var I=m.status,L=m.getHeader,x=m.body,Y=m.bodyData,J=m.wasSecret;return{e:19,stage:a,tryNumber:w,status:I,retryAfter:L("retry-after"),body:Y??x,wasSecret:J}},function(m){return{e:20,stage:a,tryNumber:w,error:m}},function(){return(0,n.sH)(_,void 0,void 0,function(){return(0,n.YH)(this,function(m){switch(m.label){case 0:return[4,u5({url:g,method:"post",headers:{"Content-Type":"text/plain"},body:s,withCredentials:!0,abort:b,container:f})];case 1:return[2,T4(m.sent())]}})})})}function f5(s){var c=s.result,a=s.failedAttempts,f=s.aborted;if(c)return c;var g=a[0];if(!g)throw f&&!f.resolve?f.error:new Error("aborted");var w=g.level,b=g.error;if(w===0&&b instanceof Error){switch(b.name){case"CSPError":throw new Error(uc);case"InvalidURLError":throw new Error(lc);case"AbortError":throw new Error(ac)}throw new Error(sc)}throw b}function d5(s,c,a){var f,g=this,w=(0,n.Cl)((0,n.Cl)({},a),{cache:{}}),b=function(Y){for(var J={},tt={},nt={},ut=0,pt=Y;ut<pt.length;ut++){var Et=pt[ut].sources;Et&&(Object.assign(J,Et.stage1),Object.assign(tt,Et.stage2),Object.assign(nt,Et.stage3))}var ht=tt;return Object.assign(ht,nt),[J,ht]}(s),_=b[0],m=b[1],I=c?1e5:50,L=wt(_,w,[],I),x=_o((f=8,f===void 0&&(f=50),function(Y,J){J===void 0&&(J=1/0);var tt=window.requestIdleCallback;return tt?new Promise(function(nt){return tt.call(window,function(){return nt()},{timeout:J})}):o(Math.min(Y,J))}(f,2*f)).then(function(){return wt(m,w,[],I)}));return function(){return(0,n.sH)(g,void 0,void 0,function(){var Y,J,tt,nt;return(0,n.YH)(this,function(ut){switch(ut.label){case 0:return[4,Promise.all([L(),x.then(function(pt){return pt()})])];case 1:return Y=ut.sent(),J=Y[0],tt=Y[1],nt=tt,Object.assign(nt,J),[2,nt]}})})}}function Hr(s,c){for(var a=s;a;){for(var f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++){var w=f[g];if(vr(w)==c)return w}a=Object.getPrototypeOf(a)}return""}function Zt(s,c){var a=s[Hr(s,c)];return typeof a=="function"?a.bind(s):a}function Un(s,c){var a;return function(f){return a||(a=function(g,w){return Ss(pc(new Uint32Array(g),[],w))}(s,c)),ws(a[f])}}function Io(s,c,a){var f;return function(g){return f===null?f:(f||(f=function(w,b,_){var m=Fr(b());try{return Ss(function(I,L,x){for(var Y=ai(I),J=new ArrayBuffer(Y.length-x),tt=new Uint8Array(J),nt=0;nt<Y.length;++nt)tt[nt]=Y[nt]^L[nt%L.length];return J}(new Uint32Array(w),m,_))}catch(I){if(ms(I)&&I.name==="SyntaxError")return null;throw I}}(s,c,a)),ws(f&&f[g]))}}var ui=Un([3237452699,2611787672,3045311674,2962332150,4003383289,4090353905,3805249708,3028587956,2899958253,2946027702,4002601983,4204452091,4039413417,3970602410,3953912762,2631244730,3973421252,2844251834,2861027766,2946406891,3050675130,3806041579,2961425392,4023946731,3800865722,4208313581,2776941242,3806041513,4208313085,2743259834,3806041513,4208314361,3012023994,3968505257,3045300922,2799294954,4001684968,2648037617],4),h5=[202,206];function p5(s){for(var c={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(nt,ut){return nt(ut)},kpZRq:function(nt,ut,pt){return nt(ut,pt)},UoPyk:function(nt,ut){return nt(ut)},UpGPH:function(nt,ut,pt){return nt(ut,pt)},ZuRYV:function(nt,ut){return nt-ut},VnFXf:function(nt,ut,pt,Et){return nt(ut,pt,Et)},fDQiC:function(nt,ut){return nt(ut)},eKHGy:function(nt,ut){return nt<ut},AkgUE:function(nt,ut){return nt/ut},iBJKB:function(nt,ut,pt){return nt(ut,pt)},lIinn:function(nt,ut){return nt+ut}},a=c.uAVXy.split("|"),f=0;;){switch(a[f++]){case"0":var g=c.FInQd(mr,m);continue;case"1":return c.kpZRq(D4,s,_);case"2":var w=c.kpZRq(m5,c.UoPyk(Fr,L),h5);continue;case"3":var b=c.UpGPH(parseInt,Y[c.ZuRYV(Y.length,1)],16);continue;case"4":var _=c.kpZRq(g5,x,m);continue;case"5":var m=new Uint8Array(16);continue;case"6":var I=c.VnFXf(u0,m[b],8,22);continue;case"7":var L=g.slice(0,Math.min(c.ZuRYV(g.length,2),I));continue;case"8":var x="".concat(L).concat(J).replace(new RegExp(c.fDQiC(ui,1),"g"),"-").replace(new RegExp(c.fDQiC(ui,2),"g"),"_");continue;case"9":var Y=c.UoPyk(kn,s);continue;case"10":var J=c.FInQd(mr,c.FInQd(v5,c.FInQd(tf,w))).slice(0,2);continue;case"11":for(var tt=0;c.eKHGy(tt,Y.length);tt+=2)m[c.AkgUE(tt,2)]=c.iBJKB(parseInt,"".concat(Y[tt]).concat(Y[c.lIinn(tt,1)]),16);continue}break}}function g5(s,c){for(var a={goMxK:"2|4|1|0|3",lnlOq:function(m,I){return m<I},RltcK:function(m,I,L,x){return m(I,L,x)},cVMXe:function(m,I){return m&I},SclSa:function(m,I){return m+I}},f=a.goMxK.split("|"),g=0;;){switch(f[g++]){case"0":for(;a.lnlOq(b,s.length);)_=a.RltcK(u0,c[a.cVMXe(b,15)],4,7),w+=s.slice(b,a.SclSa(b,_)),w+="/",b+=_;continue;case"1":var w="";continue;case"2":var b=0;continue;case"3":return w.slice(0,-1);case"4":var _=0;continue}break}}function u0(s,c,a){return function(f,g){return f+g}(c,Math.floor(function(f,g){return f*g}(function(f){return f/256}(s),function(f){return f+1}(function(f,g){return f-g}(a,c)))))}function m5(s,c){for(var a={toGYz:"0|3|4|1|2",OGfKZ:function(m,I){return m+I},ENgdo:function(m,I){return m<I},oVWhZ:function(m,I){return m+I}},f=a.toGYz.split("|"),g=0;;){switch(f[g++]){case"0":var w=a.OGfKZ(s.length,c.length);continue;case"1":for(var b=0;a.ENgdo(b,c.length);b++)_[a.oVWhZ(b,s.length)]=c[b];continue;case"2":return _;case"3":var _=new Uint8Array(w);continue;case"4":for(b=0;a.ENgdo(b,s.length);b++)_[b]=s[b];continue}break}}function v5(s){var c=function(a,f){return a>>f};return new Uint8Array([c(s,24),c(s,16),function(a){return a>>8}(s),s])}function gc(s,c){return!!s&&function(a,f){return a===f}(function(a,f){return a(f,3814588639)}(Zt,s),function(a,f){return a(f,3814588639)}(Zt,c))}function y5(s){var c=function(f,g){return f(g)},a=function(f){return f(3)}(ui);return function(f,g){return f!==g}(s,c(ui,4))&&(a="".concat(s,".").concat(a)),c(ui,5).concat(a,"/")}function w5(s){var c=function(a){return a(6)}(ui)[s];return"".concat(c,function(a){return a(7)}(ui))}var b5=function(){var s;return(s={}).noop=["a","b"],s}();function _5(s,c,a,f,g,w,b,_,m,I,L,x,Y){var J=this,tt={modules:s,apiKey:f,integrations:_,imi:m,storageKey:b,ab:L,urlHashing:I},nt=function(yt,Vt,Wt){return(0,n.sH)(J,void 0,void 0,function(){var jt,Tt,Ft;return(0,n.YH)(this,function(Yt){switch(Yt.label){case 0:return x?[4,pt()]:[2,void 0];case 1:jt=Yt.sent(),Tt=!1,Vt.catch(function(){return Tt=!0}),Yt.label=2;case 2:return Yt.trys.push([2,4,,5]),[4,c0(g,(0,n.Cl)((0,n.Cl)({},tt),{tls:jt,fast:!0}),yt,Vt,Wt)];case 3:return[2,Yt.sent()];case 4:if(Ft=Yt.sent(),Tt)throw Ft;return ms(Ft)&&Ft.message===Lf||console.warn(Ft),[2,void 0];case 5:return[2]}})})},ut=function(yt,Vt,Wt){var jt=yt.timeout,Tt=jt===void 0?1e4:jt,Ft=yt.tag,Yt=yt.linkedId,ee=yt.disableTls,oe=yt.extendedResult,fe=yt.exposeComponents,Ae=yt.environment,Re=yt.products,Le=_o(Promise.all([ht(Wt),Et(Tt,ee,Wt)]));return function(Ue,Fe){return(0,n.sH)(J,void 0,void 0,function(){var Pe,gn,Mn;return(0,n.YH)(this,function(Tn){switch(Tn.label){case 0:return[4,Promise.race([Fe,Le])];case 1:return Pe=Tn.sent(),gn=Pe[0],Mn=Pe[1],[4,c0(g,(0,n.Cl)((0,n.Cl)({},tt),{components:gn,customComponent:Ae,tag:Ft,tls:Mn,linkedId:ef(Yt),extendedResult:oe,exposeComponents:fe,algorithm:w,products:f4(Re,"products"),requestId:Ue}),Vt,Fe,Wt)];case 2:return[2,Tn.sent()]}})})}},pt=function(){return a?.(0,50,!1,void 0)},Et=function(yt,Vt,Wt){return a?.(.1*yt,.4*yt,Vt,Wt)},ht=function(yt){return(0,n.sH)(J,void 0,void 0,function(){var Vt,Wt;return(0,n.YH)(this,function(jt){switch(jt.label){case 0:return jt.trys.push([0,2,,3]),[4,c()];case 1:return Vt=jt.sent(),kr(yt,function(){return{e:13,result:Vt}}),[2,Vt];case 2:throw Wt=jt.sent(),kr(yt,function(){return{e:14,error:Wt}}),Wt;case 3:return[2]}})})};return{get:function(yt){yt===void 0&&(yt={});var Vt=Y&&function(Wt,jt){return function(Tt){return Wt((0,n.Cl)((0,n.Cl)({},Tt),{getCallId:jt}))}}(Y,Eo(8));return Ao(Vt,function(){return{e:3,options:yt}},function(Wt){return{e:4,result:Wt}},function(Wt){return{e:5,error:Wt}},function(){return Wt=function(jt){return function(Tt,Ft,Yt){return(0,n.sH)(J,void 0,void 0,function(){var ee,oe,fe,Ae,Re,Le,Ue;return(0,n.YH)(this,function(Fe){switch(Fe.label){case 0:ee=Zl(),Fe.label=1;case 1:return Fe.trys.push([1,,7,8]),oe=qf(ee),fe=Yn((Ue=Tt.timeout)!==null&&Ue!==void 0?Ue:1e4).then(function(){return Promise.reject(new Error(oc))}),Ae=ut(Tt,oe,Ft),[4,nt(oe,fe,Ft)];case 2:return(Re=Fe.sent())?(Yt(Re),[4,Ae(Re.requestId,fe)]):[3,4];case 3:return Fe.sent(),[3,6];case 4:return Le=Yt,[4,Ae(void 0,fe)];case 5:Le.apply(void 0,[Fe.sent()]),Fe.label=6;case 6:return[3,8];case 7:return ee.resolve(),[7];case 8:return[2]}})})}(yt,Vt,jt)},new Promise(function(jt,Tt){Wt(jt).then(function(){return Tt(new Error("Action didn't call `resolve` or `reject`"))},Tt)});var Wt})}}}var l0=function(s){return(0,n.sH)(this,void 0,void 0,function(){var c,a;return(0,n.YH)(this,function(f){switch(f.label){case 0:return g=(0,n.fX)([(b=/{(.*?)}/.exec(location.hash),!!b&&vr(b[1])===3025844545&&B4())],(s?.modules||[]).map(function(_){return _.addEvent}),!0),w=g.filter(function(_){return!!_}),c=w.length?function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];for(var I=function(Y){$l(function(){return Y.apply(void 0,_)})},L=0,x=w;L<x.length;L++)I(x[L])}:void 0,a=c&&function(_,m){return function(I){return _((0,n.Cl)((0,n.Cl)({},I),{agentId:m}))}}(c,Eo(8)),[4,Ao(a,function(){return{e:0,version:tc,options:s}},function(_){return{e:1,ab:_[1]}},function(_){return{e:2,error:_}},function(){var _,m,I=s.token,L=s.apiKey,x=L===void 0?I:L,Y=s.region,J=Y===void 0?"us":Y,tt=s.tlsEndpoint,nt=tt===void 0?Es:tt,ut=s.disableTls,pt=s.storageKey,Et=pt===void 0?lf:pt,ht=s.endpoint,yt=ht===void 0?_s:ht,Vt=s.te,Wt=Vt===void 0?cf:Vt,jt=s.integrationInfo,Tt=jt===void 0?[]:jt,Ft=s.algorithm,Yt=s.imi,ee=Yt===void 0?((_={}).m="s",_):Yt,oe=s.stripUrlParams,fe=s.urlHashing,Ae=fe===void 0?uf(oe):fe,Re=s.modules,Le=s.abTests,Ue=Le===void 0?{}:Le,Fe=s.externalABSelections,Pe=Fe===void 0?{}:Fe,gn=s.optimizeRepeatedVisits,Mn=gn!==void 0&&gn,Tn=s.aggressiveOptimization,$n=Tn!==void 0&&Tn;if(!x||typeof x!="string")throw new Error("API key required");var rr,ir,zr,fi,wr,En,Bt,Ot,Nt,Qt=function(Ce,Ge,an){for(var xn=(0,n.Cl)({},an),Gr=0,To=Object.entries(Ce);Gr<To.length;Gr++){var Fi=To[Gr],Hi=Fi[0],No=Fi[1],Fn=Ge[Hi];if(Fn)try{xn[Hi]=af(Fn);continue}catch(or){console.error(or)}xn[Hi]=af(No)}return xn}(function(Ce){for(var Ge=(0,n.Cl)({},b5),an=0,xn=Ce;an<xn.length;an++){var Gr=xn[an];Object.assign(Ge,Gr.ab)}return Ge}(Re),Ue,Pe),ae=(rr=yt,ir=J,zr=function(Ce,Ge,an){return Ce(Ge,an)},fi=function(Ce,Ge){return Ce(Ge)},wr=function(Ce,Ge){return Ce(Ge)},(Array.isArray(rr)?rr:[rr]).map(function(Ce){return zr(gc,Ce,_s)?fi(y5,ir):wr(String,Ce)})),bn=(m=function(Ce){for(var Ge=0,an=Ce;Ge<an.length;Ge++){var xn=an[Ge];if(xn.tls)return xn.tls}}(Re))===null||m===void 0?void 0:m(nt,ae,x,ut,void 0,a);return kr(a,function(){return{e:12}}),[_5(Re,d5(Re,$n,{urlHashing:Ae,ab:Qt,te:(Bt=J,Ot=function(Ce,Ge){return Ce(Ge)},Nt=function(Ce,Ge){return Ce(Ge)},gc(En=Wt,cf)?Ot(w5,Bt):Nt(String,En))}),bn,x,ae,ef(Ft),Et,Tt,ee,Ae,Qt,Mn,a),Qt]})];case 1:return[2,f.sent()[0]]}var g,w,b})})},E5=vn(Kt),R5=On(be,-1),S5=vn(ie),A5=kt(p,function(s){return s===-1||s===-2||s===-3?{s,v:null}:{s:0,v:s}}),I5=kt(we,function(s){return{s:0,v:s.map(function(c){return c===null?-1:c})}}),f0=On(se,-1),d0=vn(ye),k5=On(de,-1),h0=On(le,-1),p0=kt(pe,function(s){return{s:0,v:s.map(function(c){return c===null?-1:c})}}),g0=On(sn,-1),O5=vn(Se),T5=vn(Te),N5=vn(wn),x5=vn(Ve),L5=On(Ye,-1),m0=On(Ir,-1),C5=On(Qe,-1),B5=kt(function(){return Pt()},function(s){var c=s.geometry,a=s.text,f=c==="unsupported"?-1:c==="unstable"?-2:0;return{s:f,v:(0,n.Cl)((0,n.Cl)({},s),{geometry:f===0?kn(c):"",text:f===0?kn(a):""})}}),v0=vn(Je),y0=vn(si),P5=vn(un),M5=vn(ln),D5=On(hs,-1),U5=On(fn,-1),F5=On(dn,-1),H5=On(ps,-1),V5=On(hn,-1),W5=On(pn,-1),z5=On(io,-1),G5=On(oo,-1),K5=kt(so,function(s){return{s:0,v:kn(Object.keys(s).map(function(c){return"".concat(c,"=").concat(s[c])}).join(","))}}),j5=On(ao,-1),Y5=vn(co),q5=On(uo,-1),$5=kt(lo,function(s){return s===-1||s===-2||s===-3?{s,v:null}:{s:0,v:s}}),w0=r0(ho),b0=kt(po,function(s){var c;if(typeof s=="number")return{s,v:null};var a=["32926","32928"],f=s.parameters.map(function(w){var b=w.split("=",3),_=b[0],m=b[1];return b[2]!==void 0||a.includes(m)?"".concat(_,"(").concat(m,")=null"):"".concat(_,"=").concat(m)}),g=s.extensionParameters.map(function(w){var b=w.split("=",3),_=b[0],m=b[1],I=b[2];return I!==void 0&&m!=="34047"?"".concat(_,"(").concat(m,")=").concat(I):"".concat(_,"=").concat(m)});return{s:0,v:{contextAttributes:kn(s.contextAttributes.join("&")),parameters:kn(f.join("&")),parameters2:kn(s.parameters.join("&")),shaderPrecisions:kn(s.shaderPrecisions.join("&")),extensions:kn(((c=s.extensions)===null||c===void 0?void 0:c.join(","))||""),extensionParameters:kn(g.join(",")),extensionParameters2:kn(s.extensionParameters.join("&")),unsupportedExtensions:s.unsupportedExtensions}}}),Z5=r0(fo),X5=zn(Wn.userAgent),J5=zn(Wn.appVersion),Q5=zn(Wn.rtt),t6=zn(Wn.notificationPermissions),e6=zn(Wn.pluginsLength),n6=zn(Wn.errorTrace),r6=zn(Wn.productSub),i6=zn(Wn.documentElementKeys),o6=zn(Wn.windowExternal),s6=zn(Wn.mimeTypesConsistent),a6=zn(Wn.functionBind),c6=zn(Wn.process),u6=zn(Wn.windowSize),l6=zn(Wn.distinctiveProps),_0=vn(q),E0=vn(h),R0=vn(T),S0=vn(D),A0=vn(Z),I0=vn(j),k0=vn(at),O0=vn(Xf),f6=vn(K);function d6(){var s=window;if(!T())return Di(!1);try{if([66,114,97,118,101].map(function(b){return String.fromCharCode(b)}).join("")in s)return Di(!0);var c=document.createElement("canvas");c.width=4,c.height=4,c.style.display="inline";var a=c.toDataURL();if(a==="")return Di(!0);var f=ys(a.split(",")[1]),g=Jl(f,[73,68,65,84,24]);if(g===-1)return Di(!1);var w=Jl(f,[73,69,78,68]);return Di(w!==-1&&f.slice(g+5,w).reduce(function(b,_){return b+_},0)!==1321)}catch{return Di(!1)}}function Di(s){return{s:0,v:s}}function T0(){return N0("dark")?{s:0,v:!0}:N0("light")?{s:0,v:!1}:{s:-1,v:null}}function N0(s){return matchMedia("(prefers-color-scheme: ".concat(s,")")).matches}function x0(){var s=Date.now();return{s:0,v:[L0(s),L0(s-6e4*new Date().getTimezoneOffset())]}}function L0(s){var c=Number(s);return isNaN(c)?-1:c}function h6(){var s=window.performance;if(!s?.now)return{s:-1,v:null};for(var c=1,a=1,f=s.now(),g=f,w=0;w<5e4;w++)if((f=g)<(g=s.now())){var b=g-f;b>c?b<a&&(a=b):b<c&&(a=c,c=b)}return{s:0,v:[c,a]}}var p6=Un([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function g6(){var s,c,a=function(w,b){return w===b},f=function(w,b,_){return w(b,_)},g=a(c=function(w){return w===null}(s=window[function(w){return w(0)}(p6)])||a(s,void 0)?void 0:f(Zt,s,3933025333),null)||function(w){return w===void 0}(c)?void 0:f(Zt,c,3098533860);return function(w){return w===null}(g)||a(g,void 0)?{s:-1,v:null}:{s:0,v:g}}function m6(s){var c=it(s.cache);return c?(function(a){a.clearColor(0,0,1,1);var f=a.createProgram();if(f){b(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),b(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),a.linkProgram(f),a.useProgram(f),a.enableVertexAttribArray(0);var g=a.getUniformLocation(f,"t"),w=a.createBuffer();a.bindBuffer(34962,w),a.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),a.vertexAttribPointer(0,2,5126,!1,0,0),a.clear(16384),a.uniform1f(g,3.65),a.drawArrays(4,0,3)}function b(_,m){var I=a.createShader(35633-_);f&&I&&(a.shaderSource(I,m),a.compileShader(I),a.attachShader(f,I))}}(c),{s:0,v:kn(c.canvas.toDataURL())}):{s:-1,v:null}}function v6(s){return C0(s,w6)}function y6(s){return C0(s,b6)}function C0(s,c){var a=s.cache;return(0,n.sH)(this,void 0,void 0,function(){var f,g;return(0,n.YH)(this,function(w){switch(w.label){case 0:return typeof((f=window.speechSynthesis)==null?void 0:f.getVoices)!="function"?[2,{s:-1,v:null}]:(a.tts||(a.tts=function(b){return(0,n.sH)(this,void 0,void 0,function(){var _,m,I;return(0,n.YH)(this,function(L){switch(L.label){case 0:if(_=function(){return b.getVoices()},function(x){return!x.addEventListener||j()&&Xf()}(b))return[2,{v:_()}];m={v:null},L.label=1;case 1:return L.trys.push([1,,3,4]),[4,new Promise(function(x,Y){var J,tt=function(){var nt=_();nt.length?(m.v=nt,J?.(),J=$a(x,50)):J||(J=gs(x,600))};I=Pi(b,"voiceschanged",function(){try{tt()}catch(nt){Y(nt)}}),tt()})];case 2:return L.sent(),[3,4];case 3:return I&&gs(I,1e4),[7];case 4:return[2,m]}})})}(f)),[4,a.tts]);case 1:return g=w.sent(),[2,function(){return g.v?c(g.v):{s:-2,v:null}}]}})})}function w6(s){var c=function(f){return f.replace(/([,\\])/g,"\\$1")},a=s.map(function(f){return[c(f.voiceURI),c(f.name),c(f.lang),f.localService?"1":"0",f.default?"1":"0"].join(",")}).sort();return{s:s.length?0:1,v:kn(JSON.stringify(a))}}function b6(s){var c=s.some(function(a){return vr(a.name.slice(0,6))===1655763047});return{s:s.length?0:1,v:c}}var _6=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function E6(){var s;return(0,n.sH)(this,void 0,void 0,function(){var c,a,f,g=this;return(0,n.YH)(this,function(w){switch(w.label){case 0:return(c=navigator.userAgentData)&&typeof c=="object"?(a={},f=[],typeof c.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(_6.map(function(b){return(0,n.sH)(g,void 0,void 0,function(){var _,m;return(0,n.YH)(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,c.getHighEntropyValues([b])];case 1:return(_=I.sent()[b])!==void 0&&(a[b]=typeof _=="string"?_:JSON.stringify(_)),[3,3];case 2:if(!((m=I.sent())instanceof Error&&m.name==="NotAllowedError"))throw m;return f.push(b),[3,3];case 3:return[2]}})})}))]):[2,{s:-1,v:null}];case 1:w.sent(),w.label=2;case 2:return[2,{s:0,v:{b:c.brands.map(function(b){return{b:b.brand,v:b.version}}),m:c.mobile,p:(s=c.platform)!==null&&s!==void 0?s:null,h:a,nah:f}}]}})})}function B0(s){var c=s.urlHashing;return(0,n.sH)(this,void 0,void 0,function(){var a,f,g;return(0,n.YH)(this,function(w){switch(w.label){case 0:return a=function(){for(var b,_,m=[],I=window;;)try{var L=(b=I.location)===null||b===void 0?void 0:b.href,x=(_=I.document)===null||_===void 0?void 0:_.referrer;if(L===void 0||x===void 0)return{s:1,v:m};m.push({l:L,f:x});var Y=I.parent;if(!Y||Y===I)return{s:0,v:m};I=Y}catch(J){if(S6(J))return{s:1,v:m};throw J}}(),f=[(0,n.Cl)({},a)],g={},[4,R6(a.v,c)];case 1:return[2,n.Cl.apply(void 0,f.concat([(g.v=w.sent(),g)]))]}})})}function R6(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a=this;return(0,n.YH)(this,function(f){return[2,Promise.all(s.map(function(g){return(0,n.sH)(a,void 0,void 0,function(){var w,b,_;return(0,n.YH)(this,function(m){switch(m.label){case 0:return[4,Promise.all([As(g.l,c),As(g.f,c)])];case 1:return w=m.sent(),b=w[0],_=w[1],[2,{l:b,f:_}]}})})}))]})})}function S6(s){if(!s||typeof s!="object")return!1;var c=s;return!(!q()&&!h()||c.name!=="Error"&&c.name!=="TypeError"||c.message!=="Permission denied")||c.name==="SecurityError"}function A6(){return function(s){var c=s.location,a=s.origin,f=c.origin,g=c.ancestorOrigins,w=null;if(g){w=new Array(g.length);for(var b=0;b<g.length;++b)w[b]=g[b]}return{s:0,v:{w:a??null,l:f??null,a:w}}}(window)}function P0(){return{s:0,v:eval.toString().length}}function M0(){var s=navigator.webdriver;return s===null?{s:-1,v:null}:s===void 0?{s:-2,v:null}:{s:0,v:s}}function I6(){var s=function(a,f,g){return a(f,g)},c=this;return s(er,Yn(250,{s:-2,v:null}),function(){var a,f,g=function(w,b,_){return s(w,b,_)};return a=n.sH,f=function(){var w,b=function(_,m,I){return s(_,m,I)};return function(_,m,I){return _(m,I)}(n.YH,this,function(_){switch(_.label){case 0:return!(function(m,I){return function(L,x){return L===x}(m,I)}(w=g(Zt,navigator,1417288500),null)||function(m){return function(I){return I===void 0}(m)}(w))&&g(Zt,w,3686698663)?[4,g(Zt,w,3686698663)().then(function(){return{s:0,v:""}},function(m){return{s:0,v:b(Zt,m,3065852031)}})]:[2,{s:-1,v:null}];case 1:return[2,_.sent()]}})},a(c,void 0,void 0,f)})}function mc(){var s;return vc([Hr(s=new Image().style,2882756133),Hr(s,3858258232)],[18,23,22,11,23,17,3,20,4,22,19,11,25,13,23,22,7,7,17,18,4,18,11,8,11,8,3,5,2,4,3,3,5,6,5,3,1,2,2,0,0])}function k6(){var s;return vc([Hr(s=new Image().style,2487676862),Hr(s,41374024)],[5,23,47,9,35,9,44,7,37,41,19,25,32,26,30,32,8,31,12,15,40,18,15,20,9,4,2,13,21,17,18,34,40,2,48])}function O6(){return s=navigator,c=document.createElement("frameset"),a=Zt(s,704082790),vc([Hr(c,3017323393),D0(s,859837811,"QjslADtOBipACA")||D0(a,72906005,"Tjo/DSpIETFCCQ")],[20,1,24,23,23,21,14,8,11,8,6,13,1,1,12,4,9,10,6,2,1,2,0,1,2,1,1]);var s,c,a}function D0(s,c,a){var f=Hr(s,c);if(!f)return"";for(var g=ys(a),w=Array(g.length),b=0;b<g.length;b++)w[b]=g[b]^f.charCodeAt(b%f.length);return String.fromCharCode.apply(null,w)}function vc(s,c){for(var a=s.join(""),f=a.split(""),g=Array(a.length),w=0;w<g.length;++w)g[w]=f.splice(c[w%c.length],1);return g.join("")}var tn=Io([290799128,256122120,104421910,67116302,755371265,505093152,152897830,504707661,470222364,504898635,1531393810,35461445,285283613,151395398,386279171,454440300,1259148302,67715140,117915663,1445400833,70599515,280581,270008841,369435995,272236574,119803980,704973062,135268614,184563807,1026755337,824180753,521019142,404440330,1310525212,689393240,992889883,118162967,75079,371069214,14400,67440946,336725549,100928582,419697754,37884160,822483751,151655985,440867606,34934535,1544297499,69023765,1530421525,521022789,352788490,152182535,1095068179,168111383,102371362,1379942426,218301962,410405200,674697750,150995736,1460669954,289295192,422585355,276197185,1241580055,503401029,169544981,956309037,1628772625,269702473,1481182751,12887,860704273,607786827,1079856400,370150428,234881091,407897606,354309752,1157892134,252333381,1264080656,304025857,1627786793,302143352,172563473,34688007,17172047,337261841,285893380,117845831,1448695310,152569103,1095068178,68628788,120395278,352653340,1245924639,288361223,2951185,3425555],mc,1);function U0(){if(!function(c){return c in window}((s=tn,s(1))))return!1;var s;try{return new window[function(c){return c(1)}(tn)],!0}catch(c){if(function(a){return a instanceof Error}(c)&&function(a,f){return a===f}(c.name,function(a){return a(2)}(tn)))return!1;throw c}}function T6(s){return c=n.sH,a=function(){var f,g,w,b,_=function(m,I){return function(L,x){return L(x)}(m,I)};return function(m,I,L){return m(I,L)}(n.YH,this,function(m){var I=function(L,x){return _(L,x)};switch(m.label){case 0:return f=_(yc,s),g=f[0],w=f[1],b=f[2],function(L){return function(x){return x!==0}(L)}(w)?[2,{n:g,l:w}]:[4,new Promise(function(L){var x=function(Y,J){return I(Y,J)};b[I(tn,3)](function(Y){x(L,{n:g,l:Y[x(tn,4)]})},function(){x(L,{n:g,l:-1})})})];case 1:return[2,m.sent()]}})},c(this,void 0,void 0,a);var c,a}function yc(s){for(var c={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(L,x,Y){return L(x,Y)},JsRES:function(L,x){return L(x)},WmCxs:function(L,x){return L(x)},kyiGc:function(L,x){return L===x},xozCJ:function(L,x){return L(x)},oRPyT:function(L,x){return L(x)},Unnxw:function(L,x){return L instanceof x},ZXJxt:function(L,x){return L===x},hAXYn:function(L,x){return L(x)},rrdYU:function(L,x){return L!==x},IPLsn:function(L,x){return L===x},qpBPk:function(L,x){return L(x)},tTnsV:function(L,x){return L===x},UBZPU:function(L,x){return L(x)},ijSLc:function(L,x){return L(x)},azIFr:function(L,x){return L(x)},axwYs:function(L,x){return L(x)},eKSOZ:function(L,x){return L===x}},a=c.WceTb.split("|"),f=0;;){switch(a[f++]){case"0":var g=c.YXrDm(Hr,new window[c.JsRES(tn,5)]("")[c.WmCxs(tn,6)](""),3626513111);continue;case"1":if(c.kyiGc(typeof I[c.WmCxs(tn,16)],c.xozCJ(tn,17)))return[w,-4,null];continue;case"2":try{m[c.oRPyT(tn,11)][c.JsRES(tn,12)](_)}catch(L){if(c.Unnxw(L,Error)&&c.ZXJxt(L.name,c.hAXYn(tn,2))&&c.rrdYU(c.IPLsn(b=L[c.qpBPk(tn,13)],null)||c.tTnsV(b,void 0)?void 0:b.indexOf(c.UBZPU(tn,14)),-1))return[w,-3,null];throw L}continue;case"3":var w=s.split("/").slice(-1)[0];continue;case"4":return[w,0,I[c.ijSLc(tn,16)][0]];case"5":var b;continue;case"6":var _=new window[c.WmCxs(tn,9)]([],s,c.oRPyT(tn,10));continue;case"7":var m=new window[c.qpBPk(tn,1)];continue;case"8":I[c.azIFr(tn,15)]=m[c.qpBPk(tn,15)];continue;case"9":var I=document[c.oRPyT(tn,7)](g);continue;case"10":I[c.JsRES(tn,8)]=c.axwYs(tn,3);continue;case"11":if(c.eKSOZ(I[c.qpBPk(tn,16)].length,0))return[w,-2,null];continue}break}}var Vr=Un([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function N6(){var s,c,a=function(_){return _()},f=function(_,m,I){return _(m,I)},g=function(_,m,I){return _(m,I)},w=function(_,m,I){return _(m,I)},b=function(_,m,I){return _(m,I)};return s=n.sH,c=function(){var _,m=this;return(0,n.YH)(this,function(I){var L=function(tt,nt,ut){return function(pt,Et,ht){return pt(Et,ht)}(tt,nt,ut)},x=function(tt){return a(tt)},Y=function(tt,nt,ut,pt,Et){return function(ht,yt,Vt,Wt,jt){return ht(yt,Vt,Wt,jt)}(tt,nt,ut,pt,Et)},J=function(tt,nt){return function(ut,pt){return ut(pt)}(tt,nt)};switch(I.label){case 0:return(_=tn(0))?[3,2]:[4,f(er,f(Yn,350,{s:-3,v:null}),function(){var tt=function(ut){return x(ut)},nt=function(ut,pt){return function(Et,ht){return function(yt,Vt){return yt(Vt)}(Et,ht)}(ut,pt)};return Y(n.sH,m,void 0,void 0,function(){var ut;return L(n.YH,this,function(pt){switch(pt.label){case 0:return ut={s:-3},[4,Promise.all([tt(F0)])];case 1:return[2,(ut[nt(Vr,0)]=pt.sent(),ut)]}})})})];case 1:case 3:case 5:return[2,I.sent()];case 2:return a(U0)?[3,4]:[4,g(er,w(Yn,350,{s:-1,v:null}),function(){var tt=function(ut,pt){return function(Et,ht){return function(yt,Vt){return yt(Vt)}(Et,ht)}(ut,pt)},nt=function(ut,pt){return J(ut,pt)};return Y(n.sH,m,void 0,void 0,function(){var ut;return function(pt,Et,ht){return L(pt,Et,ht)}(n.YH,this,function(pt){switch(pt.label){case 0:return ut={s:-1},[4,Promise.all([tt(F0,_[0])])];case 1:return[2,(ut[nt(Vr,0)]=pt.sent(),ut)]}})})})];case 4:return[4,w(er,b(Yn,350,{s:-2,v:null}),function(){var tt=function(nt,ut){return J(nt,ut)};return Y(n.sH,m,void 0,void 0,function(){var nt;return function(ut,pt,Et){return L(ut,pt,Et)}(n.YH,this,function(ut){switch(ut.label){case 0:return nt={s:0},[4,Promise.all(_.map(T6))];case 1:return[2,(nt[tt(Vr,0)]=ut.sent(),nt)]}})})})]}})},s(this,void 0,void 0,c)}function F0(s){var c,a,f=function(m,I){return m(I)},g=function(m,I){return m(I)},w=function(m,I,L){return m(I,L)},b=function(m,I){return m===I},_=function(m,I){return m===I};return s===void 0&&(s=g(Vr,1)),function(m,I,L,x,Y){return m(I,void 0,void 0,Y)}(n.sH,this,0,0,function(){var m,I,L;return w(n.YH,this,function(x){m=s.split("/").slice(-1)[0];try{return I=new window[f(Vr,2)]([],s),L=new window[f(Vr,3)](g(Vr,4).concat(w(Zt,I,4081332993)||"").concat(m,f(Vr,5)).concat(w(Zt,I,3034174415))),function(Y){return Y===""}(b(c=w(Zt,L,3518522040),null)||function(Y){return Y===void 0}(c)?void 0:c.substring(1))?[2,{n:m,l:-2}]:[2,{n:m,l:g(vr,_(a=w(Zt,L,3518522040),null)||b(a,void 0)?void 0:a.substring(1))}]}catch{return[2,{n:m,l:-1}]}return[2]})})}var x6=Un([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function L6(){var s=function(a,f){return a===f},c=function(a){return a(navigator,3087401394)}(Zt);return s(c,void 0)||s(c,null)?{s:-1,v:null}:{s:0,v:c}}function C6(){for(var s={pCQFw:"0|5|1|3|6|4|2",QPheb:function(L,x){return L(x)},cvtRQ:function(L,x){return L<x},obwRn:function(L,x,Y){return L(x,Y)},zLaAT:function(L,x,Y,J){return L(x,Y,J)},BBhKA:function(L,x){return L===x},dlsEs:function(L,x,Y){return L(x,Y)}},c=s.pCQFw.split("|"),a=0;;){switch(c[a++]){case"0":var f=window[s.QPheb(x6,0)];continue;case"1":var g=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10];continue;case"2":return{s:0,v:I};case"3":var w=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];continue;case"4":for(var b=0,_=w;s.cvtRQ(b,_.length);b++){var m=_[b];I<<=1,I|=s.obwRn(Zt,f,1108488788)(Uint8Array.of.apply(Uint8Array,s.zLaAT(n.fX,s.zLaAT(n.fX,[],g,!1),m,!1)))?1:0}continue;case"5":if(!(!(s.BBhKA(f,null)||s.BBhKA(f,void 0))&&s.dlsEs(Zt,f,1108488788)))return{s:-1,v:null};continue;case"6":var I=0;continue}break}}function B6(){for(var s={tzfkk:"3|4|0|2|1|5",hnlPn:function(I,L){return I-L},YETaQ:function(I,L){return I*L},zzipR:function(I,L){return I>=L},QPpiL:function(I,L){return I===L},YposS:function(I,L){return I%L},FPDfz:function(I,L){return I|L}},c=s.tzfkk.split("|"),a=0;;){switch(c[a++]){case"0":var f=4096;continue;case"1":for(var g=s.hnlPn(s.YETaQ(m,f),1);s.zzipR(g,0);--g)if(s.QPpiL(s.YposS(g,f),0)){var w=Math.random();_.push(s.FPDfz(s.YETaQ(s.hnlPn(b,w),Math.pow(2,31)),0)),b=w}continue;case"2":var b=Math.random();continue;case"3":var _=[];continue;case"4":var m=6;continue;case"5":return{s:0,v:_}}break}}function H0(){var s=window.devicePixelRatio;return s==null?{s:-1,v:null}:{s:0,v:s}}function P6(){for(var s=navigator,c=["webkitPersistentStorage","connectionSpeed","xr","hid"],a=[],f=0,g=Object.getOwnPropertyNames(Object.getPrototypeOf(s));f<g.length;f++){var w=g[f];if(!c.includes(w)){var b=s[w];typeof b=="function"&&b.name!==void 0&&a.push(b.name)}}return{s:0,v:a}}function M6(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function D6(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function U6(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};var s=new window.SharedArrayBuffer(1);return s.byteLength===void 0?{s:-1,v:null}:{s:0,v:s.byteLength}}function F6(){if(typeof window.matchMedia!="function")return{s:-2,v:null};var s=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return s.matches===void 0?{s:-1,v:null}:{s:0,v:s.matches}}function H6(){try{throw"a"}catch(s){try{return s.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function V6(){return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(s){return[2,z(function(c,a){var f=a.document.createElement("div");return f.style.border=".5px dotted transparent",a.document.body.appendChild(f),{s:0,v:f.offsetHeight}})]})})}function W6(){return navigator.mimeTypes===void 0?{s:-1,v:null}:navigator.mimeTypes.length===void 0?{s:-3,v:null}:{s:0,v:navigator.mimeTypes.length}}function z6(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function G6(){if(navigator.plugins===void 0)return{s:-1,v:null};for(var s=navigator.plugins,c=Object.getPrototypeOf(s)===PluginArray.prototype,a=0;a<s.length;a++)c&&(c=Object.getPrototypeOf(s[a])===Plugin.prototype);return{s:0,v:c}}function K6(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function j6(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function V0(){var s=navigator.language;return s?{s:0,v:s}:{s:-1,v:null}}function W0(){var s=navigator.languages;return s?{s:0,v:s}:{s:-1,v:null}}function Y6(){var s,c,a=function(g,w,b){return g(w,b)},f=function(g,w,b){return g(w,b)};return s=n.sH,c=function(){var g,w,b,_;return function(m,I,L){return m(I,L)}(n.YH,this,function(m){switch(m.label){case 0:return g=navigator,w=a(Zt,g,1417288500),(b=a(Zt,g,2706846255))||!(function(I){return I===null}(w)||function(I){return I===void 0}(w))&&a(Zt,w,3538568711)?b?[4,Promise.race([a(bo,250,void 0),new Promise(function(I){(function(L,x){return a(L,x,1291883197)})(Zt,b)(function(L,x){return function(Y,J){return function(tt,nt){return tt(nt)}(Y,J)}(I,x)})})])]:[3,2]:[2,{s:-1,v:null}];case 1:if(function(I){return I!==void 0}(_=m.sent()))return[2,{s:0,v:_}];m.label=2;case 2:return!(function(I){return I===null}(w)||function(I){return I===void 0}(w))&&f(Zt,w,3538568711)?[4,Promise.race([a(bo,250,void 0),f(Zt,w,3538568711)().then(function(I){return function(L,x){return a(L,x,1813778413)}(Zt,I)})])]:[3,4];case 3:if(function(I){return I!==void 0}(_=m.sent()))return[2,{s:1,v:_}];m.label=4;case 4:return[2,{s:-2,v:null}]}})},s(this,void 0,void 0,c)}var q6=Un([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function $6(){var s=function(c,a){return c===a};return(0,n.sH)(this,void 0,void 0,function(){var c,a=function(w){return function(b){return b()}(w)},f=function(w,b,_){return function(m,I,L){return m(I,L)}(w,b,_)},g=function(w){return function(b){return b()}(w)};return function(w,b,_){return w(b,_)}(n.YH,this,function(w){switch(w.label){case 0:return a(T)&&a(Y4)?[2,{s:-3,v:null}]:[4,Promise.race([f(bo,100,null),g(Z6)])];case 1:return function(b){return s(b,null)}(c=w.sent())?[2,{s:-2,v:null}]:function(b){return s(b,void 0)}(c)?[2,{s:-1,v:null}]:[2,{s:0,v:c}]}})})}function Z6(){var s=function(a,f){return a(f)},c=function(a,f,g,w,b){return a(f,g,w,b)};return c(n.sH,this,void 0,void 0,function(){var a,f=function(g,w){return s(g,w)};return function(g,w,b){return g(w,b)}(n.YH,this,function(g){return(a=window[function(w,b){return s(w,b)}(q6,0)])?[2,new Promise(function(w){(function(b,_,m,I,L){c(b,_,m,I,L)})(a,0,1,function(){return function(b){return f(b,!0)}(w)},function(){return function(b){return f(b,!1)}(w)})})]:[2,void 0]})})}function X6(){return z(function(s,c){var a=c.screen,f=function(g){var w=parseInt(g);return typeof w=="number"&&isNaN(w)?-1:w};return{s:0,v:{w:f(a.width),h:f(a.height)}}})}var li=Un([3924185679,3632893699,2980828376,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function J6(){try{return function(c,a){return c(a)}(z0,!!window[s=li,s(0)])}catch{return function(a){return a(!0)}(z0)}var s}function z0(s){return{s:0,v:s}}function Q6(){var s=function(f){return f()},c=function(f,g,w){return f(g,w)},a=this;return c(er,Yn(250,{s:-3,v:null}),function(){return f=n.sH,g=function(){var w=function(b){return s(b)};return c(n.YH,this,function(b){return w(D)||function(_){return s(_)}(j)?[2,w(t8)]:[2,{s:-1,v:null}]})},f(a,void 0,void 0,g);var f,g})}function t8(){var s,c,a=function(f,g){return f(g)};return s=n.sH,c=function(){var f,g,w={BQeod:function(b,_){return a(b,_)},iOflQ:function(b,_,m){return function(I,L,x){return I(L,x)}(b,_,m)},uZYOC:function(b,_){return a(b,_)},DssqK:function(b){return function(_){return _()}(b)},FbFdf:function(b,_){return function(m,I){return m(I)}(b,_)},TWEdd:function(b,_){return function(m,I){return m instanceof I}(b,_)},NPofR:function(b,_){return function(m,I){return m===I}(b,_)},saNhW:"4|2|0|3|1",ywkCU:function(b,_){return function(m,I){return m(I)}(b,_)},tYhgW:function(b,_,m){return function(I,L,x){return I(L,x)}(b,_,m)}};return function(b,_,m){return b(_,m)}(n.YH,this,function(b){for(var _=w.saNhW.split("|"),m=0;;){switch(_[m++]){case"0":if(!f)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise(function(L,x){try{var Y=w.iOflQ(Zt,f,2758837156)(g,1);Y[w.BQeod(li,1)]=function(){(function(J){w.BQeod(J,{s:-5,v:null})})(L)},Y[w.uZYOC(li,2)]=function(J){var tt=I.Qxjcv(Zt,I.Qxjcv(Zt,J,1181691900),325763347);try{return I.Qxjcv(Zt,I.ehgXq(Zt,tt,138212912)("-",I.zaFXk(li,3)),2928708052)(new window[I.zaFXk(li,4)]),void I.zaFXk(L,{s:0,v:""})}catch(nt){if(I.pOfaM(nt,Error))return void I.zaFXk(L,{s:0,v:I.ehgXq(Zt,nt,3065852031)});I.zaFXk(x,nt)}finally{I.tUivq(Zt,tt,318865860)(),I.tUivq(Zt,f,3885781331)(g)}}}catch(J){if(!w.DssqK(D))return void w.FbFdf(L,{s:-5,v:null});if(w.TWEdd(J,Error)&&w.NPofR(J.name,w.FbFdf(li,5)))return void w.uZYOC(L,{s:-4,v:null});w.FbFdf(x,J)}})];case"2":f=window[w.FbFdf(li,0)];continue;case"3":g="".concat(w.ywkCU(Eo,16));continue;case"4":var I={Qxjcv:function(L,x,Y){return w.tYhgW(L,x,Y)},ehgXq:function(L,x,Y){return w.iOflQ(L,x,Y)},zaFXk:function(L,x){return w.BQeod(L,x)},pOfaM:function(L,x){return w.TWEdd(L,x)},tUivq:function(L,x,Y){return w.tYhgW(L,x,Y)}};continue}break}})},s(this,void 0,void 0,c)}var G0=Un([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function e8(){var s=function(g,w,b){return g(w,b)},c="test";if(!D()||function(g){return g()}(z4))return{s:-1,v:null};var a=window[function(g){return g(0)}(G0)],f=window[function(g){return g(1)}(G0)];try{(function(g){g(null,null,null,null)})(a)}catch{return{s:0,v:!0}}try{return s(Zt,f,2330630162)(c,"1"),s(Zt,f,588657539)(c),{s:0,v:!1}}catch{return{s:0,v:!0}}}function n8(){var s=Object.getOwnPropertyDescriptor(document,"createElement");return s?{s:0,v:!("writeable"in s)}:{s:-1,v:null}}function r8(){return{s:0,v:!!navigator.onLine}}var Me=Un([2051009255,196400063,2525527446,4044416111,199305624,3777599729,664183563,2527137204,2959068455,280520411,4185511866,2144517134,3586067896,2987975794,1370780368,4217690097,2128325203,3518040290,2987517477,485718477,3408514487,1624764753,2525516212,3089101692,314277853,3777352609,1742208334,3751877875,4284477294,451175574,3090727933,1792130846,3451262692,4048669481,1370783684,4184381064,1876294928,2595627001,3189040251,285179857,3022493366,635026462,3602651639,2954672238,249917143,3022514673,664183579,3685769165,2736568422,1408460740,3831682485,1926610701,2533302452,3122262854,83050709,3022493344,1087813162,3516795391,2552037231,1608872657,3309737727,1657845296,3451270903,4048663672,149384902,3682584502,1792915224,3886684381,3054101874,519391961,3027814326,1859318097,3332770295,3205678702,1609525469,4167997183,2077073694,2578913506,3122262886,1606035925,4285518270,2077593628,3636076535,3054821986,1606035911,4184396215,1826273817,3686077407,2959063593,179857115,3765358778,634502420,3701674487,4048663658,351432409,4185430450,1859625224,2527613364,2803104104,702703057,3027158186,2127950151,2612794610,3897157222,435775636,2876823478,2077880609,2164071586,2404366395,1374366102,4184381096,1708238611,3299486178,4048008302,418538178,3865484220,1754589257,3619035641,4045515640,1291156949,3543761149,1475469901,2533318580,2701786985,1609793493,2788918761,697885517,3652325360,2803688558,1319905745,4264138979,1674820120,2162778082,4048660019,166879939,2687604411,667542345,3684786157,2802770793,249917146,3307835121,1323797546,4051773653,2318390612,1608081380,4247361710,1927784984,3652585957,3055482186,1370781895,4151957233,664188427,3602649012,3171542398,1608874193,3243808511,1223786530,3952488387,2200224840,1370768608,3849242609,1708898830,3517121730,2287055992,267615126,3799571872,650165528,3517977850,4044940645,1609377769,3798129338,1791013433,3517121730,2286400632,334719126,3126236848,1874965087,3582989055,3122657147,350380760,2888419254,1754703910,3517387769,2854871653,1203007172,4068398577,1721482260,3622324710,2954424932,1607087815,4148151486,629466963,2532385188,2382416758],5);function i8(s){return function(c,a){return c(a,2660613247)}(Zt,s)||(s[function(c){return c(0)}(Me)]={})}var o8=[[Me(1),function(s){return j0(!1,s)}],[Me(2),function(){return j0(!0)}],[Me(3),function(){return s=ko,c=Me(4),s(c);var s,c}],[Me(5),function(){var s=function(c,a){return c(a)};return s(ko,s(Me,6))}],[Me(7),function(){var s=function(c,a){return c(a)};return s(ko,s(Me,8))}],[Me(9),function(){var s=function(c,a){return c(a)};return s(ko,s(Me,10))}]];function s8(){var s=function(a,f){return a(f)},c=function(a,f){return a in f};return(function(a){return a in window}(s(Me,11))||function(a){return a in window}(s(Me,12))||c(function(a){return a(13)}(Me),window))&&c(function(a){return a(14)}(Me),navigator)}function a8(){var s,c=function(a,f){return a(f)};return!function(a){return a()}(T)||!function(a){return a in document}(c(Me,15))||(function(a){return a===null}(s=document[c(Me,15)])||function(a){return a===void 0}(s)?void 0:function(a,f){return a(f,2256349940)}(Zt,s)().includes(c(Me,16)))}function c8(){return function(s){return s in navigator}(Me(17))&&function(s,c){return s in c}(function(s){return s(18)}(Me),function(s){return s(navigator,2900309608)}(Zt))}function u8(s,c,a){var f,g=function(b,_){return b!==_},w=function(b,_){return b!==_};return function(b){return b===void 0}(c)&&(c={}),g(a,null)&&g(a,void 0)||(a=[function(b){return b()}(Y0)]),w(f=c[s],null)&&w(f,void 0)?f:c[s]=function(b){return b(navigator,3994889901)}(Zt)(s,a)}function ko(s,c,a){var f=function(g,w,b,_){return g(w,b,_)};return function(g,w,b,_,m){return g(w,void 0,void 0,m)}(n.sH,this,0,0,function(){var g,w,b;return function(_,m,I){return _(m,I)}(n.YH,this,function(_){switch(_.label){case 0:g=0,w=s,_.label=1;case 1:if(!function(m,I){return m<I}(g,w.length))return[3,6];b=w[g],_.label=2;case 2:return _.trys.push([2,4,,5]),[4,f(u8,b,c,a)];case 3:return[2,!!_.sent()];case 4:return _.sent(),[3,5];case 5:return g++,[3,1];case 6:return[2,!1]}})})}var K0=Me(19);function l8(){var s=function(_,m){return _(m)},c=function(_,m){return _(m)},a=function(_,m){return _(m)},f=function(_,m,I){return _(m,I)},g=function(_,m){return _ in m},w=function(_,m){return _(m)},b=function(_){return _()};return(0,n.sH)(this,void 0,void 0,function(){var _,m,I;return f(n.YH,this,function(L){switch(L.label){case 0:return function(x){return x()}(j)||function(x){return x()}(at)?[2,!1]:(_=!1,function(x){return x()}(c8)?(m={type:s(Me,20),audio:c(Me,21),video:a(Me,22),keySystemConfiguration:{keySystem:K0,video:a(Me,23)}},[4,f(Zt,f(Zt,navigator,2900309608),3516168465)(m)]):[3,2]);case 1:I=L.sent(),_=function(x,Y,J){return x(Y,J)}(l4,I,function(x){return x(24)}(Me))&&I[function(x){return x(24)}(Me)],L.label=2;case 2:return[2,_&&!g(w(Me,25),navigator)||!b(T)]}})})}function f8(s){for(var c={HkMtb:"3|2|0|4|1",pPhzD:function(w,b,_){return w(b,_)},EAQNq:function(w,b){return w(b)},cWdUy:function(w,b){return w(b)},NbRpv:function(w){return w()},dFENT:function(w,b){return w===b},npgEB:function(w,b){return w(b)}},a=c.HkMtb.split("|"),f=0;;){switch(a[f++]){case"0":c.pPhzD(Zt,g,621177879)&&(c.pPhzD(Zt,g,621177879)[0][c.EAQNq(Me,26)]=c.cWdUy(Me,27));continue;case"1":return g;case"2":var g=c.NbRpv(Y0);continue;case"3":c.dFENT(s,void 0)&&(s=!1);continue;case"4":s&&(g[c.cWdUy(Me,28)]=c.npgEB(Me,29));continue}break}}function j0(s,c){return s===void 0&&(s=!1),a=n.sH,f=function(){var g,w=function(_){return function(m){return m()}(_)},b=function(_,m,I,L){return function(x,Y,J,tt){return x(Y,J,tt)}(_,m,I,L)};return function(_,m,I){return _(m,I)}(n.YH,this,function(_){switch(_.label){case 0:return[4,w(l8)];case 1:return _.sent()?(g=function(m,I){return function(L,x){return L(x)}(m,I)}(f8,s),[4,b(ko,[K0],c,[g])]):[2,!1];case 2:return[2,_.sent()]}})},a(this,void 0,void 0,f);var a,f}function Y0(){return Me(30)}function d8(s){var c=function(w,b,_){return w(b,_)},a=function(w,b,_,m,I){return w(b,_,m,I)},f=function(w,b,_){return w(b,_)},g=f(Zt,s,1095199719);return a(n.sH,this,void 0,void 0,function(){var w,b=function(J,tt){return function(nt,ut){return nt(ut)}(J,tt)},_=function(J,tt,nt){return c(J,tt,nt)},m=function(J,tt,nt,ut,pt){return a(J,tt,nt,ut,pt)},I=function(J){return function(tt){return tt()}(J)},L=function(J,tt,nt){return c(J,tt,nt)},x=function(J,tt,nt){return c(J,tt,nt)},Y=this;return f(n.YH,this,function(J){return I(s8)&&I(a8)?I(at)?[2,function(){return{s:-3,v:null}}]:(w=b(i8,g),[2,L(er,x(Yn,250,{s:-2,v:null}),function(){var tt=function(Et,ht){return function(yt,Vt){return function(Wt,jt){return Wt<jt}(yt,Vt)}(Et,ht)},nt=function(Et,ht){return b(Et,ht)},ut=function(Et,ht,yt){return _(Et,ht,yt)},pt=function(Et,ht,yt,Vt,Wt){return m(Et,ht,yt,Vt,Wt)};return m(n.sH,Y,void 0,void 0,function(){var Et,ht,yt,Vt,Wt,jt,Tt,Ft=function(ee,oe){return nt(ee,oe)},Yt=this;return ut(n.YH,this,function(ee){switch(ee.label){case 0:return[4,Promise.all(o8.map(function(oe){var fe=function(Ae,Re){return Ft(Ae,Re)};return function(Ae,Re,Le,Ue,Fe){return pt(Ae,Re,void 0,void 0,Fe)}(n.sH,Yt,0,0,function(){var Ae,Re,Le;return function(Ue,Fe,Pe){return function(gn,Mn,Tn){return ut(gn,Mn,Tn)}(Ue,Fe,Pe)}(n.YH,this,function(Ue){switch(Ue.label){case 0:return Ae=oe[0],Re=oe[1],Le=[Ae],[4,fe(Re,w)];case 1:return[2,Le.concat([Ue.sent()])]}})})}))];case 1:for(Et=ee.sent(),ht={},yt=0,Vt=Et;tt(yt,Vt.length);yt++)Wt=Vt[yt],jt=Wt[0],Tt=Wt[1],ht[jt]=Tt;return[2,{s:0,v:ht}]}})})})]):[2,function(){return{s:-1,v:null}}]})})}var h8=Un([1348463336,3803023018,4141740428,4039893696,3740108228,2696994793,2396890353,3287272953,2760289937,3639185880,3800550087,3229721822,3655845628,3956859780,3417230991,3987529206,3465536455,3286746798,3788241285,4155412936,2931392987,2279597529,2175059177,4024282809,2296682185,4202925994,3049385931,3321024229,4001931456,3270216648,2932772850,2345464011,3303269088,2766070917,4157718512],5);function p8(){for(var s,c,a={},f=0,g=h8(0);f<g.length;f++)for(var w=g[f],b=w[0],_=0,m=w[1];_<m.length;_++){var I=m[_],L=(c=(s=Object.getOwnPropertyDescriptor(window[b],I))===null||s===void 0?void 0:s.get)===null||c===void 0?void 0:c.toString();L!==void 0&&(a["".concat(b,".").concat(I)]=L)}return{s:0,v:a}}var q0=4191585516,g8=new Set([4106781067,3209949814,2612078219,2382064880,3225112721,1018714844,2899793226,2094258580,3169460974,3079760821,392195965,3461410589,3582327722,1731918890,1767246934,3419607467,1110225616,1455947556,450291099,176445009,1998723369,2961538051,3413933903,2299562828,3945560591,485550147,3336694844,3737152292,2669437517,3860417393,q0]);function m8(){for(var s=[],c=Object.getOwnPropertyNames(window),a=0;a<c.length;a++){var f=c[a],g=vr(f);if(g8.has(g)&&s.push(f),g===q0){var w=c[a+1]||"";s.push(w)}}return{s:0,v:s}}function v8(){return z(function(s,c){var a={},f=c.document.createElement("div");c.document.body.appendChild(f);for(var g,w={AccentColor:"ac",AccentColorText:"act",ActiveText:"at",ActiveBorder:"ab",ActiveCaption:"aca",AppWorkspace:"aw",Background:"b",ButtonHighlight:"bh",ButtonShadow:"bs",ButtonBorder:"bb",ButtonFace:"bf",ButtonText:"bt",FieldText:"ft",GrayText:"gt",Highlight:"h",HighlightText:"ht",InactiveBorder:"ib",InactiveCaption:"ic",InactiveCaptionText:"ict",InfoBackground:"ib",InfoText:"it",LinkText:"lt",Mark:"m",Menu:"me",Scrollbar:"s",ThreeDDarkShadow:"tdds",ThreeDFace:"tdf",ThreeDHighlight:"tdh",ThreeDLightShadow:"tdls",ThreeDShadow:"tds",VisitedText:"vt",Window:"w",WindowFrame:"wf",WindowText:"wt",Selecteditem:"si",Selecteditemtext:"sit"},b=0,_=Object.keys(w);b<_.length;b++){var m=_[b];a[w[m]]=(g=m,f.style.color=g,c.getComputedStyle(f).color)}return{s:0,v:a}})}function y8(){return z(function(s,c){var a=c.navigator.webdriver;return a===null?{s:-1,v:null}:a===void 0?{s:-2,v:null}:{s:0,v:a}})}function w8(){return function(s){var c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"hardwareConcurrency");if(!c||!c.get)return{s:-1,v:null};var a=window.Function,f=window.Object,g=!1;try{g=delete window.Function&&delete window.Object}catch{g=!1}if(!g)return w(),{s:-2,v:null};try{return c.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{w()}function w(){try{window.Function=a,window.Object=f}catch{}}}(navigator)}function $0(s,c){for(var a={},f=s.getBoundingClientRect(),g=0,w=["x","y","left","right","bottom","height","top","width"];g<w.length;g++){var b=w[g];b in f&&(a[b]=f[b])}var _=c.getComputedStyle(s,null).getPropertyValue("font-family");return a.font=_,a}function b8(){for(var s="",c=128512;c<=128591;c++){var a=String.fromCodePoint(c);s+=a}return z(function(f,g){var w=g.document.createElement("span");return w.style.whiteSpace="nowrap",w.innerHTML=s,g.document.body.append(w),{s:0,v:$0(w,g)}})}function _8(){var s="<mrow><munderover><mmultiscripts><mo>∏</mo>";function c(b,_,m,I,L){return"<mmultiscripts><mi>".concat(b,"</mi><mi>").concat(_,"</mi><mi>").concat(m,"</mi>")+"<mprescripts></mprescripts><mi>".concat(I,"</mi><mi>").concat(L,"</mi></mmultiscripts>")}for(var a=0,f=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];a<f.length;a++){var g=f[a],w=c.apply(void 0,g);s+=w}return s+="</munderover></mrow>",z(function(b,_){var m=_.document.createElement("math");return m.style.whiteSpace="nowrap",m.innerHTML=s,_.document.body.append(m),{s:0,v:$0(m,_)}})}var E8=Un([1024705730,641842159,2578743392,3876471597,2070139803],6);function R8(){var s=Zt(navigator,2698072953);return s?{s:0,v:function(c,a){return c(a)}(S8,s)}:{s:-1,v:null}}function S8(s){var c=function(_,m){return _<m},a=function(_,m,I){return _(m,I)},f=function(_,m,I){return _(m,I)},g=function(_){return _(Object,1110892003)}(Zt)(s,function(_){return _(0)}(E8));if(g&&function(_,m){return _(m,2813370411)}(Zt,g))return!0;for(var w=0;c(w,s.length);w++){var b=a(Zt,Object,1110892003)(s,w);if(b&&(f(Zt,b,2813370411)||a(Zt,b,1651707638)))return!0}return!1}var $e=Io([855787288,642990106,254096950,926556982,87375404,1278677006,408486424,1479671850,1785924,253259062,240523559,673514752,658445118,1391164,607131925,722936367,271014668,151655183,36375323,656347974,1445350919,353197617,423242801,1160005147,1512002869,420283957,536958245,86705444,656408603,100677635,20185122,556090667,202191150,724518191,792405557,102894606,623247373,587992400,658457902,186065947,138173228,910037367,2368541,1529157659,892869409,976305177,203760670,1010441050,942083341,505880599,858547496,472786520,104733226,488840738,977151779,154821378,1044189198,942025224,606622265,960446235,537939522,1427451664,1594829109,757486355,521087014,119085350,638781191,792409347,3607069,137245730,740307761,975647282,992231996,556677182,121255207,522468654,103100716,805591826,205345105,352982566,809188375,538263045,590744875,204342828,87438137,657730594,355141642,1430208096,990394680,70993686,825163804,1060643342,419658253,86454317,808395603,960181563,1394880291,723543328,1059455265,422468123,1512636726,523643153,874654019,741018648,472326400,438382882,19791956,101085447,788741643,117637695,134556468,576544002,1817775652,828261639,390094395,253639961,1880502074,370026788,807930146,3016495,1527136534,71514660,945292548,304222e3,1580941075,2110514,203960841,321666847,858338073,408755024,134358831,521999910,104796679,1141842004,1376664580,355614474,1581667629,1510485767,671100941,1062295126,370957148,254414105,1535071780,561394448,1494427185,539892273,120535346,203499292,522594859,471863338,775098909,1597979140,907887673,758332434,655825187,758207319,419572773,2133349379,909508638,122886204,123473464,1463621412,641018151,1376126269,1462121850,472787007,725356864,341384543,206715932,20988416,404560468,236535349,136583426,654445841,943666452,840316960,1027350080,674639121,153557559,1510280726,961623300,1008474660,973157633,443359752,656934418,1461592383,472779801,238290498,1058027540,644034587,68093212,1597246981,1544182280,469976413,238374721,1174618196,1194143029,336400700,2066110510,34473564,1344553036,873275941,372524551,591344222,623860493,641412978,288168465,742072848,958995498,604449289,221971308,1495672659,723588667,355544366,808599331,459040,943462687,908866865,942887995,908264973,36774146,503972959,657396518,255140875,922816319,1426597669,724636239,873869836,422207e3,738338618,403715596,687875167,874774529,1040791559,120850268,604126999,775167011,470361864,992484109,419635991,743185,154018116,641337180,755635292,254040613,222176514,857754138,2505515,707068717,101333848,757538096,621551931,37443895,1547319336,456857894,3999031,908491345,775432019,439162173,706096427,358119961,1058025846,437977936,102439689,574895878,356259076,372648449,1142819334,742401113,1058341645,1362637919,70005800,202582592,1192122395,236594727,839523131,1750337312,207570485,590873144,123355928,22029379,67645968,269812016,638015583,757087233,657734424,1345271600,740439809,1561926978,1560608781,285688601,387387163,910180890,959256594,456272657,573188414,943880979,1029446156,1073890833,1029574938,1007884807,693115144,222574848,436674607,1174818049,1545405479,1275535655,823416647,86462535,523833608,974464036,658321980,1114075158,185861637,487922498,471600394,639451455,537999451,520699919,1079979324,236797980,168450619,393283123,456001101,186713889,1493375013,488440356,923600390,756164122,655898448,825951036,1411784533,34609698,1208103527,1128159247,253245995,940584251,573441833,19400266,993726249,18425437,139266084,137047810,190711400,1527646996,36582975,978979125,287314201,108201025,1057162756,1583308301,489622303,293476447,840836395,406279465,554701144,471161609,861221689,722419267,1360213011,1143874879,909322020,2035428162,438440025,106244122,322058780,891553820,1360617229,860762642,723856384,322969613,238895933,842924835,1879190897,52179258,453527317,643782993,169476647,858128388,1091178016,453267755,1179072280,1511742509,1364295471,894177538,1547456852,339630853,942212098,640433433,930292802,1599102517,1279285263,1160643877,829502250,1143043844,1530134532,559155459,188100392,1815413542,890521399,220333865,1042559767,520753679,1899432762,369635096,825252367,186328081,1513044992,104291868,842078054,537864570,823793936,1163282459,453314382,1632586541,1159401523,151472718,219612436,1343881243,302413385,67122704,252322835,289281282,520961808,570699029,470824736,843333652,387845450,1180440642,355535121,472254981,206261077,341444100,285219076,439879490,1158377805,188762957,457966854,420087833,2046827521,722541333,1263228164,1510343692,503979288,772677403,942886173,118822420,1074859273,339172401,203161933,353775648,386806050,1363745804,34035503,1295078920,654974826,103553585,17500434,84149518,1212816394,341192510,303115534,305863945,1314328859,136125003,239478532,1129799731,185012293,504893725,1243356169,158746440,1226710058,169542741,940646154,352652561,439419943,376860481,469959197,520567564,16778499,994532938,805575194,201332246,424232781,219809552,825559315,2019624473,285350999,201785371,1129190437,352980301,353764925,1159268906,235294021,236258823,1128289801,269945915,35194673,437005072,85329174,387714572,274102343,83897604,956964102,285213966,1079384090,117586755,995588193,739054110,33755162,289099606,292814850,388764421,575359829,254878242,892283406,674169947,873859604,690695688,556934411,1532961317,269620487,137047589,19803402,891619353,774844708,773205285,420423187,589300788,539835481,959397124,537535801,589641006,622930724,673579048,167981855,671091755,437650701,756498733,704784648,774251013,975510574,335745584,1040792358,134424354,772089349,891158532,18422329,1041391729,139998271,286612271,626670900,958605350,856111142,724383270,372644648,773794620,855909183,540223547,203108701,906494980,1040720168,807150682,571218739,219101490,371001128,137049628,705576492,808659290,705692733,791022080,538653958,671624507,739063102,809906233,639962113,637745182,744239416,236529698,811540526,626862600,788995891,606877246,842204468,573770006,638135325,892486697,791755096,842940166,218240539,974075680,1007048511,555429381,388115255,1057830682,907621664,941633087,892021814,705508445,656356372,641149279,592446271,960046629,421476140,36057648,673325652,639245336,253309464,286404120,19138609,941505862,52178751,537019707,103819782,990131740,87893776,572400132,940786999,991251806,420435997,705108243,621752107,792157219,556736060,860304940,908527152,707673142,893072223,87437101,69927728,540938258,421737780,56494849,220529437,637555989,587807551,201721412,1293836041,809393727,2165761,119747921,760221964,942670122,523578142,1023565147,1946881594,1495147345,302056256,118113602,33882179,1024137755,1462240834,138296332,33948685,202726697,185470982,1577530626,18037005,758717254,857941269,959654443,858460691,640372776,555703830,321330014,1482629131,492570962,473434659,589234776,1042363916,725122873,521305974,1495996214,824716089,120401469,1175858246,603988531,723400211,590361130,892885286,728181053,874711586,704914987,607397390,673849635,858927916,1980441910,271717152,588463451,186264864,439096898,237511981,336863746,1445603842,958933259,655710269,739654685,707734794,691939104,17112595,1479220487,17311610,1585157,253636865,792142081,858725420,892469556,975571478,794635822,554644258,218577412,974917174,219283825,219108949,320604719,839200021,358887210,1009990432,895033669,270346552,369371943,170854914,288163108,822414375,135800369,201547047,218968081,537737542,185541933,1023878402,621038898,302923324,896737594,722614578,18820911,907806763,119221853,34611475,85931888,134429956,219358233,51716651,436478992,772030467,169813541,134233615,270402344,353573131,318904915,654518079,773797416,222570033,974721590,893719153,186589236,689707610,822608991,1027559461,103755568,890844441,740165382,370948908,170874206,742132011,823276892,252001627,185024067,236004399,542196259,655377180,573518398,772752423,68573239,993141293,671090230,50540551,207364644,688129835,51264102,69160960,823668001,186531879,1721438,542523258,51782502,839058447,889528634,1058743644,909337639,855709264,691550208,1111303721,908535824,639830843,437662578,4131881,639639610,404095542,907748360,756363024,774594342,925979405,909059125,574562367,1041766962,2833664,906497055,773928241,354893625,86265618,186593554,771772968,911815229,705440282,237767514,22363698,991902554,576651358,641030188,842007853,1044645642,791428699,674312229,591608893,572594698,102513465,838863909,236594769,324688386,336408621,371011385,823482709,772604988,671293188,673386800,121376300,673579281,841623353,254488125,890642453,359400763,171709191,1077742878,1158229763,942290951,761559636,808342563,1529619006,73138759,371406637,924855586,489358620,823667740,773799490,2118792263,510668586,50463006,979182891,56492606,1308764941,205980450,855642373,121183505,674956826,605370372,67440411,1277167410,573652306,1594245935,375074050,1194403380,555890965,255144200,1194992947,136513541,875576142,1024269850,1510682155,1042688287,168629537,354423099,369503541,355479608,21052219,855835153,1345463855,1042756404,190065709,973626116,761204497,123093823,1915165206,459220566,370027800,1580407058,506730774,1025124126,1510744383,387514687,1141319970,1565204261,1359103771,185995575,35596554,84096006,672404008,857878564,3032093,207364681,555304731,488660742,557915986,861239815,1074597388,372852262,506478175,755175171,2581879,100939293,537605408,956701468,1060906552,202447182,84023075,925892957,1448158238,455885632,456995842,236397832,789581071,486539295,923009595,1632458001,772084274,288971043,504107035,184943133,825691398,1313151757,219814218,370679576,1229983007,134546550,33752117,420092230,101057883,353308952,927730989,320602150,437864198,403773963,3948554,603989776,303508501,119413321,1192230914,441860171,122042880,471431969,101403907,871429,1175061276,438371390,1050900,201330949,1079580686,1498700612,174478106,438317072,1145045533,403514955,18481974,639055628,1866663195,486674503,286853695,826998811],mc,0);function A8(){for(var s={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(b,_){return b!==_},arEiG:function(b,_){return b(_)},FEyAC:function(b,_){return b|_},cUIUX:function(b,_){return b&_},vaJLl:function(b,_){return b&_},osTKi:function(b,_){return b(_)},vuPdB:function(b,_){return b+_},euenK:function(b,_){return b(_)}},c=s.YQAxx.split("|"),a=0;;){switch(c[a++]){case"0":var f={nkHEv:s.NxnUc,yPbQz:function(b,_){return s.dRZXE(b,_)},cIFeZ:function(b,_){return s.arEiG(b,_)},kGvFR:function(b,_){return s.FEyAC(b,_)},eFyAy:function(b,_){return s.cUIUX(b,_)},WLFtS:function(b,_){return s.vaJLl(b,_)},uzqnn:function(b,_){return s.osTKi(b,_)},rqcBN:function(b,_){return s.vuPdB(b,_)}};continue;case"1":Object.defineProperty(g,s.osTKi($e,2),{value:w});continue;case"2":var g=s.euenK(ys,s.arEiG($e,0));continue;case"3":return g;case"4":var w=function(b){for(var _=f.nkHEv.split("|"),m=0;;){switch(_[m++]){case"0":var I=this[x];continue;case"1":var L;continue;case"2":var x=f.yPbQz(L=this[f.cIFeZ($e,1)],null)&&f.yPbQz(L,void 0)?L:0;continue;case"3":this[x]=f.kGvFR(f.eFyAy(I,~b),f.WLFtS(~I,b));continue;case"4":this[f.uzqnn($e,1)]=f.rqcBN(x,1);continue;case"5":return I}break}};continue}break}}function I8(s){var c,a,f,g=function(_,m){return _(m)},w=function(_,m){return _===m},b=function(_,m){return _(m)};return a=n.sH,f=function(){var _,m,I,L,x,Y,J=function(ht,yt){return g(ht,yt)},tt=function(ht,yt){return b(ht,yt)},nt=function(ht,yt,Vt,Wt,jt){return function(Tt,Ft,Yt,ee,oe){return Tt(Ft,Yt,ee,oe)}(ht,yt,Vt,Wt,jt)},ut=function(ht,yt){return g(ht,yt)},pt=function(ht,yt){return g(ht,yt)},Et=this;return function(ht,yt,Vt){return ht(yt,Vt)}(n.YH,this,function(ht){switch(ht.label){case 0:return _=window[g($e,3)],(m=w(c=_[g($e,4)],null)||w(c,void 0)?void 0:c.bind(_))?(I=b($e,5),L=g($e,6),x={},[4,Promise.all(I.map(function(yt){var Vt=function(ee,oe,fe){return function(Ae,Re,Le){return function(Ue,Fe,Pe){return Ue(Fe,Pe)}(Ae,Re,Le)}(ee,oe,fe)},Wt=function(ee,oe){return J(ee,oe)},jt=function(ee,oe){return tt(ee,oe)},Tt=function(ee,oe){return function(fe,Ae){return function(Re,Le){return Re<Le}(fe,Ae)}(ee,oe)},Ft=function(ee,oe,fe,Ae,Re){return nt(ee,oe,fe,Ae,Re)},Yt=function(ee,oe){return pt(ee,oe)};return nt(n.sH,Et,void 0,void 0,function(){var ee,oe,fe,Ae,Re,Le,Ue,Fe;return function(Pe,gn,Mn){return function(Tn,$n,rr){return Tn($n,rr)}(Pe,gn,Mn)}(n.YH,this,function(Pe){switch(Pe.label){case 0:return Pe.trys.push([0,9,,10]),[4,Vt(m,yt,L)];case 1:return[4,Pe.sent()[Wt($e,7)]()];case 2:ee=Pe.sent(),oe=ee[jt($e,8)](),fe=[92,189,203],Ae=0,Pe.label=3;case 3:if(!Tt(Ae,3))return[3,8];Pe.label=4;case 4:return Pe.trys.push([4,6,,7]),Re=x,Le=jt(vr,yt),[4,Ft(k8,ee,oe,s,fe)];case 5:return Re[Le]=Pe.sent(),[2];case 6:if(function(gn,Mn){return ut(gn,Mn)}(N8,Ue=Pe.sent()))return fe=Yt(O8,s),[3,7];throw Yt(T8,fe),Ue;case 7:return Ae++,[3,3];case 8:return[3,10];case 9:return Fe=Pe.sent(),Y=Fe,[3,10];case 10:return[2]}})})}))]):[2,null];case 1:if(ht.sent(),Y&&w(Object.keys(x).length,0))throw Y;return[2,x]}})},a(this,void 0,void 0,f)}function k8(s,c,a,f){var g=function(I,L){return I(L)},w=function(I,L){return I(L)},b=function(I,L){return I(L)},_=function(I,L){return I(L)},m=function(I,L){return I(L)};return new Promise(function(I,L){c[_($e,9)]=function(x){return g(I,{i:w(vs,f),t:g(vr,x[w($e,10)]),s:c[w($e,11)],e:c[b($e,12)],p:_(mr,x[m($e,13)])})},s[_($e,14)](a),c[function(x){return x(15)}($e)](function(x){return x(16)}($e),f).catch(L)})}function O8(s){for(var c={UtaFw:"4|0|1|2|3",ulOIn:function(I,L){return I-L},pxHuO:function(I,L){return I>=L},pGlZB:function(I,L){return I(L)},ooLWC:function(I,L){return I+L},buezi:function(I,L){return I<<L},btVnF:function(I,L){return I%L},wSoGJ:function(I,L){return I*L},lowup:function(I,L){return I%L},hsYMn:function(I,L){return I*L}},a=c.UtaFw.split("|"),f=0;;){switch(a[f++]){case"0":var g=m.length;continue;case"1":var w=137;continue;case"2":for(var b=c.ulOIn(s.length,1);c.pxHuO(b,0);b--){var _=s[c.pGlZB($e,2)](c.ooLWC(c.buezi(b,8),w));m[c.btVnF(b,g)]^=c.ooLWC(_,c.wSoGJ(m[c.btVnF(c.ooLWC(b,1),g)],17)),w=_}continue;case"3":return c.pGlZB(Fr,c.pGlZB(mr,m).slice(0,3));case"4":var m=new Uint8Array([c.lowup(Date.now(),1024),c.hsYMn(Math.random(),65536)]);continue}break}}function T8(s){for(var c=function(_,m){return _<m},a=function(_,m){return _+m},f=function(_,m){return _%m},g=function(_,m){return _-m},w=0;c(w,s.length);w++){var b=65;s[w]=a(b,f(s[w],g(122,b)))}}function N8(s){return function(c,a){return c(a)}(ms,s)&&function(c,a){return c===a}("".concat(s),function(c){return c(17)}($e))}function x8(){var s=function(c,a){return c(a)};return function(c,a,f,g,w){return c(a,void 0,void 0,w)}(n.sH,this,0,0,function(){var c,a,f,g=function(J,tt){return s(J,tt)},w=function(J){return function(tt){return tt()}(J)},b=function(J,tt){return function(nt,ut){return nt in ut}(J,tt)},_=function(J,tt){return function(nt,ut){return nt(ut)}(J,tt)},m=function(J,tt,nt,ut){return function(pt,Et,ht,yt){return pt(Et,ht,yt)}(J,tt,nt,ut)},I=function(J,tt){return s(J,tt)},L=function(J,tt,nt,ut){return function(pt,Et,ht,yt){return pt(Et,ht,yt)}(J,tt,nt,ut)},x=function(J,tt){return function(nt,ut){return nt(ut)}(J,tt)},Y=function(J,tt){return function(nt,ut){return nt&&ut}(J,tt)};return function(J,tt,nt){return J(tt,nt)}(n.YH,this,function(J){switch(J.label){case 0:return w(K4)?[2,!b(g($e,19),window[_($e,20)][g($e,21)])]:w(G4)?[4,Promise.all([m(Z0,I($e,22),function(){return!0},function(){return!1}),L(Z0,x($e,23),function(){return!1},function(tt){return function(nt){return function(ut,pt){return ut instanceof pt}(nt,Error)}(tt)&&function(nt,ut){return function(pt,Et){return pt===Et}(nt,ut)}(tt.name,g($e,24))})])]:[3,2];case 1:return c=J.sent(),a=c[0],f=c[1],[2,Y(a,f)];case 2:return[2,!1]}})})}function Z0(s,c,a){var f=function(g,w){return g(w)};return new Promise(function(g){var w=function(I,L){return f(I,L)},b=f(yc,s),_=b[1],m=b[2];if(function(I){return I!==0}(_))return function(I){return I(!1)}(g);m[f($e,25)](function(){return function(I,L){return function(x,Y){return x(Y)}(I,L)}(g,function(I){return function(L){return L()}(I)}(c))},function(I){return w(g,w(a,I))})})}var L8=Un([229858650,783927519,3141207808,1645003411,2911373879,2084179082,2213201945,422262047,444852958,2568452659,961273073,4070116913,628296898,2516094721,19227916,46464143,2382904866,572186108,3147382845,1043469467,2611845399,171192596,1251730630,2338154040,2064948222,4070131749,623646351,2180159838,1719303453],7);function C8(){var s=function(c,a,f){return c(a,f)};return s(er,s(Yn,2e3,{s:-2,v:null}),B8)}function B8(){var s,c=function(L){return L()},a=function(L,x){return L(x)},f=function(L,x){return L(x)},g=function(L,x){return L<x},w=function(L,x){return L===x},b=function(L,x,Y){return L(x,Y)},_=function(L,x,Y){return L(x,Y)},m=function(L,x){return L(x)},I=function(L,x){return L(x)};return function(L,x,Y,J,tt){return L(x,void 0,void 0,tt)}(n.sH,this,0,0,function(){var L,x,Y,J,tt,nt,ut,pt,Et,ht,yt,Vt,Wt;return _(n.YH,this,function(jt){switch(jt.label){case 0:L=window,x=c(A8),Y=a(L8,0),jt.label=1;case 1:for(jt.trys.push([1,2,,5]),J="".concat(f(wc,x[0])).concat(f(wc,x[1])).concat(a(wc,x[2])),tt=Y[J],nt=Object.values(tt),ut={},pt=0,Et=(Wt=Object.keys(L)).slice.apply(Wt,nt);g(pt,Et.length);pt++)ht=Et[pt],yt=w(s=b(Zt,Object,1110892003)(L,ht),null)||w(s,void 0)?void 0:_(Zt,s,494360628),ut[a(vr,ht)]={i:!0,t:null,s:ht.slice(-3),e:12,p:m(String,yt).slice(0,50)};return[2,{s:-3,v:ut}];case 2:return jt.sent(),[4,c(x8)];case 3:return jt.sent()?[2,{s:-4,v:null}]:[4,I(I8,x)];case 4:return(Vt=jt.sent())?[2,{s:0,v:Vt}]:[2,{s:-1,v:null}];case 5:return[2]}})})}function wc(s){return"".concat(Ja[function(c){return c>>4}(s)]).concat(Ja[function(c){return c%16}(s)])}var yn=Un([2849665133,3102332852,3030028940,2360597915,3649086422,4118989755,2159729800,2492790230,3150617845,3422263962,3398214861,3000338617,2163578059,3720000219,2782764965,3422263962,3600523980,2895432685,2292567243,3617170646,3986333093,2578762955,2596645530,2227996313,2259142812,3700204490,3100285842,3422263963,3903489002,2496302258,2360989318,3615531995,4120169401,2192956830,3971720145,3000875412,2277047195,3431641814,4124477118,2273483461,3481713107,2781523129,3321219718,3599275162,4157376185,2293418634,3418993356,3067464120,3120021895,4221285085,3000403896,2260651146,2496373974,3051664885,2293418634,3735466700,2345307313,3287931573,3669330832,3151268020,2192890251,2525727716,3051664893,3382957959,3448764377,3201075897,3045840518,3837111258,2966063285,2276644252,3402212556,3201145010,3048463771,2462561764,2816128395,2359614875,3837109206,4221223093,2209732555,2594026717,2782776315,2862995355,2592912343,2781727739,3422263941,3683431633,3202123702,2359548301,3617301981,4120169381,2595804298,2496377821,3100936949,2257903002,3683432918,3117908131,2331350219,3431510730,2748951986,2294283144,3565992406,2564589462,2612190863,3687578522,2999682747,2277103530,3516773597,3220146104,2625885836,3601643978,2325387955],3);function X0(s){var c=function(f,g,w){return f(g,w)},a=Zt(s,928136154);return(0,n.sH)(this,void 0,void 0,function(){var f,g,w=function(I){return function(L){return L()}(I)},b=function(I,L){return function(x,Y){return x===Y}(I,L)},_=function(I,L,x){return c(I,L,x)},m=function(I,L,x){return function(Y,J,tt){return Y(J,tt)}(I,L,x)};return c(n.YH,this,function(I){switch(I.label){case 0:return f=w(rf),[4,_(er,m(Yn,300,-4),P8.bind(null,f,a))];case 1:return g=I.sent(),[2,function(){var L=function(x){return w(x)}(g);return function(x){return b(x,0)}(L)||function(x){return b(x,-4)}(L)?{s:L,v:{u:f,e:[],s:[]}}:{s:L,v:null}}]}})})}function P8(s,c){var a=function(g,w,b){return g(w,b)},f=function(g,w,b){return g(w,b)};return function(g,w,b,_,m){return g(w,void 0,void 0,m)}(n.sH,this,0,0,function(){var g,w,b,_,m,I,L,x,Y=function(pt,Et,ht){return a(pt,Et,ht)},J=function(pt,Et,ht){return f(pt,Et,ht)},tt=function(pt,Et){return function(ht,yt){return ht!==yt}(pt,Et)},nt=function(pt,Et,ht){return f(pt,Et,ht)},ut=function(pt,Et,ht){return function(yt,Vt,Wt){return yt(Vt,Wt)}(pt,Et,ht)};return function(pt,Et,ht){return pt(Et,ht)}(n.YH,this,function(pt){switch(pt.label){case 0:if(g=Y(M8,s,c),w=Y(U8,g,!0),b=J(Zt,w,453955339),_=J(Zt,w,1801730948),tt(b,0))return[2,b];m=Y(W8,_,c),pt.label=1;case 1:return pt.trys.push([1,,4,5]),[4,nt(Zt,m,142982734)()];case 2:return I=pt.sent(),L=J(Zt,I,453955339),x=J(Zt,I,1801730948),tt(L,0)?[2,L]:[4,ut(Zt,_,76151562)(x)];case 3:return pt.sent(),[2,0];case 4:return function(Et,ht){return a(Et,ht,107910612)}(Zt,m)(),[7];case 5:return[2]}})})}function M8(s,c){for(var a={AvCwh:"2|1|5|0|3|4",sALZI:function(_,m){return _(m)}},f=a.AvCwh.split("|"),g=0;;){switch(f[g++]){case"0":var w={};continue;case"1":b[a.sALZI(yn,1)]=a.sALZI(D8,c);continue;case"2":var b=a.sALZI(yn,0);continue;case"3":w[a.sALZI(yn,3)]=[b];continue;case"4":return w;case"5":b[a.sALZI(yn,2)]=s;continue}break}}function D8(s){var c=function(a,f){return a(f)};return c(yn,4).concat(function(a,f,g){return a(f,g)}(hc,s,c(yn,5)))}var J0=yn(6);function U8(s,c){for(var a={xqmnO:"4|3|0|2|1",SaOtC:function(_,m){return _ instanceof m},xPGBK:function(_,m){return _===m},DCAVD:function(_,m){return _(m)},fgKXx:function(_,m){return _(m)}},f=a.xqmnO.split("|"),g=0;;){switch(f[g++]){case"0":var w;continue;case"1":return{s:0,v:w};case"2":try{w=new b(s)}catch(_){if(a.SaOtC(_,Error)){if(a.xPGBK(_.name,J0))return{s:-6,v:null};if(a.DCAVD(H8,_))return{s:-9,v:null}}throw _}continue;case"3":if(!b)return{s:-3,v:null};continue;case"4":var b=c?window[a.fgKXx(yn,7)]||window[a.DCAVD(yn,8)]:window[a.DCAVD(yn,7)];continue}break}}function F8(s,c){var a,f=function(g,w){return g===w};try{return f(a=function(g,w){return g(w,34843658)}(Zt,s),null)||f(a,void 0)||a.call(s,c||Math.random().toString()),0}catch(g){if(function(w){return w instanceof Error}(g)&&f(g.name,J0))return-7;throw g}}function H8(s){return function(c,a){return c===a}(s.name,function(c){return c(9)}(yn))&&function(c,a){return c(a,3632233996)}(Zt,new RegExp(function(c){return c(10)}(yn)))(function(c,a){return c(a,3065852031)}(Zt,s))}function Oo(s){try{Zt(s,318865860)()}catch{}}function V8(s,c){var a=function(f,g,w){return f(g,w)};return function(f,g,w,b,_){return f(g,void 0,void 0,_)}(n.sH,this,0,0,function(){var f,g;return function(w,b,_){return w(b,_)}(n.YH,this,function(w){switch(w.label){case 0:try{f=function(b,_,m){return a(b,_,m)}(Zt,s,882066760)(c)}catch(b){if(!function(_,m){return function(I,L){return I instanceof L}(_,m)}(b,Error)||!function(_,m,I){return a(_,m,I)}(Zt,new RegExp(function(_){return function(m){return m(11)}(_)}(yn),"i"),3632233996)(function(_,m,I){return a(_,m,I)}(Zt,b,3065852031)))throw b;f=new Promise(function(_,m){(function(I,L){return function(x,Y,J){return a(x,Y,J)}(I,L,882066760)})(Zt,s)(_,m,c)})}return[4,f];case 1:return function(b){return function(_,m){return _===m}(b,void 0)}(g=w.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:g}]}})})}function W8(s,c){var a,f,g=function(Tt,Ft){return Tt(Ft)},w=function(Tt,Ft){return Tt===Ft},b=function(Tt,Ft,Yt){return Tt(Ft,Yt)},_=function(Tt,Ft){return Tt(Ft)},m=function(Tt,Ft){return Tt!==Ft},I=function(Tt,Ft){return Tt in Ft},L=function(Tt,Ft){return Tt in Ft},x=function(Tt){return Tt()},Y=function(Tt,Ft){return Tt(Ft)},J=function(Tt,Ft,Yt){return Tt(Ft,Yt)},tt=function(Tt,Ft,Yt){return Tt(Ft,Yt)},nt=function(Tt,Ft,Yt,ee,oe){return Tt(Ft,Yt,ee,oe)},ut=this;function pt(Tt,Ft){return g(Et,Tt)&&w(b(Zt,Tt,3920415024),400)&&b(Zt,Tt,4101391790).includes(Ft)}function Et(Tt){return w(typeof Tt,_(yn,12))&&m(Tt,null)&&I(g(yn,13),Tt)&&L(_(yn,14),Tt)}var ht=null,yt=!1;function Vt(){var Tt=function(Yt,ee){return function(oe,fe){return oe!==fe}(Yt,ee)},Ft=function(Yt,ee){return _(Yt,ee)};return nt(n.sH,this,void 0,void 0,function(){var Yt,ee,oe,fe;return function(Ae,Re,Le){return tt(Ae,Re,Le)}(n.YH,this,function(Ae){switch(Ae.label){case 0:return Yt=function(Re,Le){return Y(Re,Le)}(F8,s),Tt(Yt,0)?[2,{s:Yt,v:null}]:[4,Ft(V8,s)];case 1:return ee=Ae.sent(),oe=function(Re,Le){return J(Re,Le,453955339)}(Zt,ee),fe=function(Re,Le){return function(Ue,Fe,Pe){return Ue(Fe,Pe)}(Re,Le,1801730948)}(Zt,ee),Tt(oe,0)?[2,{s:oe,v:null}]:[2,{s:0,v:fe}]}})})}c&&tt(Zt,s,123626528)(yn(15),function(Tt){b(pt,Tt,c)&&(ht?(x(ht),ht=null,Y(Oo,s)):yt=!0)});var Wt,jt=((a={})[Wt=yn,Wt(17)]=function(){return function(Tt,Ft){return Tt(Ft)}(Oo,s)},a[function(Tt){return Tt(18)}(yn)]=function(){var Tt=function(Yt){return x(Yt)},Ft=function(Yt,ee,oe){return function(fe,Ae,Re){return fe(Ae,Re)}(Yt,ee,oe)};return nt(n.sH,ut,void 0,void 0,function(){var Yt;return Ft(n.YH,this,function(ee){switch(ee.label){case 0:return[4,Tt(Vt)];case 1:return Yt=ee.sent(),function(oe){return m(oe,0)}(Ft(Zt,Yt,453955339))&&function(oe,fe){g(oe,fe)}(Oo,s),[2,Yt]}})})},a);return c?J(Zt,Object,1914874273)(jt,((f={})[function(Tt){return Tt(19)}(yn)]=function(){w(function(Tt,Ft){return Tt(Ft,4184312542)}(Zt,s),g(yn,16))||(yt?function(Tt,Ft){Tt(Ft)}(Oo,s):ht=function(Tt,Ft,Yt,ee){return Tt(Ft,5e3,ee)}(gs,Oo,0,s))},f)):jt}var qn=Io([1158230590,352328197,922751784,234887733,1045777409,235013451,1077693209,86185296,321396490,462366,488115742,1213075980,4402479,184943903,188551425,1398147351,268897603,491523647,306988571,1261376568,269223502,570890009,34866732,470426899,403966778,253756433,304419089,491347009,508233756,403654977,421396492,1329803025,184551506,1057755406,136120322,118163754,373378420,453843998,1159464460,319444544,855642889,402851378,1191248155,151015493,219352090,67375366,17696018,1263095066,420348421,21908811,168961297,171640095,14413],k6,2);function z8(){var s=function(b,_){return b(_)},c=function(b,_){return b(_)},a=function(b,_,m){return b(_,m)},f=function(b,_){return b<_},g=function(b,_,m){return b(_,m)},w=function(b,_,m){return b(_,m)};return function(b,_,m,I,L){return b(_,void 0,void 0,L)}(n.sH,this,0,0,function(){var b,_,m,I,L,x,Y,J;return a(n.YH,this,function(tt){switch(tt.label){case 0:return function(nt){return nt()}(j4)?[2,[-1,NaN]]:(b=new Uint8Array([0]),_=s(qn,0),[4,navigator[s(qn,1)](c(qn,2),_)]);case 1:return[4,tt.sent()[c(qn,3)]()];case 2:return m=tt.sent(),[4,a(Q0,m,b)];case 3:if(I=tt.sent(),!(L=f(I,10)))return[3,5];for(x=a(g4,10,2500),Y=function(nt){return nt-1}(function(nt,ut){return nt-ut}(x,I)),J=0;f(J,Y);J++)g(K8,m,b);return[4,w(Q0,m,b)];case 4:I=tt.sent(),tt.label=5;case 5:return[2,[L?1:0,I]]}})})}function G8(){return function(c,a){return c==a}(typeof navigator[s=qn,s(1)],function(c){return c(4)}(qn));var s}function Q0(s,c){var a=function(f,g){return f(g)};return function(f,g,w,b,_){return f(g,void 0,void 0,_)}(n.sH,this,0,0,function(){var f,g=function(m,I){return a(m,I)},w=function(m,I){return a(m,I)},b=function(m,I){return a(m,I)},_=function(m,I){return a(m,I)};return function(m,I,L){return m(I,L)}(n.YH,this,function(m){switch(m.label){case 0:return[4,(f=s[g(qn,5)]())[g(qn,6)](w(qn,7),c)];case 1:return m.sent(),[2,b(Number,f[_(qn,8)])]}})})}function K8(s,c){var a=function(g,w){return g(w)},f=s[a(qn,5)]();a(_o,f[a(qn,6)](function(g){return g(7)}(qn),c))}function j8(){var s=function(c,a,f){return c(a,f)};return function(c,a,f,g,w){return c(a,void 0,void 0,w)}(n.sH,this,0,0,function(){var c=function(b){return function(_){return _()}(b)},a=function(b,_,m){return s(b,_,m)},f=function(b,_,m){return s(b,_,m)},g=function(b,_,m){return s(b,_,m)},w=this;return(0,n.YH)(this,function(b){var _=function(I){return c(I)},m=function(I,L){return function(x,Y){return function(J,tt){return J===tt}(x,Y)}(I,L)};return c(G8)?[2,f(er,g(Yn,500,{s:-2,v:null}),function(){var I=function(Y){return _(Y)},L=function(Y,J){return m(Y,J)},x=function(Y,J,tt){return function(nt,ut,pt){return a(nt,ut,pt)}(Y,J,tt)};return function(Y,J,tt,nt,ut){return function(pt,Et,ht,yt,Vt){return function(Wt,jt,Tt,Ft,Yt){return Wt(jt,Tt,Ft,Yt)}(pt,Et,ht,yt,Vt)}(Y,J,void 0,void 0,ut)}(n.sH,w,0,0,function(){var Y,J=function(tt){return I(tt)};return x(n.YH,this,function(tt){switch(tt.label){case 0:return[4,J(z8)];case 1:return function(nt){return L(nt,-1)}((Y=tt.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:Y}]}})})})]:[2,function(){return{s:-1,v:null}}]})})}var Os=Io([89472536,67911963,202988290,386077465,1866537770,1224742518,488243476,419627011,184819487,437598027,340225859,172033032,437716482,471155211,1095068177,1092107040,419499526,423762697,100665116,490210839,1194790674,673115,85280006,1510540548,2756129,939992591,1246643516,1108281098,52370449,641031181,822350097,201595136,1447512348,1107565334,605101077,923815180,201460231,369557787,421401919,370608902,386208007,1158809130,67652933,420829977,1325996060,705104933,100734005,18485518,1079117841,520555597,117716299,441132557,117836552,454886414,1079380231,235285315,167851373,438045445,354104902,218503945,1450723136,1261309460,853525,339100932,1443038736,103498560,3566862,1175192861,252709131,16777237,1984516105,1829509143,185926151,436356353,185073670,1779174662,991969605,50610456,1275666182,419565839,202771726,1124408096,135546735,168313092,253563142,135813653,822480166,72178038,222758157,52298251,454823449,56244746,1427123716,67914571,353589766,51775754,625419022,219166498,1258491144,521093188,151601409,456523793,678234648,169481234,118557701,391005526,241568771,422784012,438716682,1309089280,806492,990010373,638390299,134885451,1481180934,17176407,655231834,2049314574,84410418,220531716,167778574,105923661,106502459,185600556,170279180,1046087172,151977997,35061763,1263338788,84282176,52366156,1544356616,420816433,50605842,1229146882,1511529224,186319630,4664589,35268139,100748290,1379942427,1174536207,322636309,208471067,373756952,7684,1481509910,69665358,440083533,1174866696,403505177,1129127711,956961098,571674714,285606663,67257606,151460637,725827670,862785030,168106503,289803037,203297033,1197361671,1327110967,169477163,84548876,1840656,1325404447,537919532,1158350651,118114894,454640143,269026054,471146315,372321280,1196229131,421140297,17891399,256321038,167983925,135074069,1379942427,1174536207,523897886,187303186,16788313,1007685120,1447054106,1193610767,121055758,235738112,118572573,1091181577,956569372,1632457991,1191843846,387122178,420174362,755830297,929124171,222888474,50727960,118447621,1229986830,202905462,51517293,1159661069,219156518,1296957445,772541034,285869946,471598093,437591628,102564608,341211207,72035854,453396244,286989059,252909895,100927823,207059041,440798984,347163,218169348,389222492,3416153,1128989210,404424777,102242906,1193875213,338048784,17827353,1077939469,33558354,973080134,923734551,118361931,390678349,407312666,756351505,606227719,1078676741,1275397643,369236248,102176796,152328767,505090338,1195966464,68884054,402849858,604117287,387586598,184555596,52366851,290079565,39467274,337061379,1044450054,822546697,1309087752,202009165,100891182,1259996933,521093188,51986689,390009692,187041819,1296385283,1528366088,1539,1194856717,20458516,188762957,374080774,100861208,604249353,906778884,134487574,1444022019,51205721,688201243,275581722,638910490,553654793,438246915,1191185666,68310648,100862061,1157897218,203233559,1296957442,1829962602,35198010,17122832,1079118092,101515597,370942795,117714965,54019863,889585674,1079385113,386672195,236790637,420024595,406539288,689707789,956765442,1198474037,1091441944,102564636,119409668,205263381,108670990,151781382,1313753605,457245696,855645709,391058950,235019008,471534109,474699863,756351517,540018203,272974679,51463965,386470914,67506497,1297423660,1224806753,520230941,878058775,289625664,571801658,289411104,88480259,1641997,388317194,1477786881,50998065,521022728,202398474,33949981,1095115776,1582986863,239750725,289150477,469830174,14416],mc,2);function td(){return Os(0)}function Y8(){return(0,n.sH)(this,void 0,void 0,function(){var s,c,a;return function(f,g,w){return f(g,w)}(n.YH,this,function(f){var g=function(w,b){return function(_,m){return _(m)}(w,b)};switch(f.label){case 0:return s=function(w){return w()}(td),[4,Promise.all(s.map(q8))];case 1:return c=f.sent(),a={},s.forEach(function(w,b){var _=g(vr,w).toString(16);a[_]=c[b]}),[2,a]}})})}function q8(s){var c=function(a,f){return a(f)};return new Promise(function(a){var f=c(Os,1).concat(s,c(Os,2));try{var g=function(_,m){return _(m)}(yc,f),w=g[1],b=g[2];if(function(_){return _!==0}(w))return void function(_,m){_(m)}(a,w);b[function(_){return _(3)}(Os)](function(){return c(a,0)},function(){return function(_){return c(_,-1)}(a)})}catch{c(a,-2)}})}var $8=Un([4291220175,857170018,1001396817,1198736693],6);function ed(){var s=function(c,a,f){return c(a,f)};return(0,n.sH)(this,void 0,void 0,function(){var c=function(m){return function(I){return I()}(m)},a=function(m,I){return function(L,x){return L(x)}(m,I)},f=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)},g=function(m,I,L,x,Y){return function(J,tt,nt,ut,pt){return J(tt,nt,ut,pt)}(m,I,L,x,Y)},w=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)},b=function(m,I,L){return s(m,I,L)},_=this;return s(n.YH,this,function(m){var I=function(tt){return c(tt)},L=function(tt){return c(tt)},x=function(tt,nt){return a(tt,nt)},Y=function(tt,nt,ut){return f(tt,nt,ut)},J=function(tt,nt,ut,pt,Et){return g(tt,nt,ut,pt,Et)};switch(m.label){case 0:return[4,w(er,b(Yn,500,{s:-2,v:null}),function(){var tt=function(ut){return L(ut)},nt=function(ut,pt){return x(ut,pt)};return J(n.sH,_,void 0,void 0,function(){var ut;return function(pt,Et,ht){return Y(pt,Et,ht)}(n.YH,this,function(pt){switch(pt.label){case 0:return function(Et){return I(Et)}(td)?function(Et){return I(Et)}(U0)?(ut={s:0},[4,tt(Y8)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(ut[nt($8,0)]=pt.sent(),ut)]}})})})];case 1:return[2,m.sent()]}})})}function Z8(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function nd(){return{s:0,v:!!window.isSecureContext}}var zt=Io([37637135,1447917654,1074862848,221320987,185417728,1279479069,287641348,1585126709,277761,1427768864,1124076042,2035529,455018507,23675461,120393521,1444036433,1141263183,303105822,319645969,1275726848,36457547,388709920,101924677,1077349638,303367169,135938595,1112349448,153357637,121505586,1480802129,1141246529,839976462,805901,167780891,1160643090,511382904,402929730,1381389121,68162311,1195642647,185270282,342447173,288103456,254704215,1208027939,253560323,369581389,17177344,138102537,455935783,39531596,1195379206,236466755,203181062,1581711622,523115086,3539255,286744647,1544706816,324279305,285825290,1174470656,37573638,1530878519,353133582,353131799,133385,1476726039,1511722500,1328372255,321869181,1226406481,437012226,1090917145,1258885148,253318160,1513180693,1227046965,1410678607,1342657549,425461277,474174799,340006467,1549931597,476332332,1229857560,235819533,223288402,491280640,1142379025,36132127,186666528,223027998,1427178840,1544423503,1578239775,1310394885,136860420,1547191847,408580948,1381244166,253559122,306596941,184767552,1512328723,1228555109,693174606,1108418398,425464923,1413482013,1192695620,526847309,494081918,122363912,1532891471,408493381,1430543951,889345088,292959062,342691121,223027723,1532560969,408420677,1413482012,1192629828,510070093,494081150,122364424,442325327,1011230978,101538648,373754205,140579917,24319871,239805199,1499006537,458752325,1413482015,1192564036,1466371405,691295613,39585552,1195379206,1364738631,1413750089,186471488,154737427,321591924,454109517,1281100816,554256710,268918530,1197360921,237579847,472910394,1565618756,1393893187,135923539,135938563,370036567,37573653,1228888631,100936803,17566743,391388169,120063254,436405788,291700750,388832305,436733275,135007239,340663119,1212227414,34873431,158013954,289151081,1497971729,222381907,1212243039,286081374,408027209,24710402,1115119484,1146055183,1142444618,1543655963,68837124,1073825552,1261573663,169885754,1510962778,218959899,403528705,1258684700,1108809489,523386889,1547125292,1478042459,1477265165,223304471,289954048,471666260,1466111750,1098210424,1196255759,358111311,1448625219,1380194633,1581472325,1365728331,1148542584,1162702351,374889039,1448624963,1464080457,1497585989,1348951115,1114987896,1095593487,341334351,1516061507,1159481353,470700572,1328680725,169885755,223294735,253445402,240651031,1225806923,387399942,526713163,73549612,104933442,1397696089,303759937,167860492,18698759,239013651,326172731,1581787227,353831957,973232649,939619857,1197359924,325393500,490346033,1225074764,69022230,323956569,387799296,1427984135,355216922,1512643387,876704531,1159331841,1225989126,323486805,491724040,170532189,3932708,101063192,151264268,559176543,17187847,1174929664,292243286,108600373,201600537,1141251095,1561346096,1532632579,470363986,36047110,343480890,117930573,1850605643,558522182,67846665,1565,1197629007,1178209058,286466373,1325800471,420546127,1726481,503451194,325257995,460660088,201600525,1394279936,474962699,1195659335,252321034,35195667,3934778,286339955,1142554639,290872909,151870732,1275724032,304761931,1585119520,16939096,1312359695,1532368651,185025351,1108495628,37293381,641473077,18162246,223742993,68948301,386745862,1112345356,86776901,472667701,1443637324,1899187023,420554298,1726481,151919676,1164397570,637610752,723781750,1698308129,1127431206,707465033,707802681,1265187380,388767606,1480802134,1208360513,69211931,387799325,1279479052,103685124,319425312,286075470,1515735825,102047565,285492259,1414339852,103678021,103418662,1447896833,1074862848,137762587,388974859,1277106694,36457547,472919072,454237511,1077418262,352394518,105513287,437127707,35796994,1349864483,352593984,1412828183,319886345,71958855,1276910865,1040796747,755641088,724770675,1815160102,1126186026,892276553,135933244,842599169,389943079,558069249,1848778797,1297497917,286083655,505351716,102304258,1346111802,286423055,56118039,1645594,1195642645,252321034,303696659,555752497,1480797766,1476414232,1532368671,134306119,253434892,1265180170,120982902,1313025613,56104017,251731212,1195642641,1009400376,572076350,605364487,1447917670,2015634976,572924208,373948743,1275729152,637946955,923480324,1480793698,1326521153,822482699,1192975876,1276392517,103678468,507000870,1313029974,307910968,1381646915,1447435593,1110597189,103023173,1344872752,402815001,50726918,352800835,705519370,1280658713,354687508,790907953,453146639,1611007503,34932251,185417741,1112349725,35788869,1349864483,924139332,1141250838,69207553,387799325,1279479052,103685124,488246048,436221774,1109011463,319886848,1192427847,185404933,1165052939,490340401,1444101959,1129727262,253564170,17188919,255794444,1265179924,104602998,286339955,1142554639,307650125,204101888,472386311,1161501448,388582520,101596241,1109002254,1129861130,1193230859,470502725,1265178886,372706166,105084417,1293621766,337975065,907108096,1112349452,388629317,104339975,1447917638,1075382038,85000735,105513287,739647238,36505618,808860198,285686870,56118033,135928585,1229604118,203037771,1161758474,121326712,100940869,1280722241,305463822,1191920412,1042828613,388637490,389873945,641955329,53487654,336023619,387599367,1112348168,589568581,657988149,1480791665,1192886337,1129861120,270092311,790305804,322637571,470817841,692270405],O6,0);function X8(){var s=function(c,a){return c(a)};return s(zt,0)&&navigator[s(zt,0)]}function J8(){var s=function(c,a){return c(a)};return document[s(zt,1)](s(zt,2))[s(zt,3)](s(zt,4))}function Q8(s,c){return a=n.sH,f=function(){var g,w,b,_,m=function(L,x){return function(Y,J){return Y(J)}(L,x)},I=function(L,x,Y,J){return function(tt,nt,ut,pt){return tt(nt,ut,pt)}(L,x,Y,J)};return function(L,x,Y){return L(x,Y)}(n.YH,this,function(L){switch(L.label){case 0:return g=Array.from(function(x){return function(Y){return Y===null}(x)}(s)||function(x){return function(Y){return Y===void 0}(x)}(s)?void 0:s[m(zt,5)].values()),[4,Promise.all([I(tw,s,g,c),m(nw,s)])];case 1:return w=L.sent(),b=w[0],_=w[1],[2,[b,_,g]]}})},a(this,void 0,void 0,f);var a,f}var Ui=16;function tw(s,c,a){var f=function(ht,yt){return ht(yt)},g=function(ht,yt){return ht*yt},w=function(ht,yt){return ht(yt)},b=function(ht,yt){return ht(yt)},_=function(ht,yt){return ht+yt},m=function(ht,yt){return ht(yt)},I=function(ht,yt){return ht(yt)},L=function(ht,yt){return ht(yt)},x=function(ht,yt){return ht(yt)},Y=function(ht,yt){return ht(yt)},J=function(ht,yt){return ht(yt)},tt=function(ht,yt){return ht(yt)},nt=function(ht,yt){return ht(yt)},ut=function(ht,yt){return ht(yt)},pt=function(ht,yt){return ht+yt},Et=function(ht,yt){return ht+yt};return function(ht,yt,Vt,Wt,jt){return ht(yt,void 0,void 0,jt)}(n.sH,this,0,0,function(){var ht,yt,Vt,Wt,jt,Tt,Ft,Yt,ee,oe,fe,Ae,Re,Le,Ue,Fe,Pe,gn,Mn,Tn,$n,rr,ir,zr,fi,wr,En,Bt={LIcVF:"1|3|2|0|4",CVGyL:function(Ot,Nt){return f(Ot,Nt)},NQGua:function(Ot,Nt){return g(Ot,Nt)},IxGbO:function(Ot,Nt){return w(Ot,Nt)},qQoQh:function(Ot,Nt){return f(Ot,Nt)},eRsOG:function(Ot,Nt){return function(Qt,ae){return Qt%ae}(Ot,Nt)},sTGJP:function(Ot,Nt){return b(Ot,Nt)},bLKEM:function(Ot,Nt){return function(Qt,ae){return Qt/ae}(Ot,Nt)},BfmPO:function(Ot,Nt){return function(Qt,ae){return Qt/ae}(Ot,Nt)},qiUeQ:function(Ot,Nt){return function(Qt,ae){return Qt/ae}(Ot,Nt)},QCXCI:function(Ot,Nt){return function(Qt,ae){return Qt*ae}(Ot,Nt)},YuwoT:function(Ot,Nt){return _(Ot,Nt)},NzoFK:function(Ot,Nt){return b(Ot,Nt)},nStre:function(Ot,Nt){return m(Ot,Nt)},cgngL:function(Ot,Nt){return I(Ot,Nt)},lnSsO:function(Ot,Nt){return L(Ot,Nt)},LWtIu:function(Ot,Nt){return I(Ot,Nt)},rnbTq:function(Ot,Nt){return L(Ot,Nt)},vXgTw:function(Ot,Nt){return function(Qt,ae){return Qt|ae}(Ot,Nt)},SGWhR:function(Ot,Nt){return b(Ot,Nt)},tJskz:function(Ot,Nt){return m(Ot,Nt)},WwBMK:function(Ot,Nt){return b(Ot,Nt)},XvGWM:function(Ot,Nt){return I(Ot,Nt)},Czazt:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},TcuLX:function(Ot,Nt){return x(Ot,Nt)},qmLme:function(Ot,Nt){return Y(Ot,Nt)},DHpBv:function(Ot,Nt){return f(Ot,Nt)},GXSjU:function(Ot,Nt){return I(Ot,Nt)},lZchU:function(Ot,Nt){return function(Qt,ae){return Qt|ae}(Ot,Nt)},kdFZM:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},fjLlD:function(Ot,Nt){return J(Ot,Nt)},NZEUH:function(Ot,Nt){return L(Ot,Nt)},rMQcE:function(Ot,Nt){return Y(Ot,Nt)},cmdDW:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},fMGTS:function(Ot,Nt){return m(Ot,Nt)},Megnu:function(Ot,Nt){return tt(Ot,Nt)},dwDBV:function(Ot,Nt){return function(Qt,ae){return Qt<ae}(Ot,Nt)},UStju:"16|13|12|14|1|11|3|2|15|6|5|0|7|8|4|10|9",yPtzU:function(Ot,Nt){return function(Qt,ae){return Qt===ae}(Ot,Nt)},hIuvn:function(Ot,Nt){return tt(Ot,Nt)},LUaAI:function(Ot,Nt){return nt(Ot,Nt)},KBsRE:function(Ot,Nt){return f(Ot,Nt)},eiLib:function(Ot,Nt){return g(Ot,Nt)},gsIFj:function(Ot,Nt){return x(Ot,Nt)},ymkbA:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},RTTay:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},SXGAR:function(Ot,Nt){return ut(Ot,Nt)},rLyth:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},lnNJb:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},HtEmG:function(Ot,Nt){return g(Ot,Nt)},kEERD:function(Ot,Nt){return function(Qt,ae){return Qt+ae}(Ot,Nt)},lEDdr:function(Ot,Nt){return pt(Ot,Nt)},VfkAG:function(Ot,Nt){return _(Ot,Nt)},FQVYm:function(Ot,Nt){return nt(Ot,Nt)},rjquO:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},zCjNE:function(Ot,Nt){return ut(Ot,Nt)},HfSqy:function(Ot,Nt){return J(Ot,Nt)},xEOfR:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)},CsGxJ:function(Ot,Nt){return b(Ot,Nt)},CPukW:function(Ot,Nt){return w(Ot,Nt)},uiTcO:function(Ot,Nt){return function(Qt,ae){return Qt*ae}(Ot,Nt)},gvEcj:function(Ot,Nt){return Et(Ot,Nt)},qonBa:function(Ot,Nt){return Et(Ot,Nt)},SQuSM:function(Ot,Nt){return function(Qt,ae){return Qt+ae}(Ot,Nt)},qLjkZ:function(Ot,Nt){return function(Qt,ae){return Qt*ae}(Ot,Nt)},XMYnt:function(Ot,Nt){return pt(Ot,Nt)},YtxIQ:function(Ot,Nt){return function(Qt,ae){return Qt(ae)}(Ot,Nt)}};return function(Ot,Nt,Qt){return Ot(Nt,Qt)}(n.YH,this,function(Ot){switch(Ot.label){case 0:return[4,s[Bt.sTGJP(zt,6)]({requiredFeatures:c})];case 1:for(ht=Ot.sent(),yt=Math.PI,Vt=[[0,1,0,Bt.bLKEM(yt,7)],[1,0,0,Bt.bLKEM(yt,8)],[0,1,1,Bt.BfmPO(yt,4)],[1,2,1,Bt.qiUeQ(yt,8)]],Wt=Vt.length,jt=new Uint8Array(Bt.QCXCI(Wt,Bt.YuwoT(Bt.YuwoT(16,Ui),8))),Tt=navigator[Bt.IxGbO(zt,0)][Bt.NzoFK(zt,7)](),a[Bt.nStre(zt,8)]({device:ht,format:Tt}),Ft=ht[Bt.cgngL(zt,9)](Bt.IxGbO(zt,10)),Yt=ht[Bt.CVGyL(zt,11)]({label:Bt.IxGbO(zt,12),layout:Bt.cgngL(zt,13),vertex:{module:Ft},fragment:{module:Ft,targets:[{format:Tt}]},primitive:Bt.lnSsO(zt,14)}),ee=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],oe=new Uint8Array(Bt.cgngL(Array,Bt.NQGua(7,9)).fill(void 0).map(function(ae,bn){return ee[function(Ce){return Bt.eRsOG(Ce,3)}(bn)]}).flat()),fe=ht[Bt.CVGyL(zt,15)]({label:Bt.LWtIu(zt,16),size:[7,9],format:Bt.rnbTq(zt,17),usage:Bt.vXgTw(window[Bt.SGWhR(zt,18)][Bt.IxGbO(zt,19)],window[Bt.tJskz(zt,18)][Bt.WwBMK(zt,20)])}),ht[Bt.LWtIu(zt,21)][Bt.XvGWM(zt,22)]({texture:fe},oe,{bytesPerRow:Bt.NQGua(7,4)},{width:7,height:9}),Ae=ht[Bt.SGWhR(zt,23)](Bt.Czazt(zt,24)),Re=ht[Bt.XvGWM(zt,25)]({layout:Yt[Bt.TcuLX(zt,26)](0),entries:[{binding:0,resource:Ae},{binding:1,resource:fe[Bt.qmLme(zt,27)]()}]}),Le=Vt.map(function(ae){for(var bn=Bt.LIcVF.split("|"),Ce=0;;){switch(bn[Ce++]){case"0":Ge[Bt.CVGyL(zt,35)]();continue;case"1":var Ge=ht[Bt.CVGyL(zt,28)]({label:Bt.CVGyL(zt,29),size:Bt.NQGua(4,Float32Array[Bt.IxGbO(zt,30)]),usage:window[Bt.IxGbO(zt,31)][Bt.CVGyL(zt,32)],mappedAtCreation:!0});continue;case"2":an[Bt.CVGyL(zt,34)](ae);continue;case"3":var an=new Float32Array(Ge[Bt.IxGbO(zt,33)]());continue;case"4":return ht[Bt.CVGyL(zt,25)]({layout:Yt[Bt.qQoQh(zt,26)](1),entries:[{binding:0,resource:{buffer:Ge}}]})}break}}),Ue=ht[Bt.DHpBv(zt,36)](Bt.Czazt(zt,37)),Fe=ht[Bt.qQoQh(zt,28)]({size:Bt.QCXCI(Ue[Bt.GXSjU(zt,38)],8),usage:Bt.lZchU(window[Bt.kdFZM(zt,31)][Bt.tJskz(zt,39)],window[Bt.fjLlD(zt,31)][Bt.qmLme(zt,40)])}),Pe=ht[Bt.LWtIu(zt,28)]({size:Bt.NQGua(Fe[Bt.NZEUH(zt,41)],Wt),usage:Bt.vXgTw(window[Bt.rMQcE(zt,31)][Bt.XvGWM(zt,20)],window[Bt.cmdDW(zt,31)][Bt.fMGTS(zt,42)])}),gn={label:Bt.Megnu(zt,43),colorAttachments:Bt.qmLme(zt,44),timestampWrites:{querySet:Ue,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},En=0;Bt.dwDBV(En,Le.length);En++)for(var Nt=Bt.UStju.split("|"),Qt=0;;){switch(Nt[Qt++]){case"0":Bt.yPtzU(Pe[Bt.hIuvn(zt,58)],Bt.LUaAI(zt,59))&&Tn[Bt.KBsRE(zt,60)](Fe,0,Pe,Bt.eiLib(En,16),Fe[Bt.qQoQh(zt,41)]);continue;case"1":$n[Bt.gsIFj(zt,51)](Yt);continue;case"2":rr=window[Bt.ymkbA(zt,53)][Bt.qQoQh(zt,54)]();continue;case"3":$n[Bt.sTGJP(zt,52)](1,Mn);continue;case"4":zr=Bt.RTTay(ew,a[Bt.qmLme(zt,2)]);continue;case"5":Tn[Bt.cmdDW(zt,57)](Ue,0,Ue[Bt.hIuvn(zt,38)],Fe,0);continue;case"6":$n[Bt.SXGAR(zt,56)]();continue;case"7":ir=Tn[Bt.rLyth(zt,61)]();continue;case"8":ht[Bt.Megnu(zt,21)][Bt.RTTay(zt,62)]([ir]);continue;case"9":jt[Bt.lnNJb(zt,34)](new Uint8Array(new Float64Array([rr])[Bt.XvGWM(zt,63)]),Bt.HtEmG(En,Bt.YuwoT(Bt.kEERD(16,Ui),8)));continue;case"10":jt[Bt.cgngL(zt,34)](zr,Bt.lEDdr(8,Bt.NQGua(En,Bt.VfkAG(Bt.lEDdr(16,Ui),8))));continue;case"11":$n[Bt.FQVYm(zt,52)](0,Re);continue;case"12":Tn=ht[Bt.SGWhR(zt,48)](Bt.kdFZM(zt,49));continue;case"13":gn[Bt.rjquO(zt,45)][0][Bt.hIuvn(zt,46)]=a[Bt.CVGyL(zt,47)]()[Bt.zCjNE(zt,27)]();continue;case"14":$n=Tn[Bt.FQVYm(zt,50)](gn);continue;case"15":$n[Bt.HfSqy(zt,55)](48);continue;case"16":Mn=Le[En];continue}break}return Bt.yPtzU(Pe[Bt.xEOfR(zt,58)],Bt.CsGxJ(zt,59))?[4,Pe[Bt.DHpBv(zt,64)](window[Bt.WwBMK(zt,65)][Bt.CPukW(zt,66)])]:[3,3];case 2:for(Ot.sent(),fi=Pe[Bt.cmdDW(zt,33)](),wr=new Uint8Array(fi),En=0;Bt.dwDBV(En,Wt);En++)jt[Bt.TcuLX(zt,34)](wr[Bt.sTGJP(zt,67)](Bt.NQGua(En,Ui),Bt.uiTcO(Bt.gvEcj(En,1),Ui)),Bt.qonBa(Bt.SQuSM(8,16),Bt.qLjkZ(En,Bt.gvEcj(Bt.XMYnt(16,Ui),8))));Pe[Bt.YtxIQ(zt,35)](),Ot.label=3;case 3:return[2,Bt.GXSjU(mr,jt)]}})})}function ew(s){var c=function(a,f){return a(f)};return c(d4,c(kn,s[c(zt,68)]()))}function nw(s){var c,a=function(g,w){return g!==w},f=function(g,w){return g(w)};return function(g,w,b,_,m){return g(w,void 0,void 0,m)}(n.sH,this,0,0,function(){var g;return function(w,b,_){return w(b,_)}(n.YH,this,function(w){switch(w.label){case 0:return a(c=s[f(zt,69)],null)&&a(c,void 0)?(g=c,[3,3]):[3,1];case 1:return[4,s[f(zt,70)]()];case 2:g=w.sent(),w.label=3;case 3:return[2,g]}})})}function rd(){var s=function(a,f,g){return a(f,g)},c=this;return s(er,Yn(1e3,{s:-2,v:null}),function(){var a,f,g=function(m){return function(I){return I()}(m)},w=function(m,I,L){return s(m,I,L)},b=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)},_=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)};return a=n.sH,f=function(){var m,I,L,x,Y,J,tt;return s(n.YH,this,function(nt){switch(nt.label){case 0:return[4,g(rw)];case 1:return m=nt.sent(),function(ut,pt){return function(Et,ht){return Et!==ht}(ut,pt)}(w(Zt,m,453955339),0)?[2,m]:(I=function(ut,pt){return s(ut,pt,1801730948)}(Zt,m),L=I[0],x=I[1],[4,b(Q8,L,x)]);case 2:return Y=nt.sent(),J=Y[0],tt=Y[1],[2,{s:0,v:{s:Y[2],f:J,v:w(Zt,tt,4112659446),a:_(Zt,tt,1956208378)}}]}})},a(c,void 0,void 0,f)})}function rw(){var s,c,a=function(g,w,b){return g(w,b)},f=function(g,w,b){return g(w,b)};return s=n.sH,c=function(){var g,w,b,_,m=function(x,Y,J){return f(x,Y,J)},I=function(x){return function(Y){return Y()}(x)},L=function(x,Y,J){return f(x,Y,J)};return a(n.YH,this,function(x){switch(x.label){case 0:if(!(g=function(Y,J){return a(Y,J,3179935986)}(Zt,navigator)))return[2,{s:-3,v:null}];w=null,x.label=1;case 1:return x.trys.push([1,3,,4]),[4,m(Zt,g,1678473624)()];case 2:return w=x.sent(),[3,4];case 3:if(function(Y){return function(J,tt){return J instanceof tt}(Y,Error)}(b=x.sent())&&I(j))return[2,{s:-3,v:L(Zt,b,3065852031)}];throw b;case 4:return w?I(X8)?(_=function(Y){return function(J){return J()}(Y)}(J8))?[2,{s:0,v:[w,_]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}})},s(this,void 0,void 0,c)}function iw(){var s;return{s:0,v:(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now()}}var Wr=Un([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function ow(){var s,c,a=function(f){return f()};return s=n.sH,c=function(){var f,g=function(b){return a(b)},w=function(b,_){return function(m,I){return m(I)}(b,_)};return function(b,_,m){return b(_,m)}(n.YH,this,function(b){switch(b.label){case 0:return g(T)||function(_){return a(_)}(D)?(f={s:0},[4,g(sw)]):[3,2];case 1:return[2,(f[w(Wr,0)]=b.sent(),f)];case 2:return[2,{s:-1,v:null}]}})},s(this,void 0,void 0,c)}function sw(){var s={Blqbz:function(a,f){return a(f)},xZHoB:"2|1|3|0|4",dJhbP:function(a,f){return a(f)},SkSjD:function(a){return a()},KqpSs:function(a,f,g){return a(f,g)},hsbcg:function(a,f,g){return a(f,g)},QsyLE:function(a,f){return a(f)},BRhvx:function(a,f,g){return a(f,g)},FbvWI:function(a,f){return a(f)},iDelp:function(a,f){return a(f)}},c=new Promise(function(a){for(var f=s.xZHoB.split("|"),g=0;;){switch(f[g++]){case"0":window[s.Blqbz(Wr,5)](window[s.dJhbP(Wr,6)].debug,0,w);continue;case"1":var w;continue;case"2":var b={mXScH:function(_,m){return s.dJhbP(_,m)}};continue;case"3":s.SkSjD(T)?((w=new Error).name=" ",s.KqpSs(Zt,Object,1973166116)(w,s.dJhbP(Wr,1),{get:a.bind(null,!0)})):(w=s.hsbcg(Zt,window[s.dJhbP(Wr,2)],1297038992)(s.QsyLE(Wr,3)),s.BRhvx(Zt,Object,1973166116)(w,s.FbvWI(Wr,4),{get:function(){b.mXScH(a,!0);var _=new Error;throw _.name="",_}}));continue;case"4":window[s.iDelp(Wr,5)](function(){s.Blqbz(a,!1)});continue}break}});return s.FbvWI(_o,c)}var aw=new Set([2882888216,2306836488,1040191956,1447924955]);function cw(){return{s:0,v:h4(Navigator.prototype,aw)}}var id=Un([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function uw(){var s,c=function(a,f){return a(f,3966979758)}(Zt,new window[s=id,s(0)](""));return function(a,f){return a!==f}(typeof c,function(a){return a(1)}(id))?{s:-1,v:null}:{s:0,v:{isTrusted:c}}}var lw=function(){return{key:"bd",sources:{stage1:(s={},s.s94=X0,s),stage2:(c={},c.s106=t6,c.s154=d8,c.s158=y8,c.s160=y6,c.s97=ed,c.s70=rd,c.s152=V6,c),stage3:(a={},a.s1=f0,a.s2=d0,a.s4=h0,a.s5=p0,a.s7=g0,a.s15=m0,a.s19=v0,a.s27=y0,a.s74=w0,a.s75=b0,a.s24=P0,a.s44=T0,a.s45=x0,a.s57=H0,a.s59=_0,a.s60=E0,a.s61=R0,a.s62=S0,a.s63=A0,a.s64=I0,a.s65=k0,a.s68=O0,a.s69=B0,a.s72=M0,a.s82=V0,a.s83=W0,a.s99=nd,a.s101=X5,a.s103=J5,a.s104=Q5,a.s117=e6,a.s119=n6,a.s123=r6,a.s131=i6,a.s133=o6,a.s136=s6,a.s148=a6,a.s149=c6,a.s150=u6,a.s157=l6,a.s102=z6,a.s118=G6,a.s120=H6,a.s130=K6,a.s132=j6,a.s135=W6,a.s139=D6,a.s142=F6,a.s144=U6,a.s145=P6,a.s146=M6,a.s151=n8,a.s153=r8,a.s155=p8,a.s156=m8,a.s159=w8,a.s162=R8,a.s163=ow,a.s165=uw,a.s166=cw,a)}};var s,c,a};function fw(s,c,a,f,g,w){var b=f?[]:function(x,Y,J){return function(tt,nt){for(var ut=function(Yt,ee){return Yt<ee},pt=function(Yt,ee,oe){return Yt(ee,oe)},Et=function(Yt,ee){return Yt(ee)},ht=[],yt=0,Vt=Array.isArray(tt)?tt:[tt];ut(yt,Vt.length);yt++){var Wt=Vt[yt];if(pt(gc,Wt,Es))for(var jt=0,Tt=nt;ut(jt,Tt.length);jt++){var Ft=Tt[jt];ht.push(Et(p5,Ft))}else ht.push(Et(String,Wt))}return ht}(x,Y).map(function(tt){return hc(tt,{q:J})})}(s,c,a);if(b.length===0)return function(){return Promise.resolve({s:-1,v:null})};kr(w,function(){return{e:6}});var _=Zl(),m=qf(_),I=Date.now(),L=t0(b,dw.bind(null,5e3,w,m),hw,Math.max(10,b.length),g);return L.then(function(){return _.resolve()},function(){return _.resolve()}),function(x,Y,J,tt){return(0,n.sH)(this,void 0,void 0,function(){var nt,ut;return(0,n.YH)(this,function(pt){switch(pt.label){case 0:if(J)return[2,{s:-1,v:null}];pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,Promise.race([L,pw(I,x,Y)])];case 2:return pt.sent(),nt=function(Et){var ht=Et.result,yt=Et.failedAttempts;if(ht!==void 0)return ht;var Vt=yt[0];if(!Vt)return{s:-3,v:null};if(Vt.level===1)return Vt.error;var Wt=Vt.error,jt=Vt.endpoint;if(Wt instanceof Error){var Tt=Wt.name,Ft=Wt.message;switch(Tt){case"AbortError":return{s:-2,v:Ft};case"TimeoutError":return{s:-3,v:Ft};case"CSPError":return{s:-6,v:Ft};case"InvalidURLError":return{s:-7,v:"Invalid URL: ".concat(ci(jt,255))};case"TypeError":return{s:-4,v:Ft}}}return n0(Wt)}(L.current),kr(tt,function(){return{e:7,result:nt}}),[2,nt];case 3:throw ut=pt.sent(),kr(tt,function(){return{e:8,error:ut}}),ut;case 4:return[2]}})})}}function dw(s,c,a,f,g,w){return Ao(c,function(){return{e:9,tryNumber:g,url:f,timeout:s}},function(b){var _=b.status,m=b.getHeader,I=b.body;return{e:10,tryNumber:g,status:_,retryAfter:m("retry-after"),body:I}},function(b){return{e:11,tryNumber:g,error:b}},function(){return Yf({url:f,timeout:s,abort:w,container:a})})}function hw(s){var c=s.status,a=s.body;return c===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(a)?{result:{s:0,v:a}}:{error:{s:-5,v:ci("".concat(c,": ").concat(a),255)}}}function pw(s,c,a){return Yn(Math.min(Math.max(c,s+1e4-Date.now()),a))}function od(s){for(var c="".concat(s,"="),a=0,f=document.cookie.split(";");a<f.length;a++){for(var g=f[a],w=0;g[w]===" "&&w<g.length;)++w;if(g.indexOf(c)===w)return g.slice(w+c.length)}}function sd(s,c,a,f){var g="".concat(s,"=").concat(c),w=new Date(Date.now()+24*a*60*60*1e3),b="expires=".concat(w.toUTCString()),_=f?"domain=".concat(f):"";document.cookie=[g,"path=/",b,_,"SameSite=Lax"].join("; ")}function ad(s){var c=location.hostname,a=j();(function(f,g){var w=f.length-(f.slice(-1)==="."?1:0);do if(w=w>0?f.lastIndexOf(".",w-1):-1,g(f.slice(w+1))===!0)return!0;while(w>=0);return!1})(c,function(f){if(!a||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(f)||f===c)return s(f)})||s()}function cd(s){return"".concat(s,"_t")}function bc(s){return"".concat(s,"_lr")}function ud(s){var c,a;try{return(a=(c=localStorage==null?void 0:localStorage.getItem)===null||c===void 0?void 0:c.call(localStorage,s))!==null&&a!==void 0?a:void 0}catch{}}function _c(s,c){var a;try{(a=localStorage==null?void 0:localStorage.setItem)===null||a===void 0||a.call(localStorage,s,c)}catch{}}function gw(s){var c=function(g){return[od(g),ud(g)]}(cd(s)),a=c[0],f=c[1];return a=ld(a),f=ld(f),a!==void 0&&f!==void 0?{s:0,v:a||f}:a!==void 0?{s:1,v:a}:f!==void 0?{s:2,v:f}:{s:-1,v:null}}function ld(s){return s&&s.length<=1e3?s:void 0}var mw=function(){return{key:"id",sources:{stage1:(s={},s.s94=X0,s),stage2:(c={},c.s52=v6,c.s6=I5,c.s58=E6,c.s20=E5,c.s36=R5,c.s51=S5,c.s21=A5,c.s79=N6,c.s69=B0,c.s23=$6,c.s29=Y6,c.s84=X6,c.s85=Q6,c.s89=I6,c.s17=B5,c.s87=v8,c.s92=_8,c.s93=b8,c.s95=j8,c.s97=ed,c.s70=rd,c),stage3:(a={},a.s22=C6,a.s30=L6,a.s33=d6,a.s44=T0,a.s45=x0,a.s49=h6,a.s50=g6,a.s57=H0,a.s59=_0,a.s60=E0,a.s61=R0,a.s62=S0,a.s63=A0,a.s64=I0,a.s65=k0,a.s66=q5,a.s68=O0,a.s71=A6,a.s24=P0,a.s72=M0,a.s1=f0,a.s2=d0,a.s3=k5,a.s4=h0,a.s5=p0,a.s7=g0,a.s9=O5,a.s10=T5,a.s11=N5,a.s12=J6,a.s13=x5,a.s14=L5,a.s15=m0,a.s16=C5,a.s19=v0,a.s27=y0,a.s28=P5,a.s32=M5,a.s37=D5,a.s41=U5,a.s39=F5,a.s42=H5,a.s38=V5,a.s43=W5,a.s40=G5,a.s46=K5,a.s80=j5,a.s81=Y5,a.s82=V0,a.s83=W0,a.s86=e8,a.s91=z5,a.s96=$5,a.s98=Z8,a.s99=nd,a.s200=iw,a.s201=f6,a.s202=Z5,a.s74=w0,a.s75=b0,a.s76=m6,a)},tls:fw,toRequest:function(f,g){return(0,n.sH)(this,void 0,void 0,function(){var w,b,_,m,I,L;return(0,n.YH)(this,function(x){switch(x.label){case 0:return w=location.href,b=document.referrer,[4,Promise.all([w&&As(w,g),b&&As(b,g)])];case 1:return _=x.sent(),m=_[0],I=_[1],[2,(L={},L.url=m,L.cr=I||void 0,L.s55=gw(f),L.s48=B6(),L)]}})})},onResponse:function(f,g){var w,b,_;(function(m,I){var L=cd(m);I&&function(x,Y){(function(J,tt){ad(function(nt){(function(ut,pt){sd(ut,"",-1,pt)})(J,nt)}),ad(function(nt){return sd(J,tt,365,nt),od(J)===tt})})(Y,x),_c(Y,x)}(I,L)})(g,(_=(b=(w=f.products)===null||w===void 0?void 0:w.identification)===null||b===void 0?void 0:b.data)===null||_===void 0?void 0:_.visitorToken)}};var s,c,a},vw=function(){return{key:"si",sources:{stage2:(s={},s.s77=C8,s)}};var s},fd=[3,7];function Ec(s){var c=ud(s);if(!c)return[];try{var a=c?JSON.parse(c):[];return Array.isArray(a)?a:[]}catch{return[]}}function dd(s){var c={};return new Set(s).forEach(function(a){var f=function(w){if(!URL.prototype)return w;try{return new URL(w,window.location.origin).toString()}catch{return w}}(a),g=performance.getEntriesByName(f,"resource");c[a]=g}),c}function Rc(s,c,a,f,g,w){for(var b,_=[],m=0,I=s;m<I.length;m++){var L=I[m],x=L.event;x.e!==a&&x.e!==f&&x.e!==g||x.stage===w&&((_[b=x.tryNumber]||(_[b]={}))[x.e]=L)}return _.map(function(Y){var J,tt,nt,ut,pt,Et,ht=(J=Y[a])===null||J===void 0?void 0:J.timestamp,yt=(nt=(tt=Y[f])===null||tt===void 0?void 0:tt.timestamp)!==null&&nt!==void 0?nt:(ut=Y[g])===null||ut===void 0?void 0:ut.timestamp,Vt=(pt=Y[a])===null||pt===void 0?void 0:pt.event.url,Wt=(Et=Y[g])===null||Et===void 0?void 0:Et.event.error;return ht&&yt&&Vt?hd(Vt,ht,yt,Wt,c[Vt]):null}).filter(function(Y){return!!Y})}function hd(s,c,a,f,g){var w,b=function(_,m,I){if(_){for(var L,x=_.length-1;x>=0;x--){var Y=_[x];if(Y.startTime<m-1)break;Y.responseEnd<=I+1&&(L=Y)}return L}}(g,c,a);return(w={}).s=Or(b?.startTime)||Math.round(c),w.e=Or(b?.responseEnd)||Math.round(a),w.u=s||null,w.er=f?String(f):null,w.ds=Or(b?.domainLookupStart),w.de=Or(b?.domainLookupEnd),w.cs=Or(b?.connectStart),w.css=Or(b?.secureConnectionStart),w.ce=Or(b?.connectEnd),w.qs=Or(b?.requestStart),w.ss=Or(b?.responseStart),w}function Or(s){return typeof s=="number"?s===0?null:Math.round(s):null}function Ts(s){var c,a=(c=performance.timeOrigin)!==null&&c!==void 0?c:Date.now()-performance.now();return Math.round(s.getTime()-a)}var yw=function(){var s=function(){var a={},f=[],g=[],w=!1,b=Pi(document,"visibilitychange",_);function _(){var I;g.push(((I={}).t=Math.round(performance.now()),I.s=fc()?"v":"h",I))}function m(I,L){for(var x,Y,J,tt,nt,ut,pt,Et,ht,yt,Vt,Wt,jt=function(Qt,ae,bn){var Ce=[];return Qt[ae]&&(Ce.push.apply(Ce,Qt[ae].commonEvents),bn!==void 0&&Ce.push.apply(Ce,Qt[ae].getCalls[bn]||[])),Ce}(a,I,L),Tt={},Ft=0,Yt=jt;Ft<Yt.length;Ft++){var ee=Yt[Ft];Tt[ee.event.e]=ee}var oe=(Y=Tt[4])!==null&&Y!==void 0?Y:Tt[5];if(Tt[0]&&Tt[1]&&Tt[3]&&Tt[12]&&oe){var fe=Tt[0].event.options,Ae=fe.token,Re=fe.apiKey,Le=Re===void 0?Ae:Re,Ue=fe.storageKey,Fe=Ue===void 0?lf:Ue,Pe=fe.modules,gn=fe.ldi,Mn=fe.aggressiveOptimization,Tn=Mn!==void 0&&Mn,$n=fe.optimizeRepeatedVisits,rr=$n!==void 0&&$n;if(Le){var ir,zr,fi=Math.min(Tt[0].timestamp,Ts((J=gn?.attempts[0].startedAt)!==null&&J!==void 0?J:new Date("8524-04-28"))),wr=(tt=Tt[5])===null||tt===void 0?void 0:tt.event.error,En=(nt=Tt[4])===null||nt===void 0?void 0:nt.event.result,Bt=(ut=Tt[13])!==null&&ut!==void 0?ut:Tt[14],Ot=dd(f),Nt=((x={}).v="1",x.dt=new Date().toISOString(),x.ci=e0(),x.pi=Gf(),x.ai=I,x.ri=Eo(12),x.c=Le,x.rid=(Et=(pt=En?.requestId)!==null&&pt!==void 0?pt:wr?.requestId)!==null&&Et!==void 0?Et:null,x.er=(ht=wr?.message)!==null&&ht!==void 0?ht:null,x.mo=Pe.map(function(Qt){return Qt.key}).filter(function(Qt){return!!Qt}),x.sa=(ir=(yt=gn?.attempts)!==null&&yt!==void 0?yt:[],zr=dd(ir.map(function(Qt){return Qt.url}).filter(function(Qt){return!!Qt})),ir.map(function(Qt,ae){var bn=ir.length>1&&ae<ir.length-1&&!("error"in Qt);return hd(Qt.url,Ts(Qt.startedAt),Ts(Qt.finishedAt),bn?"Unknown":Qt.error,zr[Qt.url])})),x.ls=Tt[0].timestamp,x.le=Tt[1].timestamp,x.ca=Rc(jt,Ot,9,10,11),x.ss=Tt[12].timestamp,x.se=(Vt=Bt?.timestamp)!==null&&Vt!==void 0?Vt:null,x.sd=function(Qt){var ae,bn=(ae=Qt[13])===null||ae===void 0?void 0:ae.event.result;if(!bn)return{};var Ce={};for(var Ge in bn)Ce[Ge]=Math.round(bn[Ge].duration);return Ce}(Tt),x.gs=Tt[3].timestamp,x.ge=oe.timestamp,x.fa=Rc(jt,Ot,18,19,20,0),x.ia=Rc(jt,Ot,18,19,20,1),x.vs=function(Qt,ae,bn,Ce){for(var Ge=function(Fn,or){var Kr,jr;return(0,n.YH)(this,function(Tr){switch(Tr.label){case 0:Kr=0,jr=0,Tr.label=1;case 1:return Kr<Fn.length&&jr<or.length?function(Aw,Iw){return Aw.t<Iw.t}(Fn[Kr],or[jr])?[4,Fn[Kr]]:[3,3]:[3,6];case 2:return Tr.sent(),Kr++,[3,5];case 3:return[4,or[jr]];case 4:Tr.sent(),jr++,Tr.label=5;case 5:return[3,1];case 6:return Kr<Fn.length?[4,Fn[Kr]]:[3,9];case 7:Tr.sent(),Tr.label=8;case 8:return Kr++,[3,6];case 9:return jr<or.length?[4,or[jr]]:[3,12];case 10:Tr.sent(),Tr.label=11;case 11:return jr++,[3,9];case 12:return[2]}})}(Qt.map(function(Fn){var or;return(or={}).t=Ts(Fn.time),or.s=Fn.state==="visible"?"v":"h",or}),ae),an=[],xn=void 0,Gr=function(){var Fn;an.length===0&&xn!==void 0&&an.push(((Fn={}).t=bn,Fn.s=xn,Fn))};an.length<100;){var To=Ge.next();if(To.done)break;var Fi=To.value,Hi=Fi.t,No=Fi.s;if(Hi>Ce)break;Hi<bn?xn=No:No!==xn&&(Gr(),an.push(Fi),xn=No)}return Gr(),an}((Wt=gn?.visibilityStates)!==null&&Wt!==void 0?Wt:[],g,fi,oe.timestamp),x.ab=Tt[1].event.ab,x.ao=Tn,x.or=rr,x);(function(Qt,ae){(function(bn,Ce){var Ge=bc(Ce),an=Ec(Ge)||[];an.splice(0,an.length-2);var xn=i0(gf(bn),fd,3,7);an.push([bn.ri,mr(xn)]),_c(Ge,JSON.stringify(an))})(Qt,ae)})(Nt,Fe)}}}return _(),{addEvent:function(I){if(!w)switch(function(L){var x=L.event,Y=x.agentId;if(a[Y]||(a[Y]={commonEvents:[],getCalls:{}}),Zf(x)){var J=x.getCallId;a[Y].getCalls[J]||(a[Y].getCalls[J]=[]),a[Y].getCalls[J].push(L)}else a[Y].commonEvents.push(L)}({timestamp:Math.round(performance.now()),event:I}),I.e){case 9:case 18:f.push(I.url);break;case 4:case 5:m(I.agentId,I.getCallId)}},destroy:function(){w=!0,b()}}}(),c=new Set;return{toRequest:function(a){var f,g=function(w){var b=Ec(bc(w))||[],_=[];return b.forEach(function(m){try{var I=Ss(pc(ys(m[1]),fd,7));_.push(I)}catch{}}),_}(a);return c=new Set(g.map(function(w){return w.ri})),(f={}).lr=g,f},onResponse:function(a,f){(function(g,w){var b=bc(g);if(w.size!==0){var _=Ec(b).filter(function(m){return!w.has(m[0])});_.length!==0?_c(b,JSON.stringify(_)):function(m){var I;try{(I=localStorage==null?void 0:localStorage.removeItem)===null||I===void 0||I.call(localStorage,m)}catch{}}(b)}})(f,c)},addEvent:s.addEvent,destroy:s.destroy}},ww=function(s){return{addEvent:C4(s)}},bw=function(s){return{addEvent:Z4(s)}},Ns="API key required",xs="API key not found",Ls="API key expired",pd="Request cannot be parsed",gd="Request failed",md="Request failed to process",vd="Too many requests, rate limit exceeded",yd="Not available for this origin",wd="Not available with restricted header",_w=Ns,Ew=xs,Rw=Ls,Sw={load:l0,defaultEndpoint:_s,defaultTlsEndpoint:Es,ERROR_CLIENT_TIMEOUT:oc,ERROR_NETWORK_CONNECTION:sc,ERROR_NETWORK_ABORT:ac,ERROR_WRONG_REGION:If,ERROR_SUBSCRIPTION_NOT_ACTIVE:kf,ERROR_API_KEY_MISSING:Ns,ERROR_API_KEY_INVALID:xs,ERROR_API_KEY_EXPIRED:Ls,ERROR_BAD_REQUEST_FORMAT:pd,ERROR_BAD_RESPONSE_FORMAT:cc,ERROR_GENERAL_SERVER_FAILURE:gd,ERROR_SERVER_TIMEOUT:md,ERROR_RATE_LIMIT:vd,ERROR_FORBIDDEN_ORIGIN:yd,ERROR_FORBIDDEN_HEADER:wd,ERROR_UNSUPPORTED_VERSION:Of,ERROR_INSTALLATION_METHOD_RESTRICTED:Tf,ERROR_FORBIDDEN_ENDPOINT:Nf,ERROR_CSP_BLOCK:uc,ERROR_INTEGRATION_FAILURE:xf,ERROR_INVALID_ENDPOINT:lc,ERROR_NETWORK_RESTRICTED:Cf,ERROR_INVALID_PROXY_INTEGRATION_SECRET:Bf,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:Pf,ERROR_TOKEN_MISSING:Ns,ERROR_TOKEN_INVALID:xs,ERROR_TOKEN_EXPIRED:Ls}},568:function(r,t,e){e.r(t),e.d(t,{componentsToDebugString:function(){return vt},default:function(){return R},getFullscreenElement:function(){return D},getScreenFrame:function(){return Ut},hashComponents:function(){return xt},isAndroid:function(){return Z},isChromium:function(){return kt},isDesktopSafari:function(){return h},isEdgeHTML:function(){return wt},isGecko:function(){return T},isTrident:function(){return gt},isWebKit:function(){return q},load:function(){return U},loadSources:function(){return Rt},murmurX64Hash128:function(){return k},prepareForSources:function(){return Gt},sources:function(){return lt},transformSource:function(){return At},withIframe:function(){return X}});var n=e(635),o="3.4.2";function i(A,V){return new Promise(function(W){return setTimeout(W,A,V)})}function u(A){return!!A&&typeof A.then=="function"}function d(A,V){try{var W=A();u(W)?W.then(function(it){return V(!0,it)},function(it){return V(!1,it)}):V(!0,W)}catch(it){V(!1,it)}}function l(A,V,W){return W===void 0&&(W=16),(0,n.sH)(this,void 0,void 0,function(){var it,Lt,Ct,Dt;return(0,n.YH)(this,function(Mt){switch(Mt.label){case 0:it=Array(A.length),Lt=Date.now(),Ct=0,Mt.label=1;case 1:return Ct<A.length?(it[Ct]=V(A[Ct],Ct),(Dt=Date.now())>=Lt+W?(Lt=Dt,[4,i(0)]):[3,3]):[3,4];case 2:Mt.sent(),Mt.label=3;case 3:return++Ct,[3,1];case 4:return[2,it]}})})}function v(A){A.then(void 0,function(){})}function S(A,V){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],V=[V[0]>>>16,65535&V[0],V[1]>>>16,65535&V[1]];var W=[0,0,0,0];return W[3]+=A[3]+V[3],W[2]+=W[3]>>>16,W[3]&=65535,W[2]+=A[2]+V[2],W[1]+=W[2]>>>16,W[2]&=65535,W[1]+=A[1]+V[1],W[0]+=W[1]>>>16,W[1]&=65535,W[0]+=A[0]+V[0],W[0]&=65535,[W[0]<<16|W[1],W[2]<<16|W[3]]}function O(A,V){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],V=[V[0]>>>16,65535&V[0],V[1]>>>16,65535&V[1]];var W=[0,0,0,0];return W[3]+=A[3]*V[3],W[2]+=W[3]>>>16,W[3]&=65535,W[2]+=A[2]*V[3],W[1]+=W[2]>>>16,W[2]&=65535,W[2]+=A[3]*V[2],W[1]+=W[2]>>>16,W[2]&=65535,W[1]+=A[1]*V[3],W[0]+=W[1]>>>16,W[1]&=65535,W[1]+=A[2]*V[2],W[0]+=W[1]>>>16,W[1]&=65535,W[1]+=A[3]*V[1],W[0]+=W[1]>>>16,W[1]&=65535,W[0]+=A[0]*V[3]+A[1]*V[2]+A[2]*V[1]+A[3]*V[0],W[0]&=65535,[W[0]<<16|W[1],W[2]<<16|W[3]]}function C(A,V){return(V%=64)==32?[A[1],A[0]]:V<32?[A[0]<<V|A[1]>>>32-V,A[1]<<V|A[0]>>>32-V]:(V-=32,[A[1]<<V|A[0]>>>32-V,A[0]<<V|A[1]>>>32-V])}function N(A,V){return(V%=64)==0?A:V<32?[A[0]<<V|A[1]>>>32-V,A[1]<<V]:[A[1]<<V-32,0]}function B(A,V){return[A[0]^V[0],A[1]^V[1]]}function M(A){return A=B(A,[0,A[0]>>>1]),A=B(A=O(A,[4283543511,3981806797]),[0,A[0]>>>1]),B(A=O(A,[3301882366,444984403]),[0,A[0]>>>1])}function F(A,V){V=V||0;var W,it=(A=A||"").length%16,Lt=A.length-it,Ct=[0,V],Dt=[0,V],Mt=[0,0],rt=[0,0],Kt=[2277735313,289559509],be=[1291169091,658871167];for(W=0;W<Lt;W+=16)Mt=[255&A.charCodeAt(W+4)|(255&A.charCodeAt(W+5))<<8|(255&A.charCodeAt(W+6))<<16|(255&A.charCodeAt(W+7))<<24,255&A.charCodeAt(W)|(255&A.charCodeAt(W+1))<<8|(255&A.charCodeAt(W+2))<<16|(255&A.charCodeAt(W+3))<<24],rt=[255&A.charCodeAt(W+12)|(255&A.charCodeAt(W+13))<<8|(255&A.charCodeAt(W+14))<<16|(255&A.charCodeAt(W+15))<<24,255&A.charCodeAt(W+8)|(255&A.charCodeAt(W+9))<<8|(255&A.charCodeAt(W+10))<<16|(255&A.charCodeAt(W+11))<<24],Mt=C(Mt=O(Mt,Kt),31),Ct=S(Ct=C(Ct=B(Ct,Mt=O(Mt,be)),27),Dt),Ct=S(O(Ct,[0,5]),[0,1390208809]),rt=C(rt=O(rt,be),33),Dt=S(Dt=C(Dt=B(Dt,rt=O(rt,Kt)),31),Ct),Dt=S(O(Dt,[0,5]),[0,944331445]);switch(Mt=[0,0],rt=[0,0],it){case 15:rt=B(rt,N([0,A.charCodeAt(W+14)],48));case 14:rt=B(rt,N([0,A.charCodeAt(W+13)],40));case 13:rt=B(rt,N([0,A.charCodeAt(W+12)],32));case 12:rt=B(rt,N([0,A.charCodeAt(W+11)],24));case 11:rt=B(rt,N([0,A.charCodeAt(W+10)],16));case 10:rt=B(rt,N([0,A.charCodeAt(W+9)],8));case 9:rt=O(rt=B(rt,[0,A.charCodeAt(W+8)]),be),Dt=B(Dt,rt=O(rt=C(rt,33),Kt));case 8:Mt=B(Mt,N([0,A.charCodeAt(W+7)],56));case 7:Mt=B(Mt,N([0,A.charCodeAt(W+6)],48));case 6:Mt=B(Mt,N([0,A.charCodeAt(W+5)],40));case 5:Mt=B(Mt,N([0,A.charCodeAt(W+4)],32));case 4:Mt=B(Mt,N([0,A.charCodeAt(W+3)],24));case 3:Mt=B(Mt,N([0,A.charCodeAt(W+2)],16));case 2:Mt=B(Mt,N([0,A.charCodeAt(W+1)],8));case 1:Mt=O(Mt=B(Mt,[0,A.charCodeAt(W)]),Kt),Ct=B(Ct,Mt=O(Mt=C(Mt,31),be))}return Ct=S(Ct=B(Ct,[0,A.length]),Dt=B(Dt,[0,A.length])),Dt=S(Dt,Ct),Ct=S(Ct=M(Ct),Dt=M(Dt)),Dt=S(Dt,Ct),("00000000"+(Ct[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ct[1]>>>0).toString(16)).slice(-8)+("00000000"+(Dt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Dt[1]>>>0).toString(16)).slice(-8)}function G(A){return parseInt(A)}function Q(A){return parseFloat(A)}function et(A,V){return typeof A=="number"&&isNaN(A)?V:A}function ct(A){return A.reduce(function(V,W){return V+(W?1:0)},0)}function ft(A,V){if(V===void 0&&(V=1),Math.abs(V)>=1)return Math.round(A/V)*V;var W=1/V;return Math.round(A*W)/W}function ot(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function bt(A){return typeof A!="function"}function Rt(A,V,W){var it=Object.keys(A).filter(function(Ct){return!function(Dt,Mt){for(var rt=0,Kt=Dt.length;rt<Kt;++rt)if(Dt[rt]===Mt)return!0;return!1}(W,Ct)}),Lt=l(it,function(Ct){return function(Dt,Mt){var rt=new Promise(function(Kt){var be=Date.now();d(Dt.bind(null,Mt),function(){for(var ie=[],se=0;se<arguments.length;se++)ie[se]=arguments[se];var ye=Date.now()-be;if(!ie[0])return Kt(function(){return{error:ot(ie[1]),duration:ye}});var de=ie[1];if(bt(de))return Kt(function(){return{value:de,duration:ye}});Kt(function(){return new Promise(function(le){var sn=Date.now();d(de,function(){for(var Se=[],Te=0;Te<arguments.length;Te++)Se[Te]=arguments[Te];var wn=ye+Date.now()-sn;if(!Se[0])return le({error:ot(Se[1]),duration:wn});le({value:Se[1],duration:wn})})})})})});return v(rt),function(){return rt.then(function(Kt){return Kt()})}}(A[Ct],V)});return v(Lt),function(){return(0,n.sH)(this,void 0,void 0,function(){var Ct,Dt,Mt,rt;return(0,n.YH)(this,function(Kt){switch(Kt.label){case 0:return[4,Lt];case 1:return[4,l(Kt.sent(),function(be){var ie=be();return v(ie),ie})];case 2:return Ct=Kt.sent(),[4,Promise.all(Ct)];case 3:for(Dt=Kt.sent(),Mt={},rt=0;rt<it.length;++rt)Mt[it[rt]]=Dt[rt];return[2,Mt]}})})}}function At(A,V){var W=function(it){return bt(it)?V(it):function(){var Lt=it();return u(Lt)?Lt.then(V):V(Lt)}};return function(it){var Lt=A(it);return u(Lt)?Lt.then(W):W(Lt)}}function gt(){var A=window,V=navigator;return ct(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in V,"msPointerEnabled"in V])>=4}function wt(){var A=window,V=navigator;return ct(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in V,"msSaveBlob"in V])>=3&&!gt()}function kt(){var A=window,V=navigator;return ct(["webkitPersistentStorage"in V,"webkitTemporaryStorage"in V,V.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in A,"BatteryManager"in A,"webkitMediaStream"in A,"webkitSpeechGrammar"in A])>=5}function q(){var A=window,V=navigator;return ct(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,V.vendor.indexOf("Apple")===0,"getStorageUpdates"in V,"WebKitMediaKeys"in A])>=4}function h(){var A=window;return ct(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function T(){var A,V,W=window;return ct(["buildID"in navigator,"MozAppearance"in((V=(A=document.documentElement)===null||A===void 0?void 0:A.style)!==null&&V!==void 0?V:{}),"onmozfullscreenchange"in W,"mozInnerScreenX"in W,"CSSMozDocumentRule"in W,"CanvasCaptureMediaStream"in W])>=4}function D(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function Z(){var A=kt(),V=T();if(!A&&!V)return!1;var W=window;return ct(["onorientationchange"in W,"orientation"in W,A&&!("SharedWorker"in W),V&&/android/i.test(navigator.appVersion)])>=2}function j(A){var V=new Error(A);return V.name=A,V}function X(A,V,W){var it,Lt,Ct;return W===void 0&&(W=50),(0,n.sH)(this,void 0,void 0,function(){var Dt,Mt;return(0,n.YH)(this,function(rt){switch(rt.label){case 0:Dt=document,rt.label=1;case 1:return Dt.body?[3,3]:[4,i(W)];case 2:return rt.sent(),[3,1];case 3:Mt=Dt.createElement("iframe"),rt.label=4;case 4:return rt.trys.push([4,,10,11]),[4,new Promise(function(Kt,be){var ie=!1,se=function(){ie=!0,Kt()};Mt.onload=se,Mt.onerror=function(le){ie=!0,be(le)};var ye=Mt.style;ye.setProperty("display","block","important"),ye.position="absolute",ye.top="0",ye.left="0",ye.visibility="hidden",V&&"srcdoc"in Mt?Mt.srcdoc=V:Mt.src="about:blank",Dt.body.appendChild(Mt);var de=function(){var le,sn;ie||(((sn=(le=Mt.contentWindow)===null||le===void 0?void 0:le.document)===null||sn===void 0?void 0:sn.readyState)==="complete"?se():setTimeout(de,10))};de()})];case 5:rt.sent(),rt.label=6;case 6:return!((Lt=(it=Mt.contentWindow)===null||it===void 0?void 0:it.document)===null||Lt===void 0)&&Lt.body?[3,8]:[4,i(W)];case 7:return rt.sent(),[3,6];case 8:return[4,A(Mt,Mt.contentWindow)];case 9:return[2,rt.sent()];case 10:return(Ct=Mt.parentNode)===null||Ct===void 0||Ct.removeChild(Mt),[7];case 11:return[2]}})})}function at(A){for(var V=function(Kt){for(var be,ie,se="Unexpected syntax '".concat(Kt,"'"),ye=/^\s*([a-z-]*)(.*)$/i.exec(Kt),de=ye[1]||void 0,le={},sn=/([.:#][\w-]+|\[.+?\])/gi,Se=function(Ye,Ir){le[Ye]=le[Ye]||[],le[Ye].push(Ir)};;){var Te=sn.exec(ye[2]);if(!Te)break;var wn=Te[0];switch(wn[0]){case".":Se("class",wn.slice(1));break;case"#":Se("id",wn.slice(1));break;case"[":var Ve=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(wn);if(!Ve)throw new Error(se);Se(Ve[1],(ie=(be=Ve[4])!==null&&be!==void 0?be:Ve[5])!==null&&ie!==void 0?ie:"");break;default:throw new Error(se)}}return[de,le]}(A),W=V[0],it=V[1],Lt=document.createElement(W??"div"),Ct=0,Dt=Object.keys(it);Ct<Dt.length;Ct++){var Mt=Dt[Ct],rt=it[Mt].join(" ");Mt==="style"?K(Lt.style,rt):Lt.setAttribute(Mt,rt)}return Lt}function K(A,V){for(var W=0,it=V.split(";");W<it.length;W++){var Lt=it[W],Ct=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Lt);if(Ct){var Dt=Ct[1],Mt=Ct[2],rt=Ct[4];A.setProperty(Dt,Mt,rt||"")}}}var p=["monospace","sans-serif","serif"],E=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function z(A){return A.toDataURL()}var $,dt,_t=2500;function Ut(){var A=this;return function(){if(dt===void 0){var V=function(){var W=Pt();ve(W)?dt=setTimeout(V,_t):($=W,dt=void 0)};V()}}(),function(){return(0,n.sH)(A,void 0,void 0,function(){var V;return(0,n.YH)(this,function(W){switch(W.label){case 0:return ve(V=Pt())?$?[2,(0,n.fX)([],$,!0)]:D()?[4,(it=document,(it.exitFullscreen||it.msExitFullscreen||it.mozCancelFullScreen||it.webkitExitFullscreen).call(it))]:[3,2]:[3,2];case 1:W.sent(),V=Pt(),W.label=2;case 2:return ve(V)||($=V),[2,V]}var it})})}}function Pt(){var A=screen;return[et(Q(A.availTop),null),et(Q(A.width)-Q(A.availWidth)-et(Q(A.availLeft),0),null),et(Q(A.height)-Q(A.availHeight)-et(Q(A.availTop),0),null),et(Q(A.availLeft),null)]}function ve(A){for(var V=0;V<4;++V)if(A[V])return!1;return!0}function pe(A){var V;return(0,n.sH)(this,void 0,void 0,function(){var W,it,Lt,Ct,Dt,Mt,rt;return(0,n.YH)(this,function(Kt){switch(Kt.label){case 0:for(W=document,it=W.createElement("div"),Lt=new Array(A.length),Ct={},ue(it),rt=0;rt<A.length;++rt)(Dt=at(A[rt])).tagName==="DIALOG"&&Dt.show(),ue(Mt=W.createElement("div")),Mt.appendChild(Dt),it.appendChild(Mt),Lt[rt]=Dt;Kt.label=1;case 1:return W.body?[3,3]:[4,i(50)];case 2:return Kt.sent(),[3,1];case 3:W.body.appendChild(it);try{for(rt=0;rt<A.length;++rt)Lt[rt].offsetParent||(Ct[A[rt]]=!0)}finally{(V=it.parentNode)===null||V===void 0||V.removeChild(it)}return[2,Ct]}})})}function ue(A){A.style.setProperty("display","block","important")}function _e(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function we(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function Ee(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function je(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function xe(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var y=Math,P=function(){return 0},H={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},lt={fonts:function(){return X(function(A,V){var W=V.document,it=W.body;it.style.fontSize="48px";var Lt=W.createElement("div"),Ct={},Dt={},Mt=function(ie){var se=W.createElement("span"),ye=se.style;return ye.position="absolute",ye.top="0",ye.left="0",ye.fontFamily=ie,se.textContent="mmMwWLliI0O&1",Lt.appendChild(se),se},rt=p.map(Mt),Kt=function(){for(var ie={},se=function(le){ie[le]=p.map(function(sn){return function(Se,Te){return Mt("'".concat(Se,"',").concat(Te))}(le,sn)})},ye=0,de=E;ye<de.length;ye++)se(de[ye]);return ie}();it.appendChild(Lt);for(var be=0;be<p.length;be++)Ct[p[be]]=rt[be].offsetWidth,Dt[p[be]]=rt[be].offsetHeight;return E.filter(function(ie){return se=Kt[ie],p.some(function(ye,de){return se[de].offsetWidth!==Ct[ye]||se[de].offsetHeight!==Dt[ye]});var se})})},domBlockers:function(A){var V=(A===void 0?{}:A).debug;return(0,n.sH)(this,void 0,void 0,function(){var W,it,Lt,Ct,Dt;return(0,n.YH)(this,function(Mt){switch(Mt.label){case 0:return q()||Z()?(rt=atob,W={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',rt("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",rt("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",rt("LnNwb25zb3JpdA=="),".ylamainos",rt("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",rt("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",rt("LmhlYWRlci1ibG9ja2VkLWFk"),rt("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",rt("I2FkXzMwMFgyNTA="),rt("I2Jhbm5lcmZsb2F0MjI="),rt("I2NhbXBhaWduLWJhbm5lcg=="),rt("I0FkLUNvbnRlbnQ=")],adGuardChinese:[rt("LlppX2FkX2FfSA=="),rt("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",rt("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),rt("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",rt("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",rt("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",rt("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),rt("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),rt("LmFkZ29vZ2xl"),rt("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[rt("YW1wLWF1dG8tYWRz"),rt("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",rt("I2FkX2ludmlld19hcmVh")],adGuardRussian:[rt("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),rt("LnJlY2xhbWE="),'div[id^="smi2adblock"]',rt("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[rt("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),rt("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",rt("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),rt("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),rt("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",rt("I3Jla2xhbWk="),rt("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),rt("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),rt("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[rt("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",rt("LndpZGdldF9wb19hZHNfd2lkZ2V0"),rt("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",rt("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[rt("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),rt("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",rt("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",rt("I3Jla2xhbW5pLWJveA=="),rt("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",rt("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[rt("I2FkdmVydGVudGll"),rt("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",rt("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",rt("LnNwb25zb3JsaW5rZ3J1ZW4="),rt("I3dlcmJ1bmdza3k="),rt("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),rt("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[rt("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",rt("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[rt("LnJla2xhbW9zX3RhcnBhcw=="),rt("LnJla2xhbW9zX251b3JvZG9z"),rt("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),rt("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),rt("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[rt("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[rt("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),rt("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",rt("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[rt("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),rt("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),rt("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",rt("LmFkX19tYWlu"),rt("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[rt("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[rt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),rt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[rt("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),rt("I2xpdmVyZUFkV3JhcHBlcg=="),rt("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),rt("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[rt("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",rt("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),rt("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),rt("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[rt("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),rt("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),rt("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",rt("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),rt("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),rt("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),rt("ZGl2I3NrYXBpZWNfYWQ=")],ro:[rt("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),rt("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[rt("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),rt("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),rt("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",rt("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),rt("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",rt("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},it=Object.keys(W),[4,pe((Dt=[]).concat.apply(Dt,it.map(function(Kt){return W[Kt]})))]):[2,void 0];case 1:return Lt=Mt.sent(),V&&function(Kt,be){for(var ie="DOM blockers debug:\n```",se=0,ye=Object.keys(Kt);se<ye.length;se++){var de=ye[se];ie+=`
22
- `.concat(de,":");for(var le=0,sn=Kt[de];le<sn.length;le++){var Se=sn[le];ie+=`
23
- `.concat(be[Se]?"🚫":"➡️"," ").concat(Se)}}console.log("".concat(ie,"\n```"))}(W,Lt),(Ct=it.filter(function(Kt){var be=W[Kt];return ct(be.map(function(ie){return Lt[ie]}))>.6*be.length})).sort(),[2,Ct]}var rt})})},fontPreferences:function(){return A===void 0&&(A=4e3),X(function(V,W){var it=W.document,Lt=it.body,Ct=Lt.style;Ct.width="".concat(A,"px"),Ct.webkitTextSizeAdjust=Ct.textSizeAdjust="none",kt()?Lt.style.zoom="".concat(1/W.devicePixelRatio):q()&&(Lt.style.zoom="reset");var Dt=it.createElement("div");return Dt.textContent=(0,n.fX)([],Array(A/20|0),!0).map(function(){return"word"}).join(" "),Lt.appendChild(Dt),function(Mt,rt){for(var Kt={},be={},ie=0,se=Object.keys(H);ie<se.length;ie++){var ye=se[ie],de=H[ye],le=de[0],sn=le===void 0?{}:le,Se=de[1],Te=Se===void 0?"mmMwWLliI0fiflO&1":Se,wn=Mt.createElement("span");wn.textContent=Te,wn.style.whiteSpace="nowrap";for(var Ve=0,Ye=Object.keys(sn);Ve<Ye.length;Ve++){var Ir=Ye[Ve],Qe=sn[Ir];Qe!==void 0&&(wn.style[Ir]=Qe)}Kt[ye]=wn,rt.appendChild(Mt.createElement("br")),rt.appendChild(wn)}for(var Je=0,si=Object.keys(H);Je<si.length;Je++)be[ye=si[Je]]=Kt[ye].getBoundingClientRect().width;return be}(it,Lt)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var A},audio:function(){var A=window,V=A.OfflineAudioContext||A.webkitOfflineAudioContext;if(!V)return-2;if(q()&&!h()&&!function(){var Kt=window;return ct(["DOMRectList"in Kt,"RTCPeerConnectionIceEvent"in Kt,"SVGGeometryElement"in Kt,"ontransitioncancel"in Kt])>=3}())return-1;var W=new V(1,5e3,44100),it=W.createOscillator();it.type="triangle",it.frequency.value=1e4;var Lt=W.createDynamicsCompressor();Lt.threshold.value=-50,Lt.knee.value=40,Lt.ratio.value=12,Lt.attack.value=0,Lt.release.value=.25,it.connect(Lt),Lt.connect(W.destination),it.start(0);var Ct=function(Kt){var be=function(){};return[new Promise(function(ie,se){var ye=!1,de=0,le=0;Kt.oncomplete=function(Te){return ie(Te.renderedBuffer)};var sn=function(){setTimeout(function(){return se(j("timeout"))},Math.min(500,le+5e3-Date.now()))},Se=function(){try{var Te=Kt.startRendering();switch(u(Te)&&v(Te),Kt.state){case"running":le=Date.now(),ye&&sn();break;case"suspended":document.hidden||de++,ye&&de>=3?se(j("suspended")):setTimeout(Se,500)}}catch(wn){se(wn)}};Se(),be=function(){ye||(ye=!0,le>0&&sn())}}),be]}(W),Dt=Ct[0],Mt=Ct[1],rt=Dt.then(function(Kt){return function(be){for(var ie=0,se=0;se<be.length;++se)ie+=Math.abs(be[se]);return ie}(Kt.getChannelData(0).subarray(4500))},function(Kt){if(Kt.name==="timeout"||Kt.name==="suspended")return-3;throw Kt});return v(rt),function(){return Mt(),rt}},screenFrame:function(){var A=this,V=Ut();return function(){return(0,n.sH)(A,void 0,void 0,function(){var W,it;return(0,n.YH)(this,function(Lt){switch(Lt.label){case 0:return[4,V()];case 1:return W=Lt.sent(),[2,[(it=function(Ct){return Ct===null?null:ft(Ct,10)})(W[0]),it(W[1]),it(W[2]),it(W[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){var A,V=navigator,W=[],it=V.language||V.userLanguage||V.browserLanguage||V.systemLanguage;if(it!==void 0&&W.push([it]),Array.isArray(V.languages))kt()&&ct([!("MediaSettingsRange"in(A=window)),"RTCEncodedAudioFrame"in A,""+A.Intl=="[object Intl]",""+A.Reflect=="[object Reflect]"])>=3||W.push(V.languages);else if(typeof V.languages=="string"){var Lt=V.languages;Lt&&W.push(Lt.split(","))}return W},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return et(Q(navigator.deviceMemory),void 0)},screenResolution:function(){var A=screen,V=function(it){return et(G(it),null)},W=[V(A.width),V(A.height)];return W.sort().reverse(),W},hardwareConcurrency:function(){return et(G(navigator.hardwareConcurrency),void 0)},timezone:function(){var A,V=(A=window.Intl)===null||A===void 0?void 0:A.DateTimeFormat;if(V){var W=new V().resolvedOptions().timeZone;if(W)return W}var it,Lt=(it=new Date().getFullYear(),-Math.max(Q(new Date(it,0,1).getTimezoneOffset()),Q(new Date(it,6,1).getTimezoneOffset())));return"UTC".concat(Lt>=0?"+":"").concat(Math.abs(Lt))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!gt()&&!wt())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var A=navigator.platform;return A==="MacIntel"&&q()&&!h()?function(){if(navigator.platform==="iPad")return!0;var V=screen,W=V.width/V.height;return ct(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,W>.65&&W<1.53])>=2}()?"iPad":"iPhone":A},plugins:function(){var A=navigator.plugins;if(A){for(var V=[],W=0;W<A.length;++W){var it=A[W];if(it){for(var Lt=[],Ct=0;Ct<it.length;++Ct){var Dt=it[Ct];Lt.push({type:Dt.type,suffixes:Dt.suffixes})}V.push({name:it.name,description:it.description,mimeTypes:Lt})}}return V}},canvas:function(){var A,V,W=!1,it=function(){var Mt=document.createElement("canvas");return Mt.width=1,Mt.height=1,[Mt,Mt.getContext("2d")]}(),Lt=it[0],Ct=it[1];if(function(Mt,rt){return!(!rt||!Mt.toDataURL)}(Lt,Ct)){W=function(Mt){return Mt.rect(0,0,10,10),Mt.rect(2,2,6,6),!Mt.isPointInPath(5,5,"evenodd")}(Ct),function(Mt,rt){Mt.width=240,Mt.height=60,rt.textBaseline="alphabetic",rt.fillStyle="#f60",rt.fillRect(100,1,62,20),rt.fillStyle="#069",rt.font='11pt "Times New Roman"';var Kt="Cwm fjordbank gly ".concat("😃");rt.fillText(Kt,2,15),rt.fillStyle="rgba(102, 204, 0, 0.2)",rt.font="18pt Arial",rt.fillText(Kt,4,45)}(Lt,Ct);var Dt=z(Lt);Dt!==z(Lt)?A=V="unstable":(V=Dt,function(Mt,rt){Mt.width=122,Mt.height=110,rt.globalCompositeOperation="multiply";for(var Kt=0,be=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Kt<be.length;Kt++){var ie=be[Kt],se=ie[0],ye=ie[1],de=ie[2];rt.fillStyle=se,rt.beginPath(),rt.arc(ye,de,40,0,2*Math.PI,!0),rt.closePath(),rt.fill()}rt.fillStyle="#f9c",rt.arc(60,60,60,0,2*Math.PI,!0),rt.arc(60,60,20,0,2*Math.PI,!0),rt.fill("evenodd")}(Lt,Ct),A=z(Lt))}else A=V="";return{winding:W,geometry:A,text:V}},touchSupport:function(){var A,V=navigator,W=0;V.maxTouchPoints!==void 0?W=G(V.maxTouchPoints):V.msMaxTouchPoints!==void 0&&(W=V.msMaxTouchPoints);try{document.createEvent("TouchEvent"),A=!0}catch{A=!1}return{maxTouchPoints:W,touchEvent:A,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var A=[],V=0,W=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];V<W.length;V++){var it=W[V],Lt=window[it];Lt&&typeof Lt=="object"&&A.push(it)}return A.sort()},cookiesEnabled:function(){var A=document;try{A.cookie="cookietest=1; SameSite=Strict;";var V=A.cookie.indexOf("cookietest=")!==-1;return A.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",V}catch{return!1}},colorGamut:function(){for(var A=0,V=["rec2020","p3","srgb"];A<V.length;A++){var W=V[A];if(matchMedia("(color-gamut: ".concat(W,")")).matches)return W}},invertedColors:function(){return!!_e("inverted")||!_e("none")&&void 0},forcedColors:function(){return!!we("active")||!we("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var A=0;A<=100;++A)if(matchMedia("(max-monochrome: ".concat(A,")")).matches)return A;throw new Error("Too high value")}},contrast:function(){return Ee("no-preference")?0:Ee("high")||Ee("more")?1:Ee("low")||Ee("less")?-1:Ee("forced")?10:void 0},reducedMotion:function(){return!!je("reduce")||!je("no-preference")&&void 0},hdr:function(){return!!xe("high")||!xe("standard")&&void 0},math:function(){var A,V=y.acos||P,W=y.acosh||P,it=y.asin||P,Lt=y.asinh||P,Ct=y.atanh||P,Dt=y.atan||P,Mt=y.sin||P,rt=y.sinh||P,Kt=y.cos||P,be=y.cosh||P,ie=y.tan||P,se=y.tanh||P,ye=y.exp||P,de=y.expm1||P,le=y.log1p||P;return{acos:V(.12312423423423424),acosh:W(1e308),acoshPf:(A=1e154,y.log(A+y.sqrt(A*A-1))),asin:it(.12312423423423424),asinh:Lt(1),asinhPf:y.log(1+y.sqrt(2)),atanh:Ct(.5),atanhPf:y.log(3)/2,atan:Dt(.5),sin:Mt(-1e300),sinh:rt(1),sinhPf:y.exp(1)-1/y.exp(1)/2,cos:Kt(10.000000000123),cosh:be(1),coshPf:(y.exp(1)+1/y.exp(1))/2,tan:ie(-1e300),tanh:se(1),tanhPf:(y.exp(2)-1)/(y.exp(2)+1),exp:ye(1),expm1:de(1),expm1Pf:y.exp(1)-1,log1p:le(10),log1pPf:y.log(11),powPI:y.pow(y.PI,-100)}},videoCard:function(){var A,V=document.createElement("canvas"),W=(A=V.getContext("webgl"))!==null&&A!==void 0?A:V.getContext("experimental-webgl");if(W&&"getExtension"in W){var it=W.getExtension("WEBGL_debug_renderer_info");if(it)return{vendor:(W.getParameter(it.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(W.getParameter(it.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var A=new Float32Array(1),V=new Uint8Array(A.buffer);return A[0]=1/0,A[0]=A[0]-A[0],V[3]}},mt="$ if upgrade to Pro: https://fpjs.dev/pro";function vt(A){return JSON.stringify(A,function(V,W){return W instanceof Error?(it=W,(0,n.Cl)({name:it.name,message:it.message,stack:(Lt=it.stack)===null||Lt===void 0?void 0:Lt.split(`
24
- `)},it)):W;var it,Lt},2)}function xt(A){return F(function(V){for(var W="",it=0,Lt=Object.keys(V).sort();it<Lt.length;it++){var Ct=Lt[it],Dt=V[Ct],Mt=Dt.error?"error":JSON.stringify(Dt.value);W+="".concat(W?"|":"").concat(Ct.replace(/([:|\\])/g,"\\$1"),":").concat(Mt)}return W}(A))}function Gt(A){return A===void 0&&(A=50),function(V,W){W===void 0&&(W=1/0);var it=window.requestIdleCallback;return it?new Promise(function(Lt){return it.call(window,function(){return Lt()},{timeout:W})}):i(Math.min(V,W))}(A,2*A)}function te(A,V){var W=Date.now();return{get:function(it){return(0,n.sH)(this,void 0,void 0,function(){var Lt,Ct,Dt;return(0,n.YH)(this,function(Mt){switch(Mt.label){case 0:return Lt=Date.now(),[4,A()];case 1:return Ct=Mt.sent(),Dt=function(rt){var Kt,be=function(ie){var se=function(de){if(Z())return .4;if(q())return h()?.5:.3;var le=de.platform.value||"";return/^Win/.test(le)?.6:/^Mac/.test(le)?.5:.7}(ie),ye=function(de){return ft(.99+.01*de,1e-4)}(se);return{score:se,comment:mt.replace(/\$/g,"".concat(ye))}}(rt);return{get visitorId(){return Kt===void 0&&(Kt=xt(this.components)),Kt},set visitorId(ie){Kt=ie},confidence:be,components:rt,version:o}}(Ct),(V||it?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Dt.version,`
14
+ `.concat(L[pt]?"🚫":"➡️"," ").concat(pt)}}console.log("".concat(x,"\n```"))}(a,g),(w=f.filter(function(I){var L=a[I];return C(L.map(function(x){return g[x]}))>.6*L.length})).sort(),[2,w]}var m})})},oe=function(){return s===void 0&&(s=4e3),z(function(c,a){var f=a.document,g=f.body,w=g.style;w.width="".concat(s,"px"),w.webkitTextSizeAdjust=w.textSizeAdjust="none",T()?g.style.zoom="".concat(1/a.devicePixelRatio):D()&&(g.style.zoom="reset");var b=f.createElement("div");return b.textContent=(0,n.fX)([],Array(s/20|0),!0).map(function(){return"word"}).join(" "),g.appendChild(b),function(_,m){for(var I={},L={},x=0,Y=Object.keys(U);x<Y.length;x++){var J=Y[x],tt=U[J],nt=tt[0],ut=nt===void 0?{}:nt,pt=tt[1],Et=pt===void 0?"mmMwWLliI0fiflO&1":pt,ht=_.createElement("span");ht.textContent=Et,ht.style.whiteSpace="nowrap";for(var yt=0,Ht=Object.keys(ut);yt<Ht.length;yt++){var Vt=Ht[yt],jt=ut[Vt];jt!==void 0&&(ht.style[Vt]=jt)}I[J]=ht,m.append(_.createElement("br"),ht)}for(var Tt=0,Ut=Object.keys(U);Tt<Ut.length;Tt++)L[J=Ut[Tt]]=I[J].getBoundingClientRect().width;return L}(f,g)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var s},ae=function(){return navigator.oscpu},ye=function(){var s,c=navigator,a=[],f=c.language||c.userLanguage||c.browserLanguage||c.systemLanguage;if(f!==void 0&&a.push([f]),Array.isArray(c.languages))T()&&C([!("MediaSettingsRange"in(s=window)),"RTCEncodedAudioFrame"in s,""+s.Intl=="[object Intl]",""+s.Reflect=="[object Reflect]"])>=3||a.push(c.languages);else if(typeof c.languages=="string"){var g=c.languages;g&&a.push(g.split(","))}return a},pe=function(){return window.screen.colorDepth},de=function(){return O(S(navigator.deviceMemory),void 0)},sn=function(){return O(v(navigator.hardwareConcurrency),void 0)},Se=function(){var s,c=(s=window.Intl)===null||s===void 0?void 0:s.DateTimeFormat;if(c){var a=new c().resolvedOptions().timeZone;if(a)return a}var f,g=(f=new Date().getFullYear(),-Math.max(S(new Date(f,0,1).getTimezoneOffset()),S(new Date(f,6,1).getTimezoneOffset())));return"UTC".concat(g>=0?"+":"").concat(g)},Te=function(){try{return!!window.sessionStorage}catch{return!0}},wn=function(){try{return!!window.localStorage}catch{return!0}},Ve=function(){return!!window.openDatabase},Ye=function(){return navigator.cpuClass},Ir=function(){var s=navigator.platform;return s==="MacIntel"&&D()&&!Z()?function(){if(navigator.platform==="iPad")return!0;var c=screen,a=c.width/c.height;return C(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,a>.65&&a<1.53])>=2}()?"iPad":"iPhone":s},Qe=function(){var s=navigator.plugins;if(s){for(var c=[],a=0;a<s.length;++a){var f=s[a];if(f){for(var g=[],w=0;w<f.length;++w){var b=f[w];g.push({type:b.type,suffixes:b.suffixes})}c.push({name:f.name,description:f.description,mimeTypes:g})}}return c}},Je=function(){var s,c=navigator,a=0;c.maxTouchPoints!==void 0?a=v(c.maxTouchPoints):c.msMaxTouchPoints!==void 0&&(a=c.msMaxTouchPoints);try{document.createEvent("TouchEvent"),s=!0}catch{s=!1}return{maxTouchPoints:a,touchEvent:s,touchStart:"ontouchstart"in window}},si=function(){return navigator.vendor||""},un=function(){for(var s=[],c=0,a=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];c<a.length;c++){var f=a[c],g=window[f];g&&typeof g=="object"&&s.push(f)}return s.sort()},ln=function(){var s=document;try{s.cookie="cookietest=1; SameSite=Strict;";var c=s.cookie.indexOf("cookietest=")!==-1;return s.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",c}catch{return!1}},hs=function(){for(var s=0,c=["rec2020","p3","srgb"];s<c.length;s++){var a=c[s];if(matchMedia("(color-gamut: ".concat(a,")")).matches)return a}},fn=function(){return!!P("inverted")||!P("none")&&void 0},dn=function(){return!!H("active")||!H("none")&&void 0},ps=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var s=0;s<=100;++s)if(matchMedia("(max-monochrome: ".concat(s,")")).matches)return s;throw new Error("Too high value")}},hn=function(){return lt("no-preference")?0:lt("high")||lt("more")?1:lt("low")||lt("less")?-1:lt("forced")?10:void 0},pn=function(){return!!mt("reduce")||!mt("no-preference")&&void 0},io=function(){return!!vt("reduce")||!vt("no-preference")&&void 0},oo=function(){return!!xt("high")||!xt("standard")&&void 0},so=function(){var s,c=Gt.acos||ee,a=Gt.acosh||ee,f=Gt.asin||ee,g=Gt.asinh||ee,w=Gt.atanh||ee,b=Gt.atan||ee,_=Gt.sin||ee,m=Gt.sinh||ee,I=Gt.cos||ee,L=Gt.cosh||ee,x=Gt.tan||ee,Y=Gt.tanh||ee,J=Gt.exp||ee,tt=Gt.expm1||ee,nt=Gt.log1p||ee;return{acos:c(.12312423423423424),acosh:a(1e308),acoshPf:(s=1e154,Gt.log(s+Gt.sqrt(s*s-1))),asin:f(.12312423423423424),asinh:g(1),asinhPf:Gt.log(1+Gt.sqrt(2)),atanh:w(.5),atanhPf:Gt.log(3)/2,atan:b(.5),sin:_(-1e300),sinh:m(1),sinhPf:Gt.exp(1)-1/Gt.exp(1)/2,cos:I(10.000000000123),cosh:L(1),coshPf:(Gt.exp(1)+1/Gt.exp(1))/2,tan:x(-1e300),tanh:Y(1),tanhPf:(Gt.exp(2)-1)/(Gt.exp(2)+1),exp:J(1),expm1:tt(1),expm1Pf:Gt.exp(1)-1,log1p:nt(10),log1pPf:Gt.log(11),powPI:Gt.pow(Gt.PI,-100)}},ao=function(){return navigator.pdfViewerEnabled},co=function(){var s=new Float32Array(1),c=new Uint8Array(s.buffer);return s[0]=1/0,s[0]=s[0]-s[0],c[3]},uo=function(){var s,c=document.createElement("a"),a=(s=c.attributionSourceId)!==null&&s!==void 0?s:c.attributionsourceid;return a===void 0?void 0:String(a)},lo=function(){if(!at()&&!D())return-2;if(!window.AudioContext)return-1;var s=new AudioContext().baseLatency;return s==null?-1:isFinite(s)?s:-3},fo=function(){if(!window.Intl)return-1;var s=window.Intl.DateTimeFormat;if(!s)return-2;var c=s().resolvedOptions().locale;return c||c===""?c:-3},ho=function(s){var c,a,f,g,w,b,_=it(s.cache);if(!_)return-1;if(!rt(_))return-2;var m=Pt()?null:_.getExtension(W);return{version:((c=_.getParameter(_.VERSION))===null||c===void 0?void 0:c.toString())||"",vendor:((a=_.getParameter(_.VENDOR))===null||a===void 0?void 0:a.toString())||"",vendorUnmasked:m?(f=_.getParameter(m.UNMASKED_VENDOR_WEBGL))===null||f===void 0?void 0:f.toString():"",renderer:((g=_.getParameter(_.RENDERER))===null||g===void 0?void 0:g.toString())||"",rendererUnmasked:m?(w=_.getParameter(m.UNMASKED_RENDERER_WEBGL))===null||w===void 0?void 0:w.toString():"",shadingLanguageVersion:((b=_.getParameter(_.SHADING_LANGUAGE_VERSION))===null||b===void 0?void 0:b.toString())||""}},po=function(s){var c=it(s.cache);if(!c)return-1;if(!rt(c))return-2;var a=c.getSupportedExtensions(),f=c.getContextAttributes(),g=[],w=[],b=[],_=[],m=[];if(f)for(var I=0,L=Object.keys(f);I<L.length;I++){var x=L[I];w.push("".concat(x,"=").concat(f[x]))}for(var Y=0,J=Ct(c);Y<J.length;Y++){var tt=c[Ht=J[Y]];b.push("".concat(Ht,"=").concat(tt).concat(R.has(tt)?"=".concat(c.getParameter(tt)):""))}if(a)for(var nt=0,ut=a;nt<ut.length;nt++){var pt=ut[nt];if(!(pt===W&&Pt()||pt==="WEBGL_polygon_mode"&&(T()||D()))){var Et=c.getExtension(pt);if(Et)for(var ht=0,yt=Ct(Et);ht<yt.length;ht++){var Ht;tt=Et[Ht=yt[ht]],_.push("".concat(Ht,"=").concat(tt).concat(k.has(tt)?"=".concat(c.getParameter(tt)):""))}else g.push(pt)}}for(var Vt=0,jt=A;Vt<jt.length;Vt++)for(var Tt=jt[Vt],Ut=0,qt=V;Ut<qt.length;Ut++){var ne=qt[Ut],se=Lt(c,Tt,ne);m.push("".concat(Tt,".").concat(ne,"=").concat(se.join(",")))}return _.sort(),b.sort(),{contextAttributes:w,parameters:b,shaderPrecisions:m,extensions:a,extensionParameters:_,unsupportedExtensions:g}},kn=function(s,c){var a=function(Y){for(var J=new Uint8Array(Y.length),tt=0;tt<Y.length;tt++){var nt=Y.charCodeAt(tt);if(nt>127)return new TextEncoder().encode(Y);J[tt]=nt}return J}(s);c=c||0;var f,g=[0,a.length],w=g[1]%16,b=g[1]-w,_=[0,c],m=[0,c],I=[0,0],L=[0,0];for(f=0;f<b;f+=16)I[0]=a[f+4]|a[f+5]<<8|a[f+6]<<16|a[f+7]<<24,I[1]=a[f]|a[f+1]<<8|a[f+2]<<16|a[f+3]<<24,L[0]=a[f+12]|a[f+13]<<8|a[f+14]<<16|a[f+15]<<24,L[1]=a[f+8]|a[f+9]<<8|a[f+10]<<16|a[f+11]<<24,B(I,ft),M(I,31),B(I,ot),G(_,I),M(_,27),N(_,m),B(_,bt),N(_,Rt),B(L,ot),M(L,33),B(L,ft),G(m,L),M(m,31),N(m,_),B(m,bt),N(m,At);I[0]=0,I[1]=0,L[0]=0,L[1]=0;var x=[0,0];switch(w){case 15:x[1]=a[f+14],F(x,48),G(L,x);case 14:x[1]=a[f+13],F(x,40),G(L,x);case 13:x[1]=a[f+12],F(x,32),G(L,x);case 12:x[1]=a[f+11],F(x,24),G(L,x);case 11:x[1]=a[f+10],F(x,16),G(L,x);case 10:x[1]=a[f+9],F(x,8),G(L,x);case 9:x[1]=a[f+8],G(L,x),B(L,ot),M(L,33),B(L,ft),G(m,L);case 8:x[1]=a[f+7],F(x,56),G(I,x);case 7:x[1]=a[f+6],F(x,48),G(I,x);case 6:x[1]=a[f+5],F(x,40),G(I,x);case 5:x[1]=a[f+4],F(x,32),G(I,x);case 4:x[1]=a[f+3],F(x,24),G(I,x);case 3:x[1]=a[f+2],F(x,16),G(I,x);case 2:x[1]=a[f+1],F(x,8),G(I,x);case 1:x[1]=a[f],G(I,x),B(I,ft),M(I,31),B(I,ot),G(_,I)}return G(_,g),G(m,g),N(_,m),N(m,_),ct(_),ct(m),N(_,m),N(m,_),("00000000"+(_[0]>>>0).toString(16)).slice(-8)+("00000000"+(_[1]>>>0).toString(16)).slice(-8)+("00000000"+(m[0]>>>0).toString(16)).slice(-8)+("00000000"+(m[1]>>>0).toString(16)).slice(-8)},go="phantomjs",mo="selenium",vo="headless_chrome",ze=function(s){function c(a,f){var g=s.call(this,f)||this;return g.state=a,g.name="BotdError",Object.setPrototypeOf(g,c.prototype),g}return(0,n.C6)(c,s),c}(Error);function yo(s,c){return s.indexOf(c)!==-1}function jn(s,c){return s.indexOf(c)!==-1}function Ci(s){return Object.getOwnPropertyNames(s)}function Bi(s){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];for(var f=function(_){if(typeof _=="string"){if(yo(s,_))return{value:!0}}else if(function(m,I){if("find"in m)return m.find(I);for(var L=0;L<m.length;L++)if(I(m[L]))return m[L]}(s,function(m){return _.test(m)})!=null)return{value:!0}},g=0,w=c;g<w.length;g++){var b=f(w[g]);if(typeof b=="object")return b.value}return!1}function wo(s){return s.reduce(function(c,a){return c+(a?1:0)},0)}function qa(){var s,c,a=window,f=navigator;return wo(["webkitPersistentStorage"in f,"webkitTemporaryStorage"in f,f.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in a,"BatteryManager"in a,"webkitMediaStream"in a,"webkitSpeechGrammar"in a])>=5?"chromium":wo(["ApplePayError"in a,"CSSPrimitiveValue"in a,"Counter"in a,f.vendor.indexOf("Apple")===0,"getStorageUpdates"in f,"WebKitMediaKeys"in a])>=4?"webkit":wo(["buildID"in navigator,"MozAppearance"in((c=(s=document.documentElement)===null||s===void 0?void 0:s.style)!==null&&c!==void 0?c:{}),"onmozfullscreenchange"in a,"mozInnerScreenX"in a,"CSSMozDocumentRule"in a,"CanvasCaptureMediaStream"in a])>=4?"gecko":"unknown"}var Wn={android:function(){var s=qa(),c=s==="chromium",a=s==="gecko";if(!c&&!a)return!1;var f=window;return wo(["onorientationchange"in f,"orientation"in f,c&&!("SharedWorker"in f),a&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var s,c=(s=navigator.userAgent)===null||s===void 0?void 0:s.toLowerCase();return jn(c,"edg/")?"edge":jn(c,"trident")||jn(c,"msie")?"internet_explorer":jn(c,"wechat")?"wechat":jn(c,"firefox")?"firefox":jn(c,"opera")||jn(c,"opr")?"opera":jn(c,"chrome")?"chrome":jn(c,"safari")?"safari":"unknown"},browserEngineKind:qa,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var s=navigator.appVersion;if(s==null)throw new ze(-1,"navigator.appVersion is undefined");return s},rtt:function(){if(navigator.connection===void 0)throw new ze(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new ze(-1,"navigator.connection.rtt is undefined");return navigator.connection.rtt},windowSize:function(){return{outerWidth:window.outerWidth,outerHeight:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight}},pluginsLength:function(){if(navigator.plugins===void 0)throw new ze(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new ze(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new ze(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new ze(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(s){if(s instanceof Error&&s.stack!=null)return s.stack.toString()}throw new ze(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var s=navigator.productSub;if(s===void 0)throw new ze(-1,"navigator.productSub is undefined");return s},windowExternal:function(){if(window.external===void 0)throw new ze(-1,"window.external is undefined");var s=window.external;if(typeof s.toString!="function")throw new ze(-2,"window.external.toString is not a function");return s.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new ze(-1,"navigator.mimeTypes is undefined");for(var s=navigator.mimeTypes,c=Object.getPrototypeOf(s)===MimeTypeArray.prototype,a=0;a<s.length;a++)c&&(c=Object.getPrototypeOf(s[a])===MimeType.prototype);return c},evalLength:function(){return eval.toString().length},webGL:function(){var s=document.createElement("canvas");if(typeof s.getContext!="function")throw new ze(-2,"HTMLCanvasElement.getContext is not a function");var c=s.getContext("webgl");if(c===null)throw new ze(-4,"WebGLRenderingContext is null");if(typeof c.getParameter!="function")throw new ze(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:c.getParameter(c.VENDOR),renderer:c.getParameter(c.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new ze(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var s,c=navigator,a=[],f=c.language||c.userLanguage||c.browserLanguage||c.systemLanguage;if(f!==void 0&&a.push([f]),Array.isArray(c.languages))qa()==="chromium"&&wo([!("MediaSettingsRange"in(s=window)),"RTCEncodedAudioFrame"in s,""+s.Intl=="[object Intl]",""+s.Reflect=="[object Reflect]"])>=3||a.push(c.languages);else if(typeof c.languages=="string"){var g=c.languages;g&&a.push(g.split(","))}return a},notificationPermissions:function(){return(0,n.sH)(this,void 0,void 0,function(){var s,c;return(0,n.YH)(this,function(a){switch(a.label){case 0:if(window.Notification===void 0)throw new ze(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new ze(-1,"navigator.permissions is undefined");if(typeof(s=navigator.permissions).query!="function")throw new ze(-2,"navigator.permissions.query is not a function");a.label=1;case 1:return a.trys.push([1,3,,4]),[4,s.query({name:"notifications"})];case 2:return c=a.sent(),[2,window.Notification.permission==="denied"&&c.state==="prompt"];case 3:throw a.sent(),new ze(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}})})},documentElementKeys:function(){if(document.documentElement===void 0)throw new ze(-1,"document.documentElement is undefined");var s=document.documentElement;if(typeof s.getAttributeNames!="function")throw new ze(-2,"document.documentElement.getAttributeNames is not a function");return s.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new ze(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var s=window.process,c="window.process is";if(s===void 0)throw new ze(-1,"".concat(c," undefined"));if(s&&typeof s!="object")throw new ze(-3,"".concat(c," not an object"));return s},distinctiveProps:function(){var s,c,a=((s={}).awesomium={window:["awesomium"]},s.cef={window:["RunPerfTest"]},s.cefsharp={window:["CefSharp"]},s.coachjs={window:["emit"]},s.fminer={window:["fmget_targets"]},s.geb={window:["geb"]},s.nightmarejs={window:["__nightmare","nightmare"]},s.phantomas={window:["__phantomas"]},s[go]={window:["callPhantom","_phantom"]},s.rhino={window:["spawn"]},s[mo]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},s.webdriverio={window:["wdioElectron"]},s.webdriver={window:["webdriver","__webdriverFunc","__lastWatirAlert","__lastWatirConfirm","__lastWatirPrompt","_WEBDRIVER_ELEM_CACHE","ChromeDriverw"],document:["__webdriver_script_fn","__driver_evaluate","__webdriver_evaluate","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__fxdriver_unwrapped","__webdriver_script_fn","__webdriver_script_func","__webdriver_script_function","$cdc_asdjflasutopfhvcZLmcf","$cdc_asdjflasutopfhvcZLmcfl_","$chrome_asyncScriptInfo","__$webdriverAsyncExecutor"]},s[vo]={window:["domAutomation","domAutomationController"]},s),f={},g=Ci(window),w=[];for(c in window.document!==void 0&&(w=Ci(window.document)),a){var b=a[c];if(b!==void 0){var _=b.window!==void 0&&Bi.apply(void 0,(0,n.fX)([g],b.window,!1)),m=!(b.document===void 0||!w.length)&&Bi.apply(void 0,(0,n.fX)([w],b.document,!1));f[c]=_||m}}return f}};function bo(s,c){return new Promise(function(a){return $a(a,s,c)})}function $a(s,c){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];var g=Date.now()+c,w=0,b=function(){w=setTimeout(function(){Date.now()<g?b():s.apply(void 0,a)},g-Date.now())};return b(),function(){return clearTimeout(w)}}function gs(s,c){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];var g=document,w="visibilitychange",b=function(){return g.hidden?I():m()},_=function(L,x,Y){for(var J=[],tt=3;tt<arguments.length;tt++)J[tt-3]=arguments[tt];var nt,ut=!1,pt=L,Et=0,ht=function(){ut||nt||(Et=Date.now(),nt=$a(function(){ut=!0,Y.apply(void 0,J)},pt))};return x&&ht(),{start:ht,stop:function(){!ut&&nt&&(nt(),nt=void 0,pt-=Date.now()-Et)}}}(c,!g.hidden,function(){g.removeEventListener(w,b),s.apply(void 0,a)}),m=_.start,I=_.stop;return g.addEventListener(w,b),function(){g.removeEventListener(w,b),I()}}function Yn(s,c){return new Promise(function(a){return gs(a,s,c)})}function $l(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a;return(0,n.YH)(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,s()];case 1:return[2,f.sent()];case 2:return a=f.sent(),console.error(a),[2,c];case 3:return[2]}})})}function Za(s,c){return new Promise(function(a,f){var g=!1;c?.then(function(){return g=!0},function(){return g=!0}),(typeof s=="function"?Za(Promise.resolve(),c).then(s):s).then(function(w){g||a(w)},function(w){g||f(w)})})}function _o(s){return s.then(void 0,function(){}),s}function er(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w;return(0,n.YH)(this,function(b){switch(b.label){case 0:try{a=c().then(function(_){return f=[!0,_]},function(_){return f=[!1,_]})}catch(_){f=[!1,_]}return w=s.then(function(_){return g=[!0,_]},function(_){return g=[!1,_]}),[4,Promise.race([a,w])];case 1:return b.sent(),[2,function(){if(f){if(f[0])return f[1];throw f[1]}if(g){if(g[0])return g[1];throw g[1]}throw new Error("96375")}]}})})}function Zl(){var s,c,a=new Promise(function(f,g){s=f,c=g});return a.resolve=s,a.reject=c,a}function ms(s){return s instanceof Error||s!==null&&typeof s=="object"&&"name"in s}function Xl(s,c){var a=0;return function(){return Math.random()*Math.min(c,s*Math.pow(2,a++))}}function ai(s){return s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}function l4(s,c){return Object.prototype.hasOwnProperty.call(s,c)}function Pi(s,c,a,f){return s.addEventListener(c,a,f),function(){return s.removeEventListener(c,a,f)}}var Xa,Ja="0123456789abcdef";function Jl(s,c){if(c.length==0||c.length>s.length)return-1;for(var a=0;a<s.length;a++){for(var f=0,g=0;g<c.length;g++){if(s[a+g]!==c[g]){f=0;break}f++}if(f==c.length)return a}return-1}function Fr(s){for(var c=new Uint8Array(s.length),a=0;a<s.length;a++){var f=s.charCodeAt(a);if(f>127)return new TextEncoder().encode(s);c[a]=f}return c}function vs(s){if(typeof TextDecoder=="function"){var c=new TextDecoder().decode(s);if(c)return c}var a=ai(s);return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))}function Mi(s){return s.reduce(function(c,a){return c+(a?1:0)},0)}function Ql(s,c){return(s-c+256)%256}function mr(s){var c=ai(s);return btoa(String.fromCharCode.apply(null,c))}function ys(s){for(var c=atob(s),a=c.length,f=new Uint8Array(a),g=0;g<a;g++)f[g]=c.charCodeAt(g);return f}function vr(s){return tf(Fr(s))}function tf(s){var c=ai(s);Xa=Xa||function(){for(var g,w=new Uint32Array(256),b=0;b<256;b++){g=b;for(var _=0;_<8;_++)g=1&g?3988292384^g>>>1:g>>>1;w[b]=g}return w}();for(var a=-1,f=0;f<c.length;f++)a=a>>>8^Xa[255&(a^c[f])];return~a>>>0}function ef(s){return s===void 0?void 0:"".concat(s)}function f4(s,c){if(s!==void 0){if(!Array.isArray(s))throw new TypeError("Expected ".concat(c," to be an array, a ").concat(function(a){return typeof a=="object"?a?Object.prototype.toString.call(a):"null":typeof a}(s)," is given"));return s.map(String)}}function d4(s){for(var c=new Uint8Array(s.length/2),a=0;a<s.length;a+=2)c[a/2]=parseInt(s[a]+s[a+1],16);return c}function ws(s){if(s instanceof Array)return s.map(ws);if(s&&typeof s=="object"){for(var c={},a=0,f=Object.keys(s);a<f.length;a++){var g=f[a];c[g]=ws(s[g])}return c}return s}function h4(s,c){for(var a=[],f=Object.getOwnPropertyNames(s),g=0;g<f.length;g++){var w=f[g],b=vr(w);c.has(b)&&a.push({i:g,n:w})}return{l:f.length,p:a}}var Qa=new Uint32Array(2);function bs(){return crypto?(crypto.getRandomValues(Qa),(1048576*Qa[0]+(1048575&Qa[1]))/4503599627370496):Math.random()}function nf(s,c,a){a===void 0&&(a=bs);for(var f="",g=0;g<s;g++)f+=c.charAt(a()*c.length);return f}function Eo(s){return nf(s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function rf(){return[8,4,4,4,12].map(function(s){return nf(s,Ja)}).join("-")}var of=new Uint8Array(1);function p4(){return crypto.getRandomValues(of),of[0]}function sf(){return new TypeError("Can't pick from nothing")}function g4(s,c){return Math.floor(bs()*(c-s+1))+s}function af(s){return m4(s)?function(c){if(c.length===0)throw sf();return c[Math.floor(bs()*c.length)]}(s):function(c){for(var a=bs(),f=0,g=0,w=0,b=c;w<b.length;w++)f+=x=b[w][1];for(var _=0,m=c;_<m.length;_++){var I=m[_],L=I[0],x=I[1];if(a>=g/f&&a<(g+x)/f)return L;g+=x}throw sf()}(Object.entries(s))}var m4=Array.isArray,tc="3.11.11",_s={default:"endpoint"},cf={default:"tEndpoint"},Es={default:"tlsEndpoint"};function uf(s){return s?{query:!0,fragment:!0}:void 0}var lf="_vid";function ff(s){switch(s){case 0:return"load() start";case 1:return"load() success";case 2:return"load() fail";case 3:return"get() start";case 4:return"get() success";case 5:return"get() fail";case 6:return"TLS start";case 7:return"TLS success";case 8:return"TLS fail";case 9:return"TLS attempt start";case 10:return"TLS attempt success";case 11:return"TLS attempt fail";case 12:return"Signals start";case 13:return"Signals success";case 14:return"Signals fail";case 15:return"Ingress start";case 16:return"Ingress success";case 17:return"Ingress fail";case 18:return"Ingress attempt start";case 19:return"Ingress attempt success";case 20:return"Ingress attempt fail"}}function df(){return{len:0,arr:new Uint8Array(128)}}function yr(s,c){pf(s,s.len+1),s.arr[s.len++]=c}function Rs(s,c){pf(s,s.len+c.length),s.arr.set(c,s.len),s.len+=c.length}function hf(s){return s.arr.subarray(0,s.len)}function pf(s,c){if(s.arr.length<c){var a=new Uint8Array(Math.max(2*s.arr.length,c));a.set(s.arr),s.arr=a}}function gf(s){var c=df(),a=new WeakSet,f=function(g){if(typeof g=="string"){var w=g.replace(O4,function(ut){return"\\"+(Af[ut]||"u"+ut.charCodeAt(0).toString(16).padStart(4,"0"))});return yr(c,Ro),Rs(c,Fr(w)),void yr(c,Ro)}if(typeof g=="number"||g===!0||g===!1)return(Number.isNaN(g)||g===1/0||g===-1/0)&&(g=null),void Rs(c,Fr(String(g)));if(typeof g=="object"&&g){if(a.has(g))throw new TypeError("Recursive input");a.add(g);var b=g.toJSON;if(typeof b=="function")return void f(b.call(g));if(g instanceof Number||g instanceof String)return void f(g.valueOf());var _=!0,m=function(){_?_=!1:yr(c,ec)};if(Array.isArray(g)){yr(c,wf);for(var I=0,L=g;I<L.length;I++){var x=L[I];m(),f(x)}yr(c,bf)}else{yr(c,_f);for(var Y=0,J=Object.entries(g);Y<J.length;Y++){var tt=J[Y],nt=tt[0];v4(x=tt[1])||(m(),f(nt),yr(c,vf),f(x))}yr(c,Ef)}a.delete(g)}else Rs(c,ic)};return f(s),hf(c)}function Ss(s){var c=df(),a=ai(s),f=0,g=function(){return I(),a[f]===Ro?w():mf(a[f])?b():L(ic)?(f+=ic.length,null):L(Rf)?(f+=Rf.length,!0):L(Sf)?(f+=Sf.length,!1):a[f]===wf?_():a[f]===_f?m():x()},w=function(){for(c.len=0;f++,a[f]!==Ro;){if(a[f]===E4){if(f++,a[f]===rc){var J=parseInt(vs(a.subarray(f+1,f+5)),16);Rs(c,Fr(String.fromCharCode(J))),f+=4;continue}var tt=k4[a[f]];if(tt){yr(c,tt);continue}return x()}if(a[f]===void 0)return x();yr(c,a[f])}return f++,vs(hf(c))},b=function(){for(var J=f;a[f]===I4||a[f]===nc||a[f]===R4||a[f]===S4||mf(a[f]);)f++;return Number(vs(a.subarray(J,f)))},_=function(){var J=[];for(f++;;){if(I(),a[f]===bf){f++;break}if(J.length){if(a[f]!==ec)return x();f++}J.push(g())}return J},m=function(){var J={},tt=!0;for(f++;;){if(I(),a[f]===Ef){f++;break}if(!tt){if(a[f]!==ec)return x();f++,I()}if(a[f]!==Ro)return x();var nt=w();if(I(),a[f]!==vf)return x();f++,Object.defineProperty(J,nt,{value:g(),configurable:!0,enumerable:!0,writable:!0}),tt=!1}return J},I=function(){for(;a[f]===y4||a[f]===_4||a[f]===b4||a[f]===w4;)f++},L=function(J){for(var tt=0;tt<J.length;tt++)if(a[f+tt]!==J[tt])return!1;return!0},x=function(){throw new SyntaxError("Unexpected ".concat(f<a.length?"byte ".concat(f):"end"))},Y=g();return I(),a[f]!==void 0&&x(),Y}function v4(s){return s===void 0||typeof s=="function"||typeof s=="symbol"}function mf(s){return s>=yf&&s<yf+10||s===A4}var Ro=34,ec=44,vf=58,y4=32,w4=9,b4=13,_4=10,E4=92,yf=48,nc=101,rc=117,R4=69,S4=43,A4=45,I4=46,wf=91,bf=93,_f=123,Ef=125,ic=new Uint8Array([110,rc,108,108]),Rf=new Uint8Array([116,114,rc,nc]),Sf=new Uint8Array([102,97,108,115,nc]),Af={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},k4=function(){for(var s=new Uint8Array(128),c=0,a=Object.entries(Af);c<a.length;c++){var f=a[c],g=f[0];s[f[1].charCodeAt(0)]=g.charCodeAt(0)}return s}(),O4=/[\x00-\x1F"\\]/g,oc="Client timeout",sc="Network connection error",ac="Network request aborted",cc="Response cannot be parsed",uc="Blocked by CSP",lc="The endpoint parameter is not a valid URL";function ci(s,c,a){return a===void 0&&(a="..."),s.length<=c?s:"".concat(s.slice(0,Math.max(0,c-a.length))).concat(a)}function nr(s){for(var c="",a=0;a<s.length;++a)if(a>0){var f=s[a].toLowerCase();f!==s[a]?c+=" ".concat(f):c+=s[a]}else c+=s[a].toUpperCase();return c}var If=nr("WrongRegion"),kf=nr("SubscriptionNotActive"),Of=nr("UnsupportedVersion"),Tf=nr("InstallationMethodRestricted"),Nf=nr("HostnameRestricted"),xf=nr("IntegrationFailed"),Lf=nr("VisitorNotFound"),Cf=nr("NetworkRestricted"),Bf=nr("InvalidProxyIntegrationSecret"),Pf=nr("InvalidProxyIntegrationHeaders");function T4(s){var c;try{c=Ss(s.body)}catch{}return(0,n.Cl)((0,n.Cl)({},s),{bodyData:c})}function N4(s,c,a,f){var g=f.bodyData;return g===void 0?Vf(f):function(w){return w instanceof Object&&w.v==="2"&&w.products instanceof Object}(g)?function(w,b,_,m){var I,L=w.notifications,x=w.requestId,Y=w.sealedResult,J=w.error,tt=w.products,nt=function(Vt){for(var jt=[],Tt=0,Ut=Object.keys(Vt);Tt<Ut.length;Tt++){var qt=Vt[Ut[Tt]];qt&&jt.push(qt)}return jt}(tt);Hf(L);for(var ut=0,pt=nt;ut<pt.length;ut++)Hf(pt[ut].notifications);if(J)return Mf(J,x,Y,_);for(var Et=0,ht=nt;Et<ht.length;Et++){var yt=ht[Et].error;if(yt)return Mf(yt,x,Y,_)}(function(Vt,jt,Tt){for(var Ut,qt=0,ne=jt;qt<ne.length;qt++){var se=ne[qt];(Ut=se.onResponse)===null||Ut===void 0||Ut.call(se,Vt,Tt)}})(w,b,m);var Ht=(I=tt.identification)===null||I===void 0?void 0:I.data;return{result:Ht?(0,n.Cl)((0,n.Cl)({requestId:x},Y===void 0?{}:{sealedResult:Y}),Ht.result):Df(x,Y,_)}}(g,s,c,a):Vf(f)}function Mf(s,c,a,f){switch(s.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return Uf(c,a,!0,f);case"NotAvailableWithoutUA":return Uf(c,a,void 0,f);default:return{error:Ff(x4(s),c,s),stop:s.code==="VisitorNotFound"}}}function x4(s){var c,a=s.code,f=s.message;return a===void 0?f:(c=function(g){switch(g){case"TokenRequired":return"API key required";case"TokenNotFound":return"API key not found";case"TokenExpired":return"API key expired";case"RequestCannotBeParsed":return"Request cannot be parsed";case"Failed":return"Request failed";case"RequestTimeout":return"Request failed to process";case"TooManyRequests":return"Too many requests, rate limit exceeded";case"OriginNotAvailable":return"Not available for this origin";case"HeaderRestricted":return"Not available with restricted header";case"NotAvailableForCrawlBots":return"Not available for crawl bots";case"NotAvailableForAIBots":return"Not available for AI bots";case"NotAvailableWithoutUA":return"Not available when User-Agent is unspecified"}}(a))!==null&&c!==void 0?c:nr(a)}function Df(s,c,a){var f={requestId:s,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(c!==void 0&&(f.sealedResult=c),!a)return f;var g="n/a";return(0,n.Cl)((0,n.Cl)({},f),{incognito:!1,browserName:g,browserVersion:g,device:g,ip:g,os:g,osVersion:g,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}})}function Uf(s,c,a,f){return{result:(0,n.Cl)((0,n.Cl)({},Df(s,c,f)),{bot:(0,n.Cl)({probability:1},a===void 0?void 0:{safe:a})})}}function Ff(s,c,a){var f=new Error(s);return c!==void 0&&(f.requestId=c),a!==void 0&&(f.raw=a),f}function Hf(s){s?.forEach(L4)}function L4(s){var c=s.level,a=s.message;c==="error"?console.error(a):c==="warning"?console.warn(a):console.log(a)}function Vf(s){return{error:Ff(cc,void 0,{httpStatusCode:s.status,bodyBase64:mr(s.body)})}}var Wf="[Fingerprint Pro]";function C4(s){return s===void 0&&(s=Wf),function(c){var a=console.log;switch(c.e){case 2:case 5:case 8:case 11:case 14:case 20:a=console.error;break;case 13:var f=c.result;Object.keys(f).some(function(w){return"error"in f[w]})&&(a=console.warn);break;case 17:var g=c.error;a=c.stage===0&&ms(g)&&g.message===Lf?console.log:console.error}a.apply(console,function(w,b){var _=b.e,m=b.stage,I=(0,n.Tt)(b,["e","stage"]),L=[w,new Date().toISOString().slice(11),ff(_)];if(m!==void 0)switch(m){case 0:L.push("(fast)");break;case 1:L.push("(final)");break;default:I.stage=m}return L.push(I),L}(s,c))}}function B4(s){s===void 0&&(s="".concat(Wf," "));var c={};return function(a){switch(a.e){case 15:c[a.getCallId]=a.body;break;case 18:console.log("".concat(s,"Visitor id request"),c[a.getCallId]);break;case 19:console.log("".concat(s,"Visitor id response"),a.body);break;case 16:case 17:delete c[a.getCallId]}}}var zf="__fpjs_pvid";function Gf(){var s=window,c=s[zf];return s[zf]=typeof c=="string"?c:Eo(10)}function P4(){var s=window;try{return s.self!==s.top}catch{return!0}}function fc(){return!document.hidden}var Kf="stripped",dc=["path","query","fragment"];function As(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f=this;return(0,n.YH)(this,function(g){switch(g.label){case 0:return jf(c)?[2,s]:(a=Is(s),[4,Promise.all(dc.map(function(w){return(0,n.sH)(f,void 0,void 0,function(){var b,_,m;return(0,n.YH)(this,function(I){switch(I.label){case 0:return b=a[w],c[w]&&b?(_=a,m=w,[4,M4(w==="query"?(L=b,L.split("&").sort().join("&")):b)]):[3,2];case 1:_[m]=I.sent(),I.label=2;case 2:return[2]}var L})})}))]);case 1:return g.sent(),[2,ks(a)]}})})}function jf(s){return!(s&&dc.some(function(c){return s[c]}))}function Is(s){var c,a,f=s.split("#"),g=f[0],w=f.slice(1),b=g.split("?"),_=b[0],m=b.slice(1),I=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(_);return I?(c=(I[1]||"")+(I[4]||""),a=I[5]||""):(c="",a=_),{origin:c,path:a,query:m.length?m.join("?"):null,fragment:w.length?w.join("#"):null}}function ks(s){var c=s.origin,a=s.path,f=s.query,g=s.fragment;return c+a+(f===null?"":"?".concat(f))+(g===null?"":"#".concat(g))}function M4(s){var c;return(0,n.sH)(this,void 0,void 0,function(){var a;return(0,n.YH)(this,function(f){switch(f.label){case 0:return s===""?[2,""]:(a=(c=window.crypto)===null||c===void 0?void 0:c.subtle)!=null&&a.digest?[4,a.digest("SHA-256",Fr(s))]:[2,Kf];case 1:return[2,mr(f.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}})})}function D4(s,c){var a=Is(s),f=a.origin+a.path;return f&&!f.endsWith("/")&&(f+="/"),f+=c,a.origin="",a.path=f,ks(a)}function hc(s,c){for(var a=Is(s),f=a.query,g=0,w=Object.entries(c);g<w.length;g++)for(var b=w[g],_=b[0],m=b[1],I=0,L=Array.isArray(m)?m:[m];I<L.length;I++){var x=L[I];f="".concat(f?"".concat(f,"&"):"").concat(_,"=").concat(U4(x))}return a.query=f,ks(a)}function U4(s){return s.split("/").map(encodeURIComponent).join("/")}function F4(s){return function(c){var a=[],f=new Map,g=window.setInterval(function(){var b=a.shift();if(b){var _=b[0],m=b[1],I=_o(s(m));f.set(_,I)}},1);function w(){window.clearInterval(g)}return c.then(w,w),[a,f,c]}}function Yf(s){var c,a,f=Math.random();return c=f,a=s,s.container[0].push([c,a]),function(g,w,b){var _;function m(){window.clearInterval(_)}var I=g[1],L=g[2],x=new Promise(function(Y,J){_=window.setInterval(function(){var tt=I.get(w);if(tt)return I.delete(w),tt.then(Y,J)},1)});return x.then(m,m),b?.then(m,m),L.then(m,m),x}(s.container,f,s.abort)}var qf=F4(H4);function H4(s){return function(c,a,f,g){var w,b=document,_="securitypolicyviolation",m=function(L){var x=new URL(c,location.href),Y=L.blockedURI;Y!==x.href&&Y!==x.protocol.slice(0,-1)&&Y!==x.origin||(w=L,I())};b.addEventListener(_,m);var I=function(){return b.removeEventListener(_,m)};return g?.then(I,I),Promise.resolve().then(a).then(function(L){return I(),L},function(L){return new Promise(function(x){var Y=new MessageChannel;Y.port1.onmessage=function(){return x()},Y.port2.postMessage(null)}).then(function(){if(I(),w)return function(){throw $f()}();throw L})})}(s.url,function(){return a=(c=s).url,f=c.method,g=f===void 0?"get":f,w=c.body,b=c.headers,_=c.withCredentials,m=_!==void 0&&_,I=c.timeout,L=c.responseFormat,x=c.abort,new Promise(function(Y,J){if(function(Et){if(URL.prototype)try{return new URL(Et,location.href),!1}catch(ht){if(ht instanceof Error&&ht.name==="TypeError")return!0;throw ht}}(a))throw So("InvalidURLError","Invalid URL");var tt=new XMLHttpRequest;try{tt.open(g,a,!0)}catch(Et){throw Et instanceof Error&&/violate.+content security policy/i.test(Et.message)?$f():Et}if(tt.withCredentials=m,tt.timeout=I===void 0?0:Math.max(I,1),L==="binary"&&(tt.responseType="arraybuffer"),b)for(var nt=0,ut=Object.keys(b);nt<ut.length;nt++){var pt=ut[nt];tt.setRequestHeader(pt,b[pt])}tt.onload=function(){return Y(function(Et){return{body:Et.response,status:Et.status,statusText:Et.statusText,getHeader:function(ht){return function(yt,Ht){var Vt,jt=new RegExp("^".concat((Vt=Ht,Vt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(yt);return jt?jt[1]:void 0}(Et.getAllResponseHeaders(),ht)}}}(tt))},tt.ontimeout=function(){return J(So("TimeoutError","The request timed out"))},tt.onabort=function(){return J(So("AbortError","The request is aborted"))},tt.onerror=function(){return J(So("TypeError",navigator.onLine?"Connection error":"Network offline"))},tt.send(function(Et){var ht=function(){try{return new Blob([]),!1}catch{return!0}};if(Et instanceof ArrayBuffer){if(!ht())return new Uint8Array(Et)}else if(Et?.buffer instanceof ArrayBuffer&&ht())return Et.buffer;return Et}(w)),x?.catch(function(){}).then(function(){tt.onabort=null,tt.abort()})});var c,a,f,g,w,b,_,m,I,L,x},0,s.abort)}function So(s,c){var a=new Error(c);return a.name=s,a}function $f(){return So("CSPError","The request is blocked by the CSP")}function kr(s,c){for(var a=[],f=2;f<arguments.length;f++)a[f-2]=arguments[f];s&&$l(function(){var g=c.apply(void 0,a);g!==void 0&&s(g)})}function Ao(s,c,a,f,g){return(0,n.sH)(this,void 0,void 0,function(){var w,b;return(0,n.YH)(this,function(_){switch(_.label){case 0:kr(s,c),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,g()];case 2:return w=_.sent(),[3,4];case 3:throw b=_.sent(),kr(s,f,b),b;case 4:return kr(s,a,w),[2,w]}})})}function V4(s){for(var c={},a=0,f=Object.keys(s);a<f.length;a++){var g=f[a],w=s[g];if("value"in w){w.value;var b=(0,n.Tt)(w,["value"]);c[g]=b}else c[g]=w}return c}function Zf(s){return typeof s.getCallId=="string"}function W4(s){if(typeof s!="object"||!s)return s;var c=s.modules;return c instanceof Array?(0,n.Cl)((0,n.Cl)({},s),{modules:c.map(function(a){if(typeof a!="object"||!a)return a;var f=a.key;return typeof f=="string"?{key:f}:a})}):s}function z4(){var s=window,c=navigator;return Mi(["maxTouchPoints"in c,"mediaCapabilities"in c,"PointerEvent"in s,"visualViewport"in s,"onafterprint"in s])>=4}function G4(){var s=window;return Mi(["mediaSession"in navigator,"BigInt64Array"in s,"FormDataEvent"in s,"ImageBitmap"in s,"WebGL2RenderingContext"in s,"onclose"in s])>=4}function K4(){var s=window;return Mi(["fromAsync"in Array,"OffscreenCanvas"in s,"CompressionStream"in s,"isWellFormed"in String.prototype])>=3}function j4(){var s,c=window;return Mi(["Iterator"in c,c.Error&&"isError"in c.Error,c.Atomics&&"pause"in c.Atomics,((s=c.Document)===null||s===void 0?void 0:s.prototype)&&"fragmentDirective"in c.Document.prototype,c.CSSRule&&!("UNKNOWN_RULE"in c.CSSRule),!("SVGDocument"in c)])>=4}function Xf(){var s=window;return Mi([!("PushManager"in s),!("AudioBuffer"in s),!("RTCPeerConnection"in s),!("geolocation"in navigator),!("ServiceWorker"in s)])>=3}function Y4(){var s=window;return Mi(["ClipboardItem"in s,"PerformanceEventTiming"in s,"RTCSctpTransport"in s])>=2}var q4=function(){function s(c){var a=this;this.onReportReady=c,this.isStopped=!1,this.pageStartTimestamp=function(){var tt,nt,ut=performance;if(ut.timeOrigin){var pt=(nt=(tt=ut.getEntriesByType)===null||tt===void 0?void 0:tt.call(ut,"navigation"))===null||nt===void 0?void 0:nt[0];if(pt)return ut.timeOrigin+(pt.responseStart||pt.unloadEventEnd)}return ut.timing.domLoading||ut.timing.responseStart||ut.timing.unloadEventEnd}(),this.events={};for(var f=window,g=document,w=[[g,"readystatechange",function(){return a.handleDocumentReadyStateChange()}],[g,"visibilitychange",function(){return a.handleVisibilityChange()}],[g,"pageshow",function(){return a.handlePageTransition(!0)}],[g,"pagehide",function(){return a.handlePageTransition(!1)}],[f,"unload",function(){return a.handlePageUnload()}]],b=0,_=w;b<_.length;b++){var m=_[b],I=m[0],L=m[1],x=m[2];I.addEventListener(L,x)}var Y=function(tt){var nt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map(function(ut){return Pi(document,ut,tt,void 0)});return function(){for(var ut=0,pt=nt;ut<pt.length;ut++)(0,pt[ut])()}}(function(){return a.handleFullscreenChange()}),J=function(tt){var nt=window,ut=navigator.connection;if(ut)return Pi(ut,"change",tt);var pt=Pi(nt,"online",tt),Et=Pi(nt,"offline",tt);return function(){pt(),Et()}}(function(){return a.handleNetworkConnectionChange()});this.stop=function(){a.isStopped=!0;for(var tt=0,nt=w;tt<nt.length;tt++){var ut=nt[tt],pt=ut[0],Et=ut[1],ht=ut[2];pt.removeEventListener(Et,ht)}Y(),J()}}return s.prototype.addEvent=function(c){var a;if(!this.isStopped){var f={time:new Date,type:"agentEvent",event:c};if(c.e===0){var g=c.options;this.urlHashing=(a=g?.urlHashing)!==null&&a!==void 0?a:uf(g?.stripUrlParams),f.documentReadyState=document.readyState,f.isPageVisible=fc(),f.isFullscreen=Jf(),f.network=Qf()}switch(this.storeAgentEvent(f),c.e){case 2:this.submitReport(c.agentId,void 0);break;case 4:case 5:this.submitReport(c.agentId,c.getCallId)}}},s.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},s.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:fc()})},s.prototype.handlePageTransition=function(c){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:c})},s.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:Jf()})},s.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:Qf()})},s.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var c=0,a=Object.keys(this.events);c<a.length;c++){var f=a[c],g=this.events[f];if(Object.keys(g.getCalls).length===0)this.submitReport(f,void 0);else for(var w=0,b=Object.keys(g.getCalls);w<b.length;w++){var _=b[w];$4(g.getCalls[_])||this.submitReport(f,_)}}this.stop()},s.prototype.storeAgentEvent=function(c){var a=c.event,f=a.agentId;if(this.events[f]||(this.events[f]={commonEvents:[],getCalls:{}}),Zf(a)){var g=a.getCallId;this.events[f].getCalls[g]||(this.events[f].getCalls[g]=[]),this.events[f].getCalls[g].push(c)}else this.events[f].commonEvents.push(c)},s.prototype.storeEnvironmentEvent=function(c){for(var a=0,f=Object.keys(this.events);a<f.length;a++){var g=f[a];this.events[g].commonEvents.push(c)}},s.prototype.submitReport=function(c,a){var f=function(w,b,_){var m=[];return w[b]&&(m.push.apply(m,w[b].commonEvents),_!==void 0&&m.push.apply(m,w[b].getCalls[_]||[])),m.sort(function(I,L){return I.time.getTime()-L.time.getTime()}),m}(this.events,c,a),g=function(w,b,_){for(var m,I,L,x,Y,J,tt,nt,ut,pt=function(Tt){for(var Ut={},qt=0,ne=Tt;qt<ne.length;qt++){var se=ne[qt];se.type==="agentEvent"&&(Ut[se.event.e]=se)}return Ut}(w),Et="null",ht=0,yt=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];ht<yt.length;ht++){var Ht=yt[ht],Vt=Ht[0],jt=Ht[1];if(pt[Vt]){Et=jt;break}}return{time:((m=w[w.length-1])===null||m===void 0?void 0:m.time)||new Date,pageUrl:location.href,pageStartTime:new Date(b),isInIframe:P4(),agentVersion:(I=pt[0])===null||I===void 0?void 0:I.event.version,userAgent:navigator.userAgent,pageViewId:Gf(),agentId:(L=pt[0])===null||L===void 0?void 0:L.event.agentId,getCallId:(x=pt[3])===null||x===void 0?void 0:x.event.getCallId,requestId:(J=(Y=pt[4])===null||Y===void 0?void 0:Y.event.result.requestId)!==null&&J!==void 0?J:(nt=(tt=pt[5])===null||tt===void 0?void 0:tt.event.error)===null||nt===void 0?void 0:nt.requestId,visitorId:(ut=pt[4])===null||ut===void 0?void 0:ut.event.result.visitorId,identificationState:Et,events:w,urlHashing:_}}(f,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(g)}catch(w){console.error(w)}},s}();function $4(s){return s.some(function(c){return c.type==="agentEvent"&&(c.event.e===4||c.event.e===5)})}function Jf(){return!!X()}function Qf(){var s=navigator.connection;return{online:navigator.onLine,downlink:s?.downlink,downlinkMax:s?.downlinkMax,effectiveType:s?.effectiveType,roundTrip:s?.rtt,saveData:s?.saveData,type:s?.type}}function Z4(s){var c=this,a=s.clientId,f=s.token,g=s.endpoint,w=g===void 0?"https://api.rollbar.com/api/1/item/":g,b=new q4(function(_){return(0,n.sH)(c,void 0,void 0,function(){var m;return(0,n.YH)(this,function(I){switch(I.label){case 0:return m=function(L,x,Y){return{access_token:Y,data:X4(L,x,void 0)}}(_,a,f),[4,t5(w,m)];case 1:return I.sent(),[2]}})})});return b.addEvent.bind(b)}function X4(s,c,a){var f;a===void 0&&(a=rf());var g=J4[s.identificationState],w=g.level,b=g.message,_=function(m,I){if(jf(I))return m;for(var L=Is(m),x=0,Y=dc;x<Y.length;x++){var J=Y[x];I[J]&&L[J]&&(L[J]=Kf)}return ks(L)}(s.pageUrl,s.urlHashing);return{environment:c,level:w,timestamp:Math.round(s.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:a,notifier:{name:"Fingerprint Pro monitoring",version:tc},request:{url:_,query_string:((f=/\?.*$/.exec(_))!==null&&f!==void 0?f:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:s.userAgent,code_version:s.agentVersion}},person:s.visitorId===void 0?void 0:{id:"visitorId:".concat(s.visitorId)},body:{telemetry:(0,n.fX)([{level:"debug",source:"client",timestamp_ms:s.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],s.events.map(Q4),!0),message:{body:b}},custom:{isInIframe:s.isInIframe,pageViewId:s.pageViewId,agentId:s.agentId,getCallId:s.getCallId,requestId:s.requestId,identificationState:s.identificationState}}}var J4={null:{level:"info",message:"Load() wasn't called"},loading:{level:"warning",message:"Load() incomplete"},loadSuccess:{level:"info",message:"Load() succeeded, get() wasn't called"},loadFail:{level:"error",message:"Load() failed"},getting:{level:"warning",message:"Get() incomplete"},getSuccess:{level:"info",message:"Get() succeeded"},getFail:{level:"error",message:"Get() failed"}};function Q4(s){var c={type:"manual",level:"debug",source:"client",timestamp_ms:s.time.getTime()};switch(s.type){case"documentReadyState":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:'Document ready state becomes "'.concat(s.state,'"')}});case"pageVisibilityToggle":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:"Page becomes ".concat(s.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:s.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:"Programmatic fullscreen ".concat(s.isFullscreen?"on":"off")}});case"networkChange":return(0,n.Cl)((0,n.Cl)({},c),{body:(0,n.Cl)((0,n.Cl)({},s.network),{message:"Network connection changes"})});case"pageUnload":return(0,n.Cl)((0,n.Cl)({},c),{body:{message:"Page is about to unload (terminate)"}})}var a=s.event,f=function(I,L){L===void 0&&(L="info");var x=I;x.e,x.agentId,x.getCallId;for(var Y=(0,n.Tt)(x,["e","agentId","getCallId"]),J=(0,n.Cl)((0,n.Cl)({},c),{level:L,body:(0,n.Cl)({message:ff(a.e)},Y)}),tt=0,nt=["documentReadyState","isPageVisible","isFullscreen","network"];tt<nt.length;tt++){var ut=nt[tt];s[ut]!==void 0&&(J.body[ut]=s[ut])}return J};switch(a.e){case 0:a.version;var g=a.options,w=(0,n.Tt)(a,["version","options"]);return f((0,n.Cl)((0,n.Cl)({},w),{options:W4(g)}));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return f(a);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return f(a,"error");case 7:var b=a.result;return f((0,n.Cl)((0,n.Cl)({},a),{result:(0,n.Cl)((0,n.Cl)({},b),{v:"v"in b?b.v&&ci(b.v,1e3):void 0})}));case 10:return f((0,n.Cl)((0,n.Cl)({},a),{body:ci(a.body,1e3)}));case 13:var _=f((0,n.Cl)((0,n.Cl)({},a),{result:V4(a.result)}));return _.body.message+=" (the values are omitted)",_;case 19:var m=a.body;return m instanceof ArrayBuffer&&(m="(base64) ".concat(m.byteLength>1800?"".concat(mr(new Uint8Array(m,0,1800)),"..."):mr(m))),f((0,n.Cl)((0,n.Cl)({},a),{body:m}))}}function t5(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f;return(0,n.YH)(this,function(g){switch(g.label){case 0:a=function(w){return JSON.stringify(w,function(b,_){if(_ instanceof Error){var m=function(I,L){var x;return L===void 0&&(L=!1),(0,n.Cl)({name:I.name,message:I.message,stack:L?(x=I.stack)===null||x===void 0?void 0:x.split(`
15
+ `):I.stack},I)}(_);return typeof m.stack=="string"&&(m.stack=ci(m.stack,1e3)),m}return _})}(c),f=Xl(1e3,1e4),g.label=1;case 1:return navigator.onLine&&function(w){var b,_=w.url,m=w.body,I=function(){var x,Y=(x=window.event)===null||x===void 0?void 0:x.type;return Y==="pagehide"||Y==="unload"}();if(I)try{if(!((b=navigator.sendBeacon)===null||b===void 0)&&b.call(navigator,_,m))return!0}catch(x){if(!(x instanceof Error&&x.message==="Illegal invocation"))throw x}var L=new XMLHttpRequest;L.open("POST",_,!I),m instanceof Blob&&L.setRequestHeader("Content-Type",m.type);try{L.send(m)}catch{return!1}return!0}({url:s,body:a})?[3,4]:[4,bo(f())];case 2:g.sent(),g.label=3;case 3:return[3,1];case 4:return[2]}})})}function t0(s,c,a,f,g){f===void 0&&(f=1/0);var w,b={failedAttempts:[]},_=function(x){var Y=function(nt){var ut=(0,n.fX)([],nt,!0);return{current:function(){return ut[0]},postpone:function(){var pt=ut.shift();pt!==void 0&&ut.push(pt)},exclude:function(){ut.shift()}}}(x),J=Xl(200,1e4),tt=new Set;return[Y.current(),function(nt,ut,pt){var Et;if(ut)Et=function(Vt){var jt=Vt.getHeader("retry-after");if(jt){if(/^\s*\d+(\.\d+)?\s*$/.test(jt))return 1e3*parseFloat(jt);var Tt=new Date(jt);return isNaN(Tt)?void 0:Tt.getTime()-Date.now()}}(ut),Et!==void 0?Y.postpone():Y.exclude();else if(pt instanceof Error&&(pt.name==="CSPError"||pt.name==="InvalidURLError"))Y.exclude(),Et=0;else{var ht=Date.now()-nt.getTime()<50,yt=Y.current();yt&&ht&&!tt.has(yt)&&(tt.add(yt),Et=0),Y.postpone()}var Ht=Y.current();return Ht===void 0?void 0:[Ht,Et??nt.getTime()+J()-Date.now()]}]}(s),m=_[0],I=_[1],L=(w=[g?.then(function(x){return b.aborted={resolve:!0,value:x}},function(x){return b.aborted={resolve:!1,error:x}}),(0,n.sH)(this,void 0,void 0,function(){var x,Y,J;return(0,n.YH)(this,function(tt){switch(tt.label){case 0:if(m===void 0)return[2];x=m,Y=function(nt){var ut,pt,Et,ht,yt,Ht;return(0,n.YH)(this,function(Vt){switch(Vt.label){case 0:ut=new Date,pt=void 0,Et=void 0,Vt.label=1;case 1:return Vt.trys.push([1,3,,4]),[4,Za(function(){return c(x,nt,g)},g)];case 2:return pt=Vt.sent(),[3,4];case 3:return ht=Vt.sent(),Et=ht,b.failedAttempts.push({level:0,endpoint:x,error:ht}),[3,4];case 4:if(pt){if("result"in(yt=a(pt)))return b.result=yt.result,[2,"break"];if(b.failedAttempts.push({level:1,endpoint:x,error:yt.error}),yt.stop)return[2,"break"]}return(Ht=I(ut,pt,Et))?[4,Za(bo(Ht[1]),g)]:[2,"break"];case 5:return Vt.sent(),x=Ht[0],[2]}})},J=0,tt.label=1;case 1:return J<f?[5,Y(J)]:[3,4];case 2:if(tt.sent()==="break")return[3,4];tt.label=3;case 3:return++J,[3,1];case 4:return[2]}})})],Promise.race(w.filter(function(x){return!!x}))).then(function(){return b});return{then:L.then.bind(L),current:b}}function e0(){return"js/".concat(tc)}var e5=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,n5=/@([^(^\s^}]+):(\d)+:(\d)+/i;function n0(s){return{e:r5(s)}}function r5(s){var c;try{s&&typeof s=="object"&&"message"in s?(c=String(s.message),"name"in s&&(c="".concat(s.name,": ").concat(c))):c=String(s)}catch(a){c="Code 3017: ".concat(a)}return ci(c,500)}function vn(s){return kt(s,function(c){return{s:0,v:c}})}function On(s,c){return kt(s,function(a){return{s:a==null?c:0,v:a??null}})}function r0(s){return kt(s,function(c){return typeof c=="number"?{s:c,v:null}:{s:0,v:c}})}function zn(s){var c=function(f){return{s:0,v:f}},a=function(f){if(!(f instanceof ze))throw f;var g=f.state;if(typeof g!="number")throw new Error("Unexpected non-numeric error state ".concat(JSON.stringify(g),". Error message: ").concat(f.message));return{s:g,v:null}};return function(){try{var f=s();return function(g){return!!g&&typeof g.then=="function"}(f)?f.then(c,a):c(f)}catch(g){return a(g)}}}function i5(s){var c=s.modules,a=s.components,f=a===void 0?{}:a,g=s.customComponent,w=s.apiKey,b=s.tls,_=s.tag,m=s.extendedResult,I=s.exposeComponents,L=s.linkedId,x=s.algorithm,Y=s.imi,J=s.storageKey,tt=s.products,nt=s.urlHashing,ut=s.ab,pt=s.fast,Et=s.requestId;return(0,n.sH)(this,void 0,void 0,function(){var ht,yt,Ht=this;return(0,n.YH)(this,function(Vt){switch(Vt.label){case 0:return ht=(0,n.Cl)(((yt={}).c=w,yt.t=(jt=_)&&typeof jt=="object"?jt:jt!=null?{tag:jt}:void 0,yt.cbd=m?1:void 0,yt.lid=L,yt.a=x,yt.m=Y.m,yt.l=Y.l,yt.ec=I?1:void 0,yt.mo=c.map(function(Tt){return Tt.key}).filter(function(Tt){return!!Tt}),yt.pr=tt,yt.s56=b,yt.s67=g?{s:0,v:g}:{s:-1,v:null},yt.sc=function(){var Tt,Ut=function(){var qt,ne,se,he,Ae,Re=new Error,Le=(qt=Re).fileName?qt.fileName.split(" ")[0]:qt.sourceURL?qt.sourceURL:null;if(Le)return Le;if(Re.stack){var Ue=(se=(ne=Re.stack.split(`
16
+ `))[0],he=ne[1],(Ae=e5.exec(he)||n5.exec(se))?Ae[1]:void 0);if(Ue)return Ue}return null}();return(Tt={}).u=Ut?ci(Ut,1e3):null,Tt}(),yt.uh=function(Tt){var Ut;if(Tt)return(Ut={}).p=Tt.path?1:void 0,Ut.q=Tt.query?1:void 0,Ut.f=Tt.fragment?1:void 0,Ut}(nt),yt.gt=1,yt.ab=ut,yt.hu=pt?0:Et?1:void 0,yt.ri=Et,yt),function(Tt){for(var Ut={},qt=0,ne=Object.keys(Tt);qt<ne.length;qt++){var se=ne[qt],he=Tt[se];if(he){var Ae="error"in he?n0(he.error):he.value;Ut[se]=Ae}}return Ut}(f)),[4,Promise.all(c.map(function(Tt){var Ut=Tt.toRequest;return(0,n.sH)(Ht,void 0,void 0,function(){var qt,ne,se;return(0,n.YH)(this,function(he){switch(he.label){case 0:return Ut?(ne=(qt=Object).assign,se=[ht],[4,Ut(J,nt)]):[3,2];case 1:ne.apply(qt,se.concat([he.sent()])),he.label=2;case 2:return[2]}})})}))];case 1:return Vt.sent(),[2,ht]}var jt})})}function i0(s,c,a,f,g){g===void 0&&(g=p4);var w=g()%(a+1),b=ai(s),_=1+c.length+1+w+f+b.length,m=new ArrayBuffer(_),I=new Uint8Array(m),L=0,x=g();I[L++]=x;for(var Y=0,J=c;Y<J.length;Y++){var tt=J[Y];I[L++]=x+tt}I[L++]=x+w;for(var nt=0;nt<w;++nt)I[L++]=g();var ut=new Uint8Array(f);for(nt=0;nt<f;++nt)ut[nt]=g(),I[L++]=ut[nt];for(nt=0;nt<b.length;++nt)I[L++]=b[nt]^ut[nt%f];return m}function pc(s,c,a){var f=function(){throw new Error("Invalid data")},g=ai(s);g.length<c.length+2&&f();for(var w=0;w<c.length;++w)Ql(g[1+w],g[0])!==c[w]&&f();var b=1+c.length,_=Ql(g[b],g[0]);g.length<b+1+_+a&&f();var m=b+1+_,I=m+a,L=new ArrayBuffer(g.length-I),x=new Uint8Array(L);for(w=0;w<x.length;++w)x[w]=g[I+w]^g[m+w%a];return L}function o5(s){return(0,n.sH)(this,void 0,void 0,function(){var c,a,f,g,w;return(0,n.YH)(this,function(b){switch(b.label){case 0:return o0()?(c=function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}}(),a=c[0],f=c[1],[4,s5(s,f)]):[2,[!1,s]];case 1:return g=b.sent(),w=a?g:function(_){return new Uint8Array(_.buffer,_.byteOffset+2,_.byteLength-6)}(g),[2,[!0,w]]}})})}function o0(){return typeof CompressionStream<"u"}function s5(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a,f,g,w,b,_,m,I,L,x,Y;return(0,n.YH)(this,function(J){switch(J.label){case 0:(a=c.writable.getWriter()).write(s),a.close(),f=c.readable.getReader(),g=[],w=0,J.label=1;case 1:return[4,f.read()];case 2:if(b=J.sent(),_=b.value,b.done)return[3,4];g.push(_),w+=_.byteLength,J.label=3;case 3:return[3,1];case 4:if(g.length===1)return[2,g[0]];for(m=new Uint8Array(w),I=0,L=0,x=g;L<x.length;L++)Y=x[L],m.set(Y,I),I+=Y.byteLength;return[2,m]}})})}var s0=[3,13],a5=[3,14];function c5(s,c){return i0(s,c?a5:s0,3,9)}function u5(s){var c=s.body,a=(0,n.Tt)(s,["body"]);return(0,n.sH)(this,void 0,void 0,function(){var f,g,w,b,_,m,I;return(0,n.YH)(this,function(L){switch(L.label){case 0:return a0(c)?[4,o5(c)]:[3,2];case 1:return b=L.sent(),[3,3];case 2:b=[!1,c],L.label=3;case 3:return g=(f=b)[0],w=f[1],[4,Yf((0,n.Cl)((0,n.Cl)({},a),{body:c5(w,g),responseFormat:"binary"}))];case 4:_=L.sent(),m=_.body,I=!1;try{m=pc(m,s0,9),I=!0}catch{}return[2,(0,n.Cl)((0,n.Cl)({},_),{body:m,wasSecret:I})]}})})}function a0(s){return s.byteLength>1024&&o0()}function c0(s,c,a,f,g){return(0,n.sH)(this,void 0,void 0,function(){var w,b,_,m,I=this;return(0,n.YH)(this,function(L){switch(L.label){case 0:if(s.length===0)throw new TypeError("The list of endpoints is empty");return w=s.map(function(x){return function(Y,J){var tt=J.apiKey,nt=J.integrations,ut=nt===void 0?[]:nt;return hc(Y,{ci:e0(),q:tt,ii:ut})}(x,c)}),[4,i5(c)];case 1:return b=L.sent(),_=gf(b),m=c.fast?0:1,[4,Ao(g,function(){return{e:15,stage:m,body:b,isCompressed:a0(_)}},function(x){return{e:16,stage:m,result:x}},function(x){return{e:17,stage:m,error:x}},function(){return(0,n.sH)(I,void 0,void 0,function(){return(0,n.YH)(this,function(x){switch(x.label){case 0:return[4,t0(w,l5.bind(null,_,g,m,a),N4.bind(null,c.modules,!!c.extendedResult,c.storageKey),1/0,f)];case 1:return[2,f5(x.sent())]}})})})];case 2:return[2,L.sent()]}})})}function l5(s,c,a,f,g,w,b){var _=this;return Ao(c,function(){return{e:18,stage:a,tryNumber:w,url:g}},function(m){var I=m.status,L=m.getHeader,x=m.body,Y=m.bodyData,J=m.wasSecret;return{e:19,stage:a,tryNumber:w,status:I,retryAfter:L("retry-after"),body:Y??x,wasSecret:J}},function(m){return{e:20,stage:a,tryNumber:w,error:m}},function(){return(0,n.sH)(_,void 0,void 0,function(){return(0,n.YH)(this,function(m){switch(m.label){case 0:return[4,u5({url:g,method:"post",headers:{"Content-Type":"text/plain"},body:s,withCredentials:!0,abort:b,container:f})];case 1:return[2,T4(m.sent())]}})})})}function f5(s){var c=s.result,a=s.failedAttempts,f=s.aborted;if(c)return c;var g=a[0];if(!g)throw f&&!f.resolve?f.error:new Error("aborted");var w=g.level,b=g.error;if(w===0&&b instanceof Error){switch(b.name){case"CSPError":throw new Error(uc);case"InvalidURLError":throw new Error(lc);case"AbortError":throw new Error(ac)}throw new Error(sc)}throw b}function d5(s,c,a){var f,g=this,w=(0,n.Cl)((0,n.Cl)({},a),{cache:{}}),b=function(Y){for(var J={},tt={},nt={},ut=0,pt=Y;ut<pt.length;ut++){var Et=pt[ut].sources;Et&&(Object.assign(J,Et.stage1),Object.assign(tt,Et.stage2),Object.assign(nt,Et.stage3))}var ht=tt;return Object.assign(ht,nt),[J,ht]}(s),_=b[0],m=b[1],I=c?1e5:50,L=wt(_,w,[],I),x=_o((f=8,f===void 0&&(f=50),function(Y,J){J===void 0&&(J=1/0);var tt=window.requestIdleCallback;return tt?new Promise(function(nt){return tt.call(window,function(){return nt()},{timeout:J})}):o(Math.min(Y,J))}(f,2*f)).then(function(){return wt(m,w,[],I)}));return function(){return(0,n.sH)(g,void 0,void 0,function(){var Y,J,tt,nt;return(0,n.YH)(this,function(ut){switch(ut.label){case 0:return[4,Promise.all([L(),x.then(function(pt){return pt()})])];case 1:return Y=ut.sent(),J=Y[0],tt=Y[1],nt=tt,Object.assign(nt,J),[2,nt]}})})}}function Hr(s,c){for(var a=s;a;){for(var f=Object.getOwnPropertyNames(a),g=0;g<f.length;g++){var w=f[g];if(vr(w)==c)return w}a=Object.getPrototypeOf(a)}return""}function Xt(s,c){var a=s[Hr(s,c)];return typeof a=="function"?a.bind(s):a}function Un(s,c){var a;return function(f){return a||(a=function(g,w){return Ss(pc(new Uint32Array(g),[],w))}(s,c)),ws(a[f])}}function Io(s,c,a){var f;return function(g){return f===null?f:(f||(f=function(w,b,_){var m=Fr(b());try{return Ss(function(I,L,x){for(var Y=ai(I),J=new ArrayBuffer(Y.length-x),tt=new Uint8Array(J),nt=0;nt<Y.length;++nt)tt[nt]=Y[nt]^L[nt%L.length];return J}(new Uint32Array(w),m,_))}catch(I){if(ms(I)&&I.name==="SyntaxError")return null;throw I}}(s,c,a)),ws(f&&f[g]))}}var ui=Un([3237452699,2611787672,3045311674,2962332150,4003383289,4090353905,3805249708,3028587956,2899958253,2946027702,4002601983,4204452091,4039413417,3970602410,3953912762,2631244730,3973421252,2844251834,2861027766,2946406891,3050675130,3806041579,2961425392,4023946731,3800865722,4208313581,2776941242,3806041513,4208313085,2743259834,3806041513,4208314361,3012023994,3968505257,3045300922,2799294954,4001684968,2648037617],4),h5=[202,206];function p5(s){for(var c={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(nt,ut){return nt(ut)},kpZRq:function(nt,ut,pt){return nt(ut,pt)},UoPyk:function(nt,ut){return nt(ut)},UpGPH:function(nt,ut,pt){return nt(ut,pt)},ZuRYV:function(nt,ut){return nt-ut},VnFXf:function(nt,ut,pt,Et){return nt(ut,pt,Et)},fDQiC:function(nt,ut){return nt(ut)},eKHGy:function(nt,ut){return nt<ut},AkgUE:function(nt,ut){return nt/ut},iBJKB:function(nt,ut,pt){return nt(ut,pt)},lIinn:function(nt,ut){return nt+ut}},a=c.uAVXy.split("|"),f=0;;){switch(a[f++]){case"0":var g=c.FInQd(mr,m);continue;case"1":return c.kpZRq(D4,s,_);case"2":var w=c.kpZRq(m5,c.UoPyk(Fr,L),h5);continue;case"3":var b=c.UpGPH(parseInt,Y[c.ZuRYV(Y.length,1)],16);continue;case"4":var _=c.kpZRq(g5,x,m);continue;case"5":var m=new Uint8Array(16);continue;case"6":var I=c.VnFXf(u0,m[b],8,22);continue;case"7":var L=g.slice(0,Math.min(c.ZuRYV(g.length,2),I));continue;case"8":var x="".concat(L).concat(J).replace(new RegExp(c.fDQiC(ui,1),"g"),"-").replace(new RegExp(c.fDQiC(ui,2),"g"),"_");continue;case"9":var Y=c.UoPyk(kn,s);continue;case"10":var J=c.FInQd(mr,c.FInQd(v5,c.FInQd(tf,w))).slice(0,2);continue;case"11":for(var tt=0;c.eKHGy(tt,Y.length);tt+=2)m[c.AkgUE(tt,2)]=c.iBJKB(parseInt,"".concat(Y[tt]).concat(Y[c.lIinn(tt,1)]),16);continue}break}}function g5(s,c){for(var a={goMxK:"2|4|1|0|3",lnlOq:function(m,I){return m<I},RltcK:function(m,I,L,x){return m(I,L,x)},cVMXe:function(m,I){return m&I},SclSa:function(m,I){return m+I}},f=a.goMxK.split("|"),g=0;;){switch(f[g++]){case"0":for(;a.lnlOq(b,s.length);)_=a.RltcK(u0,c[a.cVMXe(b,15)],4,7),w+=s.slice(b,a.SclSa(b,_)),w+="/",b+=_;continue;case"1":var w="";continue;case"2":var b=0;continue;case"3":return w.slice(0,-1);case"4":var _=0;continue}break}}function u0(s,c,a){return function(f,g){return f+g}(c,Math.floor(function(f,g){return f*g}(function(f){return f/256}(s),function(f){return f+1}(function(f,g){return f-g}(a,c)))))}function m5(s,c){for(var a={toGYz:"0|3|4|1|2",OGfKZ:function(m,I){return m+I},ENgdo:function(m,I){return m<I},oVWhZ:function(m,I){return m+I}},f=a.toGYz.split("|"),g=0;;){switch(f[g++]){case"0":var w=a.OGfKZ(s.length,c.length);continue;case"1":for(var b=0;a.ENgdo(b,c.length);b++)_[a.oVWhZ(b,s.length)]=c[b];continue;case"2":return _;case"3":var _=new Uint8Array(w);continue;case"4":for(b=0;a.ENgdo(b,s.length);b++)_[b]=s[b];continue}break}}function v5(s){var c=function(a,f){return a>>f};return new Uint8Array([c(s,24),c(s,16),function(a){return a>>8}(s),s])}function gc(s,c){return!!s&&function(a,f){return a===f}(function(a,f){return a(f,3814588639)}(Xt,s),function(a,f){return a(f,3814588639)}(Xt,c))}function y5(s){var c=function(f,g){return f(g)},a=function(f){return f(3)}(ui);return function(f,g){return f!==g}(s,c(ui,4))&&(a="".concat(s,".").concat(a)),c(ui,5).concat(a,"/")}function w5(s){var c=function(a){return a(6)}(ui)[s];return"".concat(c,function(a){return a(7)}(ui))}var b5=function(){var s;return(s={}).noop=["a","b"],s}();function _5(s,c,a,f,g,w,b,_,m,I,L,x,Y){var J=this,tt={modules:s,apiKey:f,integrations:_,imi:m,storageKey:b,ab:L,urlHashing:I},nt=function(yt,Ht,Vt){return(0,n.sH)(J,void 0,void 0,function(){var jt,Tt,Ut;return(0,n.YH)(this,function(qt){switch(qt.label){case 0:return x?[4,pt()]:[2,void 0];case 1:jt=qt.sent(),Tt=!1,Ht.catch(function(){return Tt=!0}),qt.label=2;case 2:return qt.trys.push([2,4,,5]),[4,c0(g,(0,n.Cl)((0,n.Cl)({},tt),{tls:jt,fast:!0}),yt,Ht,Vt)];case 3:return[2,qt.sent()];case 4:if(Ut=qt.sent(),Tt)throw Ut;return ms(Ut)&&Ut.message===Lf||console.warn(Ut),[2,void 0];case 5:return[2]}})})},ut=function(yt,Ht,Vt){var jt=yt.timeout,Tt=jt===void 0?1e4:jt,Ut=yt.tag,qt=yt.linkedId,ne=yt.disableTls,se=yt.extendedResult,he=yt.exposeComponents,Ae=yt.environment,Re=yt.products,Le=_o(Promise.all([ht(Vt),Et(Tt,ne,Vt)]));return function(Ue,Fe){return(0,n.sH)(J,void 0,void 0,function(){var Pe,gn,Mn;return(0,n.YH)(this,function(Tn){switch(Tn.label){case 0:return[4,Promise.race([Fe,Le])];case 1:return Pe=Tn.sent(),gn=Pe[0],Mn=Pe[1],[4,c0(g,(0,n.Cl)((0,n.Cl)({},tt),{components:gn,customComponent:Ae,tag:Ut,tls:Mn,linkedId:ef(qt),extendedResult:se,exposeComponents:he,algorithm:w,products:f4(Re,"products"),requestId:Ue}),Ht,Fe,Vt)];case 2:return[2,Tn.sent()]}})})}},pt=function(){return a?.(0,50,!1,void 0)},Et=function(yt,Ht,Vt){return a?.(.1*yt,.4*yt,Ht,Vt)},ht=function(yt){return(0,n.sH)(J,void 0,void 0,function(){var Ht,Vt;return(0,n.YH)(this,function(jt){switch(jt.label){case 0:return jt.trys.push([0,2,,3]),[4,c()];case 1:return Ht=jt.sent(),kr(yt,function(){return{e:13,result:Ht}}),[2,Ht];case 2:throw Vt=jt.sent(),kr(yt,function(){return{e:14,error:Vt}}),Vt;case 3:return[2]}})})};return{get:function(yt){yt===void 0&&(yt={});var Ht=Y&&function(Vt,jt){return function(Tt){return Vt((0,n.Cl)((0,n.Cl)({},Tt),{getCallId:jt}))}}(Y,Eo(8));return Ao(Ht,function(){return{e:3,options:yt}},function(Vt){return{e:4,result:Vt}},function(Vt){return{e:5,error:Vt}},function(){return Vt=function(jt){return function(Tt,Ut,qt){return(0,n.sH)(J,void 0,void 0,function(){var ne,se,he,Ae,Re,Le,Ue;return(0,n.YH)(this,function(Fe){switch(Fe.label){case 0:ne=Zl(),Fe.label=1;case 1:return Fe.trys.push([1,,7,8]),se=qf(ne),he=Yn((Ue=Tt.timeout)!==null&&Ue!==void 0?Ue:1e4).then(function(){return Promise.reject(new Error(oc))}),Ae=ut(Tt,se,Ut),[4,nt(se,he,Ut)];case 2:return(Re=Fe.sent())?(qt(Re),[4,Ae(Re.requestId,he)]):[3,4];case 3:return Fe.sent(),[3,6];case 4:return Le=qt,[4,Ae(void 0,he)];case 5:Le.apply(void 0,[Fe.sent()]),Fe.label=6;case 6:return[3,8];case 7:return ne.resolve(),[7];case 8:return[2]}})})}(yt,Ht,jt)},new Promise(function(jt,Tt){Vt(jt).then(function(){return Tt(new Error("Action didn't call `resolve` or `reject`"))},Tt)});var Vt})}}}var l0=function(s){return(0,n.sH)(this,void 0,void 0,function(){var c,a;return(0,n.YH)(this,function(f){switch(f.label){case 0:return g=(0,n.fX)([(b=/{(.*?)}/.exec(location.hash),!!b&&vr(b[1])===3025844545&&B4())],(s?.modules||[]).map(function(_){return _.addEvent}),!0),w=g.filter(function(_){return!!_}),c=w.length?function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];for(var I=function(Y){$l(function(){return Y.apply(void 0,_)})},L=0,x=w;L<x.length;L++)I(x[L])}:void 0,a=c&&function(_,m){return function(I){return _((0,n.Cl)((0,n.Cl)({},I),{agentId:m}))}}(c,Eo(8)),[4,Ao(a,function(){return{e:0,version:tc,options:s}},function(_){return{e:1,ab:_[1]}},function(_){return{e:2,error:_}},function(){var _,m,I=s.token,L=s.apiKey,x=L===void 0?I:L,Y=s.region,J=Y===void 0?"us":Y,tt=s.tlsEndpoint,nt=tt===void 0?Es:tt,ut=s.disableTls,pt=s.storageKey,Et=pt===void 0?lf:pt,ht=s.endpoint,yt=ht===void 0?_s:ht,Ht=s.te,Vt=Ht===void 0?cf:Ht,jt=s.integrationInfo,Tt=jt===void 0?[]:jt,Ut=s.algorithm,qt=s.imi,ne=qt===void 0?((_={}).m="s",_):qt,se=s.stripUrlParams,he=s.urlHashing,Ae=he===void 0?uf(se):he,Re=s.modules,Le=s.abTests,Ue=Le===void 0?{}:Le,Fe=s.externalABSelections,Pe=Fe===void 0?{}:Fe,gn=s.optimizeRepeatedVisits,Mn=gn!==void 0&&gn,Tn=s.aggressiveOptimization,$n=Tn!==void 0&&Tn;if(!x||typeof x!="string")throw new Error("API key required");var rr,ir,zr,fi,wr,En,Bt,Ot,Nt,te=function(Ce,Ge,an){for(var xn=(0,n.Cl)({},an),Gr=0,To=Object.entries(Ce);Gr<To.length;Gr++){var Fi=To[Gr],Hi=Fi[0],No=Fi[1],Fn=Ge[Hi];if(Fn)try{xn[Hi]=af(Fn);continue}catch(or){console.error(or)}xn[Hi]=af(No)}return xn}(function(Ce){for(var Ge=(0,n.Cl)({},b5),an=0,xn=Ce;an<xn.length;an++){var Gr=xn[an];Object.assign(Ge,Gr.ab)}return Ge}(Re),Ue,Pe),ce=(rr=yt,ir=J,zr=function(Ce,Ge,an){return Ce(Ge,an)},fi=function(Ce,Ge){return Ce(Ge)},wr=function(Ce,Ge){return Ce(Ge)},(Array.isArray(rr)?rr:[rr]).map(function(Ce){return zr(gc,Ce,_s)?fi(y5,ir):wr(String,Ce)})),bn=(m=function(Ce){for(var Ge=0,an=Ce;Ge<an.length;Ge++){var xn=an[Ge];if(xn.tls)return xn.tls}}(Re))===null||m===void 0?void 0:m(nt,ce,x,ut,void 0,a);return kr(a,function(){return{e:12}}),[_5(Re,d5(Re,$n,{urlHashing:Ae,ab:te,te:(Bt=J,Ot=function(Ce,Ge){return Ce(Ge)},Nt=function(Ce,Ge){return Ce(Ge)},gc(En=Vt,cf)?Ot(w5,Bt):Nt(String,En))}),bn,x,ce,ef(Ut),Et,Tt,ne,Ae,te,Mn,a),te]})];case 1:return[2,f.sent()[0]]}var g,w,b})})},E5=vn(Kt),R5=On(be,-1),S5=vn(oe),A5=kt(p,function(s){return s===-1||s===-2||s===-3?{s,v:null}:{s:0,v:s}}),I5=kt(we,function(s){return{s:0,v:s.map(function(c){return c===null?-1:c})}}),f0=On(ae,-1),d0=vn(ye),k5=On(pe,-1),h0=On(de,-1),p0=kt(fe,function(s){return{s:0,v:s.map(function(c){return c===null?-1:c})}}),g0=On(sn,-1),O5=vn(Se),T5=vn(Te),N5=vn(wn),x5=vn(Ve),L5=On(Ye,-1),m0=On(Ir,-1),C5=On(Qe,-1),B5=kt(function(){return Yt()},function(s){var c=s.geometry,a=s.text,f=c==="unsupported"?-1:c==="unstable"?-2:0;return{s:f,v:(0,n.Cl)((0,n.Cl)({},s),{geometry:f===0?kn(c):"",text:f===0?kn(a):""})}}),v0=vn(Je),y0=vn(si),P5=vn(un),M5=vn(ln),D5=On(hs,-1),U5=On(fn,-1),F5=On(dn,-1),H5=On(ps,-1),V5=On(hn,-1),W5=On(pn,-1),z5=On(io,-1),G5=On(oo,-1),K5=kt(so,function(s){return{s:0,v:kn(Object.keys(s).map(function(c){return"".concat(c,"=").concat(s[c])}).join(","))}}),j5=On(ao,-1),Y5=vn(co),q5=On(uo,-1),$5=kt(lo,function(s){return s===-1||s===-2||s===-3?{s,v:null}:{s:0,v:s}}),w0=r0(ho),b0=kt(po,function(s){var c;if(typeof s=="number")return{s,v:null};var a=["32926","32928"],f=s.parameters.map(function(w){var b=w.split("=",3),_=b[0],m=b[1];return b[2]!==void 0||a.includes(m)?"".concat(_,"(").concat(m,")=null"):"".concat(_,"=").concat(m)}),g=s.extensionParameters.map(function(w){var b=w.split("=",3),_=b[0],m=b[1],I=b[2];return I!==void 0&&m!=="34047"?"".concat(_,"(").concat(m,")=").concat(I):"".concat(_,"=").concat(m)});return{s:0,v:{contextAttributes:kn(s.contextAttributes.join("&")),parameters:kn(f.join("&")),parameters2:kn(s.parameters.join("&")),shaderPrecisions:kn(s.shaderPrecisions.join("&")),extensions:kn(((c=s.extensions)===null||c===void 0?void 0:c.join(","))||""),extensionParameters:kn(g.join(",")),extensionParameters2:kn(s.extensionParameters.join("&")),unsupportedExtensions:s.unsupportedExtensions}}}),Z5=r0(fo),X5=zn(Wn.userAgent),J5=zn(Wn.appVersion),Q5=zn(Wn.rtt),t6=zn(Wn.notificationPermissions),e6=zn(Wn.pluginsLength),n6=zn(Wn.errorTrace),r6=zn(Wn.productSub),i6=zn(Wn.documentElementKeys),o6=zn(Wn.windowExternal),s6=zn(Wn.mimeTypesConsistent),a6=zn(Wn.functionBind),c6=zn(Wn.process),u6=zn(Wn.windowSize),l6=zn(Wn.distinctiveProps),_0=vn(q),E0=vn(h),R0=vn(T),S0=vn(D),A0=vn(Z),I0=vn(j),k0=vn(at),O0=vn(Xf),f6=vn(K);function d6(){var s=window;if(!T())return Di(!1);try{if([66,114,97,118,101].map(function(b){return String.fromCharCode(b)}).join("")in s)return Di(!0);var c=document.createElement("canvas");c.width=4,c.height=4,c.style.display="inline";var a=c.toDataURL();if(a==="")return Di(!0);var f=ys(a.split(",")[1]),g=Jl(f,[73,68,65,84,24]);if(g===-1)return Di(!1);var w=Jl(f,[73,69,78,68]);return Di(w!==-1&&f.slice(g+5,w).reduce(function(b,_){return b+_},0)!==1321)}catch{return Di(!1)}}function Di(s){return{s:0,v:s}}function T0(){return N0("dark")?{s:0,v:!0}:N0("light")?{s:0,v:!1}:{s:-1,v:null}}function N0(s){return matchMedia("(prefers-color-scheme: ".concat(s,")")).matches}function x0(){var s=Date.now();return{s:0,v:[L0(s),L0(s-6e4*new Date().getTimezoneOffset())]}}function L0(s){var c=Number(s);return isNaN(c)?-1:c}function h6(){var s=window.performance;if(!s?.now)return{s:-1,v:null};for(var c=1,a=1,f=s.now(),g=f,w=0;w<5e4;w++)if((f=g)<(g=s.now())){var b=g-f;b>c?b<a&&(a=b):b<c&&(a=c,c=b)}return{s:0,v:[c,a]}}var p6=Un([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function g6(){var s,c,a=function(w,b){return w===b},f=function(w,b,_){return w(b,_)},g=a(c=function(w){return w===null}(s=window[function(w){return w(0)}(p6)])||a(s,void 0)?void 0:f(Xt,s,3933025333),null)||function(w){return w===void 0}(c)?void 0:f(Xt,c,3098533860);return function(w){return w===null}(g)||a(g,void 0)?{s:-1,v:null}:{s:0,v:g}}function m6(s){var c=it(s.cache);return c?(function(a){a.clearColor(0,0,1,1);var f=a.createProgram();if(f){b(0,"attribute vec2 p;uniform float t;void main(){float s=sin(t);float c=cos(t);gl_Position=vec4(p*mat2(c,s,-s,c),1,1);}"),b(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),a.linkProgram(f),a.useProgram(f),a.enableVertexAttribArray(0);var g=a.getUniformLocation(f,"t"),w=a.createBuffer();a.bindBuffer(34962,w),a.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),a.vertexAttribPointer(0,2,5126,!1,0,0),a.clear(16384),a.uniform1f(g,3.65),a.drawArrays(4,0,3)}function b(_,m){var I=a.createShader(35633-_);f&&I&&(a.shaderSource(I,m),a.compileShader(I),a.attachShader(f,I))}}(c),{s:0,v:kn(c.canvas.toDataURL())}):{s:-1,v:null}}function v6(s){return C0(s,w6)}function y6(s){return C0(s,b6)}function C0(s,c){var a=s.cache;return(0,n.sH)(this,void 0,void 0,function(){var f,g;return(0,n.YH)(this,function(w){switch(w.label){case 0:return typeof((f=window.speechSynthesis)==null?void 0:f.getVoices)!="function"?[2,{s:-1,v:null}]:(a.tts||(a.tts=function(b){return(0,n.sH)(this,void 0,void 0,function(){var _,m,I;return(0,n.YH)(this,function(L){switch(L.label){case 0:if(_=function(){return b.getVoices()},function(x){return!x.addEventListener||j()&&Xf()}(b))return[2,{v:_()}];m={v:null},L.label=1;case 1:return L.trys.push([1,,3,4]),[4,new Promise(function(x,Y){var J,tt=function(){var nt=_();nt.length?(m.v=nt,J?.(),J=$a(x,50)):J||(J=gs(x,600))};I=Pi(b,"voiceschanged",function(){try{tt()}catch(nt){Y(nt)}}),tt()})];case 2:return L.sent(),[3,4];case 3:return I&&gs(I,1e4),[7];case 4:return[2,m]}})})}(f)),[4,a.tts]);case 1:return g=w.sent(),[2,function(){return g.v?c(g.v):{s:-2,v:null}}]}})})}function w6(s){var c=function(f){return f.replace(/([,\\])/g,"\\$1")},a=s.map(function(f){return[c(f.voiceURI),c(f.name),c(f.lang),f.localService?"1":"0",f.default?"1":"0"].join(",")}).sort();return{s:s.length?0:1,v:kn(JSON.stringify(a))}}function b6(s){var c=s.some(function(a){return vr(a.name.slice(0,6))===1655763047});return{s:s.length?0:1,v:c}}var _6=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function E6(){var s;return(0,n.sH)(this,void 0,void 0,function(){var c,a,f,g=this;return(0,n.YH)(this,function(w){switch(w.label){case 0:return(c=navigator.userAgentData)&&typeof c=="object"?(a={},f=[],typeof c.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(_6.map(function(b){return(0,n.sH)(g,void 0,void 0,function(){var _,m;return(0,n.YH)(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,c.getHighEntropyValues([b])];case 1:return(_=I.sent()[b])!==void 0&&(a[b]=typeof _=="string"?_:JSON.stringify(_)),[3,3];case 2:if(!((m=I.sent())instanceof Error&&m.name==="NotAllowedError"))throw m;return f.push(b),[3,3];case 3:return[2]}})})}))]):[2,{s:-1,v:null}];case 1:w.sent(),w.label=2;case 2:return[2,{s:0,v:{b:c.brands.map(function(b){return{b:b.brand,v:b.version}}),m:c.mobile,p:(s=c.platform)!==null&&s!==void 0?s:null,h:a,nah:f}}]}})})}function B0(s){var c=s.urlHashing;return(0,n.sH)(this,void 0,void 0,function(){var a,f,g;return(0,n.YH)(this,function(w){switch(w.label){case 0:return a=function(){for(var b,_,m=[],I=window;;)try{var L=(b=I.location)===null||b===void 0?void 0:b.href,x=(_=I.document)===null||_===void 0?void 0:_.referrer;if(L===void 0||x===void 0)return{s:1,v:m};m.push({l:L,f:x});var Y=I.parent;if(!Y||Y===I)return{s:0,v:m};I=Y}catch(J){if(S6(J))return{s:1,v:m};throw J}}(),f=[(0,n.Cl)({},a)],g={},[4,R6(a.v,c)];case 1:return[2,n.Cl.apply(void 0,f.concat([(g.v=w.sent(),g)]))]}})})}function R6(s,c){return(0,n.sH)(this,void 0,void 0,function(){var a=this;return(0,n.YH)(this,function(f){return[2,Promise.all(s.map(function(g){return(0,n.sH)(a,void 0,void 0,function(){var w,b,_;return(0,n.YH)(this,function(m){switch(m.label){case 0:return[4,Promise.all([As(g.l,c),As(g.f,c)])];case 1:return w=m.sent(),b=w[0],_=w[1],[2,{l:b,f:_}]}})})}))]})})}function S6(s){if(!s||typeof s!="object")return!1;var c=s;return!(!q()&&!h()||c.name!=="Error"&&c.name!=="TypeError"||c.message!=="Permission denied")||c.name==="SecurityError"}function A6(){return function(s){var c=s.location,a=s.origin,f=c.origin,g=c.ancestorOrigins,w=null;if(g){w=new Array(g.length);for(var b=0;b<g.length;++b)w[b]=g[b]}return{s:0,v:{w:a??null,l:f??null,a:w}}}(window)}function P0(){return{s:0,v:eval.toString().length}}function M0(){var s=navigator.webdriver;return s===null?{s:-1,v:null}:s===void 0?{s:-2,v:null}:{s:0,v:s}}function I6(){var s=function(a,f,g){return a(f,g)},c=this;return s(er,Yn(250,{s:-2,v:null}),function(){var a,f,g=function(w,b,_){return s(w,b,_)};return a=n.sH,f=function(){var w,b=function(_,m,I){return s(_,m,I)};return function(_,m,I){return _(m,I)}(n.YH,this,function(_){switch(_.label){case 0:return!(function(m,I){return function(L,x){return L===x}(m,I)}(w=g(Xt,navigator,1417288500),null)||function(m){return function(I){return I===void 0}(m)}(w))&&g(Xt,w,3686698663)?[4,g(Xt,w,3686698663)().then(function(){return{s:0,v:""}},function(m){return{s:0,v:b(Xt,m,3065852031)}})]:[2,{s:-1,v:null}];case 1:return[2,_.sent()]}})},a(c,void 0,void 0,f)})}function mc(){var s;return vc([Hr(s=new Image().style,2882756133),Hr(s,3858258232)],[18,23,22,11,23,17,3,20,4,22,19,11,25,13,23,22,7,7,17,18,4,18,11,8,11,8,3,5,2,4,3,3,5,6,5,3,1,2,2,0,0])}function k6(){var s;return vc([Hr(s=new Image().style,2487676862),Hr(s,41374024)],[5,23,47,9,35,9,44,7,37,41,19,25,32,26,30,32,8,31,12,15,40,18,15,20,9,4,2,13,21,17,18,34,40,2,48])}function O6(){return s=navigator,c=document.createElement("frameset"),a=Xt(s,704082790),vc([Hr(c,3017323393),D0(s,859837811,"QjslADtOBipACA")||D0(a,72906005,"Tjo/DSpIETFCCQ")],[20,1,24,23,23,21,14,8,11,8,6,13,1,1,12,4,9,10,6,2,1,2,0,1,2,1,1]);var s,c,a}function D0(s,c,a){var f=Hr(s,c);if(!f)return"";for(var g=ys(a),w=Array(g.length),b=0;b<g.length;b++)w[b]=g[b]^f.charCodeAt(b%f.length);return String.fromCharCode.apply(null,w)}function vc(s,c){for(var a=s.join(""),f=a.split(""),g=Array(a.length),w=0;w<g.length;++w)g[w]=f.splice(c[w%c.length],1);return g.join("")}var tn=Io([290799128,256122120,104421910,67116302,755371265,505093152,152897830,504707661,470222364,504898635,1531393810,35461445,285283613,151395398,386279171,454440300,1259148302,67715140,117915663,1445400833,70599515,280581,270008841,369435995,272236574,119803980,704973062,135268614,184563807,1026755337,824180753,521019142,404440330,1310525212,689393240,992889883,118162967,75079,371069214,14400,67440946,336725549,100928582,419697754,37884160,822483751,151655985,440867606,34934535,1544297499,69023765,1530421525,521022789,352788490,152182535,1095068179,168111383,102371362,1379942426,218301962,410405200,674697750,150995736,1460669954,289295192,422585355,276197185,1241580055,503401029,169544981,956309037,1628772625,269702473,1481182751,12887,860704273,607786827,1079856400,370150428,234881091,407897606,354309752,1157892134,252333381,1264080656,304025857,1627786793,302143352,172563473,34688007,17172047,337261841,285893380,117845831,1448695310,152569103,1095068178,68628788,120395278,352653340,1245924639,288361223,2951185,3425555],mc,1);function U0(){if(!function(c){return c in window}((s=tn,s(1))))return!1;var s;try{return new window[function(c){return c(1)}(tn)],!0}catch(c){if(function(a){return a instanceof Error}(c)&&function(a,f){return a===f}(c.name,function(a){return a(2)}(tn)))return!1;throw c}}function T6(s){return c=n.sH,a=function(){var f,g,w,b,_=function(m,I){return function(L,x){return L(x)}(m,I)};return function(m,I,L){return m(I,L)}(n.YH,this,function(m){var I=function(L,x){return _(L,x)};switch(m.label){case 0:return f=_(yc,s),g=f[0],w=f[1],b=f[2],function(L){return function(x){return x!==0}(L)}(w)?[2,{n:g,l:w}]:[4,new Promise(function(L){var x=function(Y,J){return I(Y,J)};b[I(tn,3)](function(Y){x(L,{n:g,l:Y[x(tn,4)]})},function(){x(L,{n:g,l:-1})})})];case 1:return[2,m.sent()]}})},c(this,void 0,void 0,a);var c,a}function yc(s){for(var c={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(L,x,Y){return L(x,Y)},JsRES:function(L,x){return L(x)},WmCxs:function(L,x){return L(x)},kyiGc:function(L,x){return L===x},xozCJ:function(L,x){return L(x)},oRPyT:function(L,x){return L(x)},Unnxw:function(L,x){return L instanceof x},ZXJxt:function(L,x){return L===x},hAXYn:function(L,x){return L(x)},rrdYU:function(L,x){return L!==x},IPLsn:function(L,x){return L===x},qpBPk:function(L,x){return L(x)},tTnsV:function(L,x){return L===x},UBZPU:function(L,x){return L(x)},ijSLc:function(L,x){return L(x)},azIFr:function(L,x){return L(x)},axwYs:function(L,x){return L(x)},eKSOZ:function(L,x){return L===x}},a=c.WceTb.split("|"),f=0;;){switch(a[f++]){case"0":var g=c.YXrDm(Hr,new window[c.JsRES(tn,5)]("")[c.WmCxs(tn,6)](""),3626513111);continue;case"1":if(c.kyiGc(typeof I[c.WmCxs(tn,16)],c.xozCJ(tn,17)))return[w,-4,null];continue;case"2":try{m[c.oRPyT(tn,11)][c.JsRES(tn,12)](_)}catch(L){if(c.Unnxw(L,Error)&&c.ZXJxt(L.name,c.hAXYn(tn,2))&&c.rrdYU(c.IPLsn(b=L[c.qpBPk(tn,13)],null)||c.tTnsV(b,void 0)?void 0:b.indexOf(c.UBZPU(tn,14)),-1))return[w,-3,null];throw L}continue;case"3":var w=s.split("/").slice(-1)[0];continue;case"4":return[w,0,I[c.ijSLc(tn,16)][0]];case"5":var b;continue;case"6":var _=new window[c.WmCxs(tn,9)]([],s,c.oRPyT(tn,10));continue;case"7":var m=new window[c.qpBPk(tn,1)];continue;case"8":I[c.azIFr(tn,15)]=m[c.qpBPk(tn,15)];continue;case"9":var I=document[c.oRPyT(tn,7)](g);continue;case"10":I[c.JsRES(tn,8)]=c.axwYs(tn,3);continue;case"11":if(c.eKSOZ(I[c.qpBPk(tn,16)].length,0))return[w,-2,null];continue}break}}var Vr=Un([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function N6(){var s,c,a=function(_){return _()},f=function(_,m,I){return _(m,I)},g=function(_,m,I){return _(m,I)},w=function(_,m,I){return _(m,I)},b=function(_,m,I){return _(m,I)};return s=n.sH,c=function(){var _,m=this;return(0,n.YH)(this,function(I){var L=function(tt,nt,ut){return function(pt,Et,ht){return pt(Et,ht)}(tt,nt,ut)},x=function(tt){return a(tt)},Y=function(tt,nt,ut,pt,Et){return function(ht,yt,Ht,Vt,jt){return ht(yt,Ht,Vt,jt)}(tt,nt,ut,pt,Et)},J=function(tt,nt){return function(ut,pt){return ut(pt)}(tt,nt)};switch(I.label){case 0:return(_=tn(0))?[3,2]:[4,f(er,f(Yn,350,{s:-3,v:null}),function(){var tt=function(ut){return x(ut)},nt=function(ut,pt){return function(Et,ht){return function(yt,Ht){return yt(Ht)}(Et,ht)}(ut,pt)};return Y(n.sH,m,void 0,void 0,function(){var ut;return L(n.YH,this,function(pt){switch(pt.label){case 0:return ut={s:-3},[4,Promise.all([tt(F0)])];case 1:return[2,(ut[nt(Vr,0)]=pt.sent(),ut)]}})})})];case 1:case 3:case 5:return[2,I.sent()];case 2:return a(U0)?[3,4]:[4,g(er,w(Yn,350,{s:-1,v:null}),function(){var tt=function(ut,pt){return function(Et,ht){return function(yt,Ht){return yt(Ht)}(Et,ht)}(ut,pt)},nt=function(ut,pt){return J(ut,pt)};return Y(n.sH,m,void 0,void 0,function(){var ut;return function(pt,Et,ht){return L(pt,Et,ht)}(n.YH,this,function(pt){switch(pt.label){case 0:return ut={s:-1},[4,Promise.all([tt(F0,_[0])])];case 1:return[2,(ut[nt(Vr,0)]=pt.sent(),ut)]}})})})];case 4:return[4,w(er,b(Yn,350,{s:-2,v:null}),function(){var tt=function(nt,ut){return J(nt,ut)};return Y(n.sH,m,void 0,void 0,function(){var nt;return function(ut,pt,Et){return L(ut,pt,Et)}(n.YH,this,function(ut){switch(ut.label){case 0:return nt={s:0},[4,Promise.all(_.map(T6))];case 1:return[2,(nt[tt(Vr,0)]=ut.sent(),nt)]}})})})]}})},s(this,void 0,void 0,c)}function F0(s){var c,a,f=function(m,I){return m(I)},g=function(m,I){return m(I)},w=function(m,I,L){return m(I,L)},b=function(m,I){return m===I},_=function(m,I){return m===I};return s===void 0&&(s=g(Vr,1)),function(m,I,L,x,Y){return m(I,void 0,void 0,Y)}(n.sH,this,0,0,function(){var m,I,L;return w(n.YH,this,function(x){m=s.split("/").slice(-1)[0];try{return I=new window[f(Vr,2)]([],s),L=new window[f(Vr,3)](g(Vr,4).concat(w(Xt,I,4081332993)||"").concat(m,f(Vr,5)).concat(w(Xt,I,3034174415))),function(Y){return Y===""}(b(c=w(Xt,L,3518522040),null)||function(Y){return Y===void 0}(c)?void 0:c.substring(1))?[2,{n:m,l:-2}]:[2,{n:m,l:g(vr,_(a=w(Xt,L,3518522040),null)||b(a,void 0)?void 0:a.substring(1))}]}catch{return[2,{n:m,l:-1}]}return[2]})})}var x6=Un([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function L6(){var s=function(a,f){return a===f},c=function(a){return a(navigator,3087401394)}(Xt);return s(c,void 0)||s(c,null)?{s:-1,v:null}:{s:0,v:c}}function C6(){for(var s={pCQFw:"0|5|1|3|6|4|2",QPheb:function(L,x){return L(x)},cvtRQ:function(L,x){return L<x},obwRn:function(L,x,Y){return L(x,Y)},zLaAT:function(L,x,Y,J){return L(x,Y,J)},BBhKA:function(L,x){return L===x},dlsEs:function(L,x,Y){return L(x,Y)}},c=s.pCQFw.split("|"),a=0;;){switch(c[a++]){case"0":var f=window[s.QPheb(x6,0)];continue;case"1":var g=[0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10];continue;case"2":return{s:0,v:I};case"3":var w=[[9,1,7,0,65,0,253,15,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[240,67,0,0,0,12,1,10,0,252,2,3,1,1,0,0,110,26,11,161,10],[6,1,4,0,18,0,11,0,10,4,110,97,109,101,2,3,1,0,0],[8,1,6,0,65,0,192,26,11,0,10,4,110,97,109,101,2,3,1,0,0],[7,1,5,0,208,112,26,11,0,10,4,110,97,109,101,2,3,1,0,0]];continue;case"4":for(var b=0,_=w;s.cvtRQ(b,_.length);b++){var m=_[b];I<<=1,I|=s.obwRn(Xt,f,1108488788)(Uint8Array.of.apply(Uint8Array,s.zLaAT(n.fX,s.zLaAT(n.fX,[],g,!1),m,!1)))?1:0}continue;case"5":if(!(!(s.BBhKA(f,null)||s.BBhKA(f,void 0))&&s.dlsEs(Xt,f,1108488788)))return{s:-1,v:null};continue;case"6":var I=0;continue}break}}function B6(){for(var s={tzfkk:"3|4|0|2|1|5",hnlPn:function(I,L){return I-L},YETaQ:function(I,L){return I*L},zzipR:function(I,L){return I>=L},QPpiL:function(I,L){return I===L},YposS:function(I,L){return I%L},FPDfz:function(I,L){return I|L}},c=s.tzfkk.split("|"),a=0;;){switch(c[a++]){case"0":var f=4096;continue;case"1":for(var g=s.hnlPn(s.YETaQ(m,f),1);s.zzipR(g,0);--g)if(s.QPpiL(s.YposS(g,f),0)){var w=Math.random();_.push(s.FPDfz(s.YETaQ(s.hnlPn(b,w),Math.pow(2,31)),0)),b=w}continue;case"2":var b=Math.random();continue;case"3":var _=[];continue;case"4":var m=6;continue;case"5":return{s:0,v:_}}break}}function H0(){var s=window.devicePixelRatio;return s==null?{s:-1,v:null}:{s:0,v:s}}function P6(){for(var s=navigator,c=["webkitPersistentStorage","connectionSpeed","xr","hid"],a=[],f=0,g=Object.getOwnPropertyNames(Object.getPrototypeOf(s));f<g.length;f++){var w=g[f];if(!c.includes(w)){var b=s[w];typeof b=="function"&&b.name!==void 0&&a.push(b.name)}}return{s:0,v:a}}function M6(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function D6(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function U6(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};var s=new window.SharedArrayBuffer(1);return s.byteLength===void 0?{s:-1,v:null}:{s:0,v:s.byteLength}}function F6(){if(typeof window.matchMedia!="function")return{s:-2,v:null};var s=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return s.matches===void 0?{s:-1,v:null}:{s:0,v:s.matches}}function H6(){try{throw"a"}catch(s){try{return s.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function V6(){return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(s){return[2,z(function(c,a){var f=a.document.createElement("div");return f.style.border=".5px dotted transparent",a.document.body.appendChild(f),{s:0,v:f.offsetHeight}})]})})}function W6(){return navigator.mimeTypes===void 0?{s:-1,v:null}:navigator.mimeTypes.length===void 0?{s:-3,v:null}:{s:0,v:navigator.mimeTypes.length}}function z6(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function G6(){if(navigator.plugins===void 0)return{s:-1,v:null};for(var s=navigator.plugins,c=Object.getPrototypeOf(s)===PluginArray.prototype,a=0;a<s.length;a++)c&&(c=Object.getPrototypeOf(s[a])===Plugin.prototype);return{s:0,v:c}}function K6(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function j6(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function V0(){var s=navigator.language;return s?{s:0,v:s}:{s:-1,v:null}}function W0(){var s=navigator.languages;return s?{s:0,v:s}:{s:-1,v:null}}function Y6(){var s,c,a=function(g,w,b){return g(w,b)},f=function(g,w,b){return g(w,b)};return s=n.sH,c=function(){var g,w,b,_;return function(m,I,L){return m(I,L)}(n.YH,this,function(m){switch(m.label){case 0:return g=navigator,w=a(Xt,g,1417288500),(b=a(Xt,g,2706846255))||!(function(I){return I===null}(w)||function(I){return I===void 0}(w))&&a(Xt,w,3538568711)?b?[4,Promise.race([a(bo,250,void 0),new Promise(function(I){(function(L,x){return a(L,x,1291883197)})(Xt,b)(function(L,x){return function(Y,J){return function(tt,nt){return tt(nt)}(Y,J)}(I,x)})})])]:[3,2]:[2,{s:-1,v:null}];case 1:if(function(I){return I!==void 0}(_=m.sent()))return[2,{s:0,v:_}];m.label=2;case 2:return!(function(I){return I===null}(w)||function(I){return I===void 0}(w))&&f(Xt,w,3538568711)?[4,Promise.race([a(bo,250,void 0),f(Xt,w,3538568711)().then(function(I){return function(L,x){return a(L,x,1813778413)}(Xt,I)})])]:[3,4];case 3:if(function(I){return I!==void 0}(_=m.sent()))return[2,{s:1,v:_}];m.label=4;case 4:return[2,{s:-2,v:null}]}})},s(this,void 0,void 0,c)}var q6=Un([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function $6(){var s=function(c,a){return c===a};return(0,n.sH)(this,void 0,void 0,function(){var c,a=function(w){return function(b){return b()}(w)},f=function(w,b,_){return function(m,I,L){return m(I,L)}(w,b,_)},g=function(w){return function(b){return b()}(w)};return function(w,b,_){return w(b,_)}(n.YH,this,function(w){switch(w.label){case 0:return a(T)&&a(Y4)?[2,{s:-3,v:null}]:[4,Promise.race([f(bo,100,null),g(Z6)])];case 1:return function(b){return s(b,null)}(c=w.sent())?[2,{s:-2,v:null}]:function(b){return s(b,void 0)}(c)?[2,{s:-1,v:null}]:[2,{s:0,v:c}]}})})}function Z6(){var s=function(a,f){return a(f)},c=function(a,f,g,w,b){return a(f,g,w,b)};return c(n.sH,this,void 0,void 0,function(){var a,f=function(g,w){return s(g,w)};return function(g,w,b){return g(w,b)}(n.YH,this,function(g){return(a=window[function(w,b){return s(w,b)}(q6,0)])?[2,new Promise(function(w){(function(b,_,m,I,L){c(b,_,m,I,L)})(a,0,1,function(){return function(b){return f(b,!0)}(w)},function(){return function(b){return f(b,!1)}(w)})})]:[2,void 0]})})}function X6(){return z(function(s,c){var a=c.screen,f=function(g){var w=parseInt(g);return typeof w=="number"&&isNaN(w)?-1:w};return{s:0,v:{w:f(a.width),h:f(a.height)}}})}var li=Un([3924185679,3632893699,2980828376,2699881398,2597186493,3081479162,2868636342,4104912311,2917654778,3120294056,3186092732,3169643453,4210205690,3086875321,2867519889,3068977853,2897456556,2783771306,3033247220,4104908215,3152862458,2900426157,2868628129,2242641335],4);function J6(){try{return function(c,a){return c(a)}(z0,!!window[s=li,s(0)])}catch{return function(a){return a(!0)}(z0)}var s}function z0(s){return{s:0,v:s}}function Q6(){var s=function(f){return f()},c=function(f,g,w){return f(g,w)},a=this;return c(er,Yn(250,{s:-3,v:null}),function(){return f=n.sH,g=function(){var w=function(b){return s(b)};return c(n.YH,this,function(b){return w(D)||function(_){return s(_)}(j)?[2,w(t8)]:[2,{s:-1,v:null}]})},f(a,void 0,void 0,g);var f,g})}function t8(){var s,c,a=function(f,g){return f(g)};return s=n.sH,c=function(){var f,g,w={BQeod:function(b,_){return a(b,_)},iOflQ:function(b,_,m){return function(I,L,x){return I(L,x)}(b,_,m)},uZYOC:function(b,_){return a(b,_)},DssqK:function(b){return function(_){return _()}(b)},FbFdf:function(b,_){return function(m,I){return m(I)}(b,_)},TWEdd:function(b,_){return function(m,I){return m instanceof I}(b,_)},NPofR:function(b,_){return function(m,I){return m===I}(b,_)},saNhW:"4|2|0|3|1",ywkCU:function(b,_){return function(m,I){return m(I)}(b,_)},tYhgW:function(b,_,m){return function(I,L,x){return I(L,x)}(b,_,m)}};return function(b,_,m){return b(_,m)}(n.YH,this,function(b){for(var _=w.saNhW.split("|"),m=0;;){switch(_[m++]){case"0":if(!f)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise(function(L,x){try{var Y=w.iOflQ(Xt,f,2758837156)(g,1);Y[w.BQeod(li,1)]=function(){(function(J){w.BQeod(J,{s:-5,v:null})})(L)},Y[w.uZYOC(li,2)]=function(J){var tt=I.Qxjcv(Xt,I.Qxjcv(Xt,J,1181691900),325763347);try{return I.Qxjcv(Xt,I.ehgXq(Xt,tt,138212912)("-",I.zaFXk(li,3)),2928708052)(new window[I.zaFXk(li,4)]),void I.zaFXk(L,{s:0,v:""})}catch(nt){if(I.pOfaM(nt,Error))return void I.zaFXk(L,{s:0,v:I.ehgXq(Xt,nt,3065852031)});I.zaFXk(x,nt)}finally{I.tUivq(Xt,tt,318865860)(),I.tUivq(Xt,f,3885781331)(g)}}}catch(J){if(!w.DssqK(D))return void w.FbFdf(L,{s:-5,v:null});if(w.TWEdd(J,Error)&&w.NPofR(J.name,w.FbFdf(li,5)))return void w.uZYOC(L,{s:-4,v:null});w.FbFdf(x,J)}})];case"2":f=window[w.FbFdf(li,0)];continue;case"3":g="".concat(w.ywkCU(Eo,16));continue;case"4":var I={Qxjcv:function(L,x,Y){return w.tYhgW(L,x,Y)},ehgXq:function(L,x,Y){return w.iOflQ(L,x,Y)},zaFXk:function(L,x){return w.BQeod(L,x)},pOfaM:function(L,x){return w.TWEdd(L,x)},tUivq:function(L,x,Y){return w.tYhgW(L,x,Y)}};continue}break}})},s(this,void 0,void 0,c)}var G0=Un([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function e8(){var s=function(g,w,b){return g(w,b)},c="test";if(!D()||function(g){return g()}(z4))return{s:-1,v:null};var a=window[function(g){return g(0)}(G0)],f=window[function(g){return g(1)}(G0)];try{(function(g){g(null,null,null,null)})(a)}catch{return{s:0,v:!0}}try{return s(Xt,f,2330630162)(c,"1"),s(Xt,f,588657539)(c),{s:0,v:!1}}catch{return{s:0,v:!0}}}function n8(){var s=Object.getOwnPropertyDescriptor(document,"createElement");return s?{s:0,v:!("writeable"in s)}:{s:-1,v:null}}function r8(){return{s:0,v:!!navigator.onLine}}var Me=Un([2051009255,196400063,2525527446,4044416111,199305624,3777599729,664183563,2527137204,2959068455,280520411,4185511866,2144517134,3586067896,2987975794,1370780368,4217690097,2128325203,3518040290,2987517477,485718477,3408514487,1624764753,2525516212,3089101692,314277853,3777352609,1742208334,3751877875,4284477294,451175574,3090727933,1792130846,3451262692,4048669481,1370783684,4184381064,1876294928,2595627001,3189040251,285179857,3022493366,635026462,3602651639,2954672238,249917143,3022514673,664183579,3685769165,2736568422,1408460740,3831682485,1926610701,2533302452,3122262854,83050709,3022493344,1087813162,3516795391,2552037231,1608872657,3309737727,1657845296,3451270903,4048663672,149384902,3682584502,1792915224,3886684381,3054101874,519391961,3027814326,1859318097,3332770295,3205678702,1609525469,4167997183,2077073694,2578913506,3122262886,1606035925,4285518270,2077593628,3636076535,3054821986,1606035911,4184396215,1826273817,3686077407,2959063593,179857115,3765358778,634502420,3701674487,4048663658,351432409,4185430450,1859625224,2527613364,2803104104,702703057,3027158186,2127950151,2612794610,3897157222,435775636,2876823478,2077880609,2164071586,2404366395,1374366102,4184381096,1708238611,3299486178,4048008302,418538178,3865484220,1754589257,3619035641,4045515640,1291156949,3543761149,1475469901,2533318580,2701786985,1609793493,2788918761,697885517,3652325360,2803688558,1319905745,4264138979,1674820120,2162778082,4048660019,166879939,2687604411,667542345,3684786157,2802770793,249917146,3307835121,1323797546,4051773653,2318390612,1608081380,4247361710,1927784984,3652585957,3055482186,1370781895,4151957233,664188427,3602649012,3171542398,1608874193,3243808511,1223786530,3952488387,2200224840,1370768608,3849242609,1708898830,3517121730,2287055992,267615126,3799571872,650165528,3517977850,4044940645,1609377769,3798129338,1791013433,3517121730,2286400632,334719126,3126236848,1874965087,3582989055,3122657147,350380760,2888419254,1754703910,3517387769,2854871653,1203007172,4068398577,1721482260,3622324710,2954424932,1607087815,4148151486,629466963,2532385188,2382416758],5);function i8(s){return function(c,a){return c(a,2660613247)}(Xt,s)||(s[function(c){return c(0)}(Me)]={})}var o8=[[Me(1),function(s){return j0(!1,s)}],[Me(2),function(){return j0(!0)}],[Me(3),function(){return s=ko,c=Me(4),s(c);var s,c}],[Me(5),function(){var s=function(c,a){return c(a)};return s(ko,s(Me,6))}],[Me(7),function(){var s=function(c,a){return c(a)};return s(ko,s(Me,8))}],[Me(9),function(){var s=function(c,a){return c(a)};return s(ko,s(Me,10))}]];function s8(){var s=function(a,f){return a(f)},c=function(a,f){return a in f};return(function(a){return a in window}(s(Me,11))||function(a){return a in window}(s(Me,12))||c(function(a){return a(13)}(Me),window))&&c(function(a){return a(14)}(Me),navigator)}function a8(){var s,c=function(a,f){return a(f)};return!function(a){return a()}(T)||!function(a){return a in document}(c(Me,15))||(function(a){return a===null}(s=document[c(Me,15)])||function(a){return a===void 0}(s)?void 0:function(a,f){return a(f,2256349940)}(Xt,s)().includes(c(Me,16)))}function c8(){return function(s){return s in navigator}(Me(17))&&function(s,c){return s in c}(function(s){return s(18)}(Me),function(s){return s(navigator,2900309608)}(Xt))}function u8(s,c,a){var f,g=function(b,_){return b!==_},w=function(b,_){return b!==_};return function(b){return b===void 0}(c)&&(c={}),g(a,null)&&g(a,void 0)||(a=[function(b){return b()}(Y0)]),w(f=c[s],null)&&w(f,void 0)?f:c[s]=function(b){return b(navigator,3994889901)}(Xt)(s,a)}function ko(s,c,a){var f=function(g,w,b,_){return g(w,b,_)};return function(g,w,b,_,m){return g(w,void 0,void 0,m)}(n.sH,this,0,0,function(){var g,w,b;return function(_,m,I){return _(m,I)}(n.YH,this,function(_){switch(_.label){case 0:g=0,w=s,_.label=1;case 1:if(!function(m,I){return m<I}(g,w.length))return[3,6];b=w[g],_.label=2;case 2:return _.trys.push([2,4,,5]),[4,f(u8,b,c,a)];case 3:return[2,!!_.sent()];case 4:return _.sent(),[3,5];case 5:return g++,[3,1];case 6:return[2,!1]}})})}var K0=Me(19);function l8(){var s=function(_,m){return _(m)},c=function(_,m){return _(m)},a=function(_,m){return _(m)},f=function(_,m,I){return _(m,I)},g=function(_,m){return _ in m},w=function(_,m){return _(m)},b=function(_){return _()};return(0,n.sH)(this,void 0,void 0,function(){var _,m,I;return f(n.YH,this,function(L){switch(L.label){case 0:return function(x){return x()}(j)||function(x){return x()}(at)?[2,!1]:(_=!1,function(x){return x()}(c8)?(m={type:s(Me,20),audio:c(Me,21),video:a(Me,22),keySystemConfiguration:{keySystem:K0,video:a(Me,23)}},[4,f(Xt,f(Xt,navigator,2900309608),3516168465)(m)]):[3,2]);case 1:I=L.sent(),_=function(x,Y,J){return x(Y,J)}(l4,I,function(x){return x(24)}(Me))&&I[function(x){return x(24)}(Me)],L.label=2;case 2:return[2,_&&!g(w(Me,25),navigator)||!b(T)]}})})}function f8(s){for(var c={HkMtb:"3|2|0|4|1",pPhzD:function(w,b,_){return w(b,_)},EAQNq:function(w,b){return w(b)},cWdUy:function(w,b){return w(b)},NbRpv:function(w){return w()},dFENT:function(w,b){return w===b},npgEB:function(w,b){return w(b)}},a=c.HkMtb.split("|"),f=0;;){switch(a[f++]){case"0":c.pPhzD(Xt,g,621177879)&&(c.pPhzD(Xt,g,621177879)[0][c.EAQNq(Me,26)]=c.cWdUy(Me,27));continue;case"1":return g;case"2":var g=c.NbRpv(Y0);continue;case"3":c.dFENT(s,void 0)&&(s=!1);continue;case"4":s&&(g[c.cWdUy(Me,28)]=c.npgEB(Me,29));continue}break}}function j0(s,c){return s===void 0&&(s=!1),a=n.sH,f=function(){var g,w=function(_){return function(m){return m()}(_)},b=function(_,m,I,L){return function(x,Y,J,tt){return x(Y,J,tt)}(_,m,I,L)};return function(_,m,I){return _(m,I)}(n.YH,this,function(_){switch(_.label){case 0:return[4,w(l8)];case 1:return _.sent()?(g=function(m,I){return function(L,x){return L(x)}(m,I)}(f8,s),[4,b(ko,[K0],c,[g])]):[2,!1];case 2:return[2,_.sent()]}})},a(this,void 0,void 0,f);var a,f}function Y0(){return Me(30)}function d8(s){var c=function(w,b,_){return w(b,_)},a=function(w,b,_,m,I){return w(b,_,m,I)},f=function(w,b,_){return w(b,_)},g=f(Xt,s,1095199719);return a(n.sH,this,void 0,void 0,function(){var w,b=function(J,tt){return function(nt,ut){return nt(ut)}(J,tt)},_=function(J,tt,nt){return c(J,tt,nt)},m=function(J,tt,nt,ut,pt){return a(J,tt,nt,ut,pt)},I=function(J){return function(tt){return tt()}(J)},L=function(J,tt,nt){return c(J,tt,nt)},x=function(J,tt,nt){return c(J,tt,nt)},Y=this;return f(n.YH,this,function(J){return I(s8)&&I(a8)?I(at)?[2,function(){return{s:-3,v:null}}]:(w=b(i8,g),[2,L(er,x(Yn,250,{s:-2,v:null}),function(){var tt=function(Et,ht){return function(yt,Ht){return function(Vt,jt){return Vt<jt}(yt,Ht)}(Et,ht)},nt=function(Et,ht){return b(Et,ht)},ut=function(Et,ht,yt){return _(Et,ht,yt)},pt=function(Et,ht,yt,Ht,Vt){return m(Et,ht,yt,Ht,Vt)};return m(n.sH,Y,void 0,void 0,function(){var Et,ht,yt,Ht,Vt,jt,Tt,Ut=function(ne,se){return nt(ne,se)},qt=this;return ut(n.YH,this,function(ne){switch(ne.label){case 0:return[4,Promise.all(o8.map(function(se){var he=function(Ae,Re){return Ut(Ae,Re)};return function(Ae,Re,Le,Ue,Fe){return pt(Ae,Re,void 0,void 0,Fe)}(n.sH,qt,0,0,function(){var Ae,Re,Le;return function(Ue,Fe,Pe){return function(gn,Mn,Tn){return ut(gn,Mn,Tn)}(Ue,Fe,Pe)}(n.YH,this,function(Ue){switch(Ue.label){case 0:return Ae=se[0],Re=se[1],Le=[Ae],[4,he(Re,w)];case 1:return[2,Le.concat([Ue.sent()])]}})})}))];case 1:for(Et=ne.sent(),ht={},yt=0,Ht=Et;tt(yt,Ht.length);yt++)Vt=Ht[yt],jt=Vt[0],Tt=Vt[1],ht[jt]=Tt;return[2,{s:0,v:ht}]}})})})]):[2,function(){return{s:-1,v:null}}]})})}var h8=Un([1348463336,3803023018,4141740428,4039893696,3740108228,2696994793,2396890353,3287272953,2760289937,3639185880,3800550087,3229721822,3655845628,3956859780,3417230991,3987529206,3465536455,3286746798,3788241285,4155412936,2931392987,2279597529,2175059177,4024282809,2296682185,4202925994,3049385931,3321024229,4001931456,3270216648,2932772850,2345464011,3303269088,2766070917,4157718512],5);function p8(){for(var s,c,a={},f=0,g=h8(0);f<g.length;f++)for(var w=g[f],b=w[0],_=0,m=w[1];_<m.length;_++){var I=m[_],L=(c=(s=Object.getOwnPropertyDescriptor(window[b],I))===null||s===void 0?void 0:s.get)===null||c===void 0?void 0:c.toString();L!==void 0&&(a["".concat(b,".").concat(I)]=L)}return{s:0,v:a}}var q0=4191585516,g8=new Set([4106781067,3209949814,2612078219,2382064880,3225112721,1018714844,2899793226,2094258580,3169460974,3079760821,392195965,3461410589,3582327722,1731918890,1767246934,3419607467,1110225616,1455947556,450291099,176445009,1998723369,2961538051,3413933903,2299562828,3945560591,485550147,3336694844,3737152292,2669437517,3860417393,q0]);function m8(){for(var s=[],c=Object.getOwnPropertyNames(window),a=0;a<c.length;a++){var f=c[a],g=vr(f);if(g8.has(g)&&s.push(f),g===q0){var w=c[a+1]||"";s.push(w)}}return{s:0,v:s}}function v8(){return z(function(s,c){var a={},f=c.document.createElement("div");c.document.body.appendChild(f);for(var g,w={AccentColor:"ac",AccentColorText:"act",ActiveText:"at",ActiveBorder:"ab",ActiveCaption:"aca",AppWorkspace:"aw",Background:"b",ButtonHighlight:"bh",ButtonShadow:"bs",ButtonBorder:"bb",ButtonFace:"bf",ButtonText:"bt",FieldText:"ft",GrayText:"gt",Highlight:"h",HighlightText:"ht",InactiveBorder:"ib",InactiveCaption:"ic",InactiveCaptionText:"ict",InfoBackground:"ib",InfoText:"it",LinkText:"lt",Mark:"m",Menu:"me",Scrollbar:"s",ThreeDDarkShadow:"tdds",ThreeDFace:"tdf",ThreeDHighlight:"tdh",ThreeDLightShadow:"tdls",ThreeDShadow:"tds",VisitedText:"vt",Window:"w",WindowFrame:"wf",WindowText:"wt",Selecteditem:"si",Selecteditemtext:"sit"},b=0,_=Object.keys(w);b<_.length;b++){var m=_[b];a[w[m]]=(g=m,f.style.color=g,c.getComputedStyle(f).color)}return{s:0,v:a}})}function y8(){return z(function(s,c){var a=c.navigator.webdriver;return a===null?{s:-1,v:null}:a===void 0?{s:-2,v:null}:{s:0,v:a}})}function w8(){return function(s){var c=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(s),"hardwareConcurrency");if(!c||!c.get)return{s:-1,v:null};var a=window.Function,f=window.Object,g=!1;try{g=delete window.Function&&delete window.Object}catch{g=!1}if(!g)return w(),{s:-2,v:null};try{return c.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{w()}function w(){try{window.Function=a,window.Object=f}catch{}}}(navigator)}function $0(s,c){for(var a={},f=s.getBoundingClientRect(),g=0,w=["x","y","left","right","bottom","height","top","width"];g<w.length;g++){var b=w[g];b in f&&(a[b]=f[b])}var _=c.getComputedStyle(s,null).getPropertyValue("font-family");return a.font=_,a}function b8(){for(var s="",c=128512;c<=128591;c++){var a=String.fromCodePoint(c);s+=a}return z(function(f,g){var w=g.document.createElement("span");return w.style.whiteSpace="nowrap",w.innerHTML=s,g.document.body.append(w),{s:0,v:$0(w,g)}})}function _8(){var s="<mrow><munderover><mmultiscripts><mo>∏</mo>";function c(b,_,m,I,L){return"<mmultiscripts><mi>".concat(b,"</mi><mi>").concat(_,"</mi><mi>").concat(m,"</mi>")+"<mprescripts></mprescripts><mi>".concat(I,"</mi><mi>").concat(L,"</mi></mmultiscripts>")}for(var a=0,f=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];a<f.length;a++){var g=f[a],w=c.apply(void 0,g);s+=w}return s+="</munderover></mrow>",z(function(b,_){var m=_.document.createElement("math");return m.style.whiteSpace="nowrap",m.innerHTML=s,_.document.body.append(m),{s:0,v:$0(m,_)}})}var E8=Un([1024705730,641842159,2578743392,3876471597,2070139803],6);function R8(){var s=Xt(navigator,2698072953);return s?{s:0,v:function(c,a){return c(a)}(S8,s)}:{s:-1,v:null}}function S8(s){var c=function(_,m){return _<m},a=function(_,m,I){return _(m,I)},f=function(_,m,I){return _(m,I)},g=function(_){return _(Object,1110892003)}(Xt)(s,function(_){return _(0)}(E8));if(g&&function(_,m){return _(m,2813370411)}(Xt,g))return!0;for(var w=0;c(w,s.length);w++){var b=a(Xt,Object,1110892003)(s,w);if(b&&(f(Xt,b,2813370411)||a(Xt,b,1651707638)))return!0}return!1}var $e=Io([855787288,642990106,254096950,926556982,87375404,1278677006,408486424,1479671850,1785924,253259062,240523559,673514752,658445118,1391164,607131925,722936367,271014668,151655183,36375323,656347974,1445350919,353197617,423242801,1160005147,1512002869,420283957,536958245,86705444,656408603,100677635,20185122,556090667,202191150,724518191,792405557,102894606,623247373,587992400,658457902,186065947,138173228,910037367,2368541,1529157659,892869409,976305177,203760670,1010441050,942083341,505880599,858547496,472786520,104733226,488840738,977151779,154821378,1044189198,942025224,606622265,960446235,537939522,1427451664,1594829109,757486355,521087014,119085350,638781191,792409347,3607069,137245730,740307761,975647282,992231996,556677182,121255207,522468654,103100716,805591826,205345105,352982566,809188375,538263045,590744875,204342828,87438137,657730594,355141642,1430208096,990394680,70993686,825163804,1060643342,419658253,86454317,808395603,960181563,1394880291,723543328,1059455265,422468123,1512636726,523643153,874654019,741018648,472326400,438382882,19791956,101085447,788741643,117637695,134556468,576544002,1817775652,828261639,390094395,253639961,1880502074,370026788,807930146,3016495,1527136534,71514660,945292548,304222e3,1580941075,2110514,203960841,321666847,858338073,408755024,134358831,521999910,104796679,1141842004,1376664580,355614474,1581667629,1510485767,671100941,1062295126,370957148,254414105,1535071780,561394448,1494427185,539892273,120535346,203499292,522594859,471863338,775098909,1597979140,907887673,758332434,655825187,758207319,419572773,2133349379,909508638,122886204,123473464,1463621412,641018151,1376126269,1462121850,472787007,725356864,341384543,206715932,20988416,404560468,236535349,136583426,654445841,943666452,840316960,1027350080,674639121,153557559,1510280726,961623300,1008474660,973157633,443359752,656934418,1461592383,472779801,238290498,1058027540,644034587,68093212,1597246981,1544182280,469976413,238374721,1174618196,1194143029,336400700,2066110510,34473564,1344553036,873275941,372524551,591344222,623860493,641412978,288168465,742072848,958995498,604449289,221971308,1495672659,723588667,355544366,808599331,459040,943462687,908866865,942887995,908264973,36774146,503972959,657396518,255140875,922816319,1426597669,724636239,873869836,422207e3,738338618,403715596,687875167,874774529,1040791559,120850268,604126999,775167011,470361864,992484109,419635991,743185,154018116,641337180,755635292,254040613,222176514,857754138,2505515,707068717,101333848,757538096,621551931,37443895,1547319336,456857894,3999031,908491345,775432019,439162173,706096427,358119961,1058025846,437977936,102439689,574895878,356259076,372648449,1142819334,742401113,1058341645,1362637919,70005800,202582592,1192122395,236594727,839523131,1750337312,207570485,590873144,123355928,22029379,67645968,269812016,638015583,757087233,657734424,1345271600,740439809,1561926978,1560608781,285688601,387387163,910180890,959256594,456272657,573188414,943880979,1029446156,1073890833,1029574938,1007884807,693115144,222574848,436674607,1174818049,1545405479,1275535655,823416647,86462535,523833608,974464036,658321980,1114075158,185861637,487922498,471600394,639451455,537999451,520699919,1079979324,236797980,168450619,393283123,456001101,186713889,1493375013,488440356,923600390,756164122,655898448,825951036,1411784533,34609698,1208103527,1128159247,253245995,940584251,573441833,19400266,993726249,18425437,139266084,137047810,190711400,1527646996,36582975,978979125,287314201,108201025,1057162756,1583308301,489622303,293476447,840836395,406279465,554701144,471161609,861221689,722419267,1360213011,1143874879,909322020,2035428162,438440025,106244122,322058780,891553820,1360617229,860762642,723856384,322969613,238895933,842924835,1879190897,52179258,453527317,643782993,169476647,858128388,1091178016,453267755,1179072280,1511742509,1364295471,894177538,1547456852,339630853,942212098,640433433,930292802,1599102517,1279285263,1160643877,829502250,1143043844,1530134532,559155459,188100392,1815413542,890521399,220333865,1042559767,520753679,1899432762,369635096,825252367,186328081,1513044992,104291868,842078054,537864570,823793936,1163282459,453314382,1632586541,1159401523,151472718,219612436,1343881243,302413385,67122704,252322835,289281282,520961808,570699029,470824736,843333652,387845450,1180440642,355535121,472254981,206261077,341444100,285219076,439879490,1158377805,188762957,457966854,420087833,2046827521,722541333,1263228164,1510343692,503979288,772677403,942886173,118822420,1074859273,339172401,203161933,353775648,386806050,1363745804,34035503,1295078920,654974826,103553585,17500434,84149518,1212816394,341192510,303115534,305863945,1314328859,136125003,239478532,1129799731,185012293,504893725,1243356169,158746440,1226710058,169542741,940646154,352652561,439419943,376860481,469959197,520567564,16778499,994532938,805575194,201332246,424232781,219809552,825559315,2019624473,285350999,201785371,1129190437,352980301,353764925,1159268906,235294021,236258823,1128289801,269945915,35194673,437005072,85329174,387714572,274102343,83897604,956964102,285213966,1079384090,117586755,995588193,739054110,33755162,289099606,292814850,388764421,575359829,254878242,892283406,674169947,873859604,690695688,556934411,1532961317,269620487,137047589,19803402,891619353,774844708,773205285,420423187,589300788,539835481,959397124,537535801,589641006,622930724,673579048,167981855,671091755,437650701,756498733,704784648,774251013,975510574,335745584,1040792358,134424354,772089349,891158532,18422329,1041391729,139998271,286612271,626670900,958605350,856111142,724383270,372644648,773794620,855909183,540223547,203108701,906494980,1040720168,807150682,571218739,219101490,371001128,137049628,705576492,808659290,705692733,791022080,538653958,671624507,739063102,809906233,639962113,637745182,744239416,236529698,811540526,626862600,788995891,606877246,842204468,573770006,638135325,892486697,791755096,842940166,218240539,974075680,1007048511,555429381,388115255,1057830682,907621664,941633087,892021814,705508445,656356372,641149279,592446271,960046629,421476140,36057648,673325652,639245336,253309464,286404120,19138609,941505862,52178751,537019707,103819782,990131740,87893776,572400132,940786999,991251806,420435997,705108243,621752107,792157219,556736060,860304940,908527152,707673142,893072223,87437101,69927728,540938258,421737780,56494849,220529437,637555989,587807551,201721412,1293836041,809393727,2165761,119747921,760221964,942670122,523578142,1023565147,1946881594,1495147345,302056256,118113602,33882179,1024137755,1462240834,138296332,33948685,202726697,185470982,1577530626,18037005,758717254,857941269,959654443,858460691,640372776,555703830,321330014,1482629131,492570962,473434659,589234776,1042363916,725122873,521305974,1495996214,824716089,120401469,1175858246,603988531,723400211,590361130,892885286,728181053,874711586,704914987,607397390,673849635,858927916,1980441910,271717152,588463451,186264864,439096898,237511981,336863746,1445603842,958933259,655710269,739654685,707734794,691939104,17112595,1479220487,17311610,1585157,253636865,792142081,858725420,892469556,975571478,794635822,554644258,218577412,974917174,219283825,219108949,320604719,839200021,358887210,1009990432,895033669,270346552,369371943,170854914,288163108,822414375,135800369,201547047,218968081,537737542,185541933,1023878402,621038898,302923324,896737594,722614578,18820911,907806763,119221853,34611475,85931888,134429956,219358233,51716651,436478992,772030467,169813541,134233615,270402344,353573131,318904915,654518079,773797416,222570033,974721590,893719153,186589236,689707610,822608991,1027559461,103755568,890844441,740165382,370948908,170874206,742132011,823276892,252001627,185024067,236004399,542196259,655377180,573518398,772752423,68573239,993141293,671090230,50540551,207364644,688129835,51264102,69160960,823668001,186531879,1721438,542523258,51782502,839058447,889528634,1058743644,909337639,855709264,691550208,1111303721,908535824,639830843,437662578,4131881,639639610,404095542,907748360,756363024,774594342,925979405,909059125,574562367,1041766962,2833664,906497055,773928241,354893625,86265618,186593554,771772968,911815229,705440282,237767514,22363698,991902554,576651358,641030188,842007853,1044645642,791428699,674312229,591608893,572594698,102513465,838863909,236594769,324688386,336408621,371011385,823482709,772604988,671293188,673386800,121376300,673579281,841623353,254488125,890642453,359400763,171709191,1077742878,1158229763,942290951,761559636,808342563,1529619006,73138759,371406637,924855586,489358620,823667740,773799490,2118792263,510668586,50463006,979182891,56492606,1308764941,205980450,855642373,121183505,674956826,605370372,67440411,1277167410,573652306,1594245935,375074050,1194403380,555890965,255144200,1194992947,136513541,875576142,1024269850,1510682155,1042688287,168629537,354423099,369503541,355479608,21052219,855835153,1345463855,1042756404,190065709,973626116,761204497,123093823,1915165206,459220566,370027800,1580407058,506730774,1025124126,1510744383,387514687,1141319970,1565204261,1359103771,185995575,35596554,84096006,672404008,857878564,3032093,207364681,555304731,488660742,557915986,861239815,1074597388,372852262,506478175,755175171,2581879,100939293,537605408,956701468,1060906552,202447182,84023075,925892957,1448158238,455885632,456995842,236397832,789581071,486539295,923009595,1632458001,772084274,288971043,504107035,184943133,825691398,1313151757,219814218,370679576,1229983007,134546550,33752117,420092230,101057883,353308952,927730989,320602150,437864198,403773963,3948554,603989776,303508501,119413321,1192230914,441860171,122042880,471431969,101403907,871429,1175061276,438371390,1050900,201330949,1079580686,1498700612,174478106,438317072,1145045533,403514955,18481974,639055628,1866663195,486674503,286853695,826998811],mc,0);function A8(){for(var s={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(b,_){return b!==_},arEiG:function(b,_){return b(_)},FEyAC:function(b,_){return b|_},cUIUX:function(b,_){return b&_},vaJLl:function(b,_){return b&_},osTKi:function(b,_){return b(_)},vuPdB:function(b,_){return b+_},euenK:function(b,_){return b(_)}},c=s.YQAxx.split("|"),a=0;;){switch(c[a++]){case"0":var f={nkHEv:s.NxnUc,yPbQz:function(b,_){return s.dRZXE(b,_)},cIFeZ:function(b,_){return s.arEiG(b,_)},kGvFR:function(b,_){return s.FEyAC(b,_)},eFyAy:function(b,_){return s.cUIUX(b,_)},WLFtS:function(b,_){return s.vaJLl(b,_)},uzqnn:function(b,_){return s.osTKi(b,_)},rqcBN:function(b,_){return s.vuPdB(b,_)}};continue;case"1":Object.defineProperty(g,s.osTKi($e,2),{value:w});continue;case"2":var g=s.euenK(ys,s.arEiG($e,0));continue;case"3":return g;case"4":var w=function(b){for(var _=f.nkHEv.split("|"),m=0;;){switch(_[m++]){case"0":var I=this[x];continue;case"1":var L;continue;case"2":var x=f.yPbQz(L=this[f.cIFeZ($e,1)],null)&&f.yPbQz(L,void 0)?L:0;continue;case"3":this[x]=f.kGvFR(f.eFyAy(I,~b),f.WLFtS(~I,b));continue;case"4":this[f.uzqnn($e,1)]=f.rqcBN(x,1);continue;case"5":return I}break}};continue}break}}function I8(s){var c,a,f,g=function(_,m){return _(m)},w=function(_,m){return _===m},b=function(_,m){return _(m)};return a=n.sH,f=function(){var _,m,I,L,x,Y,J=function(ht,yt){return g(ht,yt)},tt=function(ht,yt){return b(ht,yt)},nt=function(ht,yt,Ht,Vt,jt){return function(Tt,Ut,qt,ne,se){return Tt(Ut,qt,ne,se)}(ht,yt,Ht,Vt,jt)},ut=function(ht,yt){return g(ht,yt)},pt=function(ht,yt){return g(ht,yt)},Et=this;return function(ht,yt,Ht){return ht(yt,Ht)}(n.YH,this,function(ht){switch(ht.label){case 0:return _=window[g($e,3)],(m=w(c=_[g($e,4)],null)||w(c,void 0)?void 0:c.bind(_))?(I=b($e,5),L=g($e,6),x={},[4,Promise.all(I.map(function(yt){var Ht=function(ne,se,he){return function(Ae,Re,Le){return function(Ue,Fe,Pe){return Ue(Fe,Pe)}(Ae,Re,Le)}(ne,se,he)},Vt=function(ne,se){return J(ne,se)},jt=function(ne,se){return tt(ne,se)},Tt=function(ne,se){return function(he,Ae){return function(Re,Le){return Re<Le}(he,Ae)}(ne,se)},Ut=function(ne,se,he,Ae,Re){return nt(ne,se,he,Ae,Re)},qt=function(ne,se){return pt(ne,se)};return nt(n.sH,Et,void 0,void 0,function(){var ne,se,he,Ae,Re,Le,Ue,Fe;return function(Pe,gn,Mn){return function(Tn,$n,rr){return Tn($n,rr)}(Pe,gn,Mn)}(n.YH,this,function(Pe){switch(Pe.label){case 0:return Pe.trys.push([0,9,,10]),[4,Ht(m,yt,L)];case 1:return[4,Pe.sent()[Vt($e,7)]()];case 2:ne=Pe.sent(),se=ne[jt($e,8)](),he=[92,189,203],Ae=0,Pe.label=3;case 3:if(!Tt(Ae,3))return[3,8];Pe.label=4;case 4:return Pe.trys.push([4,6,,7]),Re=x,Le=jt(vr,yt),[4,Ut(k8,ne,se,s,he)];case 5:return Re[Le]=Pe.sent(),[2];case 6:if(function(gn,Mn){return ut(gn,Mn)}(N8,Ue=Pe.sent()))return he=qt(O8,s),[3,7];throw qt(T8,he),Ue;case 7:return Ae++,[3,3];case 8:return[3,10];case 9:return Fe=Pe.sent(),Y=Fe,[3,10];case 10:return[2]}})})}))]):[2,null];case 1:if(ht.sent(),Y&&w(Object.keys(x).length,0))throw Y;return[2,x]}})},a(this,void 0,void 0,f)}function k8(s,c,a,f){var g=function(I,L){return I(L)},w=function(I,L){return I(L)},b=function(I,L){return I(L)},_=function(I,L){return I(L)},m=function(I,L){return I(L)};return new Promise(function(I,L){c[_($e,9)]=function(x){return g(I,{i:w(vs,f),t:g(vr,x[w($e,10)]),s:c[w($e,11)],e:c[b($e,12)],p:_(mr,x[m($e,13)])})},s[_($e,14)](a),c[function(x){return x(15)}($e)](function(x){return x(16)}($e),f).catch(L)})}function O8(s){for(var c={UtaFw:"4|0|1|2|3",ulOIn:function(I,L){return I-L},pxHuO:function(I,L){return I>=L},pGlZB:function(I,L){return I(L)},ooLWC:function(I,L){return I+L},buezi:function(I,L){return I<<L},btVnF:function(I,L){return I%L},wSoGJ:function(I,L){return I*L},lowup:function(I,L){return I%L},hsYMn:function(I,L){return I*L}},a=c.UtaFw.split("|"),f=0;;){switch(a[f++]){case"0":var g=m.length;continue;case"1":var w=137;continue;case"2":for(var b=c.ulOIn(s.length,1);c.pxHuO(b,0);b--){var _=s[c.pGlZB($e,2)](c.ooLWC(c.buezi(b,8),w));m[c.btVnF(b,g)]^=c.ooLWC(_,c.wSoGJ(m[c.btVnF(c.ooLWC(b,1),g)],17)),w=_}continue;case"3":return c.pGlZB(Fr,c.pGlZB(mr,m).slice(0,3));case"4":var m=new Uint8Array([c.lowup(Date.now(),1024),c.hsYMn(Math.random(),65536)]);continue}break}}function T8(s){for(var c=function(_,m){return _<m},a=function(_,m){return _+m},f=function(_,m){return _%m},g=function(_,m){return _-m},w=0;c(w,s.length);w++){var b=65;s[w]=a(b,f(s[w],g(122,b)))}}function N8(s){return function(c,a){return c(a)}(ms,s)&&function(c,a){return c===a}("".concat(s),function(c){return c(17)}($e))}function x8(){var s=function(c,a){return c(a)};return function(c,a,f,g,w){return c(a,void 0,void 0,w)}(n.sH,this,0,0,function(){var c,a,f,g=function(J,tt){return s(J,tt)},w=function(J){return function(tt){return tt()}(J)},b=function(J,tt){return function(nt,ut){return nt in ut}(J,tt)},_=function(J,tt){return function(nt,ut){return nt(ut)}(J,tt)},m=function(J,tt,nt,ut){return function(pt,Et,ht,yt){return pt(Et,ht,yt)}(J,tt,nt,ut)},I=function(J,tt){return s(J,tt)},L=function(J,tt,nt,ut){return function(pt,Et,ht,yt){return pt(Et,ht,yt)}(J,tt,nt,ut)},x=function(J,tt){return function(nt,ut){return nt(ut)}(J,tt)},Y=function(J,tt){return function(nt,ut){return nt&&ut}(J,tt)};return function(J,tt,nt){return J(tt,nt)}(n.YH,this,function(J){switch(J.label){case 0:return w(K4)?[2,!b(g($e,19),window[_($e,20)][g($e,21)])]:w(G4)?[4,Promise.all([m(Z0,I($e,22),function(){return!0},function(){return!1}),L(Z0,x($e,23),function(){return!1},function(tt){return function(nt){return function(ut,pt){return ut instanceof pt}(nt,Error)}(tt)&&function(nt,ut){return function(pt,Et){return pt===Et}(nt,ut)}(tt.name,g($e,24))})])]:[3,2];case 1:return c=J.sent(),a=c[0],f=c[1],[2,Y(a,f)];case 2:return[2,!1]}})})}function Z0(s,c,a){var f=function(g,w){return g(w)};return new Promise(function(g){var w=function(I,L){return f(I,L)},b=f(yc,s),_=b[1],m=b[2];if(function(I){return I!==0}(_))return function(I){return I(!1)}(g);m[f($e,25)](function(){return function(I,L){return function(x,Y){return x(Y)}(I,L)}(g,function(I){return function(L){return L()}(I)}(c))},function(I){return w(g,w(a,I))})})}var L8=Un([229858650,783927519,3141207808,1645003411,2911373879,2084179082,2213201945,422262047,444852958,2568452659,961273073,4070116913,628296898,2516094721,19227916,46464143,2382904866,572186108,3147382845,1043469467,2611845399,171192596,1251730630,2338154040,2064948222,4070131749,623646351,2180159838,1719303453],7);function C8(){var s=function(c,a,f){return c(a,f)};return s(er,s(Yn,2e3,{s:-2,v:null}),B8)}function B8(){var s,c=function(L){return L()},a=function(L,x){return L(x)},f=function(L,x){return L(x)},g=function(L,x){return L<x},w=function(L,x){return L===x},b=function(L,x,Y){return L(x,Y)},_=function(L,x,Y){return L(x,Y)},m=function(L,x){return L(x)},I=function(L,x){return L(x)};return function(L,x,Y,J,tt){return L(x,void 0,void 0,tt)}(n.sH,this,0,0,function(){var L,x,Y,J,tt,nt,ut,pt,Et,ht,yt,Ht,Vt;return _(n.YH,this,function(jt){switch(jt.label){case 0:L=window,x=c(A8),Y=a(L8,0),jt.label=1;case 1:for(jt.trys.push([1,2,,5]),J="".concat(f(wc,x[0])).concat(f(wc,x[1])).concat(a(wc,x[2])),tt=Y[J],nt=Object.values(tt),ut={},pt=0,Et=(Vt=Object.keys(L)).slice.apply(Vt,nt);g(pt,Et.length);pt++)ht=Et[pt],yt=w(s=b(Xt,Object,1110892003)(L,ht),null)||w(s,void 0)?void 0:_(Xt,s,494360628),ut[a(vr,ht)]={i:!0,t:null,s:ht.slice(-3),e:12,p:m(String,yt).slice(0,50)};return[2,{s:-3,v:ut}];case 2:return jt.sent(),[4,c(x8)];case 3:return jt.sent()?[2,{s:-4,v:null}]:[4,I(I8,x)];case 4:return(Ht=jt.sent())?[2,{s:0,v:Ht}]:[2,{s:-1,v:null}];case 5:return[2]}})})}function wc(s){return"".concat(Ja[function(c){return c>>4}(s)]).concat(Ja[function(c){return c%16}(s)])}var yn=Un([2849665133,3102332852,3030028940,2360597915,3649086422,4118989755,2159729800,2492790230,3150617845,3422263962,3398214861,3000338617,2163578059,3720000219,2782764965,3422263962,3600523980,2895432685,2292567243,3617170646,3986333093,2578762955,2596645530,2227996313,2259142812,3700204490,3100285842,3422263963,3903489002,2496302258,2360989318,3615531995,4120169401,2192956830,3971720145,3000875412,2277047195,3431641814,4124477118,2273483461,3481713107,2781523129,3321219718,3599275162,4157376185,2293418634,3418993356,3067464120,3120021895,4221285085,3000403896,2260651146,2496373974,3051664885,2293418634,3735466700,2345307313,3287931573,3669330832,3151268020,2192890251,2525727716,3051664893,3382957959,3448764377,3201075897,3045840518,3837111258,2966063285,2276644252,3402212556,3201145010,3048463771,2462561764,2816128395,2359614875,3837109206,4221223093,2209732555,2594026717,2782776315,2862995355,2592912343,2781727739,3422263941,3683431633,3202123702,2359548301,3617301981,4120169381,2595804298,2496377821,3100936949,2257903002,3683432918,3117908131,2331350219,3431510730,2748951986,2294283144,3565992406,2564589462,2612190863,3687578522,2999682747,2277103530,3516773597,3220146104,2625885836,3601643978,2325387955],3);function X0(s){var c=function(f,g,w){return f(g,w)},a=Xt(s,928136154);return(0,n.sH)(this,void 0,void 0,function(){var f,g,w=function(I){return function(L){return L()}(I)},b=function(I,L){return function(x,Y){return x===Y}(I,L)},_=function(I,L,x){return c(I,L,x)},m=function(I,L,x){return function(Y,J,tt){return Y(J,tt)}(I,L,x)};return c(n.YH,this,function(I){switch(I.label){case 0:return f=w(rf),[4,_(er,m(Yn,300,-4),P8.bind(null,f,a))];case 1:return g=I.sent(),[2,function(){var L=function(x){return w(x)}(g);return function(x){return b(x,0)}(L)||function(x){return b(x,-4)}(L)?{s:L,v:{u:f,e:[],s:[]}}:{s:L,v:null}}]}})})}function P8(s,c){var a=function(g,w,b){return g(w,b)},f=function(g,w,b){return g(w,b)};return function(g,w,b,_,m){return g(w,void 0,void 0,m)}(n.sH,this,0,0,function(){var g,w,b,_,m,I,L,x,Y=function(pt,Et,ht){return a(pt,Et,ht)},J=function(pt,Et,ht){return f(pt,Et,ht)},tt=function(pt,Et){return function(ht,yt){return ht!==yt}(pt,Et)},nt=function(pt,Et,ht){return f(pt,Et,ht)},ut=function(pt,Et,ht){return function(yt,Ht,Vt){return yt(Ht,Vt)}(pt,Et,ht)};return function(pt,Et,ht){return pt(Et,ht)}(n.YH,this,function(pt){switch(pt.label){case 0:if(g=Y(M8,s,c),w=Y(U8,g,!0),b=J(Xt,w,453955339),_=J(Xt,w,1801730948),tt(b,0))return[2,b];m=Y(W8,_,c),pt.label=1;case 1:return pt.trys.push([1,,4,5]),[4,nt(Xt,m,142982734)()];case 2:return I=pt.sent(),L=J(Xt,I,453955339),x=J(Xt,I,1801730948),tt(L,0)?[2,L]:[4,ut(Xt,_,76151562)(x)];case 3:return pt.sent(),[2,0];case 4:return function(Et,ht){return a(Et,ht,107910612)}(Xt,m)(),[7];case 5:return[2]}})})}function M8(s,c){for(var a={AvCwh:"2|1|5|0|3|4",sALZI:function(_,m){return _(m)}},f=a.AvCwh.split("|"),g=0;;){switch(f[g++]){case"0":var w={};continue;case"1":b[a.sALZI(yn,1)]=a.sALZI(D8,c);continue;case"2":var b=a.sALZI(yn,0);continue;case"3":w[a.sALZI(yn,3)]=[b];continue;case"4":return w;case"5":b[a.sALZI(yn,2)]=s;continue}break}}function D8(s){var c=function(a,f){return a(f)};return c(yn,4).concat(function(a,f,g){return a(f,g)}(hc,s,c(yn,5)))}var J0=yn(6);function U8(s,c){for(var a={xqmnO:"4|3|0|2|1",SaOtC:function(_,m){return _ instanceof m},xPGBK:function(_,m){return _===m},DCAVD:function(_,m){return _(m)},fgKXx:function(_,m){return _(m)}},f=a.xqmnO.split("|"),g=0;;){switch(f[g++]){case"0":var w;continue;case"1":return{s:0,v:w};case"2":try{w=new b(s)}catch(_){if(a.SaOtC(_,Error)){if(a.xPGBK(_.name,J0))return{s:-6,v:null};if(a.DCAVD(H8,_))return{s:-9,v:null}}throw _}continue;case"3":if(!b)return{s:-3,v:null};continue;case"4":var b=c?window[a.fgKXx(yn,7)]||window[a.DCAVD(yn,8)]:window[a.DCAVD(yn,7)];continue}break}}function F8(s,c){var a,f=function(g,w){return g===w};try{return f(a=function(g,w){return g(w,34843658)}(Xt,s),null)||f(a,void 0)||a.call(s,c||Math.random().toString()),0}catch(g){if(function(w){return w instanceof Error}(g)&&f(g.name,J0))return-7;throw g}}function H8(s){return function(c,a){return c===a}(s.name,function(c){return c(9)}(yn))&&function(c,a){return c(a,3632233996)}(Xt,new RegExp(function(c){return c(10)}(yn)))(function(c,a){return c(a,3065852031)}(Xt,s))}function Oo(s){try{Xt(s,318865860)()}catch{}}function V8(s,c){var a=function(f,g,w){return f(g,w)};return function(f,g,w,b,_){return f(g,void 0,void 0,_)}(n.sH,this,0,0,function(){var f,g;return function(w,b,_){return w(b,_)}(n.YH,this,function(w){switch(w.label){case 0:try{f=function(b,_,m){return a(b,_,m)}(Xt,s,882066760)(c)}catch(b){if(!function(_,m){return function(I,L){return I instanceof L}(_,m)}(b,Error)||!function(_,m,I){return a(_,m,I)}(Xt,new RegExp(function(_){return function(m){return m(11)}(_)}(yn),"i"),3632233996)(function(_,m,I){return a(_,m,I)}(Xt,b,3065852031)))throw b;f=new Promise(function(_,m){(function(I,L){return function(x,Y,J){return a(x,Y,J)}(I,L,882066760)})(Xt,s)(_,m,c)})}return[4,f];case 1:return function(b){return function(_,m){return _===m}(b,void 0)}(g=w.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:g}]}})})}function W8(s,c){var a,f,g=function(Tt,Ut){return Tt(Ut)},w=function(Tt,Ut){return Tt===Ut},b=function(Tt,Ut,qt){return Tt(Ut,qt)},_=function(Tt,Ut){return Tt(Ut)},m=function(Tt,Ut){return Tt!==Ut},I=function(Tt,Ut){return Tt in Ut},L=function(Tt,Ut){return Tt in Ut},x=function(Tt){return Tt()},Y=function(Tt,Ut){return Tt(Ut)},J=function(Tt,Ut,qt){return Tt(Ut,qt)},tt=function(Tt,Ut,qt){return Tt(Ut,qt)},nt=function(Tt,Ut,qt,ne,se){return Tt(Ut,qt,ne,se)},ut=this;function pt(Tt,Ut){return g(Et,Tt)&&w(b(Xt,Tt,3920415024),400)&&b(Xt,Tt,4101391790).includes(Ut)}function Et(Tt){return w(typeof Tt,_(yn,12))&&m(Tt,null)&&I(g(yn,13),Tt)&&L(_(yn,14),Tt)}var ht=null,yt=!1;function Ht(){var Tt=function(qt,ne){return function(se,he){return se!==he}(qt,ne)},Ut=function(qt,ne){return _(qt,ne)};return nt(n.sH,this,void 0,void 0,function(){var qt,ne,se,he;return function(Ae,Re,Le){return tt(Ae,Re,Le)}(n.YH,this,function(Ae){switch(Ae.label){case 0:return qt=function(Re,Le){return Y(Re,Le)}(F8,s),Tt(qt,0)?[2,{s:qt,v:null}]:[4,Ut(V8,s)];case 1:return ne=Ae.sent(),se=function(Re,Le){return J(Re,Le,453955339)}(Xt,ne),he=function(Re,Le){return function(Ue,Fe,Pe){return Ue(Fe,Pe)}(Re,Le,1801730948)}(Xt,ne),Tt(se,0)?[2,{s:se,v:null}]:[2,{s:0,v:he}]}})})}c&&tt(Xt,s,123626528)(yn(15),function(Tt){b(pt,Tt,c)&&(ht?(x(ht),ht=null,Y(Oo,s)):yt=!0)});var Vt,jt=((a={})[Vt=yn,Vt(17)]=function(){return function(Tt,Ut){return Tt(Ut)}(Oo,s)},a[function(Tt){return Tt(18)}(yn)]=function(){var Tt=function(qt){return x(qt)},Ut=function(qt,ne,se){return function(he,Ae,Re){return he(Ae,Re)}(qt,ne,se)};return nt(n.sH,ut,void 0,void 0,function(){var qt;return Ut(n.YH,this,function(ne){switch(ne.label){case 0:return[4,Tt(Ht)];case 1:return qt=ne.sent(),function(se){return m(se,0)}(Ut(Xt,qt,453955339))&&function(se,he){g(se,he)}(Oo,s),[2,qt]}})})},a);return c?J(Xt,Object,1914874273)(jt,((f={})[function(Tt){return Tt(19)}(yn)]=function(){w(function(Tt,Ut){return Tt(Ut,4184312542)}(Xt,s),g(yn,16))||(yt?function(Tt,Ut){Tt(Ut)}(Oo,s):ht=function(Tt,Ut,qt,ne){return Tt(Ut,5e3,ne)}(gs,Oo,0,s))},f)):jt}var qn=Io([1158230590,352328197,922751784,234887733,1045777409,235013451,1077693209,86185296,321396490,462366,488115742,1213075980,4402479,184943903,188551425,1398147351,268897603,491523647,306988571,1261376568,269223502,570890009,34866732,470426899,403966778,253756433,304419089,491347009,508233756,403654977,421396492,1329803025,184551506,1057755406,136120322,118163754,373378420,453843998,1159464460,319444544,855642889,402851378,1191248155,151015493,219352090,67375366,17696018,1263095066,420348421,21908811,168961297,171640095,14413],k6,2);function z8(){var s=function(b,_){return b(_)},c=function(b,_){return b(_)},a=function(b,_,m){return b(_,m)},f=function(b,_){return b<_},g=function(b,_,m){return b(_,m)},w=function(b,_,m){return b(_,m)};return function(b,_,m,I,L){return b(_,void 0,void 0,L)}(n.sH,this,0,0,function(){var b,_,m,I,L,x,Y,J;return a(n.YH,this,function(tt){switch(tt.label){case 0:return function(nt){return nt()}(j4)?[2,[-1,NaN]]:(b=new Uint8Array([0]),_=s(qn,0),[4,navigator[s(qn,1)](c(qn,2),_)]);case 1:return[4,tt.sent()[c(qn,3)]()];case 2:return m=tt.sent(),[4,a(Q0,m,b)];case 3:if(I=tt.sent(),!(L=f(I,10)))return[3,5];for(x=a(g4,10,2500),Y=function(nt){return nt-1}(function(nt,ut){return nt-ut}(x,I)),J=0;f(J,Y);J++)g(K8,m,b);return[4,w(Q0,m,b)];case 4:I=tt.sent(),tt.label=5;case 5:return[2,[L?1:0,I]]}})})}function G8(){return function(c,a){return c==a}(typeof navigator[s=qn,s(1)],function(c){return c(4)}(qn));var s}function Q0(s,c){var a=function(f,g){return f(g)};return function(f,g,w,b,_){return f(g,void 0,void 0,_)}(n.sH,this,0,0,function(){var f,g=function(m,I){return a(m,I)},w=function(m,I){return a(m,I)},b=function(m,I){return a(m,I)},_=function(m,I){return a(m,I)};return function(m,I,L){return m(I,L)}(n.YH,this,function(m){switch(m.label){case 0:return[4,(f=s[g(qn,5)]())[g(qn,6)](w(qn,7),c)];case 1:return m.sent(),[2,b(Number,f[_(qn,8)])]}})})}function K8(s,c){var a=function(g,w){return g(w)},f=s[a(qn,5)]();a(_o,f[a(qn,6)](function(g){return g(7)}(qn),c))}function j8(){var s=function(c,a,f){return c(a,f)};return function(c,a,f,g,w){return c(a,void 0,void 0,w)}(n.sH,this,0,0,function(){var c=function(b){return function(_){return _()}(b)},a=function(b,_,m){return s(b,_,m)},f=function(b,_,m){return s(b,_,m)},g=function(b,_,m){return s(b,_,m)},w=this;return(0,n.YH)(this,function(b){var _=function(I){return c(I)},m=function(I,L){return function(x,Y){return function(J,tt){return J===tt}(x,Y)}(I,L)};return c(G8)?[2,f(er,g(Yn,500,{s:-2,v:null}),function(){var I=function(Y){return _(Y)},L=function(Y,J){return m(Y,J)},x=function(Y,J,tt){return function(nt,ut,pt){return a(nt,ut,pt)}(Y,J,tt)};return function(Y,J,tt,nt,ut){return function(pt,Et,ht,yt,Ht){return function(Vt,jt,Tt,Ut,qt){return Vt(jt,Tt,Ut,qt)}(pt,Et,ht,yt,Ht)}(Y,J,void 0,void 0,ut)}(n.sH,w,0,0,function(){var Y,J=function(tt){return I(tt)};return x(n.YH,this,function(tt){switch(tt.label){case 0:return[4,J(z8)];case 1:return function(nt){return L(nt,-1)}((Y=tt.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:Y}]}})})})]:[2,function(){return{s:-1,v:null}}]})})}var Os=Io([89472536,67911963,202988290,386077465,1866537770,1224742518,488243476,419627011,184819487,437598027,340225859,172033032,437716482,471155211,1095068177,1092107040,419499526,423762697,100665116,490210839,1194790674,673115,85280006,1510540548,2756129,939992591,1246643516,1108281098,52370449,641031181,822350097,201595136,1447512348,1107565334,605101077,923815180,201460231,369557787,421401919,370608902,386208007,1158809130,67652933,420829977,1325996060,705104933,100734005,18485518,1079117841,520555597,117716299,441132557,117836552,454886414,1079380231,235285315,167851373,438045445,354104902,218503945,1450723136,1261309460,853525,339100932,1443038736,103498560,3566862,1175192861,252709131,16777237,1984516105,1829509143,185926151,436356353,185073670,1779174662,991969605,50610456,1275666182,419565839,202771726,1124408096,135546735,168313092,253563142,135813653,822480166,72178038,222758157,52298251,454823449,56244746,1427123716,67914571,353589766,51775754,625419022,219166498,1258491144,521093188,151601409,456523793,678234648,169481234,118557701,391005526,241568771,422784012,438716682,1309089280,806492,990010373,638390299,134885451,1481180934,17176407,655231834,2049314574,84410418,220531716,167778574,105923661,106502459,185600556,170279180,1046087172,151977997,35061763,1263338788,84282176,52366156,1544356616,420816433,50605842,1229146882,1511529224,186319630,4664589,35268139,100748290,1379942427,1174536207,322636309,208471067,373756952,7684,1481509910,69665358,440083533,1174866696,403505177,1129127711,956961098,571674714,285606663,67257606,151460637,725827670,862785030,168106503,289803037,203297033,1197361671,1327110967,169477163,84548876,1840656,1325404447,537919532,1158350651,118114894,454640143,269026054,471146315,372321280,1196229131,421140297,17891399,256321038,167983925,135074069,1379942427,1174536207,523897886,187303186,16788313,1007685120,1447054106,1193610767,121055758,235738112,118572573,1091181577,956569372,1632457991,1191843846,387122178,420174362,755830297,929124171,222888474,50727960,118447621,1229986830,202905462,51517293,1159661069,219156518,1296957445,772541034,285869946,471598093,437591628,102564608,341211207,72035854,453396244,286989059,252909895,100927823,207059041,440798984,347163,218169348,389222492,3416153,1128989210,404424777,102242906,1193875213,338048784,17827353,1077939469,33558354,973080134,923734551,118361931,390678349,407312666,756351505,606227719,1078676741,1275397643,369236248,102176796,152328767,505090338,1195966464,68884054,402849858,604117287,387586598,184555596,52366851,290079565,39467274,337061379,1044450054,822546697,1309087752,202009165,100891182,1259996933,521093188,51986689,390009692,187041819,1296385283,1528366088,1539,1194856717,20458516,188762957,374080774,100861208,604249353,906778884,134487574,1444022019,51205721,688201243,275581722,638910490,553654793,438246915,1191185666,68310648,100862061,1157897218,203233559,1296957442,1829962602,35198010,17122832,1079118092,101515597,370942795,117714965,54019863,889585674,1079385113,386672195,236790637,420024595,406539288,689707789,956765442,1198474037,1091441944,102564636,119409668,205263381,108670990,151781382,1313753605,457245696,855645709,391058950,235019008,471534109,474699863,756351517,540018203,272974679,51463965,386470914,67506497,1297423660,1224806753,520230941,878058775,289625664,571801658,289411104,88480259,1641997,388317194,1477786881,50998065,521022728,202398474,33949981,1095115776,1582986863,239750725,289150477,469830174,14416],mc,2);function td(){return Os(0)}function Y8(){return(0,n.sH)(this,void 0,void 0,function(){var s,c,a;return function(f,g,w){return f(g,w)}(n.YH,this,function(f){var g=function(w,b){return function(_,m){return _(m)}(w,b)};switch(f.label){case 0:return s=function(w){return w()}(td),[4,Promise.all(s.map(q8))];case 1:return c=f.sent(),a={},s.forEach(function(w,b){var _=g(vr,w).toString(16);a[_]=c[b]}),[2,a]}})})}function q8(s){var c=function(a,f){return a(f)};return new Promise(function(a){var f=c(Os,1).concat(s,c(Os,2));try{var g=function(_,m){return _(m)}(yc,f),w=g[1],b=g[2];if(function(_){return _!==0}(w))return void function(_,m){_(m)}(a,w);b[function(_){return _(3)}(Os)](function(){return c(a,0)},function(){return function(_){return c(_,-1)}(a)})}catch{c(a,-2)}})}var $8=Un([4291220175,857170018,1001396817,1198736693],6);function ed(){var s=function(c,a,f){return c(a,f)};return(0,n.sH)(this,void 0,void 0,function(){var c=function(m){return function(I){return I()}(m)},a=function(m,I){return function(L,x){return L(x)}(m,I)},f=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)},g=function(m,I,L,x,Y){return function(J,tt,nt,ut,pt){return J(tt,nt,ut,pt)}(m,I,L,x,Y)},w=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)},b=function(m,I,L){return s(m,I,L)},_=this;return s(n.YH,this,function(m){var I=function(tt){return c(tt)},L=function(tt){return c(tt)},x=function(tt,nt){return a(tt,nt)},Y=function(tt,nt,ut){return f(tt,nt,ut)},J=function(tt,nt,ut,pt,Et){return g(tt,nt,ut,pt,Et)};switch(m.label){case 0:return[4,w(er,b(Yn,500,{s:-2,v:null}),function(){var tt=function(ut){return L(ut)},nt=function(ut,pt){return x(ut,pt)};return J(n.sH,_,void 0,void 0,function(){var ut;return function(pt,Et,ht){return Y(pt,Et,ht)}(n.YH,this,function(pt){switch(pt.label){case 0:return function(Et){return I(Et)}(td)?function(Et){return I(Et)}(U0)?(ut={s:0},[4,tt(Y8)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(ut[nt($8,0)]=pt.sent(),ut)]}})})})];case 1:return[2,m.sent()]}})})}function Z8(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function nd(){return{s:0,v:!!window.isSecureContext}}var Wt=Io([37637135,1447917654,1074862848,221320987,185417728,1279479069,287641348,1585126709,277761,1427768864,1124076042,2035529,455018507,23675461,120393521,1444036433,1141263183,303105822,319645969,1275726848,36457547,388709920,101924677,1077349638,303367169,135938595,1112349448,153357637,121505586,1480802129,1141246529,839976462,805901,167780891,1160643090,511382904,402929730,1381389121,68162311,1195642647,185270282,342447173,288103456,254704215,1208027939,253560323,369581389,17177344,138102537,455935783,39531596,1195379206,236466755,203181062,1581711622,523115086,3539255,286744647,1544706816,324279305,285825290,1174470656,37573638,1530878519,353133582,353131799,133385,1476726039,1511722500,1328372255,321869181,1226406481,437012226,1090917145,1258885148,253318160,1513180693,1227046965,1410678607,1342657549,425461277,474174799,340006467,1549931597,476332332,1229857560,235819533,223288402,491280640,1142379025,36132127,186666528,223027998,1427178840,1544423503,1578239775,1310394885,136860420,1547191847,408580948,1381244166,253559122,306596941,184767552,1512328723,1228555109,693174606,1108418398,425464923,1413482013,1192695620,526847309,494081918,122363912,1532891471,408493381,1430543951,889345088,292959062,342691121,223027723,1532560969,408420677,1413482012,1192629828,510070093,494081150,122364424,442325327,1011230978,101538648,373754205,140579917,24319871,239805199,1499006537,458752325,1413482015,1192564036,1466371405,691295613,39585552,1195379206,1364738631,1413750089,186471488,154737427,321591924,454109517,1281100816,554256710,268918530,1197360921,237579847,472910394,1565618756,1393893187,135923539,135938563,370036567,37573653,1228888631,100936803,17566743,391388169,120063254,436405788,291700750,388832305,436733275,135007239,340663119,1212227414,34873431,158013954,289151081,1497971729,222381907,1212243039,286081374,408027209,24710402,1115119484,1146055183,1142444618,1543655963,68837124,1073825552,1261573663,169885754,1510962778,218959899,403528705,1258684700,1108809489,523386889,1547125292,1478042459,1477265165,223304471,289954048,471666260,1466111750,1098210424,1196255759,358111311,1448625219,1380194633,1581472325,1365728331,1148542584,1162702351,374889039,1448624963,1464080457,1497585989,1348951115,1114987896,1095593487,341334351,1516061507,1159481353,470700572,1328680725,169885755,223294735,253445402,240651031,1225806923,387399942,526713163,73549612,104933442,1397696089,303759937,167860492,18698759,239013651,326172731,1581787227,353831957,973232649,939619857,1197359924,325393500,490346033,1225074764,69022230,323956569,387799296,1427984135,355216922,1512643387,876704531,1159331841,1225989126,323486805,491724040,170532189,3932708,101063192,151264268,559176543,17187847,1174929664,292243286,108600373,201600537,1141251095,1561346096,1532632579,470363986,36047110,343480890,117930573,1850605643,558522182,67846665,1565,1197629007,1178209058,286466373,1325800471,420546127,1726481,503451194,325257995,460660088,201600525,1394279936,474962699,1195659335,252321034,35195667,3934778,286339955,1142554639,290872909,151870732,1275724032,304761931,1585119520,16939096,1312359695,1532368651,185025351,1108495628,37293381,641473077,18162246,223742993,68948301,386745862,1112345356,86776901,472667701,1443637324,1899187023,420554298,1726481,151919676,1164397570,637610752,723781750,1698308129,1127431206,707465033,707802681,1265187380,388767606,1480802134,1208360513,69211931,387799325,1279479052,103685124,319425312,286075470,1515735825,102047565,285492259,1414339852,103678021,103418662,1447896833,1074862848,137762587,388974859,1277106694,36457547,472919072,454237511,1077418262,352394518,105513287,437127707,35796994,1349864483,352593984,1412828183,319886345,71958855,1276910865,1040796747,755641088,724770675,1815160102,1126186026,892276553,135933244,842599169,389943079,558069249,1848778797,1297497917,286083655,505351716,102304258,1346111802,286423055,56118039,1645594,1195642645,252321034,303696659,555752497,1480797766,1476414232,1532368671,134306119,253434892,1265180170,120982902,1313025613,56104017,251731212,1195642641,1009400376,572076350,605364487,1447917670,2015634976,572924208,373948743,1275729152,637946955,923480324,1480793698,1326521153,822482699,1192975876,1276392517,103678468,507000870,1313029974,307910968,1381646915,1447435593,1110597189,103023173,1344872752,402815001,50726918,352800835,705519370,1280658713,354687508,790907953,453146639,1611007503,34932251,185417741,1112349725,35788869,1349864483,924139332,1141250838,69207553,387799325,1279479052,103685124,488246048,436221774,1109011463,319886848,1192427847,185404933,1165052939,490340401,1444101959,1129727262,253564170,17188919,255794444,1265179924,104602998,286339955,1142554639,307650125,204101888,472386311,1161501448,388582520,101596241,1109002254,1129861130,1193230859,470502725,1265178886,372706166,105084417,1293621766,337975065,907108096,1112349452,388629317,104339975,1447917638,1075382038,85000735,105513287,739647238,36505618,808860198,285686870,56118033,135928585,1229604118,203037771,1161758474,121326712,100940869,1280722241,305463822,1191920412,1042828613,388637490,389873945,641955329,53487654,336023619,387599367,1112348168,589568581,657988149,1480791665,1192886337,1129861120,270092311,790305804,322637571,470817841,692270405],O6,0);function X8(){var s=function(c,a){return c(a)};return s(Wt,0)&&navigator[s(Wt,0)]}function J8(){var s=function(c,a){return c(a)};return document[s(Wt,1)](s(Wt,2))[s(Wt,3)](s(Wt,4))}function Q8(s,c){return a=n.sH,f=function(){var g,w,b,_,m=function(L,x){return function(Y,J){return Y(J)}(L,x)},I=function(L,x,Y,J){return function(tt,nt,ut,pt){return tt(nt,ut,pt)}(L,x,Y,J)};return function(L,x,Y){return L(x,Y)}(n.YH,this,function(L){switch(L.label){case 0:return g=Array.from(function(x){return function(Y){return Y===null}(x)}(s)||function(x){return function(Y){return Y===void 0}(x)}(s)?void 0:s[m(Wt,5)].values()),[4,Promise.all([I(tw,s,g,c),m(nw,s)])];case 1:return w=L.sent(),b=w[0],_=w[1],[2,[b,_,g]]}})},a(this,void 0,void 0,f);var a,f}var Ui=16;function tw(s,c,a){var f=function(ht,yt){return ht(yt)},g=function(ht,yt){return ht*yt},w=function(ht,yt){return ht(yt)},b=function(ht,yt){return ht(yt)},_=function(ht,yt){return ht+yt},m=function(ht,yt){return ht(yt)},I=function(ht,yt){return ht(yt)},L=function(ht,yt){return ht(yt)},x=function(ht,yt){return ht(yt)},Y=function(ht,yt){return ht(yt)},J=function(ht,yt){return ht(yt)},tt=function(ht,yt){return ht(yt)},nt=function(ht,yt){return ht(yt)},ut=function(ht,yt){return ht(yt)},pt=function(ht,yt){return ht+yt},Et=function(ht,yt){return ht+yt};return function(ht,yt,Ht,Vt,jt){return ht(yt,void 0,void 0,jt)}(n.sH,this,0,0,function(){var ht,yt,Ht,Vt,jt,Tt,Ut,qt,ne,se,he,Ae,Re,Le,Ue,Fe,Pe,gn,Mn,Tn,$n,rr,ir,zr,fi,wr,En,Bt={LIcVF:"1|3|2|0|4",CVGyL:function(Ot,Nt){return f(Ot,Nt)},NQGua:function(Ot,Nt){return g(Ot,Nt)},IxGbO:function(Ot,Nt){return w(Ot,Nt)},qQoQh:function(Ot,Nt){return f(Ot,Nt)},eRsOG:function(Ot,Nt){return function(te,ce){return te%ce}(Ot,Nt)},sTGJP:function(Ot,Nt){return b(Ot,Nt)},bLKEM:function(Ot,Nt){return function(te,ce){return te/ce}(Ot,Nt)},BfmPO:function(Ot,Nt){return function(te,ce){return te/ce}(Ot,Nt)},qiUeQ:function(Ot,Nt){return function(te,ce){return te/ce}(Ot,Nt)},QCXCI:function(Ot,Nt){return function(te,ce){return te*ce}(Ot,Nt)},YuwoT:function(Ot,Nt){return _(Ot,Nt)},NzoFK:function(Ot,Nt){return b(Ot,Nt)},nStre:function(Ot,Nt){return m(Ot,Nt)},cgngL:function(Ot,Nt){return I(Ot,Nt)},lnSsO:function(Ot,Nt){return L(Ot,Nt)},LWtIu:function(Ot,Nt){return I(Ot,Nt)},rnbTq:function(Ot,Nt){return L(Ot,Nt)},vXgTw:function(Ot,Nt){return function(te,ce){return te|ce}(Ot,Nt)},SGWhR:function(Ot,Nt){return b(Ot,Nt)},tJskz:function(Ot,Nt){return m(Ot,Nt)},WwBMK:function(Ot,Nt){return b(Ot,Nt)},XvGWM:function(Ot,Nt){return I(Ot,Nt)},Czazt:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},TcuLX:function(Ot,Nt){return x(Ot,Nt)},qmLme:function(Ot,Nt){return Y(Ot,Nt)},DHpBv:function(Ot,Nt){return f(Ot,Nt)},GXSjU:function(Ot,Nt){return I(Ot,Nt)},lZchU:function(Ot,Nt){return function(te,ce){return te|ce}(Ot,Nt)},kdFZM:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},fjLlD:function(Ot,Nt){return J(Ot,Nt)},NZEUH:function(Ot,Nt){return L(Ot,Nt)},rMQcE:function(Ot,Nt){return Y(Ot,Nt)},cmdDW:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},fMGTS:function(Ot,Nt){return m(Ot,Nt)},Megnu:function(Ot,Nt){return tt(Ot,Nt)},dwDBV:function(Ot,Nt){return function(te,ce){return te<ce}(Ot,Nt)},UStju:"16|13|12|14|1|11|3|2|15|6|5|0|7|8|4|10|9",yPtzU:function(Ot,Nt){return function(te,ce){return te===ce}(Ot,Nt)},hIuvn:function(Ot,Nt){return tt(Ot,Nt)},LUaAI:function(Ot,Nt){return nt(Ot,Nt)},KBsRE:function(Ot,Nt){return f(Ot,Nt)},eiLib:function(Ot,Nt){return g(Ot,Nt)},gsIFj:function(Ot,Nt){return x(Ot,Nt)},ymkbA:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},RTTay:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},SXGAR:function(Ot,Nt){return ut(Ot,Nt)},rLyth:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},lnNJb:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},HtEmG:function(Ot,Nt){return g(Ot,Nt)},kEERD:function(Ot,Nt){return function(te,ce){return te+ce}(Ot,Nt)},lEDdr:function(Ot,Nt){return pt(Ot,Nt)},VfkAG:function(Ot,Nt){return _(Ot,Nt)},FQVYm:function(Ot,Nt){return nt(Ot,Nt)},rjquO:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},zCjNE:function(Ot,Nt){return ut(Ot,Nt)},HfSqy:function(Ot,Nt){return J(Ot,Nt)},xEOfR:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)},CsGxJ:function(Ot,Nt){return b(Ot,Nt)},CPukW:function(Ot,Nt){return w(Ot,Nt)},uiTcO:function(Ot,Nt){return function(te,ce){return te*ce}(Ot,Nt)},gvEcj:function(Ot,Nt){return Et(Ot,Nt)},qonBa:function(Ot,Nt){return Et(Ot,Nt)},SQuSM:function(Ot,Nt){return function(te,ce){return te+ce}(Ot,Nt)},qLjkZ:function(Ot,Nt){return function(te,ce){return te*ce}(Ot,Nt)},XMYnt:function(Ot,Nt){return pt(Ot,Nt)},YtxIQ:function(Ot,Nt){return function(te,ce){return te(ce)}(Ot,Nt)}};return function(Ot,Nt,te){return Ot(Nt,te)}(n.YH,this,function(Ot){switch(Ot.label){case 0:return[4,s[Bt.sTGJP(Wt,6)]({requiredFeatures:c})];case 1:for(ht=Ot.sent(),yt=Math.PI,Ht=[[0,1,0,Bt.bLKEM(yt,7)],[1,0,0,Bt.bLKEM(yt,8)],[0,1,1,Bt.BfmPO(yt,4)],[1,2,1,Bt.qiUeQ(yt,8)]],Vt=Ht.length,jt=new Uint8Array(Bt.QCXCI(Vt,Bt.YuwoT(Bt.YuwoT(16,Ui),8))),Tt=navigator[Bt.IxGbO(Wt,0)][Bt.NzoFK(Wt,7)](),a[Bt.nStre(Wt,8)]({device:ht,format:Tt}),Ut=ht[Bt.cgngL(Wt,9)](Bt.IxGbO(Wt,10)),qt=ht[Bt.CVGyL(Wt,11)]({label:Bt.IxGbO(Wt,12),layout:Bt.cgngL(Wt,13),vertex:{module:Ut},fragment:{module:Ut,targets:[{format:Tt}]},primitive:Bt.lnSsO(Wt,14)}),ne=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],se=new Uint8Array(Bt.cgngL(Array,Bt.NQGua(7,9)).fill(void 0).map(function(ce,bn){return ne[function(Ce){return Bt.eRsOG(Ce,3)}(bn)]}).flat()),he=ht[Bt.CVGyL(Wt,15)]({label:Bt.LWtIu(Wt,16),size:[7,9],format:Bt.rnbTq(Wt,17),usage:Bt.vXgTw(window[Bt.SGWhR(Wt,18)][Bt.IxGbO(Wt,19)],window[Bt.tJskz(Wt,18)][Bt.WwBMK(Wt,20)])}),ht[Bt.LWtIu(Wt,21)][Bt.XvGWM(Wt,22)]({texture:he},se,{bytesPerRow:Bt.NQGua(7,4)},{width:7,height:9}),Ae=ht[Bt.SGWhR(Wt,23)](Bt.Czazt(Wt,24)),Re=ht[Bt.XvGWM(Wt,25)]({layout:qt[Bt.TcuLX(Wt,26)](0),entries:[{binding:0,resource:Ae},{binding:1,resource:he[Bt.qmLme(Wt,27)]()}]}),Le=Ht.map(function(ce){for(var bn=Bt.LIcVF.split("|"),Ce=0;;){switch(bn[Ce++]){case"0":Ge[Bt.CVGyL(Wt,35)]();continue;case"1":var Ge=ht[Bt.CVGyL(Wt,28)]({label:Bt.CVGyL(Wt,29),size:Bt.NQGua(4,Float32Array[Bt.IxGbO(Wt,30)]),usage:window[Bt.IxGbO(Wt,31)][Bt.CVGyL(Wt,32)],mappedAtCreation:!0});continue;case"2":an[Bt.CVGyL(Wt,34)](ce);continue;case"3":var an=new Float32Array(Ge[Bt.IxGbO(Wt,33)]());continue;case"4":return ht[Bt.CVGyL(Wt,25)]({layout:qt[Bt.qQoQh(Wt,26)](1),entries:[{binding:0,resource:{buffer:Ge}}]})}break}}),Ue=ht[Bt.DHpBv(Wt,36)](Bt.Czazt(Wt,37)),Fe=ht[Bt.qQoQh(Wt,28)]({size:Bt.QCXCI(Ue[Bt.GXSjU(Wt,38)],8),usage:Bt.lZchU(window[Bt.kdFZM(Wt,31)][Bt.tJskz(Wt,39)],window[Bt.fjLlD(Wt,31)][Bt.qmLme(Wt,40)])}),Pe=ht[Bt.LWtIu(Wt,28)]({size:Bt.NQGua(Fe[Bt.NZEUH(Wt,41)],Vt),usage:Bt.vXgTw(window[Bt.rMQcE(Wt,31)][Bt.XvGWM(Wt,20)],window[Bt.cmdDW(Wt,31)][Bt.fMGTS(Wt,42)])}),gn={label:Bt.Megnu(Wt,43),colorAttachments:Bt.qmLme(Wt,44),timestampWrites:{querySet:Ue,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},En=0;Bt.dwDBV(En,Le.length);En++)for(var Nt=Bt.UStju.split("|"),te=0;;){switch(Nt[te++]){case"0":Bt.yPtzU(Pe[Bt.hIuvn(Wt,58)],Bt.LUaAI(Wt,59))&&Tn[Bt.KBsRE(Wt,60)](Fe,0,Pe,Bt.eiLib(En,16),Fe[Bt.qQoQh(Wt,41)]);continue;case"1":$n[Bt.gsIFj(Wt,51)](qt);continue;case"2":rr=window[Bt.ymkbA(Wt,53)][Bt.qQoQh(Wt,54)]();continue;case"3":$n[Bt.sTGJP(Wt,52)](1,Mn);continue;case"4":zr=Bt.RTTay(ew,a[Bt.qmLme(Wt,2)]);continue;case"5":Tn[Bt.cmdDW(Wt,57)](Ue,0,Ue[Bt.hIuvn(Wt,38)],Fe,0);continue;case"6":$n[Bt.SXGAR(Wt,56)]();continue;case"7":ir=Tn[Bt.rLyth(Wt,61)]();continue;case"8":ht[Bt.Megnu(Wt,21)][Bt.RTTay(Wt,62)]([ir]);continue;case"9":jt[Bt.lnNJb(Wt,34)](new Uint8Array(new Float64Array([rr])[Bt.XvGWM(Wt,63)]),Bt.HtEmG(En,Bt.YuwoT(Bt.kEERD(16,Ui),8)));continue;case"10":jt[Bt.cgngL(Wt,34)](zr,Bt.lEDdr(8,Bt.NQGua(En,Bt.VfkAG(Bt.lEDdr(16,Ui),8))));continue;case"11":$n[Bt.FQVYm(Wt,52)](0,Re);continue;case"12":Tn=ht[Bt.SGWhR(Wt,48)](Bt.kdFZM(Wt,49));continue;case"13":gn[Bt.rjquO(Wt,45)][0][Bt.hIuvn(Wt,46)]=a[Bt.CVGyL(Wt,47)]()[Bt.zCjNE(Wt,27)]();continue;case"14":$n=Tn[Bt.FQVYm(Wt,50)](gn);continue;case"15":$n[Bt.HfSqy(Wt,55)](48);continue;case"16":Mn=Le[En];continue}break}return Bt.yPtzU(Pe[Bt.xEOfR(Wt,58)],Bt.CsGxJ(Wt,59))?[4,Pe[Bt.DHpBv(Wt,64)](window[Bt.WwBMK(Wt,65)][Bt.CPukW(Wt,66)])]:[3,3];case 2:for(Ot.sent(),fi=Pe[Bt.cmdDW(Wt,33)](),wr=new Uint8Array(fi),En=0;Bt.dwDBV(En,Vt);En++)jt[Bt.TcuLX(Wt,34)](wr[Bt.sTGJP(Wt,67)](Bt.NQGua(En,Ui),Bt.uiTcO(Bt.gvEcj(En,1),Ui)),Bt.qonBa(Bt.SQuSM(8,16),Bt.qLjkZ(En,Bt.gvEcj(Bt.XMYnt(16,Ui),8))));Pe[Bt.YtxIQ(Wt,35)](),Ot.label=3;case 3:return[2,Bt.GXSjU(mr,jt)]}})})}function ew(s){var c=function(a,f){return a(f)};return c(d4,c(kn,s[c(Wt,68)]()))}function nw(s){var c,a=function(g,w){return g!==w},f=function(g,w){return g(w)};return function(g,w,b,_,m){return g(w,void 0,void 0,m)}(n.sH,this,0,0,function(){var g;return function(w,b,_){return w(b,_)}(n.YH,this,function(w){switch(w.label){case 0:return a(c=s[f(Wt,69)],null)&&a(c,void 0)?(g=c,[3,3]):[3,1];case 1:return[4,s[f(Wt,70)]()];case 2:g=w.sent(),w.label=3;case 3:return[2,g]}})})}function rd(){var s=function(a,f,g){return a(f,g)},c=this;return s(er,Yn(1e3,{s:-2,v:null}),function(){var a,f,g=function(m){return function(I){return I()}(m)},w=function(m,I,L){return s(m,I,L)},b=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)},_=function(m,I,L){return function(x,Y,J){return x(Y,J)}(m,I,L)};return a=n.sH,f=function(){var m,I,L,x,Y,J,tt;return s(n.YH,this,function(nt){switch(nt.label){case 0:return[4,g(rw)];case 1:return m=nt.sent(),function(ut,pt){return function(Et,ht){return Et!==ht}(ut,pt)}(w(Xt,m,453955339),0)?[2,m]:(I=function(ut,pt){return s(ut,pt,1801730948)}(Xt,m),L=I[0],x=I[1],[4,b(Q8,L,x)]);case 2:return Y=nt.sent(),J=Y[0],tt=Y[1],[2,{s:0,v:{s:Y[2],f:J,v:w(Xt,tt,4112659446),a:_(Xt,tt,1956208378)}}]}})},a(c,void 0,void 0,f)})}function rw(){var s,c,a=function(g,w,b){return g(w,b)},f=function(g,w,b){return g(w,b)};return s=n.sH,c=function(){var g,w,b,_,m=function(x,Y,J){return f(x,Y,J)},I=function(x){return function(Y){return Y()}(x)},L=function(x,Y,J){return f(x,Y,J)};return a(n.YH,this,function(x){switch(x.label){case 0:if(!(g=function(Y,J){return a(Y,J,3179935986)}(Xt,navigator)))return[2,{s:-3,v:null}];w=null,x.label=1;case 1:return x.trys.push([1,3,,4]),[4,m(Xt,g,1678473624)()];case 2:return w=x.sent(),[3,4];case 3:if(function(Y){return function(J,tt){return J instanceof tt}(Y,Error)}(b=x.sent())&&I(j))return[2,{s:-3,v:L(Xt,b,3065852031)}];throw b;case 4:return w?I(X8)?(_=function(Y){return function(J){return J()}(Y)}(J8))?[2,{s:0,v:[w,_]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}})},s(this,void 0,void 0,c)}function iw(){var s;return{s:0,v:(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now()}}var Wr=Un([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function ow(){var s,c,a=function(f){return f()};return s=n.sH,c=function(){var f,g=function(b){return a(b)},w=function(b,_){return function(m,I){return m(I)}(b,_)};return function(b,_,m){return b(_,m)}(n.YH,this,function(b){switch(b.label){case 0:return g(T)||function(_){return a(_)}(D)?(f={s:0},[4,g(sw)]):[3,2];case 1:return[2,(f[w(Wr,0)]=b.sent(),f)];case 2:return[2,{s:-1,v:null}]}})},s(this,void 0,void 0,c)}function sw(){var s={Blqbz:function(a,f){return a(f)},xZHoB:"2|1|3|0|4",dJhbP:function(a,f){return a(f)},SkSjD:function(a){return a()},KqpSs:function(a,f,g){return a(f,g)},hsbcg:function(a,f,g){return a(f,g)},QsyLE:function(a,f){return a(f)},BRhvx:function(a,f,g){return a(f,g)},FbvWI:function(a,f){return a(f)},iDelp:function(a,f){return a(f)}},c=new Promise(function(a){for(var f=s.xZHoB.split("|"),g=0;;){switch(f[g++]){case"0":window[s.Blqbz(Wr,5)](window[s.dJhbP(Wr,6)].debug,0,w);continue;case"1":var w;continue;case"2":var b={mXScH:function(_,m){return s.dJhbP(_,m)}};continue;case"3":s.SkSjD(T)?((w=new Error).name=" ",s.KqpSs(Xt,Object,1973166116)(w,s.dJhbP(Wr,1),{get:a.bind(null,!0)})):(w=s.hsbcg(Xt,window[s.dJhbP(Wr,2)],1297038992)(s.QsyLE(Wr,3)),s.BRhvx(Xt,Object,1973166116)(w,s.FbvWI(Wr,4),{get:function(){b.mXScH(a,!0);var _=new Error;throw _.name="",_}}));continue;case"4":window[s.iDelp(Wr,5)](function(){s.Blqbz(a,!1)});continue}break}});return s.FbvWI(_o,c)}var aw=new Set([2882888216,2306836488,1040191956,1447924955]);function cw(){return{s:0,v:h4(Navigator.prototype,aw)}}var id=Un([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function uw(){var s,c=function(a,f){return a(f,3966979758)}(Xt,new window[s=id,s(0)](""));return function(a,f){return a!==f}(typeof c,function(a){return a(1)}(id))?{s:-1,v:null}:{s:0,v:{isTrusted:c}}}var lw=function(){return{key:"bd",sources:{stage1:(s={},s.s94=X0,s),stage2:(c={},c.s106=t6,c.s154=d8,c.s158=y8,c.s160=y6,c.s97=ed,c.s70=rd,c.s152=V6,c),stage3:(a={},a.s1=f0,a.s2=d0,a.s4=h0,a.s5=p0,a.s7=g0,a.s15=m0,a.s19=v0,a.s27=y0,a.s74=w0,a.s75=b0,a.s24=P0,a.s44=T0,a.s45=x0,a.s57=H0,a.s59=_0,a.s60=E0,a.s61=R0,a.s62=S0,a.s63=A0,a.s64=I0,a.s65=k0,a.s68=O0,a.s69=B0,a.s72=M0,a.s82=V0,a.s83=W0,a.s99=nd,a.s101=X5,a.s103=J5,a.s104=Q5,a.s117=e6,a.s119=n6,a.s123=r6,a.s131=i6,a.s133=o6,a.s136=s6,a.s148=a6,a.s149=c6,a.s150=u6,a.s157=l6,a.s102=z6,a.s118=G6,a.s120=H6,a.s130=K6,a.s132=j6,a.s135=W6,a.s139=D6,a.s142=F6,a.s144=U6,a.s145=P6,a.s146=M6,a.s151=n8,a.s153=r8,a.s155=p8,a.s156=m8,a.s159=w8,a.s162=R8,a.s163=ow,a.s165=uw,a.s166=cw,a)}};var s,c,a};function fw(s,c,a,f,g,w){var b=f?[]:function(x,Y,J){return function(tt,nt){for(var ut=function(qt,ne){return qt<ne},pt=function(qt,ne,se){return qt(ne,se)},Et=function(qt,ne){return qt(ne)},ht=[],yt=0,Ht=Array.isArray(tt)?tt:[tt];ut(yt,Ht.length);yt++){var Vt=Ht[yt];if(pt(gc,Vt,Es))for(var jt=0,Tt=nt;ut(jt,Tt.length);jt++){var Ut=Tt[jt];ht.push(Et(p5,Ut))}else ht.push(Et(String,Vt))}return ht}(x,Y).map(function(tt){return hc(tt,{q:J})})}(s,c,a);if(b.length===0)return function(){return Promise.resolve({s:-1,v:null})};kr(w,function(){return{e:6}});var _=Zl(),m=qf(_),I=Date.now(),L=t0(b,dw.bind(null,5e3,w,m),hw,Math.max(10,b.length),g);return L.then(function(){return _.resolve()},function(){return _.resolve()}),function(x,Y,J,tt){return(0,n.sH)(this,void 0,void 0,function(){var nt,ut;return(0,n.YH)(this,function(pt){switch(pt.label){case 0:if(J)return[2,{s:-1,v:null}];pt.label=1;case 1:return pt.trys.push([1,3,,4]),[4,Promise.race([L,pw(I,x,Y)])];case 2:return pt.sent(),nt=function(Et){var ht=Et.result,yt=Et.failedAttempts;if(ht!==void 0)return ht;var Ht=yt[0];if(!Ht)return{s:-3,v:null};if(Ht.level===1)return Ht.error;var Vt=Ht.error,jt=Ht.endpoint;if(Vt instanceof Error){var Tt=Vt.name,Ut=Vt.message;switch(Tt){case"AbortError":return{s:-2,v:Ut};case"TimeoutError":return{s:-3,v:Ut};case"CSPError":return{s:-6,v:Ut};case"InvalidURLError":return{s:-7,v:"Invalid URL: ".concat(ci(jt,255))};case"TypeError":return{s:-4,v:Ut}}}return n0(Vt)}(L.current),kr(tt,function(){return{e:7,result:nt}}),[2,nt];case 3:throw ut=pt.sent(),kr(tt,function(){return{e:8,error:ut}}),ut;case 4:return[2]}})})}}function dw(s,c,a,f,g,w){return Ao(c,function(){return{e:9,tryNumber:g,url:f,timeout:s}},function(b){var _=b.status,m=b.getHeader,I=b.body;return{e:10,tryNumber:g,status:_,retryAfter:m("retry-after"),body:I}},function(b){return{e:11,tryNumber:g,error:b}},function(){return Yf({url:f,timeout:s,abort:w,container:a})})}function hw(s){var c=s.status,a=s.body;return c===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(a)?{result:{s:0,v:a}}:{error:{s:-5,v:ci("".concat(c,": ").concat(a),255)}}}function pw(s,c,a){return Yn(Math.min(Math.max(c,s+1e4-Date.now()),a))}function od(s){for(var c="".concat(s,"="),a=0,f=document.cookie.split(";");a<f.length;a++){for(var g=f[a],w=0;g[w]===" "&&w<g.length;)++w;if(g.indexOf(c)===w)return g.slice(w+c.length)}}function sd(s,c,a,f){var g="".concat(s,"=").concat(c),w=new Date(Date.now()+24*a*60*60*1e3),b="expires=".concat(w.toUTCString()),_=f?"domain=".concat(f):"";document.cookie=[g,"path=/",b,_,"SameSite=Lax"].join("; ")}function ad(s){var c=location.hostname,a=j();(function(f,g){var w=f.length-(f.slice(-1)==="."?1:0);do if(w=w>0?f.lastIndexOf(".",w-1):-1,g(f.slice(w+1))===!0)return!0;while(w>=0);return!1})(c,function(f){if(!a||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(f)||f===c)return s(f)})||s()}function cd(s){return"".concat(s,"_t")}function bc(s){return"".concat(s,"_lr")}function ud(s){var c,a;try{return(a=(c=localStorage==null?void 0:localStorage.getItem)===null||c===void 0?void 0:c.call(localStorage,s))!==null&&a!==void 0?a:void 0}catch{}}function _c(s,c){var a;try{(a=localStorage==null?void 0:localStorage.setItem)===null||a===void 0||a.call(localStorage,s,c)}catch{}}function gw(s){var c=function(g){return[od(g),ud(g)]}(cd(s)),a=c[0],f=c[1];return a=ld(a),f=ld(f),a!==void 0&&f!==void 0?{s:0,v:a||f}:a!==void 0?{s:1,v:a}:f!==void 0?{s:2,v:f}:{s:-1,v:null}}function ld(s){return s&&s.length<=1e3?s:void 0}var mw=function(){return{key:"id",sources:{stage1:(s={},s.s94=X0,s),stage2:(c={},c.s52=v6,c.s6=I5,c.s58=E6,c.s20=E5,c.s36=R5,c.s51=S5,c.s21=A5,c.s79=N6,c.s69=B0,c.s23=$6,c.s29=Y6,c.s84=X6,c.s85=Q6,c.s89=I6,c.s17=B5,c.s87=v8,c.s92=_8,c.s93=b8,c.s95=j8,c.s97=ed,c.s70=rd,c),stage3:(a={},a.s22=C6,a.s30=L6,a.s33=d6,a.s44=T0,a.s45=x0,a.s49=h6,a.s50=g6,a.s57=H0,a.s59=_0,a.s60=E0,a.s61=R0,a.s62=S0,a.s63=A0,a.s64=I0,a.s65=k0,a.s66=q5,a.s68=O0,a.s71=A6,a.s24=P0,a.s72=M0,a.s1=f0,a.s2=d0,a.s3=k5,a.s4=h0,a.s5=p0,a.s7=g0,a.s9=O5,a.s10=T5,a.s11=N5,a.s12=J6,a.s13=x5,a.s14=L5,a.s15=m0,a.s16=C5,a.s19=v0,a.s27=y0,a.s28=P5,a.s32=M5,a.s37=D5,a.s41=U5,a.s39=F5,a.s42=H5,a.s38=V5,a.s43=W5,a.s40=G5,a.s46=K5,a.s80=j5,a.s81=Y5,a.s82=V0,a.s83=W0,a.s86=e8,a.s91=z5,a.s96=$5,a.s98=Z8,a.s99=nd,a.s200=iw,a.s201=f6,a.s202=Z5,a.s74=w0,a.s75=b0,a.s76=m6,a)},tls:fw,toRequest:function(f,g){return(0,n.sH)(this,void 0,void 0,function(){var w,b,_,m,I,L;return(0,n.YH)(this,function(x){switch(x.label){case 0:return w=location.href,b=document.referrer,[4,Promise.all([w&&As(w,g),b&&As(b,g)])];case 1:return _=x.sent(),m=_[0],I=_[1],[2,(L={},L.url=m,L.cr=I||void 0,L.s55=gw(f),L.s48=B6(),L)]}})})},onResponse:function(f,g){var w,b,_;(function(m,I){var L=cd(m);I&&function(x,Y){(function(J,tt){ad(function(nt){(function(ut,pt){sd(ut,"",-1,pt)})(J,nt)}),ad(function(nt){return sd(J,tt,365,nt),od(J)===tt})})(Y,x),_c(Y,x)}(I,L)})(g,(_=(b=(w=f.products)===null||w===void 0?void 0:w.identification)===null||b===void 0?void 0:b.data)===null||_===void 0?void 0:_.visitorToken)}};var s,c,a},vw=function(){return{key:"si",sources:{stage2:(s={},s.s77=C8,s)}};var s},fd=[3,7];function Ec(s){var c=ud(s);if(!c)return[];try{var a=c?JSON.parse(c):[];return Array.isArray(a)?a:[]}catch{return[]}}function dd(s){var c={};return new Set(s).forEach(function(a){var f=function(w){if(!URL.prototype)return w;try{return new URL(w,window.location.origin).toString()}catch{return w}}(a),g=performance.getEntriesByName(f,"resource");c[a]=g}),c}function Rc(s,c,a,f,g,w){for(var b,_=[],m=0,I=s;m<I.length;m++){var L=I[m],x=L.event;x.e!==a&&x.e!==f&&x.e!==g||x.stage===w&&((_[b=x.tryNumber]||(_[b]={}))[x.e]=L)}return _.map(function(Y){var J,tt,nt,ut,pt,Et,ht=(J=Y[a])===null||J===void 0?void 0:J.timestamp,yt=(nt=(tt=Y[f])===null||tt===void 0?void 0:tt.timestamp)!==null&&nt!==void 0?nt:(ut=Y[g])===null||ut===void 0?void 0:ut.timestamp,Ht=(pt=Y[a])===null||pt===void 0?void 0:pt.event.url,Vt=(Et=Y[g])===null||Et===void 0?void 0:Et.event.error;return ht&&yt&&Ht?hd(Ht,ht,yt,Vt,c[Ht]):null}).filter(function(Y){return!!Y})}function hd(s,c,a,f,g){var w,b=function(_,m,I){if(_){for(var L,x=_.length-1;x>=0;x--){var Y=_[x];if(Y.startTime<m-1)break;Y.responseEnd<=I+1&&(L=Y)}return L}}(g,c,a);return(w={}).s=Or(b?.startTime)||Math.round(c),w.e=Or(b?.responseEnd)||Math.round(a),w.u=s||null,w.er=f?String(f):null,w.ds=Or(b?.domainLookupStart),w.de=Or(b?.domainLookupEnd),w.cs=Or(b?.connectStart),w.css=Or(b?.secureConnectionStart),w.ce=Or(b?.connectEnd),w.qs=Or(b?.requestStart),w.ss=Or(b?.responseStart),w}function Or(s){return typeof s=="number"?s===0?null:Math.round(s):null}function Ts(s){var c,a=(c=performance.timeOrigin)!==null&&c!==void 0?c:Date.now()-performance.now();return Math.round(s.getTime()-a)}var yw=function(){var s=function(){var a={},f=[],g=[],w=!1,b=Pi(document,"visibilitychange",_);function _(){var I;g.push(((I={}).t=Math.round(performance.now()),I.s=fc()?"v":"h",I))}function m(I,L){for(var x,Y,J,tt,nt,ut,pt,Et,ht,yt,Ht,Vt,jt=function(te,ce,bn){var Ce=[];return te[ce]&&(Ce.push.apply(Ce,te[ce].commonEvents),bn!==void 0&&Ce.push.apply(Ce,te[ce].getCalls[bn]||[])),Ce}(a,I,L),Tt={},Ut=0,qt=jt;Ut<qt.length;Ut++){var ne=qt[Ut];Tt[ne.event.e]=ne}var se=(Y=Tt[4])!==null&&Y!==void 0?Y:Tt[5];if(Tt[0]&&Tt[1]&&Tt[3]&&Tt[12]&&se){var he=Tt[0].event.options,Ae=he.token,Re=he.apiKey,Le=Re===void 0?Ae:Re,Ue=he.storageKey,Fe=Ue===void 0?lf:Ue,Pe=he.modules,gn=he.ldi,Mn=he.aggressiveOptimization,Tn=Mn!==void 0&&Mn,$n=he.optimizeRepeatedVisits,rr=$n!==void 0&&$n;if(Le){var ir,zr,fi=Math.min(Tt[0].timestamp,Ts((J=gn?.attempts[0].startedAt)!==null&&J!==void 0?J:new Date("8524-04-28"))),wr=(tt=Tt[5])===null||tt===void 0?void 0:tt.event.error,En=(nt=Tt[4])===null||nt===void 0?void 0:nt.event.result,Bt=(ut=Tt[13])!==null&&ut!==void 0?ut:Tt[14],Ot=dd(f),Nt=((x={}).v="1",x.dt=new Date().toISOString(),x.ci=e0(),x.pi=Gf(),x.ai=I,x.ri=Eo(12),x.c=Le,x.rid=(Et=(pt=En?.requestId)!==null&&pt!==void 0?pt:wr?.requestId)!==null&&Et!==void 0?Et:null,x.er=(ht=wr?.message)!==null&&ht!==void 0?ht:null,x.mo=Pe.map(function(te){return te.key}).filter(function(te){return!!te}),x.sa=(ir=(yt=gn?.attempts)!==null&&yt!==void 0?yt:[],zr=dd(ir.map(function(te){return te.url}).filter(function(te){return!!te})),ir.map(function(te,ce){var bn=ir.length>1&&ce<ir.length-1&&!("error"in te);return hd(te.url,Ts(te.startedAt),Ts(te.finishedAt),bn?"Unknown":te.error,zr[te.url])})),x.ls=Tt[0].timestamp,x.le=Tt[1].timestamp,x.ca=Rc(jt,Ot,9,10,11),x.ss=Tt[12].timestamp,x.se=(Ht=Bt?.timestamp)!==null&&Ht!==void 0?Ht:null,x.sd=function(te){var ce,bn=(ce=te[13])===null||ce===void 0?void 0:ce.event.result;if(!bn)return{};var Ce={};for(var Ge in bn)Ce[Ge]=Math.round(bn[Ge].duration);return Ce}(Tt),x.gs=Tt[3].timestamp,x.ge=se.timestamp,x.fa=Rc(jt,Ot,18,19,20,0),x.ia=Rc(jt,Ot,18,19,20,1),x.vs=function(te,ce,bn,Ce){for(var Ge=function(Fn,or){var Kr,jr;return(0,n.YH)(this,function(Tr){switch(Tr.label){case 0:Kr=0,jr=0,Tr.label=1;case 1:return Kr<Fn.length&&jr<or.length?function(Aw,Iw){return Aw.t<Iw.t}(Fn[Kr],or[jr])?[4,Fn[Kr]]:[3,3]:[3,6];case 2:return Tr.sent(),Kr++,[3,5];case 3:return[4,or[jr]];case 4:Tr.sent(),jr++,Tr.label=5;case 5:return[3,1];case 6:return Kr<Fn.length?[4,Fn[Kr]]:[3,9];case 7:Tr.sent(),Tr.label=8;case 8:return Kr++,[3,6];case 9:return jr<or.length?[4,or[jr]]:[3,12];case 10:Tr.sent(),Tr.label=11;case 11:return jr++,[3,9];case 12:return[2]}})}(te.map(function(Fn){var or;return(or={}).t=Ts(Fn.time),or.s=Fn.state==="visible"?"v":"h",or}),ce),an=[],xn=void 0,Gr=function(){var Fn;an.length===0&&xn!==void 0&&an.push(((Fn={}).t=bn,Fn.s=xn,Fn))};an.length<100;){var To=Ge.next();if(To.done)break;var Fi=To.value,Hi=Fi.t,No=Fi.s;if(Hi>Ce)break;Hi<bn?xn=No:No!==xn&&(Gr(),an.push(Fi),xn=No)}return Gr(),an}((Vt=gn?.visibilityStates)!==null&&Vt!==void 0?Vt:[],g,fi,se.timestamp),x.ab=Tt[1].event.ab,x.ao=Tn,x.or=rr,x);(function(te,ce){(function(bn,Ce){var Ge=bc(Ce),an=Ec(Ge)||[];an.splice(0,an.length-2);var xn=i0(gf(bn),fd,3,7);an.push([bn.ri,mr(xn)]),_c(Ge,JSON.stringify(an))})(te,ce)})(Nt,Fe)}}}return _(),{addEvent:function(I){if(!w)switch(function(L){var x=L.event,Y=x.agentId;if(a[Y]||(a[Y]={commonEvents:[],getCalls:{}}),Zf(x)){var J=x.getCallId;a[Y].getCalls[J]||(a[Y].getCalls[J]=[]),a[Y].getCalls[J].push(L)}else a[Y].commonEvents.push(L)}({timestamp:Math.round(performance.now()),event:I}),I.e){case 9:case 18:f.push(I.url);break;case 4:case 5:m(I.agentId,I.getCallId)}},destroy:function(){w=!0,b()}}}(),c=new Set;return{toRequest:function(a){var f,g=function(w){var b=Ec(bc(w))||[],_=[];return b.forEach(function(m){try{var I=Ss(pc(ys(m[1]),fd,7));_.push(I)}catch{}}),_}(a);return c=new Set(g.map(function(w){return w.ri})),(f={}).lr=g,f},onResponse:function(a,f){(function(g,w){var b=bc(g);if(w.size!==0){var _=Ec(b).filter(function(m){return!w.has(m[0])});_.length!==0?_c(b,JSON.stringify(_)):function(m){var I;try{(I=localStorage==null?void 0:localStorage.removeItem)===null||I===void 0||I.call(localStorage,m)}catch{}}(b)}})(f,c)},addEvent:s.addEvent,destroy:s.destroy}},ww=function(s){return{addEvent:C4(s)}},bw=function(s){return{addEvent:Z4(s)}},Ns="API key required",xs="API key not found",Ls="API key expired",pd="Request cannot be parsed",gd="Request failed",md="Request failed to process",vd="Too many requests, rate limit exceeded",yd="Not available for this origin",wd="Not available with restricted header",_w=Ns,Ew=xs,Rw=Ls,Sw={load:l0,defaultEndpoint:_s,defaultTlsEndpoint:Es,ERROR_CLIENT_TIMEOUT:oc,ERROR_NETWORK_CONNECTION:sc,ERROR_NETWORK_ABORT:ac,ERROR_WRONG_REGION:If,ERROR_SUBSCRIPTION_NOT_ACTIVE:kf,ERROR_API_KEY_MISSING:Ns,ERROR_API_KEY_INVALID:xs,ERROR_API_KEY_EXPIRED:Ls,ERROR_BAD_REQUEST_FORMAT:pd,ERROR_BAD_RESPONSE_FORMAT:cc,ERROR_GENERAL_SERVER_FAILURE:gd,ERROR_SERVER_TIMEOUT:md,ERROR_RATE_LIMIT:vd,ERROR_FORBIDDEN_ORIGIN:yd,ERROR_FORBIDDEN_HEADER:wd,ERROR_UNSUPPORTED_VERSION:Of,ERROR_INSTALLATION_METHOD_RESTRICTED:Tf,ERROR_FORBIDDEN_ENDPOINT:Nf,ERROR_CSP_BLOCK:uc,ERROR_INTEGRATION_FAILURE:xf,ERROR_INVALID_ENDPOINT:lc,ERROR_NETWORK_RESTRICTED:Cf,ERROR_INVALID_PROXY_INTEGRATION_SECRET:Bf,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:Pf,ERROR_TOKEN_MISSING:Ns,ERROR_TOKEN_INVALID:xs,ERROR_TOKEN_EXPIRED:Ls}},568:function(r,t,e){e.r(t),e.d(t,{componentsToDebugString:function(){return vt},default:function(){return R},getFullscreenElement:function(){return D},getScreenFrame:function(){return Dt},hashComponents:function(){return xt},isAndroid:function(){return Z},isChromium:function(){return kt},isDesktopSafari:function(){return h},isEdgeHTML:function(){return wt},isGecko:function(){return T},isTrident:function(){return gt},isWebKit:function(){return q},load:function(){return U},loadSources:function(){return Rt},murmurX64Hash128:function(){return k},prepareForSources:function(){return Gt},sources:function(){return lt},transformSource:function(){return At},withIframe:function(){return X}});var n=e(635),o="3.4.2";function i(A,V){return new Promise(function(W){return setTimeout(W,A,V)})}function u(A){return!!A&&typeof A.then=="function"}function d(A,V){try{var W=A();u(W)?W.then(function(it){return V(!0,it)},function(it){return V(!1,it)}):V(!0,W)}catch(it){V(!1,it)}}function l(A,V,W){return W===void 0&&(W=16),(0,n.sH)(this,void 0,void 0,function(){var it,Lt,Ct,Mt;return(0,n.YH)(this,function(Pt){switch(Pt.label){case 0:it=Array(A.length),Lt=Date.now(),Ct=0,Pt.label=1;case 1:return Ct<A.length?(it[Ct]=V(A[Ct],Ct),(Mt=Date.now())>=Lt+W?(Lt=Mt,[4,i(0)]):[3,3]):[3,4];case 2:Pt.sent(),Pt.label=3;case 3:return++Ct,[3,1];case 4:return[2,it]}})})}function v(A){A.then(void 0,function(){})}function S(A,V){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],V=[V[0]>>>16,65535&V[0],V[1]>>>16,65535&V[1]];var W=[0,0,0,0];return W[3]+=A[3]+V[3],W[2]+=W[3]>>>16,W[3]&=65535,W[2]+=A[2]+V[2],W[1]+=W[2]>>>16,W[2]&=65535,W[1]+=A[1]+V[1],W[0]+=W[1]>>>16,W[1]&=65535,W[0]+=A[0]+V[0],W[0]&=65535,[W[0]<<16|W[1],W[2]<<16|W[3]]}function O(A,V){A=[A[0]>>>16,65535&A[0],A[1]>>>16,65535&A[1]],V=[V[0]>>>16,65535&V[0],V[1]>>>16,65535&V[1]];var W=[0,0,0,0];return W[3]+=A[3]*V[3],W[2]+=W[3]>>>16,W[3]&=65535,W[2]+=A[2]*V[3],W[1]+=W[2]>>>16,W[2]&=65535,W[2]+=A[3]*V[2],W[1]+=W[2]>>>16,W[2]&=65535,W[1]+=A[1]*V[3],W[0]+=W[1]>>>16,W[1]&=65535,W[1]+=A[2]*V[2],W[0]+=W[1]>>>16,W[1]&=65535,W[1]+=A[3]*V[1],W[0]+=W[1]>>>16,W[1]&=65535,W[0]+=A[0]*V[3]+A[1]*V[2]+A[2]*V[1]+A[3]*V[0],W[0]&=65535,[W[0]<<16|W[1],W[2]<<16|W[3]]}function C(A,V){return(V%=64)==32?[A[1],A[0]]:V<32?[A[0]<<V|A[1]>>>32-V,A[1]<<V|A[0]>>>32-V]:(V-=32,[A[1]<<V|A[0]>>>32-V,A[0]<<V|A[1]>>>32-V])}function N(A,V){return(V%=64)==0?A:V<32?[A[0]<<V|A[1]>>>32-V,A[1]<<V]:[A[1]<<V-32,0]}function B(A,V){return[A[0]^V[0],A[1]^V[1]]}function M(A){return A=B(A,[0,A[0]>>>1]),A=B(A=O(A,[4283543511,3981806797]),[0,A[0]>>>1]),B(A=O(A,[3301882366,444984403]),[0,A[0]>>>1])}function F(A,V){V=V||0;var W,it=(A=A||"").length%16,Lt=A.length-it,Ct=[0,V],Mt=[0,V],Pt=[0,0],rt=[0,0],Kt=[2277735313,289559509],be=[1291169091,658871167];for(W=0;W<Lt;W+=16)Pt=[255&A.charCodeAt(W+4)|(255&A.charCodeAt(W+5))<<8|(255&A.charCodeAt(W+6))<<16|(255&A.charCodeAt(W+7))<<24,255&A.charCodeAt(W)|(255&A.charCodeAt(W+1))<<8|(255&A.charCodeAt(W+2))<<16|(255&A.charCodeAt(W+3))<<24],rt=[255&A.charCodeAt(W+12)|(255&A.charCodeAt(W+13))<<8|(255&A.charCodeAt(W+14))<<16|(255&A.charCodeAt(W+15))<<24,255&A.charCodeAt(W+8)|(255&A.charCodeAt(W+9))<<8|(255&A.charCodeAt(W+10))<<16|(255&A.charCodeAt(W+11))<<24],Pt=C(Pt=O(Pt,Kt),31),Ct=S(Ct=C(Ct=B(Ct,Pt=O(Pt,be)),27),Mt),Ct=S(O(Ct,[0,5]),[0,1390208809]),rt=C(rt=O(rt,be),33),Mt=S(Mt=C(Mt=B(Mt,rt=O(rt,Kt)),31),Ct),Mt=S(O(Mt,[0,5]),[0,944331445]);switch(Pt=[0,0],rt=[0,0],it){case 15:rt=B(rt,N([0,A.charCodeAt(W+14)],48));case 14:rt=B(rt,N([0,A.charCodeAt(W+13)],40));case 13:rt=B(rt,N([0,A.charCodeAt(W+12)],32));case 12:rt=B(rt,N([0,A.charCodeAt(W+11)],24));case 11:rt=B(rt,N([0,A.charCodeAt(W+10)],16));case 10:rt=B(rt,N([0,A.charCodeAt(W+9)],8));case 9:rt=O(rt=B(rt,[0,A.charCodeAt(W+8)]),be),Mt=B(Mt,rt=O(rt=C(rt,33),Kt));case 8:Pt=B(Pt,N([0,A.charCodeAt(W+7)],56));case 7:Pt=B(Pt,N([0,A.charCodeAt(W+6)],48));case 6:Pt=B(Pt,N([0,A.charCodeAt(W+5)],40));case 5:Pt=B(Pt,N([0,A.charCodeAt(W+4)],32));case 4:Pt=B(Pt,N([0,A.charCodeAt(W+3)],24));case 3:Pt=B(Pt,N([0,A.charCodeAt(W+2)],16));case 2:Pt=B(Pt,N([0,A.charCodeAt(W+1)],8));case 1:Pt=O(Pt=B(Pt,[0,A.charCodeAt(W)]),Kt),Ct=B(Ct,Pt=O(Pt=C(Pt,31),be))}return Ct=S(Ct=B(Ct,[0,A.length]),Mt=B(Mt,[0,A.length])),Mt=S(Mt,Ct),Ct=S(Ct=M(Ct),Mt=M(Mt)),Mt=S(Mt,Ct),("00000000"+(Ct[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ct[1]>>>0).toString(16)).slice(-8)+("00000000"+(Mt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Mt[1]>>>0).toString(16)).slice(-8)}function G(A){return parseInt(A)}function Q(A){return parseFloat(A)}function et(A,V){return typeof A=="number"&&isNaN(A)?V:A}function ct(A){return A.reduce(function(V,W){return V+(W?1:0)},0)}function ft(A,V){if(V===void 0&&(V=1),Math.abs(V)>=1)return Math.round(A/V)*V;var W=1/V;return Math.round(A*W)/W}function ot(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function bt(A){return typeof A!="function"}function Rt(A,V,W){var it=Object.keys(A).filter(function(Ct){return!function(Mt,Pt){for(var rt=0,Kt=Mt.length;rt<Kt;++rt)if(Mt[rt]===Pt)return!0;return!1}(W,Ct)}),Lt=l(it,function(Ct){return function(Mt,Pt){var rt=new Promise(function(Kt){var be=Date.now();d(Mt.bind(null,Pt),function(){for(var oe=[],ae=0;ae<arguments.length;ae++)oe[ae]=arguments[ae];var ye=Date.now()-be;if(!oe[0])return Kt(function(){return{error:ot(oe[1]),duration:ye}});var pe=oe[1];if(bt(pe))return Kt(function(){return{value:pe,duration:ye}});Kt(function(){return new Promise(function(de){var sn=Date.now();d(pe,function(){for(var Se=[],Te=0;Te<arguments.length;Te++)Se[Te]=arguments[Te];var wn=ye+Date.now()-sn;if(!Se[0])return de({error:ot(Se[1]),duration:wn});de({value:Se[1],duration:wn})})})})})});return v(rt),function(){return rt.then(function(Kt){return Kt()})}}(A[Ct],V)});return v(Lt),function(){return(0,n.sH)(this,void 0,void 0,function(){var Ct,Mt,Pt,rt;return(0,n.YH)(this,function(Kt){switch(Kt.label){case 0:return[4,Lt];case 1:return[4,l(Kt.sent(),function(be){var oe=be();return v(oe),oe})];case 2:return Ct=Kt.sent(),[4,Promise.all(Ct)];case 3:for(Mt=Kt.sent(),Pt={},rt=0;rt<it.length;++rt)Pt[it[rt]]=Mt[rt];return[2,Pt]}})})}}function At(A,V){var W=function(it){return bt(it)?V(it):function(){var Lt=it();return u(Lt)?Lt.then(V):V(Lt)}};return function(it){var Lt=A(it);return u(Lt)?Lt.then(W):W(Lt)}}function gt(){var A=window,V=navigator;return ct(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in V,"msPointerEnabled"in V])>=4}function wt(){var A=window,V=navigator;return ct(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in V,"msSaveBlob"in V])>=3&&!gt()}function kt(){var A=window,V=navigator;return ct(["webkitPersistentStorage"in V,"webkitTemporaryStorage"in V,V.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in A,"BatteryManager"in A,"webkitMediaStream"in A,"webkitSpeechGrammar"in A])>=5}function q(){var A=window,V=navigator;return ct(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,V.vendor.indexOf("Apple")===0,"getStorageUpdates"in V,"WebKitMediaKeys"in A])>=4}function h(){var A=window;return ct(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function T(){var A,V,W=window;return ct(["buildID"in navigator,"MozAppearance"in((V=(A=document.documentElement)===null||A===void 0?void 0:A.style)!==null&&V!==void 0?V:{}),"onmozfullscreenchange"in W,"mozInnerScreenX"in W,"CSSMozDocumentRule"in W,"CanvasCaptureMediaStream"in W])>=4}function D(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function Z(){var A=kt(),V=T();if(!A&&!V)return!1;var W=window;return ct(["onorientationchange"in W,"orientation"in W,A&&!("SharedWorker"in W),V&&/android/i.test(navigator.appVersion)])>=2}function j(A){var V=new Error(A);return V.name=A,V}function X(A,V,W){var it,Lt,Ct;return W===void 0&&(W=50),(0,n.sH)(this,void 0,void 0,function(){var Mt,Pt;return(0,n.YH)(this,function(rt){switch(rt.label){case 0:Mt=document,rt.label=1;case 1:return Mt.body?[3,3]:[4,i(W)];case 2:return rt.sent(),[3,1];case 3:Pt=Mt.createElement("iframe"),rt.label=4;case 4:return rt.trys.push([4,,10,11]),[4,new Promise(function(Kt,be){var oe=!1,ae=function(){oe=!0,Kt()};Pt.onload=ae,Pt.onerror=function(de){oe=!0,be(de)};var ye=Pt.style;ye.setProperty("display","block","important"),ye.position="absolute",ye.top="0",ye.left="0",ye.visibility="hidden",V&&"srcdoc"in Pt?Pt.srcdoc=V:Pt.src="about:blank",Mt.body.appendChild(Pt);var pe=function(){var de,sn;oe||(((sn=(de=Pt.contentWindow)===null||de===void 0?void 0:de.document)===null||sn===void 0?void 0:sn.readyState)==="complete"?ae():setTimeout(pe,10))};pe()})];case 5:rt.sent(),rt.label=6;case 6:return!((Lt=(it=Pt.contentWindow)===null||it===void 0?void 0:it.document)===null||Lt===void 0)&&Lt.body?[3,8]:[4,i(W)];case 7:return rt.sent(),[3,6];case 8:return[4,A(Pt,Pt.contentWindow)];case 9:return[2,rt.sent()];case 10:return(Ct=Pt.parentNode)===null||Ct===void 0||Ct.removeChild(Pt),[7];case 11:return[2]}})})}function at(A){for(var V=function(Kt){for(var be,oe,ae="Unexpected syntax '".concat(Kt,"'"),ye=/^\s*([a-z-]*)(.*)$/i.exec(Kt),pe=ye[1]||void 0,de={},sn=/([.:#][\w-]+|\[.+?\])/gi,Se=function(Ye,Ir){de[Ye]=de[Ye]||[],de[Ye].push(Ir)};;){var Te=sn.exec(ye[2]);if(!Te)break;var wn=Te[0];switch(wn[0]){case".":Se("class",wn.slice(1));break;case"#":Se("id",wn.slice(1));break;case"[":var Ve=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(wn);if(!Ve)throw new Error(ae);Se(Ve[1],(oe=(be=Ve[4])!==null&&be!==void 0?be:Ve[5])!==null&&oe!==void 0?oe:"");break;default:throw new Error(ae)}}return[pe,de]}(A),W=V[0],it=V[1],Lt=document.createElement(W??"div"),Ct=0,Mt=Object.keys(it);Ct<Mt.length;Ct++){var Pt=Mt[Ct],rt=it[Pt].join(" ");Pt==="style"?K(Lt.style,rt):Lt.setAttribute(Pt,rt)}return Lt}function K(A,V){for(var W=0,it=V.split(";");W<it.length;W++){var Lt=it[W],Ct=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Lt);if(Ct){var Mt=Ct[1],Pt=Ct[2],rt=Ct[4];A.setProperty(Mt,Pt,rt||"")}}}var p=["monospace","sans-serif","serif"],E=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function z(A){return A.toDataURL()}var $,dt,_t=2500;function Dt(){var A=this;return function(){if(dt===void 0){var V=function(){var W=Yt();zt(W)?dt=setTimeout(V,_t):($=W,dt=void 0)};V()}}(),function(){return(0,n.sH)(A,void 0,void 0,function(){var V;return(0,n.YH)(this,function(W){switch(W.label){case 0:return zt(V=Yt())?$?[2,(0,n.fX)([],$,!0)]:D()?[4,(it=document,(it.exitFullscreen||it.msExitFullscreen||it.mozCancelFullScreen||it.webkitExitFullscreen).call(it))]:[3,2]:[3,2];case 1:W.sent(),V=Yt(),W.label=2;case 2:return zt(V)||($=V),[2,V]}var it})})}}function Yt(){var A=screen;return[et(Q(A.availTop),null),et(Q(A.width)-Q(A.availWidth)-et(Q(A.availLeft),0),null),et(Q(A.height)-Q(A.availHeight)-et(Q(A.availTop),0),null),et(Q(A.availLeft),null)]}function zt(A){for(var V=0;V<4;++V)if(A[V])return!1;return!0}function fe(A){var V;return(0,n.sH)(this,void 0,void 0,function(){var W,it,Lt,Ct,Mt,Pt,rt;return(0,n.YH)(this,function(Kt){switch(Kt.label){case 0:for(W=document,it=W.createElement("div"),Lt=new Array(A.length),Ct={},le(it),rt=0;rt<A.length;++rt)(Mt=at(A[rt])).tagName==="DIALOG"&&Mt.show(),le(Pt=W.createElement("div")),Pt.appendChild(Mt),it.appendChild(Pt),Lt[rt]=Mt;Kt.label=1;case 1:return W.body?[3,3]:[4,i(50)];case 2:return Kt.sent(),[3,1];case 3:W.body.appendChild(it);try{for(rt=0;rt<A.length;++rt)Lt[rt].offsetParent||(Ct[A[rt]]=!0)}finally{(V=it.parentNode)===null||V===void 0||V.removeChild(it)}return[2,Ct]}})})}function le(A){A.style.setProperty("display","block","important")}function _e(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function we(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function Ee(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function je(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function xe(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var y=Math,P=function(){return 0},H={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},lt={fonts:function(){return X(function(A,V){var W=V.document,it=W.body;it.style.fontSize="48px";var Lt=W.createElement("div"),Ct={},Mt={},Pt=function(oe){var ae=W.createElement("span"),ye=ae.style;return ye.position="absolute",ye.top="0",ye.left="0",ye.fontFamily=oe,ae.textContent="mmMwWLliI0O&1",Lt.appendChild(ae),ae},rt=p.map(Pt),Kt=function(){for(var oe={},ae=function(de){oe[de]=p.map(function(sn){return function(Se,Te){return Pt("'".concat(Se,"',").concat(Te))}(de,sn)})},ye=0,pe=E;ye<pe.length;ye++)ae(pe[ye]);return oe}();it.appendChild(Lt);for(var be=0;be<p.length;be++)Ct[p[be]]=rt[be].offsetWidth,Mt[p[be]]=rt[be].offsetHeight;return E.filter(function(oe){return ae=Kt[oe],p.some(function(ye,pe){return ae[pe].offsetWidth!==Ct[ye]||ae[pe].offsetHeight!==Mt[ye]});var ae})})},domBlockers:function(A){var V=(A===void 0?{}:A).debug;return(0,n.sH)(this,void 0,void 0,function(){var W,it,Lt,Ct,Mt;return(0,n.YH)(this,function(Pt){switch(Pt.label){case 0:return q()||Z()?(rt=atob,W={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',rt("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",rt("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",rt("LnNwb25zb3JpdA=="),".ylamainos",rt("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",rt("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",rt("LmhlYWRlci1ibG9ja2VkLWFk"),rt("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",rt("I2FkXzMwMFgyNTA="),rt("I2Jhbm5lcmZsb2F0MjI="),rt("I2NhbXBhaWduLWJhbm5lcg=="),rt("I0FkLUNvbnRlbnQ=")],adGuardChinese:[rt("LlppX2FkX2FfSA=="),rt("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",rt("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),rt("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",rt("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",rt("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",rt("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),rt("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),rt("LmFkZ29vZ2xl"),rt("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[rt("YW1wLWF1dG8tYWRz"),rt("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",rt("I2FkX2ludmlld19hcmVh")],adGuardRussian:[rt("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),rt("LnJlY2xhbWE="),'div[id^="smi2adblock"]',rt("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[rt("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),rt("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",rt("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),rt("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),rt("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",rt("I3Jla2xhbWk="),rt("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),rt("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),rt("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[rt("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",rt("LndpZGdldF9wb19hZHNfd2lkZ2V0"),rt("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",rt("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[rt("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),rt("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",rt("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",rt("I3Jla2xhbW5pLWJveA=="),rt("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",rt("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[rt("I2FkdmVydGVudGll"),rt("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",rt("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",rt("LnNwb25zb3JsaW5rZ3J1ZW4="),rt("I3dlcmJ1bmdza3k="),rt("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),rt("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[rt("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",rt("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[rt("LnJla2xhbW9zX3RhcnBhcw=="),rt("LnJla2xhbW9zX251b3JvZG9z"),rt("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),rt("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),rt("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[rt("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[rt("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),rt("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",rt("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[rt("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),rt("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),rt("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",rt("LmFkX19tYWlu"),rt("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[rt("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[rt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),rt("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[rt("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),rt("I2xpdmVyZUFkV3JhcHBlcg=="),rt("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),rt("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[rt("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",rt("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),rt("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),rt("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[rt("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),rt("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),rt("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",rt("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),rt("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),rt("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),rt("ZGl2I3NrYXBpZWNfYWQ=")],ro:[rt("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),rt("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),rt("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[rt("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),rt("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),rt("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",rt("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),rt("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",rt("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},it=Object.keys(W),[4,fe((Mt=[]).concat.apply(Mt,it.map(function(Kt){return W[Kt]})))]):[2,void 0];case 1:return Lt=Pt.sent(),V&&function(Kt,be){for(var oe="DOM blockers debug:\n```",ae=0,ye=Object.keys(Kt);ae<ye.length;ae++){var pe=ye[ae];oe+=`
17
+ `.concat(pe,":");for(var de=0,sn=Kt[pe];de<sn.length;de++){var Se=sn[de];oe+=`
18
+ `.concat(be[Se]?"🚫":"➡️"," ").concat(Se)}}console.log("".concat(oe,"\n```"))}(W,Lt),(Ct=it.filter(function(Kt){var be=W[Kt];return ct(be.map(function(oe){return Lt[oe]}))>.6*be.length})).sort(),[2,Ct]}var rt})})},fontPreferences:function(){return A===void 0&&(A=4e3),X(function(V,W){var it=W.document,Lt=it.body,Ct=Lt.style;Ct.width="".concat(A,"px"),Ct.webkitTextSizeAdjust=Ct.textSizeAdjust="none",kt()?Lt.style.zoom="".concat(1/W.devicePixelRatio):q()&&(Lt.style.zoom="reset");var Mt=it.createElement("div");return Mt.textContent=(0,n.fX)([],Array(A/20|0),!0).map(function(){return"word"}).join(" "),Lt.appendChild(Mt),function(Pt,rt){for(var Kt={},be={},oe=0,ae=Object.keys(H);oe<ae.length;oe++){var ye=ae[oe],pe=H[ye],de=pe[0],sn=de===void 0?{}:de,Se=pe[1],Te=Se===void 0?"mmMwWLliI0fiflO&1":Se,wn=Pt.createElement("span");wn.textContent=Te,wn.style.whiteSpace="nowrap";for(var Ve=0,Ye=Object.keys(sn);Ve<Ye.length;Ve++){var Ir=Ye[Ve],Qe=sn[Ir];Qe!==void 0&&(wn.style[Ir]=Qe)}Kt[ye]=wn,rt.appendChild(Pt.createElement("br")),rt.appendChild(wn)}for(var Je=0,si=Object.keys(H);Je<si.length;Je++)be[ye=si[Je]]=Kt[ye].getBoundingClientRect().width;return be}(it,Lt)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var A},audio:function(){var A=window,V=A.OfflineAudioContext||A.webkitOfflineAudioContext;if(!V)return-2;if(q()&&!h()&&!function(){var Kt=window;return ct(["DOMRectList"in Kt,"RTCPeerConnectionIceEvent"in Kt,"SVGGeometryElement"in Kt,"ontransitioncancel"in Kt])>=3}())return-1;var W=new V(1,5e3,44100),it=W.createOscillator();it.type="triangle",it.frequency.value=1e4;var Lt=W.createDynamicsCompressor();Lt.threshold.value=-50,Lt.knee.value=40,Lt.ratio.value=12,Lt.attack.value=0,Lt.release.value=.25,it.connect(Lt),Lt.connect(W.destination),it.start(0);var Ct=function(Kt){var be=function(){};return[new Promise(function(oe,ae){var ye=!1,pe=0,de=0;Kt.oncomplete=function(Te){return oe(Te.renderedBuffer)};var sn=function(){setTimeout(function(){return ae(j("timeout"))},Math.min(500,de+5e3-Date.now()))},Se=function(){try{var Te=Kt.startRendering();switch(u(Te)&&v(Te),Kt.state){case"running":de=Date.now(),ye&&sn();break;case"suspended":document.hidden||pe++,ye&&pe>=3?ae(j("suspended")):setTimeout(Se,500)}}catch(wn){ae(wn)}};Se(),be=function(){ye||(ye=!0,de>0&&sn())}}),be]}(W),Mt=Ct[0],Pt=Ct[1],rt=Mt.then(function(Kt){return function(be){for(var oe=0,ae=0;ae<be.length;++ae)oe+=Math.abs(be[ae]);return oe}(Kt.getChannelData(0).subarray(4500))},function(Kt){if(Kt.name==="timeout"||Kt.name==="suspended")return-3;throw Kt});return v(rt),function(){return Pt(),rt}},screenFrame:function(){var A=this,V=Dt();return function(){return(0,n.sH)(A,void 0,void 0,function(){var W,it;return(0,n.YH)(this,function(Lt){switch(Lt.label){case 0:return[4,V()];case 1:return W=Lt.sent(),[2,[(it=function(Ct){return Ct===null?null:ft(Ct,10)})(W[0]),it(W[1]),it(W[2]),it(W[3])]]}})})}},osCpu:function(){return navigator.oscpu},languages:function(){var A,V=navigator,W=[],it=V.language||V.userLanguage||V.browserLanguage||V.systemLanguage;if(it!==void 0&&W.push([it]),Array.isArray(V.languages))kt()&&ct([!("MediaSettingsRange"in(A=window)),"RTCEncodedAudioFrame"in A,""+A.Intl=="[object Intl]",""+A.Reflect=="[object Reflect]"])>=3||W.push(V.languages);else if(typeof V.languages=="string"){var Lt=V.languages;Lt&&W.push(Lt.split(","))}return W},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return et(Q(navigator.deviceMemory),void 0)},screenResolution:function(){var A=screen,V=function(it){return et(G(it),null)},W=[V(A.width),V(A.height)];return W.sort().reverse(),W},hardwareConcurrency:function(){return et(G(navigator.hardwareConcurrency),void 0)},timezone:function(){var A,V=(A=window.Intl)===null||A===void 0?void 0:A.DateTimeFormat;if(V){var W=new V().resolvedOptions().timeZone;if(W)return W}var it,Lt=(it=new Date().getFullYear(),-Math.max(Q(new Date(it,0,1).getTimezoneOffset()),Q(new Date(it,6,1).getTimezoneOffset())));return"UTC".concat(Lt>=0?"+":"").concat(Math.abs(Lt))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!gt()&&!wt())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var A=navigator.platform;return A==="MacIntel"&&q()&&!h()?function(){if(navigator.platform==="iPad")return!0;var V=screen,W=V.width/V.height;return ct(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,W>.65&&W<1.53])>=2}()?"iPad":"iPhone":A},plugins:function(){var A=navigator.plugins;if(A){for(var V=[],W=0;W<A.length;++W){var it=A[W];if(it){for(var Lt=[],Ct=0;Ct<it.length;++Ct){var Mt=it[Ct];Lt.push({type:Mt.type,suffixes:Mt.suffixes})}V.push({name:it.name,description:it.description,mimeTypes:Lt})}}return V}},canvas:function(){var A,V,W=!1,it=function(){var Pt=document.createElement("canvas");return Pt.width=1,Pt.height=1,[Pt,Pt.getContext("2d")]}(),Lt=it[0],Ct=it[1];if(function(Pt,rt){return!(!rt||!Pt.toDataURL)}(Lt,Ct)){W=function(Pt){return Pt.rect(0,0,10,10),Pt.rect(2,2,6,6),!Pt.isPointInPath(5,5,"evenodd")}(Ct),function(Pt,rt){Pt.width=240,Pt.height=60,rt.textBaseline="alphabetic",rt.fillStyle="#f60",rt.fillRect(100,1,62,20),rt.fillStyle="#069",rt.font='11pt "Times New Roman"';var Kt="Cwm fjordbank gly ".concat("😃");rt.fillText(Kt,2,15),rt.fillStyle="rgba(102, 204, 0, 0.2)",rt.font="18pt Arial",rt.fillText(Kt,4,45)}(Lt,Ct);var Mt=z(Lt);Mt!==z(Lt)?A=V="unstable":(V=Mt,function(Pt,rt){Pt.width=122,Pt.height=110,rt.globalCompositeOperation="multiply";for(var Kt=0,be=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Kt<be.length;Kt++){var oe=be[Kt],ae=oe[0],ye=oe[1],pe=oe[2];rt.fillStyle=ae,rt.beginPath(),rt.arc(ye,pe,40,0,2*Math.PI,!0),rt.closePath(),rt.fill()}rt.fillStyle="#f9c",rt.arc(60,60,60,0,2*Math.PI,!0),rt.arc(60,60,20,0,2*Math.PI,!0),rt.fill("evenodd")}(Lt,Ct),A=z(Lt))}else A=V="";return{winding:W,geometry:A,text:V}},touchSupport:function(){var A,V=navigator,W=0;V.maxTouchPoints!==void 0?W=G(V.maxTouchPoints):V.msMaxTouchPoints!==void 0&&(W=V.msMaxTouchPoints);try{document.createEvent("TouchEvent"),A=!0}catch{A=!1}return{maxTouchPoints:W,touchEvent:A,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var A=[],V=0,W=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];V<W.length;V++){var it=W[V],Lt=window[it];Lt&&typeof Lt=="object"&&A.push(it)}return A.sort()},cookiesEnabled:function(){var A=document;try{A.cookie="cookietest=1; SameSite=Strict;";var V=A.cookie.indexOf("cookietest=")!==-1;return A.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",V}catch{return!1}},colorGamut:function(){for(var A=0,V=["rec2020","p3","srgb"];A<V.length;A++){var W=V[A];if(matchMedia("(color-gamut: ".concat(W,")")).matches)return W}},invertedColors:function(){return!!_e("inverted")||!_e("none")&&void 0},forcedColors:function(){return!!we("active")||!we("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var A=0;A<=100;++A)if(matchMedia("(max-monochrome: ".concat(A,")")).matches)return A;throw new Error("Too high value")}},contrast:function(){return Ee("no-preference")?0:Ee("high")||Ee("more")?1:Ee("low")||Ee("less")?-1:Ee("forced")?10:void 0},reducedMotion:function(){return!!je("reduce")||!je("no-preference")&&void 0},hdr:function(){return!!xe("high")||!xe("standard")&&void 0},math:function(){var A,V=y.acos||P,W=y.acosh||P,it=y.asin||P,Lt=y.asinh||P,Ct=y.atanh||P,Mt=y.atan||P,Pt=y.sin||P,rt=y.sinh||P,Kt=y.cos||P,be=y.cosh||P,oe=y.tan||P,ae=y.tanh||P,ye=y.exp||P,pe=y.expm1||P,de=y.log1p||P;return{acos:V(.12312423423423424),acosh:W(1e308),acoshPf:(A=1e154,y.log(A+y.sqrt(A*A-1))),asin:it(.12312423423423424),asinh:Lt(1),asinhPf:y.log(1+y.sqrt(2)),atanh:Ct(.5),atanhPf:y.log(3)/2,atan:Mt(.5),sin:Pt(-1e300),sinh:rt(1),sinhPf:y.exp(1)-1/y.exp(1)/2,cos:Kt(10.000000000123),cosh:be(1),coshPf:(y.exp(1)+1/y.exp(1))/2,tan:oe(-1e300),tanh:ae(1),tanhPf:(y.exp(2)-1)/(y.exp(2)+1),exp:ye(1),expm1:pe(1),expm1Pf:y.exp(1)-1,log1p:de(10),log1pPf:y.log(11),powPI:y.pow(y.PI,-100)}},videoCard:function(){var A,V=document.createElement("canvas"),W=(A=V.getContext("webgl"))!==null&&A!==void 0?A:V.getContext("experimental-webgl");if(W&&"getExtension"in W){var it=W.getExtension("WEBGL_debug_renderer_info");if(it)return{vendor:(W.getParameter(it.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(W.getParameter(it.UNMASKED_RENDERER_WEBGL)||"").toString()}}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var A=new Float32Array(1),V=new Uint8Array(A.buffer);return A[0]=1/0,A[0]=A[0]-A[0],V[3]}},mt="$ if upgrade to Pro: https://fpjs.dev/pro";function vt(A){return JSON.stringify(A,function(V,W){return W instanceof Error?(it=W,(0,n.Cl)({name:it.name,message:it.message,stack:(Lt=it.stack)===null||Lt===void 0?void 0:Lt.split(`
19
+ `)},it)):W;var it,Lt},2)}function xt(A){return F(function(V){for(var W="",it=0,Lt=Object.keys(V).sort();it<Lt.length;it++){var Ct=Lt[it],Mt=V[Ct],Pt=Mt.error?"error":JSON.stringify(Mt.value);W+="".concat(W?"|":"").concat(Ct.replace(/([:|\\])/g,"\\$1"),":").concat(Pt)}return W}(A))}function Gt(A){return A===void 0&&(A=50),function(V,W){W===void 0&&(W=1/0);var it=window.requestIdleCallback;return it?new Promise(function(Lt){return it.call(window,function(){return Lt()},{timeout:W})}):i(Math.min(V,W))}(A,2*A)}function ee(A,V){var W=Date.now();return{get:function(it){return(0,n.sH)(this,void 0,void 0,function(){var Lt,Ct,Mt;return(0,n.YH)(this,function(Pt){switch(Pt.label){case 0:return Lt=Date.now(),[4,A()];case 1:return Ct=Pt.sent(),Mt=function(rt){var Kt,be=function(oe){var ae=function(pe){if(Z())return .4;if(q())return h()?.5:.3;var de=pe.platform.value||"";return/^Win/.test(de)?.6:/^Mac/.test(de)?.5:.7}(oe),ye=function(pe){return ft(.99+.01*pe,1e-4)}(ae);return{score:ae,comment:mt.replace(/\$/g,"".concat(ye))}}(rt);return{get visitorId(){return Kt===void 0&&(Kt=xt(this.components)),Kt},set visitorId(oe){Kt=oe},confidence:be,components:rt,version:o}}(Ct),(V||it?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Mt.version,`
25
20
  userAgent: `).concat(navigator.userAgent,`
26
21
  timeBetweenLoadAndGet: `).concat(Lt-W,`
27
- visitorId: `).concat(Dt.visitorId,`
28
- components: `).concat(vt(Ct),"\n```")),[2,Dt]}})})}}}function U(A){var V=A===void 0?{}:A,W=V.delayFallback,it=V.debug,Lt=V.monitoring,Ct=Lt===void 0||Lt;return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(Dt){switch(Dt.label){case 0:return Ct&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Mt=new XMLHttpRequest;Mt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),Mt.send()}catch(rt){console.error(rt)}}(),[4,Gt(W)];case 1:return Dt.sent(),[2,te(Rt(lt,{debug:it},[]),it)]}})})}var R={load:U,hashComponents:xt,componentsToDebugString:vt},k=F},526:function(r,t){t.byteLength=function(v){var S=d(v),O=S[0],C=S[1];return 3*(O+C)/4-C},t.toByteArray=function(v){var S,O,C=d(v),N=C[0],B=C[1],M=new o(function(Q,et,ct){return 3*(et+ct)/4-ct}(0,N,B)),F=0,G=B>0?N-4:N;for(O=0;O<G;O+=4)S=n[v.charCodeAt(O)]<<18|n[v.charCodeAt(O+1)]<<12|n[v.charCodeAt(O+2)]<<6|n[v.charCodeAt(O+3)],M[F++]=S>>16&255,M[F++]=S>>8&255,M[F++]=255&S;return B===2&&(S=n[v.charCodeAt(O)]<<2|n[v.charCodeAt(O+1)]>>4,M[F++]=255&S),B===1&&(S=n[v.charCodeAt(O)]<<10|n[v.charCodeAt(O+1)]<<4|n[v.charCodeAt(O+2)]>>2,M[F++]=S>>8&255,M[F++]=255&S),M},t.fromByteArray=function(v){for(var S,O=v.length,C=O%3,N=[],B=16383,M=0,F=O-C;M<F;M+=B)N.push(l(v,M,M+B>F?F:M+B));return C===1?(S=v[O-1],N.push(e[S>>2]+e[S<<4&63]+"==")):C===2&&(S=(v[O-2]<<8)+v[O-1],N.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),N.join("")};for(var e=[],n=[],o=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)e[u]=i[u],n[i.charCodeAt(u)]=u;function d(v){var S=v.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=v.indexOf("=");return O===-1&&(O=S),[O,O===S?0:4-O%4]}function l(v,S,O){for(var C,N,B=[],M=S;M<O;M+=3)C=(v[M]<<16&16711680)+(v[M+1]<<8&65280)+(255&v[M+2]),B.push(e[(N=C)>>18&63]+e[N>>12&63]+e[N>>6&63]+e[63&N]);return B.join("")}n[45]=62,n[95]=63},287:function(r,t,e){const n=e(526),o=e(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const u=2147483647;function d(y){if(y>u)throw new RangeError('The value "'+y+'" is invalid for option "size"');const P=new Uint8Array(y);return Object.setPrototypeOf(P,l.prototype),P}function l(y,P,H){if(typeof y=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(y)}return v(y,P,H)}function v(y,P,H){if(typeof y=="string")return function(vt,xt){if(typeof xt=="string"&&xt!==""||(xt="utf8"),!l.isEncoding(xt))throw new TypeError("Unknown encoding: "+xt);const Gt=0|M(vt,xt);let te=d(Gt);const U=te.write(vt,xt);return U!==Gt&&(te=te.slice(0,U)),te}(y,P);if(ArrayBuffer.isView(y))return function(vt){if(_e(vt,Uint8Array)){const xt=new Uint8Array(vt);return N(xt.buffer,xt.byteOffset,xt.byteLength)}return C(vt)}(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(_e(y,ArrayBuffer)||y&&_e(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(y,SharedArrayBuffer)||y&&_e(y.buffer,SharedArrayBuffer)))return N(y,P,H);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const lt=y.valueOf&&y.valueOf();if(lt!=null&&lt!==y)return l.from(lt,P,H);const mt=function(vt){if(l.isBuffer(vt)){const xt=0|B(vt.length),Gt=d(xt);return Gt.length===0||vt.copy(Gt,0,0,xt),Gt}return vt.length!==void 0?typeof vt.length!="number"||we(vt.length)?d(0):C(vt):vt.type==="Buffer"&&Array.isArray(vt.data)?C(vt.data):void 0}(y);if(mt)return mt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return l.from(y[Symbol.toPrimitive]("string"),P,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function S(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function O(y){return S(y),d(y<0?0:0|B(y))}function C(y){const P=y.length<0?0:0|B(y.length),H=d(P);for(let lt=0;lt<P;lt+=1)H[lt]=255&y[lt];return H}function N(y,P,H){if(P<0||y.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<P+(H||0))throw new RangeError('"length" is outside of buffer bounds');let lt;return lt=P===void 0&&H===void 0?new Uint8Array(y):H===void 0?new Uint8Array(y,P):new Uint8Array(y,P,H),Object.setPrototypeOf(lt,l.prototype),lt}function B(y){if(y>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|y}function M(y,P){if(l.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||_e(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const H=y.length,lt=arguments.length>2&&arguments[2]===!0;if(!lt&&H===0)return 0;let mt=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return ve(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return pe(y).length;default:if(mt)return lt?-1:ve(y).length;P=(""+P).toLowerCase(),mt=!0}}function F(y,P,H){let lt=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(P>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return h(this,P,H);case"utf8":case"utf-8":return gt(this,P,H);case"ascii":return kt(this,P,H);case"latin1":case"binary":return q(this,P,H);case"base64":return At(this,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,P,H);default:if(lt)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),lt=!0}}function G(y,P,H){const lt=y[P];y[P]=y[H],y[H]=lt}function Q(y,P,H,lt,mt){if(y.length===0)return-1;if(typeof H=="string"?(lt=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),we(H=+H)&&(H=mt?0:y.length-1),H<0&&(H=y.length+H),H>=y.length){if(mt)return-1;H=y.length-1}else if(H<0){if(!mt)return-1;H=0}if(typeof P=="string"&&(P=l.from(P,lt)),l.isBuffer(P))return P.length===0?-1:et(y,P,H,lt,mt);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?mt?Uint8Array.prototype.indexOf.call(y,P,H):Uint8Array.prototype.lastIndexOf.call(y,P,H):et(y,[P],H,lt,mt);throw new TypeError("val must be string, number or Buffer")}function et(y,P,H,lt,mt){let vt,xt=1,Gt=y.length,te=P.length;if(lt!==void 0&&((lt=String(lt).toLowerCase())==="ucs2"||lt==="ucs-2"||lt==="utf16le"||lt==="utf-16le")){if(y.length<2||P.length<2)return-1;xt=2,Gt/=2,te/=2,H/=2}function U(R,k){return xt===1?R[k]:R.readUInt16BE(k*xt)}if(mt){let R=-1;for(vt=H;vt<Gt;vt++)if(U(y,vt)===U(P,R===-1?0:vt-R)){if(R===-1&&(R=vt),vt-R+1===te)return R*xt}else R!==-1&&(vt-=vt-R),R=-1}else for(H+te>Gt&&(H=Gt-te),vt=H;vt>=0;vt--){let R=!0;for(let k=0;k<te;k++)if(U(y,vt+k)!==U(P,k)){R=!1;break}if(R)return vt}return-1}function ct(y,P,H,lt){H=Number(H)||0;const mt=y.length-H;lt?(lt=Number(lt))>mt&&(lt=mt):lt=mt;const vt=P.length;let xt;for(lt>vt/2&&(lt=vt/2),xt=0;xt<lt;++xt){const Gt=parseInt(P.substr(2*xt,2),16);if(we(Gt))return xt;y[H+xt]=Gt}return xt}function ft(y,P,H,lt){return ue(ve(P,y.length-H),y,H,lt)}function ot(y,P,H,lt){return ue(function(mt){const vt=[];for(let xt=0;xt<mt.length;++xt)vt.push(255&mt.charCodeAt(xt));return vt}(P),y,H,lt)}function bt(y,P,H,lt){return ue(pe(P),y,H,lt)}function Rt(y,P,H,lt){return ue(function(mt,vt){let xt,Gt,te;const U=[];for(let R=0;R<mt.length&&!((vt-=2)<0);++R)xt=mt.charCodeAt(R),Gt=xt>>8,te=xt%256,U.push(te),U.push(Gt);return U}(P,y.length-H),y,H,lt)}function At(y,P,H){return P===0&&H===y.length?n.fromByteArray(y):n.fromByteArray(y.slice(P,H))}function gt(y,P,H){H=Math.min(y.length,H);const lt=[];let mt=P;for(;mt<H;){const vt=y[mt];let xt=null,Gt=vt>239?4:vt>223?3:vt>191?2:1;if(mt+Gt<=H){let te,U,R,k;switch(Gt){case 1:vt<128&&(xt=vt);break;case 2:te=y[mt+1],(192&te)==128&&(k=(31&vt)<<6|63&te,k>127&&(xt=k));break;case 3:te=y[mt+1],U=y[mt+2],(192&te)==128&&(192&U)==128&&(k=(15&vt)<<12|(63&te)<<6|63&U,k>2047&&(k<55296||k>57343)&&(xt=k));break;case 4:te=y[mt+1],U=y[mt+2],R=y[mt+3],(192&te)==128&&(192&U)==128&&(192&R)==128&&(k=(15&vt)<<18|(63&te)<<12|(63&U)<<6|63&R,k>65535&&k<1114112&&(xt=k))}}xt===null?(xt=65533,Gt=1):xt>65535&&(xt-=65536,lt.push(xt>>>10&1023|55296),xt=56320|1023&xt),lt.push(xt),mt+=Gt}return function(vt){const xt=vt.length;if(xt<=wt)return String.fromCharCode.apply(String,vt);let Gt="",te=0;for(;te<xt;)Gt+=String.fromCharCode.apply(String,vt.slice(te,te+=wt));return Gt}(lt)}l.TYPED_ARRAY_SUPPORT=function(){try{const y=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(y,P),y.foo()===42}catch{return!1}}(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(y,P,H){return v(y,P,H)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(y,P,H){return function(lt,mt,vt){return S(lt),lt<=0?d(lt):mt!==void 0?typeof vt=="string"?d(lt).fill(mt,vt):d(lt).fill(mt):d(lt)}(y,P,H)},l.allocUnsafe=function(y){return O(y)},l.allocUnsafeSlow=function(y){return O(y)},l.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==l.prototype},l.compare=function(y,P){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),_e(P,Uint8Array)&&(P=l.from(P,P.offset,P.byteLength)),!l.isBuffer(y)||!l.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===P)return 0;let H=y.length,lt=P.length;for(let mt=0,vt=Math.min(H,lt);mt<vt;++mt)if(y[mt]!==P[mt]){H=y[mt],lt=P[mt];break}return H<lt?-1:lt<H?1:0},l.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(y,P){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return l.alloc(0);let H;if(P===void 0)for(P=0,H=0;H<y.length;++H)P+=y[H].length;const lt=l.allocUnsafe(P);let mt=0;for(H=0;H<y.length;++H){let vt=y[H];if(_e(vt,Uint8Array))mt+vt.length>lt.length?(l.isBuffer(vt)||(vt=l.from(vt)),vt.copy(lt,mt)):Uint8Array.prototype.set.call(lt,vt,mt);else{if(!l.isBuffer(vt))throw new TypeError('"list" argument must be an Array of Buffers');vt.copy(lt,mt)}mt+=vt.length}return lt},l.byteLength=M,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const y=this.length;if(y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<y;P+=2)G(this,P,P+1);return this},l.prototype.swap32=function(){const y=this.length;if(y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<y;P+=4)G(this,P,P+3),G(this,P+1,P+2);return this},l.prototype.swap64=function(){const y=this.length;if(y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<y;P+=8)G(this,P,P+7),G(this,P+1,P+6),G(this,P+2,P+5),G(this,P+3,P+4);return this},l.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?gt(this,0,y):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(y){if(!l.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y||l.compare(this,y)===0},l.prototype.inspect=function(){let y="";const P=t.IS;return y=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(y+=" ... "),"<Buffer "+y+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(y,P,H,lt,mt){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),!l.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(P===void 0&&(P=0),H===void 0&&(H=y?y.length:0),lt===void 0&&(lt=0),mt===void 0&&(mt=this.length),P<0||H>y.length||lt<0||mt>this.length)throw new RangeError("out of range index");if(lt>=mt&&P>=H)return 0;if(lt>=mt)return-1;if(P>=H)return 1;if(this===y)return 0;let vt=(mt>>>=0)-(lt>>>=0),xt=(H>>>=0)-(P>>>=0);const Gt=Math.min(vt,xt),te=this.slice(lt,mt),U=y.slice(P,H);for(let R=0;R<Gt;++R)if(te[R]!==U[R]){vt=te[R],xt=U[R];break}return vt<xt?-1:xt<vt?1:0},l.prototype.includes=function(y,P,H){return this.indexOf(y,P,H)!==-1},l.prototype.indexOf=function(y,P,H){return Q(this,y,P,H,!0)},l.prototype.lastIndexOf=function(y,P,H){return Q(this,y,P,H,!1)},l.prototype.write=function(y,P,H,lt){if(P===void 0)lt="utf8",H=this.length,P=0;else if(H===void 0&&typeof P=="string")lt=P,H=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(H)?(H>>>=0,lt===void 0&&(lt="utf8")):(lt=H,H=void 0)}const mt=this.length-P;if((H===void 0||H>mt)&&(H=mt),y.length>0&&(H<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");lt||(lt="utf8");let vt=!1;for(;;)switch(lt){case"hex":return ct(this,y,P,H);case"utf8":case"utf-8":return ft(this,y,P,H);case"ascii":case"latin1":case"binary":return ot(this,y,P,H);case"base64":return bt(this,y,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,y,P,H);default:if(vt)throw new TypeError("Unknown encoding: "+lt);lt=(""+lt).toLowerCase(),vt=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const wt=4096;function kt(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(127&y[mt]);return lt}function q(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(y[mt]);return lt}function h(y,P,H){const lt=y.length;(!P||P<0)&&(P=0),(!H||H<0||H>lt)&&(H=lt);let mt="";for(let vt=P;vt<H;++vt)mt+=Ee[y[vt]];return mt}function T(y,P,H){const lt=y.slice(P,H);let mt="";for(let vt=0;vt<lt.length-1;vt+=2)mt+=String.fromCharCode(lt[vt]+256*lt[vt+1]);return mt}function D(y,P,H){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+P>H)throw new RangeError("Trying to access beyond buffer length")}function Z(y,P,H,lt,mt,vt){if(!l.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>mt||P<vt)throw new RangeError('"value" argument is out of bounds');if(H+lt>y.length)throw new RangeError("Index out of range")}function j(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,H}function X(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H+7]=vt,vt>>=8,y[H+6]=vt,vt>>=8,y[H+5]=vt,vt>>=8,y[H+4]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H+3]=xt,xt>>=8,y[H+2]=xt,xt>>=8,y[H+1]=xt,xt>>=8,y[H]=xt,H+8}function at(y,P,H,lt,mt,vt){if(H+lt>y.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function K(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,4),o.write(y,P,H,lt,23,4),H+4}function p(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,8),o.write(y,P,H,lt,52,8),H+8}l.prototype.slice=function(y,P){const H=this.length;(y=~~y)<0?(y+=H)<0&&(y=0):y>H&&(y=H),(P=P===void 0?H:~~P)<0?(P+=H)<0&&(P=0):P>H&&(P=H),P<y&&(P=y);const lt=this.subarray(y,P);return Object.setPrototypeOf(lt,l.prototype),lt},l.prototype.readUintLE=l.prototype.readUIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return lt},l.prototype.readUintBE=l.prototype.readUIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y+--P],mt=1;for(;P>0&&(mt*=256);)lt+=this[y+--P]*mt;return lt},l.prototype.readUint8=l.prototype.readUInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),this[y]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]|this[y+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]<<8|this[y+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},l.prototype.readBigUInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ut(y,this.length-8);const lt=P+256*this[++y]+65536*this[++y]+this[++y]*2**24,mt=this[++y]+256*this[++y]+65536*this[++y]+H*2**24;return BigInt(lt)+(BigInt(mt)<<BigInt(32))}),l.prototype.readBigUInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ut(y,this.length-8);const lt=P*2**24+65536*this[++y]+256*this[++y]+this[++y],mt=this[++y]*2**24+65536*this[++y]+256*this[++y]+H;return(BigInt(lt)<<BigInt(32))+BigInt(mt)}),l.prototype.readIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return mt*=128,lt>=mt&&(lt-=Math.pow(2,8*P)),lt},l.prototype.readIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=P,mt=1,vt=this[y+--lt];for(;lt>0&&(mt*=256);)vt+=this[y+--lt]*mt;return mt*=128,vt>=mt&&(vt-=Math.pow(2,8*P)),vt},l.prototype.readInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},l.prototype.readInt16LE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y]|this[y+1]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt16BE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y+1]|this[y]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},l.prototype.readInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},l.prototype.readBigInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ut(y,this.length-8);const lt=this[y+4]+256*this[y+5]+65536*this[y+6]+(H<<24);return(BigInt(lt)<<BigInt(32))+BigInt(P+256*this[++y]+65536*this[++y]+this[++y]*2**24)}),l.prototype.readBigInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Ut(y,this.length-8);const lt=(P<<24)+65536*this[++y]+256*this[++y]+this[++y];return(BigInt(lt)<<BigInt(32))+BigInt(this[++y]*2**24+65536*this[++y]+256*this[++y]+H)}),l.prototype.readFloatLE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!0,23,4)},l.prototype.readFloatBE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!1,23,4)},l.prototype.readDoubleLE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!0,52,8)},l.prototype.readDoubleBE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=1,vt=0;for(this[P]=255&y;++vt<H&&(mt*=256);)this[P+vt]=y/mt&255;return P+H},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=H-1,vt=1;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)this[P+mt]=y/vt&255;return P+H},l.prototype.writeUint8=l.prototype.writeUInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,255,0),this[P]=255&y,P+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P+3]=y>>>24,this[P+2]=y>>>16,this[P+1]=y>>>8,this[P]=255&y,P+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigUInt64LE=je(function(y,P=0){return j(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=je(function(y,P=0){return X(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=0,vt=1,xt=0;for(this[P]=255&y;++mt<H&&(vt*=256);)y<0&&xt===0&&this[P+mt-1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeIntBE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=H-1,vt=1,xt=0;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)y<0&&xt===0&&this[P+mt+1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,127,-128),y<0&&(y=255+y+1),this[P]=255&y,P+1},l.prototype.writeInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),this[P]=255&y,this[P+1]=y>>>8,this[P+2]=y>>>16,this[P+3]=y>>>24,P+4},l.prototype.writeInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigInt64LE=je(function(y,P=0){return j(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=je(function(y,P=0){return X(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(y,P,H){return K(this,y,P,!0,H)},l.prototype.writeFloatBE=function(y,P,H){return K(this,y,P,!1,H)},l.prototype.writeDoubleLE=function(y,P,H){return p(this,y,P,!0,H)},l.prototype.writeDoubleBE=function(y,P,H){return p(this,y,P,!1,H)},l.prototype.copy=function(y,P,H,lt){if(!l.isBuffer(y))throw new TypeError("argument should be a Buffer");if(H||(H=0),lt||lt===0||(lt=this.length),P>=y.length&&(P=y.length),P||(P=0),lt>0&&lt<H&&(lt=H),lt===H||y.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(lt<0)throw new RangeError("sourceEnd out of bounds");lt>this.length&&(lt=this.length),y.length-P<lt-H&&(lt=y.length-P+H);const mt=lt-H;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,H,lt):Uint8Array.prototype.set.call(y,this.subarray(H,lt),P),mt},l.prototype.fill=function(y,P,H,lt){if(typeof y=="string"){if(typeof P=="string"?(lt=P,P=0,H=this.length):typeof H=="string"&&(lt=H,H=this.length),lt!==void 0&&typeof lt!="string")throw new TypeError("encoding must be a string");if(typeof lt=="string"&&!l.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);if(y.length===1){const vt=y.charCodeAt(0);(lt==="utf8"&&vt<128||lt==="latin1")&&(y=vt)}}else typeof y=="number"?y&=255:typeof y=="boolean"&&(y=Number(y));if(P<0||this.length<P||this.length<H)throw new RangeError("Out of range index");if(H<=P)return this;let mt;if(P>>>=0,H=H===void 0?this.length:H>>>0,y||(y=0),typeof y=="number")for(mt=P;mt<H;++mt)this[mt]=y;else{const vt=l.isBuffer(y)?y:l.from(y,lt),xt=vt.length;if(xt===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(mt=0;mt<H-P;++mt)this[mt+P]=vt[mt%xt]}return this};const E={};function z(y,P,H){E[y]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(lt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lt,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}function $(y){let P="",H=y.length;const lt=y[0]==="-"?1:0;for(;H>=lt+4;H-=3)P=`_${y.slice(H-3,H)}${P}`;return`${y.slice(0,H)}${P}`}function dt(y,P,H,lt,mt,vt){if(y>H||y<P){const xt=typeof P=="bigint"?"n":"";let Gt;throw Gt=P===0||P===BigInt(0)?`>= 0${xt} and < 2${xt} ** ${8*(vt+1)}${xt}`:`>= -(2${xt} ** ${8*(vt+1)-1}${xt}) and < 2 ** ${8*(vt+1)-1}${xt}`,new E.ERR_OUT_OF_RANGE("value",Gt,y)}(function(xt,Gt,te){_t(Gt,"offset"),xt[Gt]!==void 0&&xt[Gt+te]!==void 0||Ut(Gt,xt.length-(te+1))})(lt,mt,vt)}function _t(y,P){if(typeof y!="number")throw new E.ERR_INVALID_ARG_TYPE(P,"number",y)}function Ut(y,P,H){throw Math.floor(y)!==y?(_t(y,H),new E.ERR_OUT_OF_RANGE("offset","an integer",y)):P<0?new E.ERR_BUFFER_OUT_OF_BOUNDS:new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,y)}z("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(y,P){return`The "${y}" argument must be of type number. Received type ${typeof P}`},TypeError),z("ERR_OUT_OF_RANGE",function(y,P,H){let lt=`The value of "${y}" is out of range.`,mt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?mt=$(String(H)):typeof H=="bigint"&&(mt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(mt=$(mt)),mt+="n"),lt+=` It must be ${P}. Received ${mt}`,lt},RangeError);const Pt=/[^+/0-9A-Za-z-_]/g;function ve(y,P){let H;P=P||1/0;const lt=y.length;let mt=null;const vt=[];for(let xt=0;xt<lt;++xt){if(H=y.charCodeAt(xt),H>55295&&H<57344){if(!mt){if(H>56319){(P-=3)>-1&&vt.push(239,191,189);continue}if(xt+1===lt){(P-=3)>-1&&vt.push(239,191,189);continue}mt=H;continue}if(H<56320){(P-=3)>-1&&vt.push(239,191,189),mt=H;continue}H=65536+(mt-55296<<10|H-56320)}else mt&&(P-=3)>-1&&vt.push(239,191,189);if(mt=null,H<128){if((P-=1)<0)break;vt.push(H)}else if(H<2048){if((P-=2)<0)break;vt.push(H>>6|192,63&H|128)}else if(H<65536){if((P-=3)<0)break;vt.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;vt.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return vt}function pe(y){return n.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(Pt,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(y))}function ue(y,P,H,lt){let mt;for(mt=0;mt<lt&&!(mt+H>=P.length||mt>=y.length);++mt)P[mt+H]=y[mt];return mt}function _e(y,P){return y instanceof P||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===P.name}function we(y){return y!=y}const Ee=function(){const y="0123456789abcdef",P=new Array(256);for(let H=0;H<16;++H){const lt=16*H;for(let mt=0;mt<16;++mt)P[lt+mt]=y[H]+y[mt]}return P}();function je(y){return typeof BigInt>"u"?xe:y}function xe(){throw new Error("BigInt not supported")}},527:function(r,t,e){var n=e(188),o=e(539),i=e(682);for(var u in n)n[u]=i(d(u));function d(l){return n[l]}n._api=o,r.exports=n},539:function(r){r.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(r){r.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(r,t,e){var n=e(539),o={};function i(l){try{return d(l),!0}catch{return!1}}function u(l){try{return d(l)}catch{return!1}}function d(l){return new Function(l)()}o._api=n,r.exports=function l(v){if(v==="class"&&(v="classes"),o._api[v].dependencies){for(var S=0;S<o._api[v].dependencies.length;S++)if(l(o._api[v].dependencies[S])===!1)return!1}return o._api[v].passes?i(o._api[v].passes):o._api[v].fails?!i(o._api[v].fails):o._api[v].is?u(o._api[v].is):o._api[v].not?!u(o._api[v].not):void 0}},251:function(r,t){t.read=function(e,n,o,i,u){var d,l,v=8*u-i-1,S=(1<<v)-1,O=S>>1,C=-7,N=o?u-1:0,B=o?-1:1,M=e[n+N];for(N+=B,d=M&(1<<-C)-1,M>>=-C,C+=v;C>0;d=256*d+e[n+N],N+=B,C-=8);for(l=d&(1<<-C)-1,d>>=-C,C+=i;C>0;l=256*l+e[n+N],N+=B,C-=8);if(d===0)d=1-O;else{if(d===S)return l?NaN:1/0*(M?-1:1);l+=Math.pow(2,i),d-=O}return(M?-1:1)*l*Math.pow(2,d-i)},t.write=function(e,n,o,i,u,d){var l,v,S,O=8*d-u-1,C=(1<<O)-1,N=C>>1,B=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:d-1,F=i?1:-1,G=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(v=isNaN(n)?1:0,l=C):(l=Math.floor(Math.log(n)/Math.LN2),n*(S=Math.pow(2,-l))<1&&(l--,S*=2),(n+=l+N>=1?B/S:B*Math.pow(2,1-N))*S>=2&&(l++,S/=2),l+N>=C?(v=0,l=C):l+N>=1?(v=(n*S-1)*Math.pow(2,u),l+=N):(v=n*Math.pow(2,N-1)*Math.pow(2,u),l=0));u>=8;e[o+M]=255&v,M+=F,v/=256,u-=8);for(l=l<<u|v,O+=u;O>0;e[o+M]=255&l,M+=F,l/=256,O-=8);e[o+M-F]|=128*G}},943:function(r){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,u=0,d=0,l="";i=n.charAt(d++);~i&&(o=u%4?64*o+i:i,u++%4)?l+=String.fromCharCode(255&o>>(-2*u&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return l}},863:function(r,t,e){var n=e(943);r.exports=function(o){var i=o.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return function(u){return decodeURIComponent(n(u).replace(/(.)/g,function(d,l){var v=l.charCodeAt(0).toString(16).toUpperCase();return v.length<2&&(v="0"+v),"%"+v}))}(i)}catch{return n(i)}}},127:function(r,t,e){var n=e(863);function o(i){this.message=i}o.prototype=new Error,o.prototype.name="InvalidTokenError",r.exports=function(i,u){if(typeof i!="string")throw new o("Invalid token specified");var d=(u=u||{}).header===!0?0:1;try{return JSON.parse(n(i.split(".")[d]))}catch(l){throw new o("Invalid token specified: "+l.message)}},r.exports.InvalidTokenError=o},471:function(r){for(var t=[],e=0;e<256;++e)t[e]=(e+256).toString(16).substr(1);r.exports=function(n,o){var i=o||0,u=t;return[u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]]].join("")}},814:function(r){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var e=new Uint8Array(16);r.exports=function(){return t(e),e}}else{var n=new Array(16);r.exports=function(){for(var o,i=0;i<16;i++)3&i||(o=4294967296*Math.random()),n[i]=o>>>((3&i)<<3)&255;return n}}},550:function(r,t,e){var n=e(814),o=e(471);r.exports=function(i,u,d){var l=u&&d||0;typeof i=="string"&&(u=i==="binary"?new Array(16):null,i=null);var v=(i=i||{}).random||(i.rng||n)();if(v[6]=15&v[6]|64,v[8]=63&v[8]|128,u)for(var S=0;S<16;++S)u[l+S]=v[S];return u||o(v)}},723:function(r){r.exports={version:"1.1.89",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(r,t,e){var n=e(287).hp;r.exports={toArray:function(o,i){if(!o||o.length!==36)return o;for(var u="",d=i?"0":"1",l=0;l<36;l+=1)u+=l>=26&&l<30?d:o[l];var v=function(C){for(var N=255,B=255,M=0,F=C.length;F;){var G=F>20?20:F;F-=G;do B+=N+=C[M++];while(--G);N=(255&N)+(N>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(N=(255&N)+(N>>8))).toString(16)}(n.from(u));if(v){var S="";if(v.length===4)S+=v;else if(v.length<4){for(var O=0;O<4-v.length;O+=1)S+=d;S+=v}else S+=v.slice(-4)}return u.substring(0,26)+S+u.substring(26+S.length)}}},108:function(r){function t(){this.listeners={}}t.prototype.addEventListener=function(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)},t.prototype.removeEventListener=function(e,n){if(e in this.listeners){for(var o=this.listeners[e],i=0,u=o.length;i<u;i++)if(o[i]===n)return void o.splice(i,1)}},t.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var n=this.listeners[e.type].slice(),o=0,i=n.length;o<i;o++)n[o].call(this,e);return!e.defaultPrevented},r.exports=t},1:function(r){var t=null,e=null,n=0;function o(i,u){return encodeURIComponent(i)+"="+encodeURIComponent(u)}r.exports={init:function(i,u){t=i.errorServerUrl+"/reportSdkMsg",e=u.appId,n=typeof u.logMessageRate=="number"?u.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>n)){var u=t;u+="?"+o("appId",e),u+="&"+o("msg",JSON.stringify(i));var d=new Image;d.onerror=function(){},d.src=u}}}},611:function(r){var t=function(){function e(o,i){this.method=o,this.url=i,this.headers={},this.data=null,this.timeout=1e4}e.prototype.set=function(o,i){if(typeof o=="object")for(var u in o)o.hasOwnProperty(u)&&(this.headers[u]=o[u]);else this.headers[o]=i;return this},e.prototype.send=function(o){return this.data=o,this},e.prototype.timeout=function(o){return this.timeout=o,this},e.prototype.end=function(o){var i=this,u={method:this.method,headers:this.headers};function d(C,N){return{ok:!1,status:N?N.status:400,response:C instanceof Error?C.message:C}}if(this.data&&(u.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,v=fetch(this.url,u).then(function(C){if(!C.ok)throw{response:C,message:C.statusText||"HTTP error "+C.status};return function(N){var B=N.headers.get("content-type");return B&&B.includes("application/json")?N.json().then(function(M){return{ok:N.ok,status:N.status,body:M}}):N.text().then(function(M){return{ok:N.ok,status:N.status,body:M}})}(C)}),S=new Promise(function(C,N){l=setTimeout(function(){N(new Error("Request timeout"))},i.timeout)});Promise.race([v,S]).then(function(C){clearTimeout(l),C.ok?o(null,C):o(d(C.response,C))}).catch(function(C){clearTimeout(l),o(d(C.message,C&&C.response))})}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach(function(C){O.setRequestHeader(C,i.headers[C])}),O.timeout=this.timeout,O.onload=function(){var C={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{C.body=JSON.parse(O.responseText)}catch{}C.ok?o(null,C):o(d("HTTP error "+O.status,C))},O.onerror=function(){o(d("Error",{status:400}))},O.ontimeout=function(){o(d("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var n={};return["get","post","put","delete"].forEach(function(o){n[o]=function(i){return new e(o,i)}}),n}();r.exports=t},776:function(r,t,e){var n,o,i=e(611),u=e(723),d=e(884),l=u.serverUrl;function v(){n=n||{},o!==void 0&&(n[u.headers.sessionId]=o);var S={Accept:"application/json","Content-Type":"application/json"};return Object.keys(n).forEach(function(O){n[O]!==void 0&&(S[O]=n[O])}),S}r.exports={setSessionId:function(S){o=S},makeRequest:function(S,O){var C=S.path,N=S.data,B=S.method;(function M(F){i[B](F+"/"+C).set(v()).send(N).end(function(G,Q){if(G){if(F!==u.serverUrl)return void M(u.serverUrl);d.isFunction(O)&&O({ok:!1,status:G.status,response:G.response})}else d.isFunction(O)&&O(null,{ok:Q.ok,status:Q.status,response:Q.body})})})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:v,init:function(S,O){(function(C){n=C})(S),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(l=d.normalizePath(O.eventsReportUrl))}}},13:function(r,t,e){var n,o=e(723),i="getItem";function u(l,v){l&&l.contentWindow.postMessage(v,"*")}function d(l,v,S){l.removeEventListener?l.removeEventListener(v,S,!1):l.attachEvent&&l.detachEvent("on"+v,S)}r.exports={init:function(l){var v,S=(v=!1,function(){v||(v=!0,l())});(n=document.createElement("iframe")).id="storageIframe",n.width=n.height=n.frameBorder=0,n.style.display="none",n.setAttribute("src",o.storageIframeUrl),n.onload=S,n.onerror=S,document.body.appendChild(n),window.setTimeout(S,1e4)},getKey:function(l,v){var S,O,C,N,B,M;n||v(),S=window,O="message",N=function F(G){if(G.data&&typeof G.data=="string")try{var Q=JSON.parse(G.data);if(Q.command===i){var et=Q.response;d(window,"message",F),v(et)}}catch{d(window,"message",F),v()}},B=v,M=!1,window.setTimeout(function(){M||(M=!0,B())},5e3),C=function(F){M||(M=!0,N(F))},S.addEventListener?S.addEventListener(O,C,!1):S.attachEvent&&S.attachEvent("on"+O,C),u(n,JSON.stringify({command:i,key:l}))},setKey:function(l,v){u(n,JSON.stringify({command:"setItem",key:l,value:v}))},cleanup:function(){n&&n.parentElement&&n.parentElement.removeChild&&(n.parentElement.removeChild(n),n=null)}}},528:function(r){var t,e={setItem:function(l,v){this[l]=v},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function n(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function o(){return t===void 0&&(t=n()),t?localStorage:e}function i(l,v){o().setItem(l,v)}function u(l){return o().getItem(l)}function d(l){return o().removeItem(l)}r.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:u,getBackwardCompatabilityItem:function(l,v){var S=u(l);return!S&&v&&(S=u(v))&&(i(l,S),d(v)),S},removeItem:d,hasAccessToLocalStorage:n,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return e.getItem(l)}},setSessionItem:function(l,v){try{return sessionStorage.setItem(l,v)}catch{return e.setItem(l,v)}}}},884:function(r){var t="nsure-app-cid";function e(n){var o=n;return o&&o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1)),o&&!/^https?:\/\//i.test(o)&&(o="https://"+o),o}r.exports={isFunction:function(n){return typeof n=="function"},loadScript:function(n,o){var i=!1,u=document.createElement("script");function d(){i||(i=!0,o())}u.onload=d,u.onreadystatechange=function(){i||u.readyState!=="complete"||d()},u.onerror=function(){i||(i=!0,o("Error loading script"))},u.src=n,document.body.appendChild(u)},loadImage:function(n){var o=document.createElement("img");o.src=n,o.style.height=0,o.style.width=0,o.style.display="none",o.style.visibility="hidden",document.body.appendChild(o)},randomInt:function(n,o){var i,u=o-n+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*u+n)},isValidDate:function(n){return n instanceof Date&&!isNaN(n)},getAppContextId:function(){try{var n=sessionStorage.getItem(t);n?sessionStorage.removeItem(t):n=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(o=n,function(){try{sessionStorage.setItem(t,o)}catch{}}))}catch{n=0}var o;return n},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:e,getConfigBaseUrls:function(n,o){var i=null;if(typeof n.configBaseUrl=="string"&&n.configBaseUrl.length>0){var u=o.coreConfigFileUrl.indexOf("/core-config/"),d=u>0?o.coreConfigFileUrl.substring(u):"/core-config/config.json";i=e(n.configBaseUrl)+d}return{mainConfigBaseUrl:i||o.coreConfigFileUrl,altConfigBaseUrl:i===o.coreConfigFileUrl?null:o.coreConfigFileUrl}}}},543:function(r){var t="f8ad0f9b-",e="ns_install_reported",n=t+e,o=t+"ns_reportedFpInSession";r.exports={webType:"Web",oldInstallEventReportedKeyName:e,installEventReportedKeyName:n,fingerprintReportedInSessionKey:o,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(r){r.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(r){r.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(r,t,e){var n=e(723),o=e(776),i=e(387),u=e(733),d=e(472),l=e(376),v=e(120),S=e(142),O=e(636),C=e(496),N=e(1),B=e(336);r.exports={init:function(M){var F=M.deviceId,G=M.linkedDevices,Q={};Q[n.headers.appId]=M.appId,Q[n.headers.partnerId]=M.partnerId,Q[n.headers.sdkClientVersion]=n.version,Q[n.headers.sdkApiVersion]=n.sdkApiVersion,Q[n.headers.sdkClientType]=n.sdkClientType,Q[n.headers.appContextId]=M.appContextId,o.init(Q,M),i.addMetadataProps(M),N.init(n,M),i.reportInitEvent(F),C.init(M),B.init(M),u.installSdk(M,function(et){et||l.manageFingerprint(F,!0)}),u.reportLinkDevices(F,G),d.manageSessionId({deviceId:F,initModuleConfig:M}),v.manageDomEvents(F),S.manageKeepAlive({deviceId:F}),O.reportVersionUpgrade({deviceId:F,initModuleVersion:M.clientVersion,coreModuleVersion:n.version})}}},143:function(r,t,e){var n=e(108),o=e(23).oneMinute,i=e(298);function u(){n.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function d(l){n.call(this),this.activityServiceId=l}u.prototype=Object.create(n.prototype),u.prototype.constructor=u,u.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.addEventListener(v,l.activityEvents[v]=function(){l.activityHandler()})})},u.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},u.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.removeEventListener(v,l.activityEvents[v])})},d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.trackInactivity=function(l){var v,S=new u,O=this,C=!1;function N(){C||(clearTimeout(v),setTimeout(function(){O.trackInactivity(l)},o))}S.addEventListener(i.activityEvent,N),S.observe(),v=setTimeout(function(){C=!0,S.stopActivityListeners(),S.removeEventListener(i.activityEvent,N),O.dispatchEvent(new Event(i.inactivityEvent))},l)},r.exports=d},496:function(r,t,e){var n,o=e(120),i=e(776),u=e(376),d=e(23),l=e(723),v=e(38),S=e(543),O=e(336),C=e(884),N=[],B=[],M=null,F=6e4,G=5e3,Q=null,et=C.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),ct=0,ft=null,ot=Date.now(),bt=0,Rt=null,At=!1,gt=!1,wt=!1,kt=!1,q=[];function h(){B=N,N=[],Z(),T()}function T(){M&&clearTimeout(M),M=setTimeout(h,F)}function D(){var $={device:{id:n,type:S.webType},metadata:{clientRequestId:d.getClientRequestId()}};return Q&&Q.fingerprintHash&&($.device.fingerprint=Q.fingerprintHash),$}function Z($){if(B.length)if(Q!==null){var dt=Object.assign(D(),{events:B});i.makeRequest({path:"bulk",data:dt,method:i.methods.post},$)}else u.getFingerprint(function(_t){Q=_t,Z($)})}function j($,dt){return N.push($),dt?new Blob([JSON.stringify(N)]).size:0}function X(){if(wt){var $=Date.now();$-ot>G&&(j({i:{dr:$-ot,ac:$-ot-bt},metadata:{type:v.I,timestamp:$}},!1),bt=0)}}function at(){T(),B=N,N=[],Z()}function K($){X(),function(){if(kt&&Math.random()<.25){for(var dt=[],_t=0;_t<3;_t++)dt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Ut=v.DY+dt[0],Pt={metadata:{type:Ut,timestamp:Date.now()}};Pt[Ut]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Pt[Ut][dt.join("")]=Math.floor(1e3*Math.random())+1,j(Pt,!1)}}(),function(dt){O.triggerEventOnEvent(dt)}($),j(Object.assign({metadata:{type:$.eventType,timestamp:Date.now()}},$.payload),!0)>32768&&at(),$.eventType!==v.C&&$.eventType!==v.S&&$.eventType!==v.KD&&$.eventType!==v.MM||(ot=Date.now())}function p(){At&&at()}function E($){return window.addEventListener($,p,!0),function(){window.removeEventListener($,p,!0)}}function z($,dt){return!$||$.indexOf(dt)>-1}r.exports={init:function($){if(!At){var dt=$.bulkEvents&&$.bulkEvents.mask;if(!Array.isArray(dt)||dt.length!==0){var _t=$.bulkEvents&&typeof $.bulkEvents.pct=="number"?$.bulkEvents.pct:100;if(!(_t===0||Math.random()>_t/100)){var Ut=$.bulkEvents&&$.bulkEvents.appMaskInclude;if(!Array.isArray(Ut)||Ut.indexOf($.appId)!==-1){var Pt=$.bulkEvents&&$.bulkEvents.appMaskExclude;if(!Array.isArray(Pt)||Pt.indexOf($.appId)===-1){var ve=z(dt,v.C),pe=z(dt,v.KD),ue=z(dt,v.S),_e=z(dt,v.PC),we=z(dt,v.MM),Ee=z(dt,v.PL),je=z(dt,v.I),xe=z(dt,v.DY),y=je||Ee;n=$.deviceId,T(),ve&&q.push(o.setClickListener(K)),pe&&q.push(o.setKeyDownListener(K)),ue&&q.push(o.setScrollListener(K)),_e&&q.push(o.setPageChangeListener(K)),we&&q.push(o.setMouseMoveListener(K)),gt=Ee,wt=je,kt=xe,y&&q.push(function(){function P(){if(document.hidden)ft=Date.now(),Rt=ft;else if(ft!==null){var H=Date.now();ct+=H-ft,ft=null,bt+=H-Rt}}return document.addEventListener("visibilitychange",P),function(){document.removeEventListener("visibilitychange",P)}}()),q.push(function(){function P(){if(X(),function(){if(gt){var xt=Date.now(),Gt=xt-et;j({metadata:{type:v.PL,timestamp:xt},pl:{dr:Gt,ac:Gt-ct}},!1)}}(),navigator.sendBeacon&&window.URLSearchParams){if(N.length>0){var H=i.getRequestHeaders(),lt=Object.assign(D(),{events:N}),mt=new URLSearchParams;mt.append("data",JSON.stringify(lt)),mt.append("headers",JSON.stringify(H));var vt=new Blob([mt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",vt)}}else B=N,Z()}return window.addEventListener("beforeunload",P),function(){window.removeEventListener("beforeunload",P)}}()),At=!0,N=[],ve||q.push(E("click")),q.push(E("paste"))}}}}}},cleanup:function(){At&&(M&&clearTimeout(M),q.forEach(function($){$()}),q=[],At=!1)},trigger:p}},120:function(r,t,e){var n=e(709),o=e(38),i=e(23);function u(){return"ontouchstart"in window}function d(l){var v={};if(l.nodeName){v.name=l.nodeName,l.className&&(v.className=String(l.className)),l.id&&(v.id=l.id);var S=l.getAttribute&&l.getAttribute("type");S&&(v.type=S),l.placeholder&&(v.placeholder=l.placeholder)}return v}r.exports={manageDomEvents:function(l){n.managePasteEvents(l)},getDomProperties:d,setClickListener:function(l){function v(O){var C={eventType:o.C,payload:{c:{d:d(O.target)}}},N=O.target.textContent||O.target.innerText||"";if(N){var B=i.transformDomNodeContent(N);C.payload[o.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(C)}var S=u()?"touchend":"click";return window.addEventListener(S,v,!0),function(){window.removeEventListener(S,v,!0)}},setKeyDownListener:function(l){function v(S){l({eventType:o.KD,payload:{kd:{d:d(S.target),k:S.key||S.code||"na"}}})}return window.addEventListener("keydown",v,!0),function(){window.removeEventListener("keydown",v,!0)}},setScrollListener:function(l){var v=null,S=0,O=0,C={x:0,y:0},N=0,B=0,M=0,F=0,G=0,Q=0;function et(ft){l({eventType:o.S,payload:{s:{d:d(ft.target),di:{x:C.x,y:C.y},t:B-N,sx:M,sy:F,ex:G,ey:Q}}}),S=0,O=0,C.x=0,C.y=0,v=null,N=0,B=0}function ct(ft){var ot=ft.target.scrollingElement||ft.target;if(ot&&(ot===document&&(ot=document.documentElement),ot instanceof Element)){var bt=ot.getBoundingClientRect(),Rt=-bt.left+ot.scrollLeft,At=-bt.top+ot.scrollTop;v?(clearTimeout(v),B=Date.now(),G=Rt,Q=At):(N=Date.now(),B=N,G=M=Rt,Q=F=At),(C.x||C.y||S||O)&&(C.x+=Math.abs(Rt-S),C.y+=Math.abs(At-O)),S=Rt,O=At,v=setTimeout(et.bind(null,ft),200)}}return window.addEventListener("scroll",ct,!0),function(){v&&clearTimeout(v),window.removeEventListener("scroll",ct,!0)}},setPageChangeListener:function(l){var v,S,O,C=null,N=null,B=0;function M(et){var ct;if(window.URL){var ft=new URL(et,"http://example.com");ct=ft.pathname+ft.hash}else ct=et.indexOf("?")>-1?et.split("?")[0]:et.indexOf("#")>-1?et.split("#")[0]:et;if(ct!==C){var ot=Date.now()-O;l({eventType:o.PC,payload:{pc:{f:C,t:ct,dr:ot,ac:ot-B}}}),C=ct,O=Date.now()}}function F(){if(document.hidden)N=Date.now();else if(N!==null){var et=Date.now();B+=et-N,N=null}}function G(et){M(et.newURL)}function Q(){M(window.location.href)}return window.history?(C=window.location.pathname||"/",v=history.pushState,S=history.replaceState,O=Date.now(),window.addEventListener("hashchange",G),window.addEventListener("popstate",Q),history.pushState=function(et,ct,ft){return M(ft),v.apply(history,arguments)},history.replaceState=function(et,ct,ft){return M(ft),S.apply(history,arguments)},document.addEventListener("visibilitychange",F),function(){history.pushState=v,history.replaceState=S,window.removeEventListener("hashchange",G),window.removeEventListener("popstate",Q),document.removeEventListener("visibilitychange",F),C=null,B=0}):function(){}},setMouseMoveListener:function(l){var v=[],S=!1,O=null,C=0,N={x:0,y:0};function B(){v.length!==0&&(l({eventType:o.MM,payload:{mm:{s:v.slice(),l:S,di:N}}}),v=[])}function M(G){var Q,et;G.touches&&G.touches.length>0?(Q=G.touches[0].clientX,et=G.touches[0].clientY):(Q=G.clientX,et=G.clientY),Q!==void 0&&et!==void 0&&(v.length>0&&(N.x+=Math.abs(Q-v[v.length-1][0]),N.y+=Math.abs(et-v[v.length-1][1])),v.push([Q,et]),v.length>1e3&&(S=!0,(C+=2)>=1e3&&(C=2),v.splice(C,1)),O&&clearTimeout(O),O=setTimeout(B,200))}var F=u()?"touchmove":"mousemove";return window.addEventListener(F,M,!0),function(){O&&clearTimeout(O),window.removeEventListener(F,M,!0)}}}},387:function(r,t,e){var n=e(776),o=e(23),i=e(287).hp,u=e(527),d=e(543),l=["storeInfo"],v={};function S(){var N={};for(var B in u)if(u.hasOwnProperty(B)){var M=B.charAt(0);M===M.toLowerCase()&&M!==M.toUpperCase()&&(N[B]=u[B])}return N}function O(N,B){var M=N.eventType,F=N.deviceId,G=N.fingerprintProVisitorId,Q=N.fingerprintProRequestId,et=N.fingerprintHash,ct=function(wt){try{return i.from(JSON.stringify(wt)).toString("base64")}catch{return}}(N.fingerprintComponents),ft=N.deviceExtendedInfo,ot=N.payload,bt={metadata:{type:M},device:{id:F,fingerprint:et,rawFingerprint:ct,type:d.webType}};G&&(bt.device.visitorId=G),Q&&(bt.device.fpRequestId=Q);var Rt=Object.assign({},o.getClientMetadata(o.metadataType.payload),v);for(var At in Rt)Rt.hasOwnProperty(At)&&(bt.metadata[At]=Rt[At]);for(var gt in ot)ot.hasOwnProperty(gt)&&(bt[gt]=ot[gt]);ft&&(bt.device.extendedInfo=ft),n.makeRequest({path:"events",data:bt,method:n.methods.post},B)}function C(N){var B=N.type,M=N.deviceId,F=N.fingerprintProVisitorId,G=N.fingerprintProRequestId,Q=N.fingerprintHash,et=N.fingerprintComponents,ct=N.deviceExtendedInfo,ft=N.callback,ot={eventType:B,deviceId:M,fingerprintHash:Q,fingerprintComponents:et,deviceExtendedInfo:ct};F&&(ot.fingerprintProVisitorId=F),G&&(ot.fingerprintProRequestId=G),O(ot,ft)}r.exports={addMetadataProps:function(N){for(var B=0;B<l.length;B+=1){var M=l[B];N.hasOwnProperty(M)&&(v[M]=N[M])}},reportEvent:O,reportAppInstallEvent:function(N,B,M,F,G,Q){C({type:"appInstall",deviceId:N,fingerprintProVisitorId:B,fingerprintProRequestId:M,fingerprintHash:F,fingerprintComponents:G,deviceExtendedInfo:S(),callback:Q})},reportFingerprintEvent:function(N,B,M,F){C({type:"fingerprint",deviceId:N,fingerprintHash:B,fingerprintComponents:M,fingerprintProRequestId:F})},reportInitEvent:function(N){C({type:"appInit",deviceId:N})}}},625:function(r,t,e){var n=e(269);r.exports={getFingerprint:function(o,i){n&&o?n.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",n.defaultEndpoint],modules:[n.makeIdentificationModule(),n.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",n.defaultScriptUrlPattern],remoteControlDetection:!0}).then(function(u){return u.get()}).then(function(u){typeof i=="function"&&i(u?{fingerprintVisitorId:u.visitorId,fingerprintRequestId:u.requestId}:{})}).catch(function(){typeof i=="function"&&i({})}):i({})}}},376:function(r,t,e){var n=e(568),o=e(528),i=e(387),u="ns_fp_hash";function d(v,S,O,C){i.reportFingerprintEvent(O,v,S,C)}function l(v){n.load({monitoring:!1}).then(function(S){S.get().then(function(O){v(O?{fingerprintHash:O.visitorId,fingerprintComponents:O.components}:{})})})}r.exports={manageFingerprint:function(v,S,O){l(function(C){var N=C.fingerprintHash,B=C.fingerprintComponents;o.getItem(u)!==N&&(S&&d(N,B,v),o.setItem(u,N)),typeof O=="function"&&O({fingerprintHash:N,fingerprintComponents:B})})},getFingerprint:l,reportFingerprintWithProInfo:function(v,S){l(function(O){d(O.fingerprintHash,O.fingerprintComponents,v,S)})}}},733:function(r,t,e){var n=e(528),o=e(376),i=e(625),u=e(387),d=e(142),l=e(1),v=e(543),S="linkDevices";function O(N,B,M){o.getFingerprint(function(F){var G=F.fingerprintHash,Q=F.fingerprintComponents;u.reportEvent({eventType:S,deviceId:N,fingerprintHash:G,fingerprintComponents:Q,payload:{linkedDevices:[B,M]}})})}function C(N,B){if(B)for(var M=0,F=B.length;M<F;M+=1){var G=B[M];if(G&&G.length>1){var Q=G[0],et=G[1];Q&&et&&Q!==et&&O(N,Q,et)}}}r.exports={installSdk:function(N,B){var M=N.deviceId,F=N.loadFingerprintJsPro,G=(N.supressInstallBackwardCompatibility||[]).indexOf(N.appId)===-1,Q=function(ct,ft){var ot=ft?n.getBackwardCompatabilityItem(v.installEventReportedKeyName,v.oldInstallEventReportedKeyName):n.getItem(v.installEventReportedKeyName);return ot?(ot==="true"&&(n.setItem(v.installEventReportedKeyName,ct),ot=ct),ct===ot?{isInstalled:!0,reportedDeviceId:ct}:{isInstalled:!1,reportedDeviceId:ot}):{isInstalled:!1,reportedDeviceId:null}}(M,G);function et(ct,ft,ot){if(ot>3)B&&B(!1);else{var bt=ft.fingerprintHash,Rt=ft.fingerprintComponents,At=ct.fingerprintVisitorId,gt=ct.fingerprintRequestId;u.reportAppInstallEvent(M,At,gt,bt,Rt,function(wt){if(wt){var kt={msg:"Failed sending appInstall",err:JSON.stringify(wt),deviceId:M,fingerprintHash:bt,fingerprintRequestId:gt,numberOfRetry:ot};l.send(kt),et(ct,ft,ot+1)}else n.setItem(v.installEventReportedKeyName,M),n.setItem("ns_irts",Date.now()),d.manageKeepAlive({deviceId:M,fingerprintInfo:ft,setStartTimestamp:!0}),B&&B(!0)})}}Q.isInstalled?B&&B(!1):(Q.reportedDeviceId&&Q.reportedDeviceId!==M&&C(M,[[M,Q.reportedDeviceId]]),i.getFingerprint(F,function(ct){o.manageFingerprint(M,!1,function(ft){et(ct,ft,1)})}))},reportLinkDevices:C}},142:function(r,t,e){var n=e(528),o=e(884),i=e(387),u=e(376),d="ns_ka_ts",l="ns_ka_step_",v=[10,30,40,60];function S(B){return l+B}function O(){var B=parseInt(n.getItem(d),10);return o.isValidDate(new Date(B))?B:null}function C(B,M){var F=function(){var G=O();if(!G)return null;for(var Q,et=Math.floor((new Date().getTime()-G)/1e3),ct=0;ct<v.length;ct+=1){var ft=v[ct],ot=ct<v.length-1?v[ct+1]:null;if(et>=ft&&(!ot||et<ot)&&(Q=ft,!n.getItem(S(Q))))return{stepToReport:ft,timeToWaitInSeconds:0};if(et<ft)return{stepToReport:ft,timeToWaitInSeconds:ft-et}}return null}();F&&(F.timeToWaitInSeconds===0?(function(G,Q,et){var ct=Q.fingerprintHash,ft=Q.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:G,fingerprintHash:ct,fingerprintComponents:ft,payload:{keepAlive:{step:et}}}),n.setItem(S(et),!0)}(B,M,F.stepToReport),C(B,M)):F.timeToWaitInSeconds>0&&setTimeout(function(){C(B,M)},1e3*F.timeToWaitInSeconds))}var N={manageKeepAlive:function(B){var M=B.deviceId,F=B.fingerprintInfo;B.setStartTimestamp&&!O()&&n.setItem(d,new Date().getTime()),F?C(M,F):u.getFingerprint(function(G){C(M,G)})}};r.exports=N},709:function(r,t,e){var n=e(387),o=e(376),i=e(23);function u(v){var S,O=v?v.value||v.innerText:null;return{nodeContent:O,normalizedNodeContent:(S=O,i.removeWhitespaces(S))}}function d(v){var S=i.transformDomNodeContent(v),O=v||"";return S.onlyDigits=/^[0-9]+$/.test(O),S.containsWhitespace=/\s/.test(O),S.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(O),S}var l={managePasteEvents:function(v){document.addEventListener("paste",function(S){var O=u(S.target);setTimeout(function(){(function(C){var N=C.deviceId,B=C.contentBeforePaste,M=B.nodeContent,F=B.normalizedNodeContent,G=C.domNode,Q={paste:{domNode:{}}};if(G.nodeName){Q.paste.domNode.name=G.nodeName,G.className&&(Q.paste.domNode.className=G.className),G.id&&(Q.paste.domNode.id=G.id);var et=G.getAttribute&&G.getAttribute("type");et&&(Q.paste.domNode.type=et),Q.paste.domNode.content={};var ct=u(G),ft=ct.nodeContent,ot=ct.normalizedNodeContent;Q.paste.domNode.content.beforePaste=d(M),Q.paste.domNode.content.afterPaste=d(ft),Q.paste.domNode.normalizedContent={},Q.paste.domNode.normalizedContent.beforePaste=d(F),Q.paste.domNode.normalizedContent.afterPaste=d(ot),G.placeholder&&(Q.paste.domNode.placeholder=G.placeholder),Q.paste.url=window.location.href}o.getFingerprint(function(bt){var Rt=bt.fingerprintHash;n.reportEvent({eventType:"paste",deviceId:N,fingerprintHash:Rt,payload:Q})})})({deviceId:v,contentBeforePaste:O,domNode:S.target})},0)})}};r.exports=l},472:function(r,t,e){var n=e(127),o=e(108),i=e(884),u=e(23),d=e(776),l=e(528),v=e(298).inactivityEvent,S=e(143),O=e(387),C=e(376),N="ns_sid";function B(){o.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function M(G){var Q=G.deviceId,et=G.initModuleConfig,ct=G.jwtSessionId,ft=G.callback,ot=1e4;try{ot=n(ct).inactivityTimeout}catch{ot=1e4}var bt=new S(new Date().getTime());bt.addEventListener(v,function Rt(){bt.removeEventListener(v,Rt),F({deviceId:Q,initModuleConfig:et,forceRenewSessionDueToInactivity:!0,callback:ft})}),bt.trackInactivity(ot)}function F(G){var Q,et=G.deviceId,ct=G.initModuleConfig,ft=!!G.forceRenewSessionDueToInactivity,ot=G.callback,bt=l.getItem(N);try{Q=n(bt),d.setSessionId(bt)}catch{Q=null}ft||!Q||1e3*((Q||{}).exp||0)<new Date().getTime()?function(Rt,At){var gt=Rt.deviceId,wt=(Rt.initModuleConfig||{}).storeInfo,kt=new B;kt.addEventListener(kt.eventTypes.fetchComplete,function q(h){kt.removeEventListener(kt.eventTypes.fetchComplete,q),At(h.detail)}),kt.fetchSessionId(gt,wt)}({deviceId:et,initModuleConfig:ct},function(Rt){bt=Rt,l.setItem(N,bt),d.setSessionId(bt),function(At){try{var gt=At.deviceId,wt=n(At.jwtSessionId).ets;if(!wt)return;C.getFingerprint(function(kt){var q=kt.fingerprintHash,h=kt.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:gt,fingerprintHash:q,fingerprintComponents:h,payload:{ping:{ets:wt}}})})}catch{}}({deviceId:et,jwtSessionId:bt}),M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt)}):(M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt))}B.prototype=Object.create(o.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(G,Q){var et=this,ct="session?"+u.getClientMetadata(u.metadataType.queryString)+"&deviceId="+G;Q&&(Q.id&&(ct+="&storeId="+Q.id),Q.type&&(ct+="&storeType="+Q.type)),function ft(){var ot;ot=function(bt,Rt){!bt&&Rt&&Rt.ok?et.dispatchEvent(new CustomEvent(et.eventTypes.fetchComplete,{detail:Rt.response})):setTimeout(ft,i.randomInt(4e4,6e4))},d.makeRequest({path:ct,method:d.methods.get},ot)}()},r.exports={manageSessionId:F,setRetrySessionTimeout:function(G){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(r,t,e){var n=e(23),o=e(376),i=e(625),u=e(528),d=e(543).fingerprintReportedInSessionKey,l=e(543).eventTriggers,v={},S=null,O=!1,C=!1;function N(M){var F=M||{};Object.keys(F).forEach(function(G){G===l.fingerPrint&&C&&(u.getSessionItem(d)||(i.getFingerprint(O,function(Q){o.reportFingerprintWithProInfo(S,Q.fingerprintRequestId)}),u.setSessionItem(d,!0)))})}function B(M,F,G){for(var Q=0;Q<F.payload.length;Q++){var et=F.payload[Q];et&&et.event&&et.action&&n.isSubObject(et.event,M.payload)&&(G[et.action]=!0)}}r.exports={init:function(M){if(M.eventTrigger){try{var F=atob(M.eventTrigger),G=JSON.parse(F);if(!G||!(v=G[M.appId]))return}catch{return}S=M.deviceId,O=M.loadFingerprintJsPro,C=!0,function(){if(C&&v.init&&Array.isArray(v.init)){for(var Q={},et=0;et<v.init.length;et++){var ct=v.init[et];ct&&ct.url&&ct.action&&new RegExp(v.init[et].url).test(window.location.href)&&(Q[v.init[et].action]=!0)}N(Q)}}()}},triggerEventOnEvent:function(M){if(C){var F=v[M.eventType];if(Array.isArray(F)){for(var G={},Q=0;Q<F.length;Q++){var et=F[Q];et&&et.url&&et.payload&&new RegExp(et.url).test(window.location.href)&&B(M,et,G)}N(G)}}}}},636:function(r,t,e){var n=e(528),o=e(387),i=e(376),u="ns_c_ver",d="c";function l(S){n.setItem(u,JSON.stringify(S))}function v(S,O,C,N){var B=O.fingerprintHash,M=O.fingerprintComponents;o.reportEvent({eventType:"sdkVersionUpgrade",deviceId:S,fingerprintHash:B,fingerprintComponents:M,payload:{versionUpgrade:{version:C,prevVersion:N||""}}}),l(C)}r.exports={reportVersionUpgrade:function(S){var O=S.initModuleVersion,C=S.coreModuleVersion,N={};N.i=O,N[d]=C;var B=S.deviceId,M=S.fingerprintInfo,F=function(){var G=n.getItem(u);if(G){try{var Q=JSON.parse(G);if(typeof Q=="object")return Q}catch{}return{i:G}}return null}();F&&F.i?F.i!==O||F[d]&&F[d]!==C?(F[d]||(F[d]=C),M?v(B,M,N,F):i.getFingerprint(function(G){v(B,G,N,F)})):F[d]||l(N):l(N)}}},23:function(r,t,e){var n=e(550),o={payload:"payload",queryString:"queryString"};function i(){return n()}function u(l,v){for(var S in l)if(l.hasOwnProperty(S)&&(!v.hasOwnProperty(S)||!d(l[S],v[S])))return!1;return!0}function d(l,v){if(l===v)return!0;if(typeof l!=typeof v)return!1;if(Array.isArray(l)&&Array.isArray(v)){if(l.length!==v.length)return!1;for(var S=0;S<l.length;S++)if(!d(l[S],v[S]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof v=="object"&&v!==null&&u(l,v)}r.exports={metadataType:o,getClientMetadata:function(l){var v=new Date().getTime(),S=i();return l===o.queryString?"timestamp="+v+"&clientRequestId="+S:{timestamp:v,clientRequestId:S}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(l){var v,S,O=l||"",C=O.length;return C<=1?(v="",S=""):C===2?(v=O.slice(0,1),S=""):C===3?(v=O.slice(0,1),S=O.slice(C-1)):C===4?(v=O.slice(0,2),S=O.slice(C-1)):C===5?(v=O.slice(0,2),S=O.slice(C-2)):C===6?(v=O.slice(0,3),S=O.slice(C-2)):C===7?(v=O.slice(0,3),S=O.slice(C-3)):C===8?(v=O.slice(0,4),S=O.slice(C-3)):C===9?(v=O.slice(0,5),S=O.slice(C-3)):C===10?(v=O.slice(0,5),S=O.slice(C-4)):C>10&&(v=O.slice(0,6),S=O.slice(C-4)),{length:C,prefix:v,suffix:S}},isSubObject:u,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(r,t,e){var n,o=e(723),i=e(115),u=e(884);function d(){return i.getDeviceId()}r.exports={getDeviceId:function(){return n||(n=d()),n},getCoreModuleParams:function(l,v){var S=v||{},O=!!S.isFingerprintJsProOff,C=[];n&&n!==d()&&C.push([n,d()]);var N=u.getAppContextId(),B=S.bulkEvents||{},M=S.supressInstallBackwardCompatibility||[],F=typeof S.logMessageRate=="number"?S.logMessageRate:100,G=S.eventTrigger||"";return Object.assign(l,{deviceId:d(),linkedDevices:C,loadFingerprintJsPro:!O,clientVersion:o.version,appContextId:N,bulkEvents:B,supressInstallBackwardCompatibility:M,logMessageRate:F,eventTrigger:G,eventsReportUrl:S.eventsReportUrl})},parseInitParams:function(l,v){return typeof(S=l)=="string"||S instanceof String?{appId:l,partnerId:v}:l;var S},internalGetDeviceId:d}},342:function(r,t,e){var n=e(723),o=e(242),i=e(1),u=e(102),d=e(651),l=e(884),v=e(884);r.exports={version:n.version,init:l.isBrowser()?function(S,O){var C=d.parseInitParams(S,O),N=C.appId;i.init(n,{appId:N});var B=v.getConfigBaseUrls(C,n),M=B.mainConfigBaseUrl,F=B.altConfigBaseUrl;function G(et,ct){o.getCoreModuleLoadingInfo({appId:N,url:et},function(ft,ot){!ft&&ot||n.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:n.coreConfigFileUrl,errorDescription:ft}),ct(ot)})}function Q(et){typeof et.onPercentage=="number"&&l.randomInt(0,100)>et.onPercentage||function(ct,ft){var ot=d.getCoreModuleParams(ct,ft);u.init(ot)}(C,et)}return G(M,function(et){if(et)Q(et);else{if(!F)return;G(F,function(ct){ct&&Q(ct)})}}),d.getDeviceId()}:function(S,O){return null},getDeviceId:l.isBrowser()?function(){return d.getDeviceId()}:function(){return null}}},242:function(r,t,e){var n=e(611),o=e(528),i=e(884),u="ns_group";function d(l,v){(function(S,O){n.get(S).end(function(C,N){C?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:C,res:N})}):i.isFunction(O)&&O(null,{ok:N.ok,status:N.status,response:N.body})})})(l.url,function(S,O){!S&&O&&O.response?i.isFunction(v)&&v(null,function(C,N){var B,M=N||{},F=M.configurations||{},G=F[C];if(G){var Q=function(){var bt=o.getItem(u);return bt||(bt=i.randomInt(1,100),o.setItem(u,bt)),bt}(),et=function(bt){var Rt=[],At=0;for(var gt in bt)if(bt.hasOwnProperty(gt)){var wt=bt[gt],kt=At;At+=wt.percentage,Rt.push({from:kt,to:At,url:wt.url})}return Rt}(G.groups),ct=function(bt,Rt){for(var At=0,gt=bt.length;At<gt;At++){var wt=bt[At];if(Rt>wt.from&&Rt<=wt.to)return wt}return null}(et,Q)||{};if(ct)for(B in ct)ct.hasOwnProperty(B)&&(G[B]=ct[B]);var ft=F.default||{};for(B in ft)ft.hasOwnProperty(B)&&!G.hasOwnProperty(B)&&(G[B]=ft[B])}else G=F.default||{};var ot={};for(B in M)M.hasOwnProperty(B)&&B!=="configurations"&&(ot[B]=M[B]);for(B in G)G.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(ot[B]=G[B]);return ot}(l.appId,O.response)):i.isFunction(v)&&v(S.errorDescription)})}r.exports={getCoreModuleLoadingInfo:function(l,v){var S=0;l&&l.url?d(l,function O(C,N){C?(S+=1)<=3?d(l,O):i.isFunction(v)&&v(C):i.isFunction(v)&&v(null,N)}):i.isFunction(v)&&v("config url is not configured")}}},115:function(r,t,e){var n,o=e(550),i=e(528),u=e(13),d=e(884),l=e(616),v="ns_dev_id",S=[];function O(){var C=i.getItem(v);n||(n=C||l.toArray(o(),i.hasAccessToLocalStorage()),i.setItem(v,n))}r.exports={init:function(){u.init(function(){u.getKey(v,function(C){C?(n=C,i.setItem(v,n),u.cleanup()):(O(),u.setKey(v,n),setTimeout(u.cleanup,2e3));for(var N=0,B=S.length;N<B;N+=1){var M=S[N];d.isFunction(M)&&M()}S=[]})})},addOnReadyListener:function(C){S.push(C)},getDeviceId:function(){return O(),n},reset:function(){throw new Error("Cannot call reset!")}}},635:function(r,t,e){e.d(t,{C6:function(){return o},Cl:function(){return i},Tt:function(){return u},YH:function(){return l},fX:function(){return v},sH:function(){return d}});var n=function(S,O){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,N){C.__proto__=N}||function(C,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(C[B]=N[B])},n(S,O)};function o(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function C(){this.constructor=S}n(S,O),S.prototype=O===null?Object.create(O):(C.prototype=O.prototype,new C)}var i=function(){return i=Object.assign||function(S){for(var O,C=1,N=arguments.length;C<N;C++)for(var B in O=arguments[C])Object.prototype.hasOwnProperty.call(O,B)&&(S[B]=O[B]);return S},i.apply(this,arguments)};function u(S,O){var C={};for(var N in S)Object.prototype.hasOwnProperty.call(S,N)&&O.indexOf(N)<0&&(C[N]=S[N]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function"){var B=0;for(N=Object.getOwnPropertySymbols(S);B<N.length;B++)O.indexOf(N[B])<0&&Object.prototype.propertyIsEnumerable.call(S,N[B])&&(C[N[B]]=S[N[B]])}return C}function d(S,O,C,N){return new(C||(C=Promise))(function(B,M){function F(et){try{Q(N.next(et))}catch(ct){M(ct)}}function G(et){try{Q(N.throw(et))}catch(ct){M(ct)}}function Q(et){var ct;et.done?B(et.value):(ct=et.value,ct instanceof C?ct:new C(function(ft){ft(ct)})).then(F,G)}Q((N=N.apply(S,O||[])).next())})}function l(S,O){var C,N,B,M,F={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(Q){return function(et){return function(ct){if(C)throw new TypeError("Generator is already executing.");for(;M&&(M=0,ct[0]&&(F=0)),F;)try{if(C=1,N&&(B=2&ct[0]?N.return:ct[0]?N.throw||((B=N.return)&&B.call(N),0):N.next)&&!(B=B.call(N,ct[1])).done)return B;switch(N=0,B&&(ct=[2&ct[0],B.value]),ct[0]){case 0:case 1:B=ct;break;case 4:return F.label++,{value:ct[1],done:!1};case 5:F.label++,N=ct[1],ct=[0];continue;case 7:ct=F.ops.pop(),F.trys.pop();continue;default:if(!((B=(B=F.trys).length>0&&B[B.length-1])||ct[0]!==6&&ct[0]!==2)){F=0;continue}if(ct[0]===3&&(!B||ct[1]>B[0]&&ct[1]<B[3])){F.label=ct[1];break}if(ct[0]===6&&F.label<B[1]){F.label=B[1],B=ct;break}if(B&&F.label<B[2]){F.label=B[2],F.ops.push(ct);break}B[2]&&F.ops.pop(),F.trys.pop();continue}ct=O.call(S,F)}catch(ft){ct=[6,ft],N=0}finally{C=B=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([Q,et])}}}function v(S,O,C){if(C||arguments.length===2)for(var N,B=0,M=O.length;B<M;B++)!N&&B in O||(N||(N=Array.prototype.slice.call(O,0,B)),N[B]=O[B]);return S.concat(N||Array.prototype.slice.call(O))}typeof SuppressedError=="function"&&SuppressedError}},Fl={};function Dr(r){var t=Fl[r];if(t!==void 0)return t.exports;var e=Fl[r]={exports:{}};return Iy[r](e,e.exports,Dr),e.exports}Dr.d=function(r,t){for(var e in t)Dr.o(t,e)&&!Dr.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},Dr.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},Dr.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var Ni={};Dr.d(Ni,{IP:function(){return xi.getDeviceId},Ts:function(){return xi.init},rE:function(){return xi.version}});var xi=Dr(342);const ky={version:xi.version,init:xi.init,getDeviceId:xi.getDeviceId};Ni.Ay=ky;var Hl=Ni.Ay;Ni.IP,Ni.Ts,Ni.rE;class gr{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(e=>e.json()).then(e=>e.nSureSettings?.nSurePartnerId||e.nSurePartnerId).catch(e=>{console.error(e)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:e,route:n,routePrefix:o,env:i,subtotal:u,presentment:d,transaction:l,blockchain:v="solana",webhookInfo:S,email:O,loaderBackground:C,handleHeightChangeId:N,bankAccountLinkRedirect:B,additionalWallets:M,chargebackProtectionData:F,merchantCss:G,color:Q,rent:et,lockDefaultToken:ct,tokens:ft,planCode:ot,disableApplePay:bt,disableGooglePay:Rt,customerInfo:At,settlementType:gt,lockAmount:wt,nativeSolToConvert:kt,theme:q,usePermit:h,transactionSigner:T,authOnly:D,deviceId:Z,jwtToken:j,origins:X,threeDsChallengePreference:at,supportEmail:K,destinationAuthKey:p,allowedPaymentMethods:E,accountFundingTransaction:z,partialUsdcChecked:$,redemptionCheck:dt,allowedWithdrawSpeeds:_t}){const Ut=o?`/${o}/${v}`:`/${v}`,Pt=new URL(Ut+n,gr.getCoinflowBaseUrl(i));if(t&&Pt.searchParams.append("pubkey",t),e&&Pt.searchParams.append("sessionKey",e),l&&Pt.searchParams.append("transaction",l),u&&("cents"in u?(Pt.searchParams.append("cents",u.cents.toString()),"currency"in u?Pt.searchParams.append("currency",u.currency.toString()):Pt.searchParams.append("currency",Wa.USD)):(Pt.searchParams.append("token",u.address.toString()),Pt.searchParams.append("amount",u.amount.toString()))),d&&Pt.searchParams.append("presentment",d),S&&Pt.searchParams.append("webhookInfo",tr.compressToEncodedURIComponent(JSON.stringify(S))),q&&Pt.searchParams.append("theme",tr.compressToEncodedURIComponent(JSON.stringify(q))),At&&Pt.searchParams.append("customerInfo",tr.compressToEncodedURIComponent(JSON.stringify(At))),O&&Pt.searchParams.append("email",O),K&&Pt.searchParams.append("supportEmail",K),ft&&Pt.searchParams.append("tokens",ft.toString()),C&&Pt.searchParams.append("loaderBackground",C),N&&Pt.searchParams.append("useHeightChange",N.toString()),B&&Pt.searchParams.append("bankAccountLinkRedirect",B),M&&Pt.searchParams.append("additionalWallets",tr.compressToEncodedURIComponent(JSON.stringify(M))),F&&Pt.searchParams.append("chargebackProtectionData",tr.compressToEncodedURIComponent(JSON.stringify(F))),Z)Pt.searchParams.append("deviceId",Z);else if(typeof window<"u"){const ve=Hl.getDeviceId();ve&&Pt.searchParams.append("deviceId",ve)}return G&&Pt.searchParams.append("merchantCss",G),Q&&Pt.searchParams.append("color",Q),et&&Pt.searchParams.append("rent",et.lamports.toString()),dt&&Pt.searchParams.append("redemptionCheck","true"),kt&&Pt.searchParams.append("nativeSolToConvert",kt.lamports.toString()),ct&&Pt.searchParams.append("lockDefaultToken","true"),ot&&Pt.searchParams.append("planCode",ot),bt&&Pt.searchParams.append("disableApplePay","true"),Rt&&Pt.searchParams.append("disableGooglePay","true"),gt&&Pt.searchParams.append("settlementType",gt),wt&&Pt.searchParams.append("lockAmount","true"),h===!1&&Pt.searchParams.append("usePermit","false"),T&&Pt.searchParams.append("transactionSigner",T),D===!0&&Pt.searchParams.append("authOnly","true"),$===!0&&Pt.searchParams.append("partialUsdcChecked","true"),j&&Pt.searchParams.append("jwtToken",j),X&&Pt.searchParams.append("origins",tr.compressToEncodedURIComponent(JSON.stringify(X))),E&&Pt.searchParams.append("allowedPaymentMethods",E.join(",")),at&&Pt.searchParams.append("threeDsChallengePreference",at),p&&Pt.searchParams.append("destinationAuthKey",p),z&&Pt.searchParams.append("accountFundingTransaction",tr.compressToEncodedURIComponent(JSON.stringify(z))),_t&&Pt.searchParams.append("allowedWithdrawSpeeds",_t.join(",")),Pt.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:e}=t;if(!cs)throw new Error("@solana/web3.js dependency is required for Solana");if(!Mr)throw new Error("bs58 dependency is required for Solana");if(e)return Mr.encode(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))},polygon:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},eth:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},base:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},user:()=>{}})()}static byBlockchain(t,e){switch(t){case"solana":return e.solana;case"polygon":return e.polygon;case"eth":return e.eth;case"base":return e.base;case"arbitrum":return e.arbitrum;case"user":return e.user;default:throw new Error("blockchain not supported!")}}}function Oy(r){if(!r)return;let t,e;if("name"in r&&r.name&&(t=r.name.split(" ")[0],e=r.name.split(" ").slice(1).join(" ")),"firstName"in r&&r.firstName&&(t=r.firstName),"lastName"in r&&r.lastName&&(e=r.lastName),t&&e)return{firstName:t,lastName:e}}var za=(r=>(r.SignMessage="signMessage",r.SignTransaction="signTransaction",r.SendTransaction="sendTransaction",r.HeightChange="heightChange",r.Success="success",r.AuthDeclined="authDeclined",r.Loaded="loaded",r.AccountLinked="accountLinked",r))(za||{});function us(r){let t;if("signer"in r&&typeof r.signer=="object"&&r.signer&&"wallet"in r.signer?t=r.signer.wallet:"wallet"in r&&r.wallet&&(t=r.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function Vl(r,t,e){let n;try{if(n=JSON.parse(r),!("method"in n)||!("data"in n))return}catch(u){console.error("handleIFrameMessage JSON parse",u);return}const{data:o,method:i}=n;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(o):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(o):void 0;case"sendTransaction":return t.handleSendTransaction(o);case"heightChange:"+e:return t.handleHeightChange?t.handleHeightChange(o):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(n.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(n.info);return;case"loaded":return;case"accountLinked":return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(za)}`)}function ls(r){let t,e;return"signer"in r&&typeof r.signer=="object"&&r.signer&&"blockchain"in r.signer&&"wallet"in r.signer?(t=r.signer.blockchain,e=r.signer.wallet):"blockchain"in r&&r.blockchain&&(t=r.blockchain,e=r.wallet),t?gr.byBlockchain(t,{solana:()=>Ty({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),eth:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),polygon:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),base:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),arbitrum:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),user:()=>Ny(r)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}}function Ty({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=Wl(n);return await r.sendTransaction(o)},handleSignMessage:async n=>{const o=r.signMessage;if(!o)throw new Error("signMessage is not supported by this wallet");const i=await o(new TextEncoder().encode(n));if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(i)},handleSignTransaction:async n=>{const o=r.signTransaction;if(!o)throw new Error("signTransaction is not supported by this wallet");const i=Wl(n),u=await o(i);if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(u.serialize({requireAllSignatures:!1,verifySignatures:!1}))},onSuccess:t,onAuthDeclined:e}}function Wl(r){if(!cs)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!Mr)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=Mr.decode(r),e=cs.VersionedTransaction.deserialize(t);return e.version==="legacy"?cs.Transaction.from(t):e}function fs({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=JSON.parse(Buffer.from(n,"base64").toString()),{hash:i}=await r.sendTransaction(o);return i},handleSignMessage:async n=>r.signMessage(n),onSuccess:t,onAuthDeclined:e}}function Ny({onSuccess:r,onAuthDeclined:t}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:r,onAuthDeclined:t}}class xy{static on(t,e){document.addEventListener(t,e)}static dispatch(t,e){document.dispatchEvent(new CustomEvent(t,{detail:e}))}static remove(t,e){document.removeEventListener(t,e)}}const ro="tokenExCardNumber",Li="tokenExCardCvv",zl={[di.VISA]:"visa",[di.MASTERCARD]:"masterCard",[di.AMEX]:"americanExpress",[di.DISCOVER]:"discover"};async function Gl(r){const{token:t,origins:e,env:n}=r;return new Promise((o,i)=>{fetch(new gr(n).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:e,token:t,merchantId:"merchantId"in r?r.merchantId:void 0,checkoutJwt:"checkoutJwt"in r?r.checkoutJwt:void 0})}).then(async u=>{o(await u.json())}).catch(u=>i(u))})}function Ga({env:r,setTokenExScriptLoaded:t}){const e="tokenex-script";document.head.querySelector(`#${e}`)&&t(!0);const n=document.createElement("script");n.src=r==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",n.id=e,document.head.appendChild(n),document.getElementById(e).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),t(!0)})}function Ly({iframe:r,setCachedToken:t,setLoaded:e}){const n=async()=>(r.tokenize(),await new Promise((o,i)=>{r.on("tokenize",u=>{t(u.token),o(u)}),r.on("validate",u=>{(!u.isValid||u.isCvvValid===!1)&&i(u)})}));return r.on("change",()=>t(void 0)),r.on("cvvChange",()=>t(void 0)),r.on("load",()=>{setTimeout(()=>e(!0),350);const o=document.querySelector("#tx_iframe_tokenExCardNumber");o&&(o.scrolling="no")}),r.on("focus",()=>{r.focus()}),r.on("cvvFocus",()=>{r.cvvFocus()}),e(!1),r.load(),{...r,tokenize:n}}async function Kl(r){const{token:t,cardType:e}=r;return await Ka(Li,r,{cvvOnly:!0,cvv:!0,cvvContainerID:Li,placeholder:"CVV",token:t,cardType:zl[e]})}async function jl(r){return await Ka(ro,r,{cvv:!0,cvvContainerID:Li,cvvPlaceholder:"CVV"})}async function Yl(r){return await Ka(ro,r,{cvv:!1})}async function Ka(r,t,e){const{tokenExScriptLoaded:n,css:o,debug:i,font:u,setCachedToken:d,setLoaded:l}=t;if(!n&&typeof TokenEx>"u"){console.warn("Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script");return}const v=await Gl({...t,token:e.token}),{styles:S}=Cy(o),O={...v,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:S,font:u,debug:i??!1,...e},C=TokenEx.Iframe(r,O);return Ly({iframe:C,setCachedToken:d,setLoaded:l})}function Cy(r){const t=JSON.parse(r);return{styles:{base:Ur(t.base),focus:Ur(t.focus),error:Ur(t.error),placeholder:Ur(t.placeholder),cvv:{base:Ur(t.cvv?.base),focus:Ur(t.cvv?.focus),error:Ur(t.cvv?.error),placeholder:Ur(t?.placeholder)}}}}function Ur(r){if(!r)return"";if(typeof r=="string")return r;let t="";for(const[e,n]of Object.entries(r)){let o="";e.split("").forEach(i=>{i.toUpperCase()===i?o+="-"+i.toLowerCase():o+=i}),t+=o+":"+n+";"}return t}ge.nftCartItem=void 0,(r=>{(t=>{t.NFT="nft"})(r.itemClass||(r.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(r.productType||(r.productType={}))})(ge.nftCartItem||(ge.nftCartItem={}));const By=qt.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return gr.getCoinflowUrl(this.args)}},emits:{onMessage(r){return!0}},methods:{sendMessage(r){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(r,"*")},handleIframeMessages({data:r,origin:t}){if(!t.includes(gr.getCoinflowBaseUrl(this.args.env)))return;this.$emit("onMessage",{data:r,origin:t});const e=Vl(r,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(n=>{console.error(n),this.sendMessage("ERROR "+n.message)})},async listenForMessage(r){let t;return new Promise((e,n)=>{if(t=({data:o,origin:i})=>{if(i.includes(gr.getCoinflowBaseUrl(this.args.env))){if(o.startsWith("ERROR")){n(new Error(o.replace("ERROR","")));return}r(o)&&e(o)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(r,t){return this.sendMessage(r),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),ja=(r,t)=>{const e=r.__vccOpts||r;for(const[n,o]of t)e[n]=o;return e},Py=["src","scrolling"];function My(r,t,e,n,o,i){return qt.openBlock(),qt.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write",title:"withdraw",frameBorder:"0",src:r.url,scrolling:r.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const u=r.$refs.iframeRef;u&&(u.style.opacity="1")})},null,40,Py)}const ds=ja(By,[["render",My]]),Dy=qt.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Uy(r,t,e,n,o,i){const u=qt.resolveComponent("coinflow-i-frame");return qt.openBlock(),qt.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Fy=ja(Dy,[["render",Uy]]),Hy=qt.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/purchase-v2/${this.args.merchantId}`,transaction:gr.getTransaction(this.args)}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Vy(r,t,e,n,o,i){const u=qt.resolveComponent("coinflow-i-frame");return qt.openBlock(),qt.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Wy=ja(Hy,[["render",Vy]]),Ya=r=>{const t=qt.ref(!1),e=qt.ref(!1),n=qt.ref(void 0),o=qt.ref(void 0);qt.onMounted(()=>{Ga({env:r.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),e.value=!0}})});const i=O=>o.value=O,u=()=>t.value=!0,d=O=>n.value=O,l=async O=>{const C=await Kl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},v=async O=>{const C=await jl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},S=async O=>{const C=await Yl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C};return qt.watchEffect(O=>{n.value&&(n.value.load(),O(()=>n.value?.remove()))}),{tokenExIframe:n,initializeTokenExIframe:v,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:S,loaded:t,cachedToken:o,setTokenExScriptTag:Ga,tokenExScriptLoaded:e}},zy=["id"],Gy=qt.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return qt.watchEffect(()=>{e({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>(qt.openBlock(),qt.createElementBlock("div",{id:qt.unref(ro)},null,8,zy))}}),Ky=["id"],jy=qt.defineComponent({__name:"CoinflowCvvInput",setup(r){return(t,e)=>(qt.openBlock(),qt.createElementBlock("div",{id:qt.unref(Li)},null,8,Ky))}}),Yy=["id"],qy=qt.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeCvvOnlyTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return qt.watchEffect(()=>{e({...r.args,origins:r.args.origins??[],css:i(),font:r.args.font})},{}),(u,d)=>(qt.openBlock(),qt.createElementBlock("div",{id:qt.unref(Li)},null,8,Yy))}}),$y=qt.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(r){const t=qt.ref(void 0);qt.onMounted(()=>new gr(r.args.env).getNSurePartnerId(r.args.merchantId).then(n=>t.value=n));function e(){return r.args.env==="prod"?"9JBW2RHC7JNJN8ZQ":"SANDBOX_CTCE4XK53ZW0R7V1"}return qt.watchEffect(n=>{t.value&&Hl.init(e(),t.value)}),(n,o)=>null}}),Zy=["id"],Xy=qt.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{tokenExIframe:e,initializeTokenExCardOnlyIframe:n}=Ya(r.args);async function o(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return qt.watchEffect(()=>{n({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>(qt.openBlock(),qt.createElementBlock("div",{id:qt.unref(ro)},null,8,Zy))}}),Jy={style:{position:"relative",height:"100%"}},Qy={style:{position:"relative",zIndex:10,height:"100%"}},ql=qt.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(r){const{onSuccess:t}=r.args;function e(){const l=us(r.args);return{...r.args,walletPubkey:l,transaction:void 0,routePrefix:"form",route:`/${r.route}/${r.args.merchantId}`}}function n(){return{...ls(r.args),handleHeightChange:r.args.handleHeightChange}}const o=qt.ref(.8),i=qt.ref("flex"),u=Math.random().toString(16).substring(2);function d({data:l}){try{const v=JSON.parse(l);if("method"in v&&v.method==="loaded"&&(o.value=1,i.value="none"),"method"in v&&v.data.startsWith("ERROR"))return r.args?.onError?.(v.info),!1;if(!("method"in v)||v.method!=="getToken")return}catch{return}t?.(l)}return(l,v)=>(qt.openBlock(),qt.createElementBlock("div",Jy,[qt.createElementVNode("div",{style:qt.normalizeStyle({backgroundColor:r.args.color,display:r.overlayDisplayOverride??i.value,opacity:o.value,alignItems:r.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[qt.renderSlot(l.$slots,"default")],4),qt.createElementVNode("div",Qy,[qt.createVNode(ds,{onOnMessage:d,args:{...e(),...n(),handleHeightChangeId:qt.unref(u)}},null,8,["args"])])]))}}),t4={id:"svg-logo",viewBox:"0 0 35 15"},e4={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n4={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r4=["fill"],i4=qt.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(r){const t=r.color==="white"?"#000":"#FFF";return(e,n)=>(qt.openBlock(),qt.createElementBlock("svg",t4,[(qt.openBlock(),qt.createElementBlock("svg",e4,[n[1]||(n[1]=qt.createElementVNode("title",null,"Apple Logo",-1)),qt.createElementVNode("g",n4,[qt.createElementVNode("g",{fill:qt.unref(t)},[...n[0]||(n[0]=[qt.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,r4)])]))]))}}),o4=qt.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>(qt.openBlock(),qt.createBlock(ql,{route:"apple-pay",args:r.args},{default:qt.withCtx(()=>[qt.createVNode(i4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}}),s4={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},a4={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},c4=qt.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(r){return(t,e)=>(qt.openBlock(),qt.createElementBlock(qt.Fragment,null,[r.color==="white"?(qt.openBlock(),qt.createElementBlock("svg",s4,[...e[0]||(e[0]=[qt.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):qt.createCommentVNode("",!0),r.color==="black"?(qt.openBlock(),qt.createElementBlock("svg",a4,[...e[1]||(e[1]=[qt.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):qt.createCommentVNode("",!0)],64))}}),u4=qt.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>(qt.openBlock(),qt.createBlock(ql,{route:"google-pay",args:r.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:qt.withCtx(()=>[qt.createVNode(c4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}});ge.BankingCurrencies=Ul,ge.CARD_TYPE_MAPPING=zl,ge.CardType=di,ge.CoinflowApplePayButton=o4,ge.CoinflowCardNumberInput=Gy,ge.CoinflowCardNumberOnlyInput=Xy,ge.CoinflowCvvInput=jy,ge.CoinflowCvvOnlyInput=qy,ge.CoinflowGooglePayButton=u4,ge.CoinflowIframe=ds,ge.CoinflowPurchase=Wy,ge.CoinflowPurchaseProtection=$y,ge.CoinflowUtils=gr,ge.CoinflowWithdraw=Fy,ge.Currency=Wa,ge.CurrencyToISO4217=yy,ge.EventBus=xy,ge.IFrameMessageMethods=za,ge.MerchantStyle=kc,ge.PaymentMethods=Tc,ge.SettlementType=Ic,ge.ThreeDsChallengePreference=Oc,ge.TokenExCardNumberIframeId=ro,ge.TokenExCvvContainerID=Li,ge.WithdrawCategory=Sc,ge.WithdrawCurrencies=Dl,ge.WithdrawSpeed=Ac,ge.doInitializeCvvOnlyTokenExIframe=Kl,ge.doInitializeTokenExCardOnlyIframe=Yl,ge.doInitializeTokenExIframe=jl,ge.getCurrencyDecimals=Sy,ge.getCustomerName=Oy,ge.getHandlers=ls,ge.getIframeConfig=Gl,ge.getWalletPubkey=us,ge.handleIFrameMessage=Vl,ge.isBankingCurrency=by,ge.isTypedCurrencyCents=Ay,ge.isWithdrawCurrency=wy,ge.paymentMethodLabels=bd,ge.setTokenExScriptTag=Ga,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})});
22
+ visitorId: `).concat(Mt.visitorId,`
23
+ components: `).concat(vt(Ct),"\n```")),[2,Mt]}})})}}}function U(A){var V=A===void 0?{}:A,W=V.delayFallback,it=V.debug,Lt=V.monitoring,Ct=Lt===void 0||Lt;return(0,n.sH)(this,void 0,void 0,function(){return(0,n.YH)(this,function(Mt){switch(Mt.label){case 0:return Ct&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Pt=new XMLHttpRequest;Pt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),Pt.send()}catch(rt){console.error(rt)}}(),[4,Gt(W)];case 1:return Mt.sent(),[2,ee(Rt(lt,{debug:it},[]),it)]}})})}var R={load:U,hashComponents:xt,componentsToDebugString:vt},k=F},526:function(r,t){t.byteLength=function(v){var S=d(v),O=S[0],C=S[1];return 3*(O+C)/4-C},t.toByteArray=function(v){var S,O,C=d(v),N=C[0],B=C[1],M=new o(function(Q,et,ct){return 3*(et+ct)/4-ct}(0,N,B)),F=0,G=B>0?N-4:N;for(O=0;O<G;O+=4)S=n[v.charCodeAt(O)]<<18|n[v.charCodeAt(O+1)]<<12|n[v.charCodeAt(O+2)]<<6|n[v.charCodeAt(O+3)],M[F++]=S>>16&255,M[F++]=S>>8&255,M[F++]=255&S;return B===2&&(S=n[v.charCodeAt(O)]<<2|n[v.charCodeAt(O+1)]>>4,M[F++]=255&S),B===1&&(S=n[v.charCodeAt(O)]<<10|n[v.charCodeAt(O+1)]<<4|n[v.charCodeAt(O+2)]>>2,M[F++]=S>>8&255,M[F++]=255&S),M},t.fromByteArray=function(v){for(var S,O=v.length,C=O%3,N=[],B=16383,M=0,F=O-C;M<F;M+=B)N.push(l(v,M,M+B>F?F:M+B));return C===1?(S=v[O-1],N.push(e[S>>2]+e[S<<4&63]+"==")):C===2&&(S=(v[O-2]<<8)+v[O-1],N.push(e[S>>10]+e[S>>4&63]+e[S<<2&63]+"=")),N.join("")};for(var e=[],n=[],o=typeof Uint8Array<"u"?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)e[u]=i[u],n[i.charCodeAt(u)]=u;function d(v){var S=v.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var O=v.indexOf("=");return O===-1&&(O=S),[O,O===S?0:4-O%4]}function l(v,S,O){for(var C,N,B=[],M=S;M<O;M+=3)C=(v[M]<<16&16711680)+(v[M+1]<<8&65280)+(255&v[M+2]),B.push(e[(N=C)>>18&63]+e[N>>12&63]+e[N>>6&63]+e[63&N]);return B.join("")}n[45]=62,n[95]=63},287:function(r,t,e){const n=e(526),o=e(251),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const u=2147483647;function d(y){if(y>u)throw new RangeError('The value "'+y+'" is invalid for option "size"');const P=new Uint8Array(y);return Object.setPrototypeOf(P,l.prototype),P}function l(y,P,H){if(typeof y=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(y)}return v(y,P,H)}function v(y,P,H){if(typeof y=="string")return function(vt,xt){if(typeof xt=="string"&&xt!==""||(xt="utf8"),!l.isEncoding(xt))throw new TypeError("Unknown encoding: "+xt);const Gt=0|M(vt,xt);let ee=d(Gt);const U=ee.write(vt,xt);return U!==Gt&&(ee=ee.slice(0,U)),ee}(y,P);if(ArrayBuffer.isView(y))return function(vt){if(_e(vt,Uint8Array)){const xt=new Uint8Array(vt);return N(xt.buffer,xt.byteOffset,xt.byteLength)}return C(vt)}(y);if(y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y);if(_e(y,ArrayBuffer)||y&&_e(y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(y,SharedArrayBuffer)||y&&_e(y.buffer,SharedArrayBuffer)))return N(y,P,H);if(typeof y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const lt=y.valueOf&&y.valueOf();if(lt!=null&&lt!==y)return l.from(lt,P,H);const mt=function(vt){if(l.isBuffer(vt)){const xt=0|B(vt.length),Gt=d(xt);return Gt.length===0||vt.copy(Gt,0,0,xt),Gt}return vt.length!==void 0?typeof vt.length!="number"||we(vt.length)?d(0):C(vt):vt.type==="Buffer"&&Array.isArray(vt.data)?C(vt.data):void 0}(y);if(mt)return mt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof y[Symbol.toPrimitive]=="function")return l.from(y[Symbol.toPrimitive]("string"),P,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof y)}function S(y){if(typeof y!="number")throw new TypeError('"size" argument must be of type number');if(y<0)throw new RangeError('The value "'+y+'" is invalid for option "size"')}function O(y){return S(y),d(y<0?0:0|B(y))}function C(y){const P=y.length<0?0:0|B(y.length),H=d(P);for(let lt=0;lt<P;lt+=1)H[lt]=255&y[lt];return H}function N(y,P,H){if(P<0||y.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(y.byteLength<P+(H||0))throw new RangeError('"length" is outside of buffer bounds');let lt;return lt=P===void 0&&H===void 0?new Uint8Array(y):H===void 0?new Uint8Array(y,P):new Uint8Array(y,P,H),Object.setPrototypeOf(lt,l.prototype),lt}function B(y){if(y>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|y}function M(y,P){if(l.isBuffer(y))return y.length;if(ArrayBuffer.isView(y)||_e(y,ArrayBuffer))return y.byteLength;if(typeof y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof y);const H=y.length,lt=arguments.length>2&&arguments[2]===!0;if(!lt&&H===0)return 0;let mt=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return zt(y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return fe(y).length;default:if(mt)return lt?-1:zt(y).length;P=(""+P).toLowerCase(),mt=!0}}function F(y,P,H){let lt=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(P>>>=0))return"";for(y||(y="utf8");;)switch(y){case"hex":return h(this,P,H);case"utf8":case"utf-8":return gt(this,P,H);case"ascii":return kt(this,P,H);case"latin1":case"binary":return q(this,P,H);case"base64":return At(this,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,P,H);default:if(lt)throw new TypeError("Unknown encoding: "+y);y=(y+"").toLowerCase(),lt=!0}}function G(y,P,H){const lt=y[P];y[P]=y[H],y[H]=lt}function Q(y,P,H,lt,mt){if(y.length===0)return-1;if(typeof H=="string"?(lt=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),we(H=+H)&&(H=mt?0:y.length-1),H<0&&(H=y.length+H),H>=y.length){if(mt)return-1;H=y.length-1}else if(H<0){if(!mt)return-1;H=0}if(typeof P=="string"&&(P=l.from(P,lt)),l.isBuffer(P))return P.length===0?-1:et(y,P,H,lt,mt);if(typeof P=="number")return P&=255,typeof Uint8Array.prototype.indexOf=="function"?mt?Uint8Array.prototype.indexOf.call(y,P,H):Uint8Array.prototype.lastIndexOf.call(y,P,H):et(y,[P],H,lt,mt);throw new TypeError("val must be string, number or Buffer")}function et(y,P,H,lt,mt){let vt,xt=1,Gt=y.length,ee=P.length;if(lt!==void 0&&((lt=String(lt).toLowerCase())==="ucs2"||lt==="ucs-2"||lt==="utf16le"||lt==="utf-16le")){if(y.length<2||P.length<2)return-1;xt=2,Gt/=2,ee/=2,H/=2}function U(R,k){return xt===1?R[k]:R.readUInt16BE(k*xt)}if(mt){let R=-1;for(vt=H;vt<Gt;vt++)if(U(y,vt)===U(P,R===-1?0:vt-R)){if(R===-1&&(R=vt),vt-R+1===ee)return R*xt}else R!==-1&&(vt-=vt-R),R=-1}else for(H+ee>Gt&&(H=Gt-ee),vt=H;vt>=0;vt--){let R=!0;for(let k=0;k<ee;k++)if(U(y,vt+k)!==U(P,k)){R=!1;break}if(R)return vt}return-1}function ct(y,P,H,lt){H=Number(H)||0;const mt=y.length-H;lt?(lt=Number(lt))>mt&&(lt=mt):lt=mt;const vt=P.length;let xt;for(lt>vt/2&&(lt=vt/2),xt=0;xt<lt;++xt){const Gt=parseInt(P.substr(2*xt,2),16);if(we(Gt))return xt;y[H+xt]=Gt}return xt}function ft(y,P,H,lt){return le(zt(P,y.length-H),y,H,lt)}function ot(y,P,H,lt){return le(function(mt){const vt=[];for(let xt=0;xt<mt.length;++xt)vt.push(255&mt.charCodeAt(xt));return vt}(P),y,H,lt)}function bt(y,P,H,lt){return le(fe(P),y,H,lt)}function Rt(y,P,H,lt){return le(function(mt,vt){let xt,Gt,ee;const U=[];for(let R=0;R<mt.length&&!((vt-=2)<0);++R)xt=mt.charCodeAt(R),Gt=xt>>8,ee=xt%256,U.push(ee),U.push(Gt);return U}(P,y.length-H),y,H,lt)}function At(y,P,H){return P===0&&H===y.length?n.fromByteArray(y):n.fromByteArray(y.slice(P,H))}function gt(y,P,H){H=Math.min(y.length,H);const lt=[];let mt=P;for(;mt<H;){const vt=y[mt];let xt=null,Gt=vt>239?4:vt>223?3:vt>191?2:1;if(mt+Gt<=H){let ee,U,R,k;switch(Gt){case 1:vt<128&&(xt=vt);break;case 2:ee=y[mt+1],(192&ee)==128&&(k=(31&vt)<<6|63&ee,k>127&&(xt=k));break;case 3:ee=y[mt+1],U=y[mt+2],(192&ee)==128&&(192&U)==128&&(k=(15&vt)<<12|(63&ee)<<6|63&U,k>2047&&(k<55296||k>57343)&&(xt=k));break;case 4:ee=y[mt+1],U=y[mt+2],R=y[mt+3],(192&ee)==128&&(192&U)==128&&(192&R)==128&&(k=(15&vt)<<18|(63&ee)<<12|(63&U)<<6|63&R,k>65535&&k<1114112&&(xt=k))}}xt===null?(xt=65533,Gt=1):xt>65535&&(xt-=65536,lt.push(xt>>>10&1023|55296),xt=56320|1023&xt),lt.push(xt),mt+=Gt}return function(vt){const xt=vt.length;if(xt<=wt)return String.fromCharCode.apply(String,vt);let Gt="",ee=0;for(;ee<xt;)Gt+=String.fromCharCode.apply(String,vt.slice(ee,ee+=wt));return Gt}(lt)}l.TYPED_ARRAY_SUPPORT=function(){try{const y=new Uint8Array(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,Uint8Array.prototype),Object.setPrototypeOf(y,P),y.foo()===42}catch{return!1}}(),l.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(y,P,H){return v(y,P,H)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(y,P,H){return function(lt,mt,vt){return S(lt),lt<=0?d(lt):mt!==void 0?typeof vt=="string"?d(lt).fill(mt,vt):d(lt).fill(mt):d(lt)}(y,P,H)},l.allocUnsafe=function(y){return O(y)},l.allocUnsafeSlow=function(y){return O(y)},l.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==l.prototype},l.compare=function(y,P){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),_e(P,Uint8Array)&&(P=l.from(P,P.offset,P.byteLength)),!l.isBuffer(y)||!l.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===P)return 0;let H=y.length,lt=P.length;for(let mt=0,vt=Math.min(H,lt);mt<vt;++mt)if(y[mt]!==P[mt]){H=y[mt],lt=P[mt];break}return H<lt?-1:lt<H?1:0},l.isEncoding=function(y){switch(String(y).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(y,P){if(!Array.isArray(y))throw new TypeError('"list" argument must be an Array of Buffers');if(y.length===0)return l.alloc(0);let H;if(P===void 0)for(P=0,H=0;H<y.length;++H)P+=y[H].length;const lt=l.allocUnsafe(P);let mt=0;for(H=0;H<y.length;++H){let vt=y[H];if(_e(vt,Uint8Array))mt+vt.length>lt.length?(l.isBuffer(vt)||(vt=l.from(vt)),vt.copy(lt,mt)):Uint8Array.prototype.set.call(lt,vt,mt);else{if(!l.isBuffer(vt))throw new TypeError('"list" argument must be an Array of Buffers');vt.copy(lt,mt)}mt+=vt.length}return lt},l.byteLength=M,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const y=this.length;if(y%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let P=0;P<y;P+=2)G(this,P,P+1);return this},l.prototype.swap32=function(){const y=this.length;if(y%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let P=0;P<y;P+=4)G(this,P,P+3),G(this,P+1,P+2);return this},l.prototype.swap64=function(){const y=this.length;if(y%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let P=0;P<y;P+=8)G(this,P,P+7),G(this,P+1,P+6),G(this,P+2,P+5),G(this,P+3,P+4);return this},l.prototype.toString=function(){const y=this.length;return y===0?"":arguments.length===0?gt(this,0,y):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(y){if(!l.isBuffer(y))throw new TypeError("Argument must be a Buffer");return this===y||l.compare(this,y)===0},l.prototype.inspect=function(){let y="";const P=t.IS;return y=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(y+=" ... "),"<Buffer "+y+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(y,P,H,lt,mt){if(_e(y,Uint8Array)&&(y=l.from(y,y.offset,y.byteLength)),!l.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(P===void 0&&(P=0),H===void 0&&(H=y?y.length:0),lt===void 0&&(lt=0),mt===void 0&&(mt=this.length),P<0||H>y.length||lt<0||mt>this.length)throw new RangeError("out of range index");if(lt>=mt&&P>=H)return 0;if(lt>=mt)return-1;if(P>=H)return 1;if(this===y)return 0;let vt=(mt>>>=0)-(lt>>>=0),xt=(H>>>=0)-(P>>>=0);const Gt=Math.min(vt,xt),ee=this.slice(lt,mt),U=y.slice(P,H);for(let R=0;R<Gt;++R)if(ee[R]!==U[R]){vt=ee[R],xt=U[R];break}return vt<xt?-1:xt<vt?1:0},l.prototype.includes=function(y,P,H){return this.indexOf(y,P,H)!==-1},l.prototype.indexOf=function(y,P,H){return Q(this,y,P,H,!0)},l.prototype.lastIndexOf=function(y,P,H){return Q(this,y,P,H,!1)},l.prototype.write=function(y,P,H,lt){if(P===void 0)lt="utf8",H=this.length,P=0;else if(H===void 0&&typeof P=="string")lt=P,H=this.length,P=0;else{if(!isFinite(P))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");P>>>=0,isFinite(H)?(H>>>=0,lt===void 0&&(lt="utf8")):(lt=H,H=void 0)}const mt=this.length-P;if((H===void 0||H>mt)&&(H=mt),y.length>0&&(H<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");lt||(lt="utf8");let vt=!1;for(;;)switch(lt){case"hex":return ct(this,y,P,H);case"utf8":case"utf-8":return ft(this,y,P,H);case"ascii":case"latin1":case"binary":return ot(this,y,P,H);case"base64":return bt(this,y,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,y,P,H);default:if(vt)throw new TypeError("Unknown encoding: "+lt);lt=(""+lt).toLowerCase(),vt=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const wt=4096;function kt(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(127&y[mt]);return lt}function q(y,P,H){let lt="";H=Math.min(y.length,H);for(let mt=P;mt<H;++mt)lt+=String.fromCharCode(y[mt]);return lt}function h(y,P,H){const lt=y.length;(!P||P<0)&&(P=0),(!H||H<0||H>lt)&&(H=lt);let mt="";for(let vt=P;vt<H;++vt)mt+=Ee[y[vt]];return mt}function T(y,P,H){const lt=y.slice(P,H);let mt="";for(let vt=0;vt<lt.length-1;vt+=2)mt+=String.fromCharCode(lt[vt]+256*lt[vt+1]);return mt}function D(y,P,H){if(y%1!=0||y<0)throw new RangeError("offset is not uint");if(y+P>H)throw new RangeError("Trying to access beyond buffer length")}function Z(y,P,H,lt,mt,vt){if(!l.isBuffer(y))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>mt||P<vt)throw new RangeError('"value" argument is out of bounds');if(H+lt>y.length)throw new RangeError("Index out of range")}function j(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt,vt>>=8,y[H++]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,xt>>=8,y[H++]=xt,H}function X(y,P,H,lt,mt){dt(P,lt,mt,y,H,7);let vt=Number(P&BigInt(4294967295));y[H+7]=vt,vt>>=8,y[H+6]=vt,vt>>=8,y[H+5]=vt,vt>>=8,y[H+4]=vt;let xt=Number(P>>BigInt(32)&BigInt(4294967295));return y[H+3]=xt,xt>>=8,y[H+2]=xt,xt>>=8,y[H+1]=xt,xt>>=8,y[H]=xt,H+8}function at(y,P,H,lt,mt,vt){if(H+lt>y.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function K(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,4),o.write(y,P,H,lt,23,4),H+4}function p(y,P,H,lt,mt){return P=+P,H>>>=0,mt||at(y,0,H,8),o.write(y,P,H,lt,52,8),H+8}l.prototype.slice=function(y,P){const H=this.length;(y=~~y)<0?(y+=H)<0&&(y=0):y>H&&(y=H),(P=P===void 0?H:~~P)<0?(P+=H)<0&&(P=0):P>H&&(P=H),P<y&&(P=y);const lt=this.subarray(y,P);return Object.setPrototypeOf(lt,l.prototype),lt},l.prototype.readUintLE=l.prototype.readUIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return lt},l.prototype.readUintBE=l.prototype.readUIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y+--P],mt=1;for(;P>0&&(mt*=256);)lt+=this[y+--P]*mt;return lt},l.prototype.readUint8=l.prototype.readUInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),this[y]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]|this[y+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(y,P){return y>>>=0,P||D(y,2,this.length),this[y]<<8|this[y+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+16777216*this[y+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),16777216*this[y]+(this[y+1]<<16|this[y+2]<<8|this[y+3])},l.prototype.readBigUInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=P+256*this[++y]+65536*this[++y]+this[++y]*2**24,mt=this[++y]+256*this[++y]+65536*this[++y]+H*2**24;return BigInt(lt)+(BigInt(mt)<<BigInt(32))}),l.prototype.readBigUInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=P*2**24+65536*this[++y]+256*this[++y]+this[++y],mt=this[++y]*2**24+65536*this[++y]+256*this[++y]+H;return(BigInt(lt)<<BigInt(32))+BigInt(mt)}),l.prototype.readIntLE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=this[y],mt=1,vt=0;for(;++vt<P&&(mt*=256);)lt+=this[y+vt]*mt;return mt*=128,lt>=mt&&(lt-=Math.pow(2,8*P)),lt},l.prototype.readIntBE=function(y,P,H){y>>>=0,P>>>=0,H||D(y,P,this.length);let lt=P,mt=1,vt=this[y+--lt];for(;lt>0&&(mt*=256);)vt+=this[y+--lt]*mt;return mt*=128,vt>=mt&&(vt-=Math.pow(2,8*P)),vt},l.prototype.readInt8=function(y,P){return y>>>=0,P||D(y,1,this.length),128&this[y]?-1*(255-this[y]+1):this[y]},l.prototype.readInt16LE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y]|this[y+1]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt16BE=function(y,P){y>>>=0,P||D(y,2,this.length);const H=this[y+1]|this[y]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt32LE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},l.prototype.readInt32BE=function(y,P){return y>>>=0,P||D(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},l.prototype.readBigInt64LE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=this[y+4]+256*this[y+5]+65536*this[y+6]+(H<<24);return(BigInt(lt)<<BigInt(32))+BigInt(P+256*this[++y]+65536*this[++y]+this[++y]*2**24)}),l.prototype.readBigInt64BE=je(function(y){_t(y>>>=0,"offset");const P=this[y],H=this[y+7];P!==void 0&&H!==void 0||Dt(y,this.length-8);const lt=(P<<24)+65536*this[++y]+256*this[++y]+this[++y];return(BigInt(lt)<<BigInt(32))+BigInt(this[++y]*2**24+65536*this[++y]+256*this[++y]+H)}),l.prototype.readFloatLE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!0,23,4)},l.prototype.readFloatBE=function(y,P){return y>>>=0,P||D(y,4,this.length),o.read(this,y,!1,23,4)},l.prototype.readDoubleLE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!0,52,8)},l.prototype.readDoubleBE=function(y,P){return y>>>=0,P||D(y,8,this.length),o.read(this,y,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=1,vt=0;for(this[P]=255&y;++vt<H&&(mt*=256);)this[P+vt]=y/mt&255;return P+H},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(y,P,H,lt){y=+y,P>>>=0,H>>>=0,lt||Z(this,y,P,H,Math.pow(2,8*H)-1,0);let mt=H-1,vt=1;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)this[P+mt]=y/vt&255;return P+H},l.prototype.writeUint8=l.prototype.writeUInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,255,0),this[P]=255&y,P+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,65535,0),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P+3]=y>>>24,this[P+2]=y>>>16,this[P+1]=y>>>8,this[P]=255&y,P+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,4294967295,0),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigUInt64LE=je(function(y,P=0){return j(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=je(function(y,P=0){return X(this,y,P,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=0,vt=1,xt=0;for(this[P]=255&y;++mt<H&&(vt*=256);)y<0&&xt===0&&this[P+mt-1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeIntBE=function(y,P,H,lt){if(y=+y,P>>>=0,!lt){const Gt=Math.pow(2,8*H-1);Z(this,y,P,H,Gt-1,-Gt)}let mt=H-1,vt=1,xt=0;for(this[P+mt]=255&y;--mt>=0&&(vt*=256);)y<0&&xt===0&&this[P+mt+1]!==0&&(xt=1),this[P+mt]=(y/vt|0)-xt&255;return P+H},l.prototype.writeInt8=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,1,127,-128),y<0&&(y=255+y+1),this[P]=255&y,P+1},l.prototype.writeInt16LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=255&y,this[P+1]=y>>>8,P+2},l.prototype.writeInt16BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,2,32767,-32768),this[P]=y>>>8,this[P+1]=255&y,P+2},l.prototype.writeInt32LE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),this[P]=255&y,this[P+1]=y>>>8,this[P+2]=y>>>16,this[P+3]=y>>>24,P+4},l.prototype.writeInt32BE=function(y,P,H){return y=+y,P>>>=0,H||Z(this,y,P,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[P]=y>>>24,this[P+1]=y>>>16,this[P+2]=y>>>8,this[P+3]=255&y,P+4},l.prototype.writeBigInt64LE=je(function(y,P=0){return j(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=je(function(y,P=0){return X(this,y,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(y,P,H){return K(this,y,P,!0,H)},l.prototype.writeFloatBE=function(y,P,H){return K(this,y,P,!1,H)},l.prototype.writeDoubleLE=function(y,P,H){return p(this,y,P,!0,H)},l.prototype.writeDoubleBE=function(y,P,H){return p(this,y,P,!1,H)},l.prototype.copy=function(y,P,H,lt){if(!l.isBuffer(y))throw new TypeError("argument should be a Buffer");if(H||(H=0),lt||lt===0||(lt=this.length),P>=y.length&&(P=y.length),P||(P=0),lt>0&&lt<H&&(lt=H),lt===H||y.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(lt<0)throw new RangeError("sourceEnd out of bounds");lt>this.length&&(lt=this.length),y.length-P<lt-H&&(lt=y.length-P+H);const mt=lt-H;return this===y&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,H,lt):Uint8Array.prototype.set.call(y,this.subarray(H,lt),P),mt},l.prototype.fill=function(y,P,H,lt){if(typeof y=="string"){if(typeof P=="string"?(lt=P,P=0,H=this.length):typeof H=="string"&&(lt=H,H=this.length),lt!==void 0&&typeof lt!="string")throw new TypeError("encoding must be a string");if(typeof lt=="string"&&!l.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);if(y.length===1){const vt=y.charCodeAt(0);(lt==="utf8"&&vt<128||lt==="latin1")&&(y=vt)}}else typeof y=="number"?y&=255:typeof y=="boolean"&&(y=Number(y));if(P<0||this.length<P||this.length<H)throw new RangeError("Out of range index");if(H<=P)return this;let mt;if(P>>>=0,H=H===void 0?this.length:H>>>0,y||(y=0),typeof y=="number")for(mt=P;mt<H;++mt)this[mt]=y;else{const vt=l.isBuffer(y)?y:l.from(y,lt),xt=vt.length;if(xt===0)throw new TypeError('The value "'+y+'" is invalid for argument "value"');for(mt=0;mt<H-P;++mt)this[mt+P]=vt[mt%xt]}return this};const E={};function z(y,P,H){E[y]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${y}]`,this.stack,delete this.name}get code(){return y}set code(lt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lt,writable:!0})}toString(){return`${this.name} [${y}]: ${this.message}`}}}function $(y){let P="",H=y.length;const lt=y[0]==="-"?1:0;for(;H>=lt+4;H-=3)P=`_${y.slice(H-3,H)}${P}`;return`${y.slice(0,H)}${P}`}function dt(y,P,H,lt,mt,vt){if(y>H||y<P){const xt=typeof P=="bigint"?"n":"";let Gt;throw Gt=P===0||P===BigInt(0)?`>= 0${xt} and < 2${xt} ** ${8*(vt+1)}${xt}`:`>= -(2${xt} ** ${8*(vt+1)-1}${xt}) and < 2 ** ${8*(vt+1)-1}${xt}`,new E.ERR_OUT_OF_RANGE("value",Gt,y)}(function(xt,Gt,ee){_t(Gt,"offset"),xt[Gt]!==void 0&&xt[Gt+ee]!==void 0||Dt(Gt,xt.length-(ee+1))})(lt,mt,vt)}function _t(y,P){if(typeof y!="number")throw new E.ERR_INVALID_ARG_TYPE(P,"number",y)}function Dt(y,P,H){throw Math.floor(y)!==y?(_t(y,H),new E.ERR_OUT_OF_RANGE("offset","an integer",y)):P<0?new E.ERR_BUFFER_OUT_OF_BOUNDS:new E.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,y)}z("ERR_BUFFER_OUT_OF_BOUNDS",function(y){return y?`${y} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),z("ERR_INVALID_ARG_TYPE",function(y,P){return`The "${y}" argument must be of type number. Received type ${typeof P}`},TypeError),z("ERR_OUT_OF_RANGE",function(y,P,H){let lt=`The value of "${y}" is out of range.`,mt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?mt=$(String(H)):typeof H=="bigint"&&(mt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(mt=$(mt)),mt+="n"),lt+=` It must be ${P}. Received ${mt}`,lt},RangeError);const Yt=/[^+/0-9A-Za-z-_]/g;function zt(y,P){let H;P=P||1/0;const lt=y.length;let mt=null;const vt=[];for(let xt=0;xt<lt;++xt){if(H=y.charCodeAt(xt),H>55295&&H<57344){if(!mt){if(H>56319){(P-=3)>-1&&vt.push(239,191,189);continue}if(xt+1===lt){(P-=3)>-1&&vt.push(239,191,189);continue}mt=H;continue}if(H<56320){(P-=3)>-1&&vt.push(239,191,189),mt=H;continue}H=65536+(mt-55296<<10|H-56320)}else mt&&(P-=3)>-1&&vt.push(239,191,189);if(mt=null,H<128){if((P-=1)<0)break;vt.push(H)}else if(H<2048){if((P-=2)<0)break;vt.push(H>>6|192,63&H|128)}else if(H<65536){if((P-=3)<0)break;vt.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;vt.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return vt}function fe(y){return n.toByteArray(function(P){if((P=(P=P.split("=")[0]).trim().replace(Yt,"")).length<2)return"";for(;P.length%4!=0;)P+="=";return P}(y))}function le(y,P,H,lt){let mt;for(mt=0;mt<lt&&!(mt+H>=P.length||mt>=y.length);++mt)P[mt+H]=y[mt];return mt}function _e(y,P){return y instanceof P||y!=null&&y.constructor!=null&&y.constructor.name!=null&&y.constructor.name===P.name}function we(y){return y!=y}const Ee=function(){const y="0123456789abcdef",P=new Array(256);for(let H=0;H<16;++H){const lt=16*H;for(let mt=0;mt<16;++mt)P[lt+mt]=y[H]+y[mt]}return P}();function je(y){return typeof BigInt>"u"?xe:y}function xe(){throw new Error("BigInt not supported")}},527:function(r,t,e){var n=e(188),o=e(539),i=e(682);for(var u in n)n[u]=i(d(u));function d(l){return n[l]}n._api=o,r.exports=n},539:function(r){r.exports={letConst:{passes:"'use strict'; let a; const b = 2;"},letLoop:{passes:"'use strict'; for(let i in {}){}; for(let i=0;;){break}"},constLoop:{passes:"'use strict'; for(const i in {}){}; for (const i=0;;){break}"},defaultParameter:{passes:"'use strict'; function a(b=2){}"},spreadRest:{passes:"'use strict'; var a = [1,2]; +function b(...c){}(...a);"},destructuring:{passes:"'use strict'; var a = [1,2], [b,c] = a, d = {e:1,f:2}, {e:E,f} = d;"},parameterDestructuring:{passes:"'use strict'; function a({b,c}){}"},templateString:{passes:"'use strict'; var a = 1, b = `c${a}d`;"},forOf:{passes:"'use strict'; for (var a of [1]) {}"},arrow:{passes:"'use strict'; var a = () => {};"},generator:{passes:"'use strict'; function *a(){ yield; }"},conciseMethodProperty:{passes:"'use strict'; var a = 1, b = { c(){}, a };"},computedProperty:{passes:"'use strict'; var a = 1, b = { ['x'+a]: 2 };"},moduleExport:{passes:"'use strict'; export var a = 1;"},moduleImport:{passes:"'use strict'; import {a} from 'b';"},classes:{passes:"'use strict'; class Foo {}; class Bar extends Foo {};"},numericLiteral:{passes:"'use strict'; var a = 0o1, b = 0b10;"},oldOctalLiteral:{fails:"'use strict'; var a = 01;"},symbol:{passes:"'use strict'; var a = Symbol('b');"},symbolImplicitCoercion:{dependencies:["symbol"],fails:"'use strict'; var a = Symbol('a'); a + '';"},unicodeEscape:{passes:"'use strict'; var a = '\\u{20BB7}';"},unicodeIdentifier:{passes:"'use strict'; var \\u{20BB7};"},unicodeRegExp:{passes:"'use strict'; var a = /\\u{20BB7}/u;"},stickyRegExp:{passes:"'use strict'; var a = /b/y;"},letTDZ:{dependencies:["letConst"],fails:"'use strict'; a = 1; let a;"},letLoopScope:{dependencies:["letLoop","forOf"],passes:"'use strict'; var x=[],i=0;for(let i=2;i<3;i++){x.push(function(){return i})};for(let i in {3:0}){x.push(function(){return i})};for(let i of [4]){x.push(function(){return i})};if(x[0]()*x[1]()*x[2]()!=24) throw 0;"},constRedef:{dependencies:["letConst"],fails:"'use strict'; const a = 1; a = 2;"},objectProto:{passes:"'use strict'; var a = { b: 2 }, c = { __proto__: a }; if (c.b !== 2) throw 0;"},objectSuper:{passes:"'use strict'; var a = { b: 2 }, c = { d() { return super.b; } }; Object.setPrototypeOf(c,a); if (c.d() !== 2) throw 0;"},extendNatives:{dependencies:["class"],passes:"'use strict'; class Foo extends Array { }; var a = new Foo(); a.push(1,2,3); if (a.length !== 3) throw 0;"},TCO:{passes:"'use strict'; +function a(b){ if (b<6E4) return a(b+1); }(0);"},functionNameInference:{passes:"'use strict'; var a = { b: function(){} }; if (a.b.name != 'b') throw 0;"},ObjectStatics:{is:"'use strict'; return ('getOwnPropertySymbols' in Object) && ('assign' in Object) && ('is' in Object);"},ArrayStatics:{is:"'use strict'; return ('from' in Array) && ('of' in Array);"},ArrayMethods:{is:"'use strict'; return ('fill' in Array.prototype) && ('find' in Array.prototype) && ('findIndex' in Array.prototype) && ('entries' in Array.prototype) && ('keys' in Array.prototype) && ('values' in Array.prototype);"},TypedArrays:{is:"'use strict'; return ('ArrayBuffer' in global) && ('Int8Array' in global) && ('Uint8Array' in global) && ('Int32Array' in global) && ('Float64Array' in global);"},TypedArrayStatics:{dependencies:["TypedArrays"],is:"'use strict'; return ('from' in Uint32Array) && ('of' in Uint32Array);"},TypedArrayMethods:{dependencies:["TypedArrays"],is:"'use strict'; var x = new Int8Array(1); return ('slice' in x) && ('join' in x) && ('map' in x) && ('forEach' in x);"},StringMethods:{is:"'use strict'; return ('includes' in String.prototype) && ('repeat' in String.prototype);"},NumberStatics:{is:"'use strict'; return ('isNaN' in Number) && ('isInteger' in Number);"},MathStatics:{is:"'use strict'; return ('hypot' in Math) && ('acosh' in Math) && ('imul' in Math);"},collections:{is:"'use strict'; return ('Map' in global) && ('Set' in global) && ('WeakMap' in global) && ('WeakSet' in global);"},Proxy:{is:"'use strict'; return ('Proxy' in global);"},Promise:{is:"'use strict'; return ('Promise' in global);"},Reflect:{is:"'use strict'; return ('Reflect' in global);"}}},188:function(r){r.exports=new function(){this.letConst="letConst",this.letTDZ="letTDZ",this.constRedef="constRedef",this.destructuring="destructuring",this.spreadRest="spreadRest",this.forOf="forOf",this.collections="collections",this.symbol="symbol",this.Symbol=this.symbol,this.symbolImplicitCoercion="symbolImplicitCoercion",this.numericLiteral="numericLiteral",this.oldOctalLiteral="oldOctalLiteral",this.MathStatics="MathStatics",this.mathStatics=this.MathStatics,this.NumberStatics="NumberStatics",this.numberStatics=this.NumberStatics,this.StringMethods="StringMethods",this.stringMethods=this.StringMethods,this.unicodeEscape="unicodeEscape",this.unicodeIdentifier="unicodeIdentifier",this.unicodeRegExp="unicodeRegExp",this.stickyRegExp="stickyRegExp",this.templateString="templateString",this.arrow="arrow",this.defaultParameter="defaultParameter",this.parameterDestructuring="parameterDestructuring",this.functionNameInference="functionNameInference",this.TCO="TCO",this.tco=this.TCO,this.ArrayMethods="ArrayMethods",this.arrayMethods=this.ArrayMethods,this.ArrayStatics="ArrayStatics",this.arrayStatics=this.ArrayStatics,this.TypedArrayMethods="TypedArrayMethods",this.typedArrayMethods=this.TypedArrayMethods,this.TypedArrayStatics="TypedArrayStatics",this.typedArrayStatics=this.TypedArrayStatics,this.TypedArrays="TypedArrays",this.typedArrays=this.TypedArrays,this.objectProto="objectProto",this.ObjectStatics="ObjectStatics",this.objectStatics=this.ObjectStatics,this.computedProperty="computedProperty",this.conciseMethodProperty="conciseMethodProperty",this.Proxy="Proxy",this.proxy=this.Proxy,this.Reflect="Reflect",this.reflect=this.Reflect,this.generator="generator",this.Promise="Promise",this.promise=this.Promise,this.classes="classes",this.class=this.classes,this.objectSuper="objectSuper",this.extendNatives="extendNatives",this.moduleExport="moduleExport",this.moduleImport="moduleImport"}},682:function(r,t,e){var n=e(539),o={};function i(l){try{return d(l),!0}catch{return!1}}function u(l){try{return d(l)}catch{return!1}}function d(l){return new Function(l)()}o._api=n,r.exports=function l(v){if(v==="class"&&(v="classes"),o._api[v].dependencies){for(var S=0;S<o._api[v].dependencies.length;S++)if(l(o._api[v].dependencies[S])===!1)return!1}return o._api[v].passes?i(o._api[v].passes):o._api[v].fails?!i(o._api[v].fails):o._api[v].is?u(o._api[v].is):o._api[v].not?!u(o._api[v].not):void 0}},251:function(r,t){t.read=function(e,n,o,i,u){var d,l,v=8*u-i-1,S=(1<<v)-1,O=S>>1,C=-7,N=o?u-1:0,B=o?-1:1,M=e[n+N];for(N+=B,d=M&(1<<-C)-1,M>>=-C,C+=v;C>0;d=256*d+e[n+N],N+=B,C-=8);for(l=d&(1<<-C)-1,d>>=-C,C+=i;C>0;l=256*l+e[n+N],N+=B,C-=8);if(d===0)d=1-O;else{if(d===S)return l?NaN:1/0*(M?-1:1);l+=Math.pow(2,i),d-=O}return(M?-1:1)*l*Math.pow(2,d-i)},t.write=function(e,n,o,i,u,d){var l,v,S,O=8*d-u-1,C=(1<<O)-1,N=C>>1,B=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=i?0:d-1,F=i?1:-1,G=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(v=isNaN(n)?1:0,l=C):(l=Math.floor(Math.log(n)/Math.LN2),n*(S=Math.pow(2,-l))<1&&(l--,S*=2),(n+=l+N>=1?B/S:B*Math.pow(2,1-N))*S>=2&&(l++,S/=2),l+N>=C?(v=0,l=C):l+N>=1?(v=(n*S-1)*Math.pow(2,u),l+=N):(v=n*Math.pow(2,N-1)*Math.pow(2,u),l=0));u>=8;e[o+M]=255&v,M+=F,v/=256,u-=8);for(l=l<<u|v,O+=u;O>0;e[o+M]=255&l,M+=F,l/=256,O-=8);e[o+M-F]|=128*G}},943:function(r){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,u=0,d=0,l="";i=n.charAt(d++);~i&&(o=u%4?64*o+i:i,u++%4)?l+=String.fromCharCode(255&o>>(-2*u&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return l}},863:function(r,t,e){var n=e(943);r.exports=function(o){var i=o.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw"Illegal base64url string!"}try{return function(u){return decodeURIComponent(n(u).replace(/(.)/g,function(d,l){var v=l.charCodeAt(0).toString(16).toUpperCase();return v.length<2&&(v="0"+v),"%"+v}))}(i)}catch{return n(i)}}},127:function(r,t,e){var n=e(863);function o(i){this.message=i}o.prototype=new Error,o.prototype.name="InvalidTokenError",r.exports=function(i,u){if(typeof i!="string")throw new o("Invalid token specified");var d=(u=u||{}).header===!0?0:1;try{return JSON.parse(n(i.split(".")[d]))}catch(l){throw new o("Invalid token specified: "+l.message)}},r.exports.InvalidTokenError=o},471:function(r){for(var t=[],e=0;e<256;++e)t[e]=(e+256).toString(16).substr(1);r.exports=function(n,o){var i=o||0,u=t;return[u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],"-",u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]],u[n[i++]]].join("")}},814:function(r){var t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(t){var e=new Uint8Array(16);r.exports=function(){return t(e),e}}else{var n=new Array(16);r.exports=function(){for(var o,i=0;i<16;i++)3&i||(o=4294967296*Math.random()),n[i]=o>>>((3&i)<<3)&255;return n}}},550:function(r,t,e){var n=e(814),o=e(471);r.exports=function(i,u,d){var l=u&&d||0;typeof i=="string"&&(u=i==="binary"?new Array(16):null,i=null);var v=(i=i||{}).random||(i.rng||n)();if(v[6]=15&v[6]|64,v[8]=63&v[8]|128,u)for(var S=0;S<16;++S)u[l+S]=v[S];return u||o(v)}},723:function(r){r.exports={version:"1.1.90",sdkApiVersion:"1.0.0",sdkClientType:"web",headers:{sdkClientVersion:"x-nsure-sdk-client-version",sdkApiVersion:"x-nsure-sdk-api-version",sdkClientType:"x-nsure-sdk-client-type",appId:"x-nsure-app-id",sessionId:"x-nsure-session-id",partnerId:"x-nsure-partner-id",appContextId:"x-nsure-app-context-id"},serverUrl:"https://sdk-service.nsureapi.com",storageIframeUrl:"https://sdk.nsureapi.com/sdkIframe.html",coreConfigFileUrl:"https://sdk.nsureapi.com/core-config/config.json",errorServerUrl:"https://sdk-error-manager-service.nsureapi.com",type:"prod"}},616:function(r,t,e){var n=e(287).hp;r.exports={toArray:function(o,i){if(!o||o.length!==36)return o;for(var u="",d=i?"0":"1",l=0;l<36;l+=1)u+=l>=26&&l<30?d:o[l];var v=function(C){for(var N=255,B=255,M=0,F=C.length;F;){var G=F>20?20:F;F-=G;do B+=N+=C[M++];while(--G);N=(255&N)+(N>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(N=(255&N)+(N>>8))).toString(16)}(n.from(u));if(v){var S="";if(v.length===4)S+=v;else if(v.length<4){for(var O=0;O<4-v.length;O+=1)S+=d;S+=v}else S+=v.slice(-4)}return u.substring(0,26)+S+u.substring(26+S.length)}}},108:function(r){function t(){this.listeners={}}t.prototype.addEventListener=function(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)},t.prototype.removeEventListener=function(e,n){if(e in this.listeners){for(var o=this.listeners[e],i=0,u=o.length;i<u;i++)if(o[i]===n)return void o.splice(i,1)}},t.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var n=this.listeners[e.type].slice(),o=0,i=n.length;o<i;o++)n[o].call(this,e);return!e.defaultPrevented},r.exports=t},1:function(r){var t=null,e=null,n=0;function o(i,u){return encodeURIComponent(i)+"="+encodeURIComponent(u)}r.exports={init:function(i,u){t=i.errorServerUrl+"/reportSdkMsg",e=u.appId,n=typeof u.logMessageRate=="number"?u.logMessageRate:100},send:function(i){if(t&&!(100*Math.random()>n)){var u=t;u+="?"+o("appId",e),u+="&"+o("msg",JSON.stringify(i));var d=new Image;d.onerror=function(){},d.src=u}}}},611:function(r){var t=function(){function e(o,i){this.method=o,this.url=i,this.headers={},this.data=null,this.timeout=1e4}e.prototype.set=function(o,i){if(typeof o=="object")for(var u in o)o.hasOwnProperty(u)&&(this.headers[u]=o[u]);else this.headers[o]=i;return this},e.prototype.send=function(o){return this.data=o,this},e.prototype.timeout=function(o){return this.timeout=o,this},e.prototype.end=function(o){var i=this,u={method:this.method,headers:this.headers};function d(C,N){return{ok:!1,status:N?N.status:400,response:C instanceof Error?C.message:C}}if(this.data&&(u.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,v=fetch(this.url,u).then(function(C){if(!C.ok)throw{response:C,message:C.statusText||"HTTP error "+C.status};return function(N){var B=N.headers.get("content-type");return B&&B.includes("application/json")?N.json().then(function(M){return{ok:N.ok,status:N.status,body:M}}):N.text().then(function(M){return{ok:N.ok,status:N.status,body:M}})}(C)}),S=new Promise(function(C,N){l=setTimeout(function(){N(new Error("Request timeout"))},i.timeout)});Promise.race([v,S]).then(function(C){clearTimeout(l),C.ok?o(null,C):o(d(C.response,C))}).catch(function(C){clearTimeout(l),o(d(C.message,C&&C.response))})}else{var O=new XMLHttpRequest;O.open(this.method,this.url,!0),Object.keys(this.headers).forEach(function(C){O.setRequestHeader(C,i.headers[C])}),O.timeout=this.timeout,O.onload=function(){var C={ok:O.status>=200&&O.status<300,status:O.status,body:O.responseText};try{C.body=JSON.parse(O.responseText)}catch{}C.ok?o(null,C):o(d("HTTP error "+O.status,C))},O.onerror=function(){o(d("Error",{status:400}))},O.ontimeout=function(){o(d("Timeout",{status:408}))},O.send(this.data?JSON.stringify(this.data):null)}};var n={};return["get","post","put","delete"].forEach(function(o){n[o]=function(i){return new e(o,i)}}),n}();r.exports=t},776:function(r,t,e){var n,o,i=e(611),u=e(723),d=e(884),l=u.serverUrl;function v(){n=n||{},o!==void 0&&(n[u.headers.sessionId]=o);var S={Accept:"application/json","Content-Type":"application/json"};return Object.keys(n).forEach(function(O){n[O]!==void 0&&(S[O]=n[O])}),S}r.exports={setSessionId:function(S){o=S},makeRequest:function(S,O){var C=S.path,N=S.data,B=S.method;(function M(F){i[B](F+"/"+C).set(v()).send(N).end(function(G,Q){if(G){if(F!==u.serverUrl)return void M(u.serverUrl);d.isFunction(O)&&O({ok:!1,status:G.status,response:G.response})}else d.isFunction(O)&&O(null,{ok:Q.ok,status:Q.status,response:Q.body})})})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:v,init:function(S,O){(function(C){n=C})(S),O.eventsReportUrl&&typeof O.eventsReportUrl=="string"&&(l=d.normalizePath(O.eventsReportUrl))}}},13:function(r,t,e){var n,o=e(723),i="getItem";function u(l,v){l&&l.contentWindow.postMessage(v,"*")}function d(l,v,S){l.removeEventListener?l.removeEventListener(v,S,!1):l.attachEvent&&l.detachEvent("on"+v,S)}r.exports={init:function(l){var v,S=(v=!1,function(){v||(v=!0,l())});(n=document.createElement("iframe")).id="storageIframe",n.width=n.height=n.frameBorder=0,n.style.display="none",n.setAttribute("src",o.storageIframeUrl),n.onload=S,n.onerror=S,document.body.appendChild(n),window.setTimeout(S,1e4)},getKey:function(l,v){var S,O,C,N,B,M;n||v(),S=window,O="message",N=function F(G){if(G.data&&typeof G.data=="string")try{var Q=JSON.parse(G.data);if(Q.command===i){var et=Q.response;d(window,"message",F),v(et)}}catch{d(window,"message",F),v()}},B=v,M=!1,window.setTimeout(function(){M||(M=!0,B())},5e3),C=function(F){M||(M=!0,N(F))},S.addEventListener?S.addEventListener(O,C,!1):S.attachEvent&&S.attachEvent("on"+O,C),u(n,JSON.stringify({command:i,key:l}))},setKey:function(l,v){u(n,JSON.stringify({command:"setItem",key:l,value:v}))},cleanup:function(){n&&n.parentElement&&n.parentElement.removeChild&&(n.parentElement.removeChild(n),n=null)}}},528:function(r){var t,e={setItem:function(l,v){this[l]=v},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function n(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function o(){return t===void 0&&(t=n()),t?localStorage:e}function i(l,v){o().setItem(l,v)}function u(l){return o().getItem(l)}function d(l){return o().removeItem(l)}r.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:i,getItem:u,getBackwardCompatabilityItem:function(l,v){var S=u(l);return!S&&v&&(S=u(v))&&(i(l,S),d(v)),S},removeItem:d,hasAccessToLocalStorage:n,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return e.getItem(l)}},setSessionItem:function(l,v){try{return sessionStorage.setItem(l,v)}catch{return e.setItem(l,v)}}}},884:function(r){var t="nsure-app-cid";function e(n){var o=n;return o&&o.charAt(o.length-1)==="/"&&(o=o.slice(0,-1)),o&&!/^https?:\/\//i.test(o)&&(o="https://"+o),o}r.exports={isFunction:function(n){return typeof n=="function"},loadScript:function(n,o){var i=!1,u=document.createElement("script");function d(){i||(i=!0,o())}u.onload=d,u.onreadystatechange=function(){i||u.readyState!=="complete"||d()},u.onerror=function(){i||(i=!0,o("Error loading script"))},u.src=n,document.body.appendChild(u)},loadImage:function(n){var o=document.createElement("img");o.src=n,o.style.height=0,o.style.width=0,o.style.display="none",o.style.visibility="hidden",document.body.appendChild(o)},randomInt:function(n,o){var i,u=o-n+1;return Math.floor(((i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?i(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*u+n)},isValidDate:function(n){return n instanceof Date&&!isNaN(n)},getAppContextId:function(){try{var n=sessionStorage.getItem(t);n?sessionStorage.removeItem(t):n=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(o=n,function(){try{sessionStorage.setItem(t,o)}catch{}}))}catch{n=0}var o;return n},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:e,getConfigBaseUrls:function(n,o){var i=null;if(typeof n.configBaseUrl=="string"&&n.configBaseUrl.length>0){var u=o.coreConfigFileUrl.indexOf("/core-config/"),d=u>0?o.coreConfigFileUrl.substring(u):"/core-config/config.json";i=e(n.configBaseUrl)+d}return{mainConfigBaseUrl:i||o.coreConfigFileUrl,altConfigBaseUrl:i===o.coreConfigFileUrl?null:o.coreConfigFileUrl}}}},543:function(r){var t="f8ad0f9b-",e="ns_install_reported",n=t+e,o=t+"ns_reportedFpInSession";r.exports={webType:"Web",oldInstallEventReportedKeyName:e,installEventReportedKeyName:n,fingerprintReportedInSessionKey:o,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(r){r.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(r){r.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(r,t,e){var n=e(723),o=e(776),i=e(387),u=e(733),d=e(472),l=e(376),v=e(120),S=e(142),O=e(636),C=e(496),N=e(1),B=e(336);r.exports={init:function(M){var F=M.deviceId,G=M.linkedDevices,Q={};Q[n.headers.appId]=M.appId,Q[n.headers.partnerId]=M.partnerId,Q[n.headers.sdkClientVersion]=n.version,Q[n.headers.sdkApiVersion]=n.sdkApiVersion,Q[n.headers.sdkClientType]=n.sdkClientType,Q[n.headers.appContextId]=M.appContextId,o.init(Q,M),i.addMetadataProps(M),N.init(n,M),i.reportInitEvent(F),C.init(M),B.init(M),u.installSdk(M,function(et){et||l.manageFingerprint(F,!0)}),u.reportLinkDevices(F,G),d.manageSessionId({deviceId:F,initModuleConfig:M}),v.manageDomEvents(F),S.manageKeepAlive({deviceId:F}),O.reportVersionUpgrade({deviceId:F,initModuleVersion:M.clientVersion,coreModuleVersion:n.version})}}},143:function(r,t,e){var n=e(108),o=e(23).oneMinute,i=e(298);function u(){n.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function d(l){n.call(this),this.activityServiceId=l}u.prototype=Object.create(n.prototype),u.prototype.constructor=u,u.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.addEventListener(v,l.activityEvents[v]=function(){l.activityHandler()})})},u.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(i.activityEvent))},u.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach(function(v){document.removeEventListener(v,l.activityEvents[v])})},d.prototype=Object.create(n.prototype),d.prototype.constructor=d,d.prototype.trackInactivity=function(l){var v,S=new u,O=this,C=!1;function N(){C||(clearTimeout(v),setTimeout(function(){O.trackInactivity(l)},o))}S.addEventListener(i.activityEvent,N),S.observe(),v=setTimeout(function(){C=!0,S.stopActivityListeners(),S.removeEventListener(i.activityEvent,N),O.dispatchEvent(new Event(i.inactivityEvent))},l)},r.exports=d},496:function(r,t,e){var n,o=e(120),i=e(776),u=e(376),d=e(23),l=e(723),v=e(38),S=e(543),O=e(336),C=e(884),N=[],B=[],M=null,F=6e4,G=5e3,Q=null,et=C.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),ct=0,ft=null,ot=Date.now(),bt=0,Rt=null,At=!1,gt=!1,wt=!1,kt=!1,q=[];function h(){B=N,N=[],Z(),T()}function T(){M&&clearTimeout(M),M=setTimeout(h,F)}function D(){var $={device:{id:n,type:S.webType},metadata:{clientRequestId:d.getClientRequestId()}};return Q&&Q.fingerprintHash&&($.device.fingerprint=Q.fingerprintHash),$}function Z($){if(B.length)if(Q!==null){var dt=Object.assign(D(),{events:B});i.makeRequest({path:"bulk",data:dt,method:i.methods.post},$)}else u.getFingerprint(function(_t){Q=_t,Z($)})}function j($,dt){return N.push($),dt?new Blob([JSON.stringify(N)]).size:0}function X(){if(wt){var $=Date.now();$-ot>G&&(j({i:{dr:$-ot,ac:$-ot-bt},metadata:{type:v.I,timestamp:$}},!1),bt=0)}}function at(){T(),B=N,N=[],Z()}function K($){X(),function(){if(kt&&Math.random()<.25){for(var dt=[],_t=0;_t<3;_t++)dt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Dt=v.DY+dt[0],Yt={metadata:{type:Dt,timestamp:Date.now()}};Yt[Dt]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Yt[Dt][dt.join("")]=Math.floor(1e3*Math.random())+1,j(Yt,!1)}}(),function(dt){O.triggerEventOnEvent(dt)}($),j(Object.assign({metadata:{type:$.eventType,timestamp:Date.now()}},$.payload),!0)>32768&&at(),$.eventType!==v.C&&$.eventType!==v.S&&$.eventType!==v.KD&&$.eventType!==v.MM||(ot=Date.now())}function p(){At&&at()}function E($){return window.addEventListener($,p,!0),function(){window.removeEventListener($,p,!0)}}function z($,dt){return!$||$.indexOf(dt)>-1}r.exports={init:function($){if(!At){var dt=$.bulkEvents&&$.bulkEvents.mask;if(!Array.isArray(dt)||dt.length!==0){var _t=$.bulkEvents&&typeof $.bulkEvents.pct=="number"?$.bulkEvents.pct:100;if(!(_t===0||Math.random()>_t/100)){var Dt=$.bulkEvents&&$.bulkEvents.appMaskInclude;if(!Array.isArray(Dt)||Dt.indexOf($.appId)!==-1){var Yt=$.bulkEvents&&$.bulkEvents.appMaskExclude;if(!Array.isArray(Yt)||Yt.indexOf($.appId)===-1){var zt=z(dt,v.C),fe=z(dt,v.KD),le=z(dt,v.S),_e=z(dt,v.PC),we=z(dt,v.MM),Ee=z(dt,v.PL),je=z(dt,v.I),xe=z(dt,v.DY),y=je||Ee;n=$.deviceId,T(),zt&&q.push(o.setClickListener(K)),fe&&q.push(o.setKeyDownListener(K)),le&&q.push(o.setScrollListener(K)),_e&&q.push(o.setPageChangeListener(K)),we&&q.push(o.setMouseMoveListener(K)),gt=Ee,wt=je,kt=xe,y&&q.push(function(){function P(){if(document.hidden)ft=Date.now(),Rt=ft;else if(ft!==null){var H=Date.now();ct+=H-ft,ft=null,bt+=H-Rt}}return document.addEventListener("visibilitychange",P),function(){document.removeEventListener("visibilitychange",P)}}()),q.push(function(){function P(){if(X(),function(){if(gt){var xt=Date.now(),Gt=xt-et;j({metadata:{type:v.PL,timestamp:xt},pl:{dr:Gt,ac:Gt-ct}},!1)}}(),navigator.sendBeacon&&window.URLSearchParams){if(N.length>0){var H=i.getRequestHeaders(),lt=Object.assign(D(),{events:N}),mt=new URLSearchParams;mt.append("data",JSON.stringify(lt)),mt.append("headers",JSON.stringify(H));var vt=new Blob([mt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",vt)}}else B=N,Z()}return window.addEventListener("beforeunload",P),function(){window.removeEventListener("beforeunload",P)}}()),At=!0,N=[],zt||q.push(E("click")),q.push(E("paste"))}}}}}},cleanup:function(){At&&(M&&clearTimeout(M),q.forEach(function($){$()}),q=[],At=!1)},trigger:p}},120:function(r,t,e){var n=e(709),o=e(38),i=e(23);function u(){return"ontouchstart"in window}function d(l){var v={};if(l.nodeName){v.name=l.nodeName,l.className&&(v.className=String(l.className)),l.id&&(v.id=l.id);var S=l.getAttribute&&l.getAttribute("type");S&&(v.type=S),l.placeholder&&(v.placeholder=l.placeholder)}return v}r.exports={manageDomEvents:function(l){n.managePasteEvents(l)},getDomProperties:d,setClickListener:function(l){function v(O){var C={eventType:o.C,payload:{c:{d:d(O.target)}}},N=O.target.textContent||O.target.innerText||"";if(N){var B=i.transformDomNodeContent(N);C.payload[o.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(C)}var S=u()?"touchend":"click";return window.addEventListener(S,v,!0),function(){window.removeEventListener(S,v,!0)}},setKeyDownListener:function(l){function v(S){l({eventType:o.KD,payload:{kd:{d:d(S.target),k:S.key||S.code||"na"}}})}return window.addEventListener("keydown",v,!0),function(){window.removeEventListener("keydown",v,!0)}},setScrollListener:function(l){var v=null,S=0,O=0,C={x:0,y:0},N=0,B=0,M=0,F=0,G=0,Q=0;function et(ft){l({eventType:o.S,payload:{s:{d:d(ft.target),di:{x:C.x,y:C.y},t:B-N,sx:M,sy:F,ex:G,ey:Q}}}),S=0,O=0,C.x=0,C.y=0,v=null,N=0,B=0}function ct(ft){var ot=ft.target.scrollingElement||ft.target;if(ot&&(ot===document&&(ot=document.documentElement),ot instanceof Element)){var bt=ot.getBoundingClientRect(),Rt=-bt.left+ot.scrollLeft,At=-bt.top+ot.scrollTop;v?(clearTimeout(v),B=Date.now(),G=Rt,Q=At):(N=Date.now(),B=N,G=M=Rt,Q=F=At),(C.x||C.y||S||O)&&(C.x+=Math.abs(Rt-S),C.y+=Math.abs(At-O)),S=Rt,O=At,v=setTimeout(et.bind(null,ft),200)}}return window.addEventListener("scroll",ct,!0),function(){v&&clearTimeout(v),window.removeEventListener("scroll",ct,!0)}},setPageChangeListener:function(l){var v,S,O,C=null,N=null,B=0;function M(et){var ct;if(window.URL){var ft=new URL(et,"http://example.com");ct=ft.pathname+ft.hash}else ct=et.indexOf("?")>-1?et.split("?")[0]:et.indexOf("#")>-1?et.split("#")[0]:et;if(ct!==C){var ot=Date.now()-O;l({eventType:o.PC,payload:{pc:{f:C,t:ct,dr:ot,ac:ot-B}}}),C=ct,O=Date.now()}}function F(){if(document.hidden)N=Date.now();else if(N!==null){var et=Date.now();B+=et-N,N=null}}function G(et){M(et.newURL)}function Q(){M(window.location.href)}return window.history?(C=window.location.pathname||"/",v=history.pushState,S=history.replaceState,O=Date.now(),window.addEventListener("hashchange",G),window.addEventListener("popstate",Q),history.pushState=function(et,ct,ft){return M(ft),v.apply(history,arguments)},history.replaceState=function(et,ct,ft){return M(ft),S.apply(history,arguments)},document.addEventListener("visibilitychange",F),function(){history.pushState=v,history.replaceState=S,window.removeEventListener("hashchange",G),window.removeEventListener("popstate",Q),document.removeEventListener("visibilitychange",F),C=null,B=0}):function(){}},setMouseMoveListener:function(l){var v=[],S=!1,O=null,C=0,N={x:0,y:0};function B(){v.length!==0&&(l({eventType:o.MM,payload:{mm:{s:v.slice(),l:S,di:N}}}),v=[])}function M(G){var Q,et;G.touches&&G.touches.length>0?(Q=G.touches[0].clientX,et=G.touches[0].clientY):(Q=G.clientX,et=G.clientY),Q!==void 0&&et!==void 0&&(v.length>0&&(N.x+=Math.abs(Q-v[v.length-1][0]),N.y+=Math.abs(et-v[v.length-1][1])),v.push([Q,et]),v.length>1e3&&(S=!0,(C+=2)>=1e3&&(C=2),v.splice(C,1)),O&&clearTimeout(O),O=setTimeout(B,200))}var F=u()?"touchmove":"mousemove";return window.addEventListener(F,M,!0),function(){O&&clearTimeout(O),window.removeEventListener(F,M,!0)}}}},387:function(r,t,e){var n=e(776),o=e(23),i=e(287).hp,u=e(527),d=e(543),l=["storeInfo"],v={};function S(){var N={};for(var B in u)if(u.hasOwnProperty(B)){var M=B.charAt(0);M===M.toLowerCase()&&M!==M.toUpperCase()&&(N[B]=u[B])}return N}function O(N,B){var M=N.eventType,F=N.deviceId,G=N.fingerprintProVisitorId,Q=N.fingerprintProRequestId,et=N.fingerprintHash,ct=function(wt){try{return i.from(JSON.stringify(wt)).toString("base64")}catch{return}}(N.fingerprintComponents),ft=N.deviceExtendedInfo,ot=N.payload,bt={metadata:{type:M},device:{id:F,fingerprint:et,rawFingerprint:ct,type:d.webType}};G&&(bt.device.visitorId=G),Q&&(bt.device.fpRequestId=Q);var Rt=Object.assign({},o.getClientMetadata(o.metadataType.payload),v);for(var At in Rt)Rt.hasOwnProperty(At)&&(bt.metadata[At]=Rt[At]);for(var gt in ot)ot.hasOwnProperty(gt)&&(bt[gt]=ot[gt]);ft&&(bt.device.extendedInfo=ft),n.makeRequest({path:"events",data:bt,method:n.methods.post},B)}function C(N){var B=N.type,M=N.deviceId,F=N.fingerprintProVisitorId,G=N.fingerprintProRequestId,Q=N.fingerprintHash,et=N.fingerprintComponents,ct=N.deviceExtendedInfo,ft=N.callback,ot={eventType:B,deviceId:M,fingerprintHash:Q,fingerprintComponents:et,deviceExtendedInfo:ct};F&&(ot.fingerprintProVisitorId=F),G&&(ot.fingerprintProRequestId=G),O(ot,ft)}r.exports={addMetadataProps:function(N){for(var B=0;B<l.length;B+=1){var M=l[B];N.hasOwnProperty(M)&&(v[M]=N[M])}},reportEvent:O,reportAppInstallEvent:function(N,B,M,F,G,Q){C({type:"appInstall",deviceId:N,fingerprintProVisitorId:B,fingerprintProRequestId:M,fingerprintHash:F,fingerprintComponents:G,deviceExtendedInfo:S(),callback:Q})},reportFingerprintEvent:function(N,B,M,F){C({type:"fingerprint",deviceId:N,fingerprintHash:B,fingerprintComponents:M,fingerprintProRequestId:F})},reportInitEvent:function(N){C({type:"appInit",deviceId:N})}}},625:function(r,t,e){var n=e(269);r.exports={getFingerprint:function(o,i){n&&o?n.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",n.defaultEndpoint],modules:[n.makeIdentificationModule(),n.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",n.defaultScriptUrlPattern],remoteControlDetection:!0}).then(function(u){return u.get()}).then(function(u){typeof i=="function"&&i(u?{fingerprintVisitorId:u.visitorId,fingerprintRequestId:u.requestId}:{})}).catch(function(){typeof i=="function"&&i({})}):i({})}}},376:function(r,t,e){var n=e(568),o=e(528),i=e(387),u="ns_fp_hash";function d(v,S,O,C){i.reportFingerprintEvent(O,v,S,C)}function l(v){n.load({monitoring:!1}).then(function(S){S.get().then(function(O){v(O?{fingerprintHash:O.visitorId,fingerprintComponents:O.components}:{})})})}r.exports={manageFingerprint:function(v,S,O){l(function(C){var N=C.fingerprintHash,B=C.fingerprintComponents;o.getItem(u)!==N&&(S&&d(N,B,v),o.setItem(u,N)),typeof O=="function"&&O({fingerprintHash:N,fingerprintComponents:B})})},getFingerprint:l,reportFingerprintWithProInfo:function(v,S){l(function(O){d(O.fingerprintHash,O.fingerprintComponents,v,S)})}}},733:function(r,t,e){var n=e(528),o=e(376),i=e(625),u=e(387),d=e(142),l=e(1),v=e(543),S="linkDevices";function O(N,B,M){o.getFingerprint(function(F){var G=F.fingerprintHash,Q=F.fingerprintComponents;u.reportEvent({eventType:S,deviceId:N,fingerprintHash:G,fingerprintComponents:Q,payload:{linkedDevices:[B,M]}})})}function C(N,B){if(B)for(var M=0,F=B.length;M<F;M+=1){var G=B[M];if(G&&G.length>1){var Q=G[0],et=G[1];Q&&et&&Q!==et&&O(N,Q,et)}}}r.exports={installSdk:function(N,B){var M=N.deviceId,F=N.loadFingerprintJsPro,G=(N.supressInstallBackwardCompatibility||[]).indexOf(N.appId)===-1,Q=function(ct,ft){var ot=ft?n.getBackwardCompatabilityItem(v.installEventReportedKeyName,v.oldInstallEventReportedKeyName):n.getItem(v.installEventReportedKeyName);return ot?(ot==="true"&&(n.setItem(v.installEventReportedKeyName,ct),ot=ct),ct===ot?{isInstalled:!0,reportedDeviceId:ct}:{isInstalled:!1,reportedDeviceId:ot}):{isInstalled:!1,reportedDeviceId:null}}(M,G);function et(ct,ft,ot){if(ot>3)B&&B(!1);else{var bt=ft.fingerprintHash,Rt=ft.fingerprintComponents,At=ct.fingerprintVisitorId,gt=ct.fingerprintRequestId;u.reportAppInstallEvent(M,At,gt,bt,Rt,function(wt){if(wt){var kt={msg:"Failed sending appInstall",err:JSON.stringify(wt),deviceId:M,fingerprintHash:bt,fingerprintRequestId:gt,numberOfRetry:ot};l.send(kt),et(ct,ft,ot+1)}else n.setItem(v.installEventReportedKeyName,M),n.setItem("ns_irts",Date.now()),d.manageKeepAlive({deviceId:M,fingerprintInfo:ft,setStartTimestamp:!0}),B&&B(!0)})}}Q.isInstalled?B&&B(!1):(Q.reportedDeviceId&&Q.reportedDeviceId!==M&&C(M,[[M,Q.reportedDeviceId]]),i.getFingerprint(F,function(ct){o.manageFingerprint(M,!1,function(ft){et(ct,ft,1)})}))},reportLinkDevices:C}},142:function(r,t,e){var n=e(528),o=e(884),i=e(387),u=e(376),d="ns_ka_ts",l="ns_ka_step_",v=[10,30,40,60];function S(B){return l+B}function O(){var B=parseInt(n.getItem(d),10);return o.isValidDate(new Date(B))?B:null}function C(B,M){var F=function(){var G=O();if(!G)return null;for(var Q,et=Math.floor((new Date().getTime()-G)/1e3),ct=0;ct<v.length;ct+=1){var ft=v[ct],ot=ct<v.length-1?v[ct+1]:null;if(et>=ft&&(!ot||et<ot)&&(Q=ft,!n.getItem(S(Q))))return{stepToReport:ft,timeToWaitInSeconds:0};if(et<ft)return{stepToReport:ft,timeToWaitInSeconds:ft-et}}return null}();F&&(F.timeToWaitInSeconds===0?(function(G,Q,et){var ct=Q.fingerprintHash,ft=Q.fingerprintComponents;i.reportEvent({eventType:"keepAlive",deviceId:G,fingerprintHash:ct,fingerprintComponents:ft,payload:{keepAlive:{step:et}}}),n.setItem(S(et),!0)}(B,M,F.stepToReport),C(B,M)):F.timeToWaitInSeconds>0&&setTimeout(function(){C(B,M)},1e3*F.timeToWaitInSeconds))}var N={manageKeepAlive:function(B){var M=B.deviceId,F=B.fingerprintInfo;B.setStartTimestamp&&!O()&&n.setItem(d,new Date().getTime()),F?C(M,F):u.getFingerprint(function(G){C(M,G)})}};r.exports=N},709:function(r,t,e){var n=e(387),o=e(376),i=e(23);function u(v){var S,O=v?v.value||v.innerText:null;return{nodeContent:O,normalizedNodeContent:(S=O,i.removeWhitespaces(S))}}function d(v){var S=i.transformDomNodeContent(v),O=v||"";return S.onlyDigits=/^[0-9]+$/.test(O),S.containsWhitespace=/\s/.test(O),S.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(O),S}var l={managePasteEvents:function(v){document.addEventListener("paste",function(S){var O=u(S.target);setTimeout(function(){(function(C){var N=C.deviceId,B=C.contentBeforePaste,M=B.nodeContent,F=B.normalizedNodeContent,G=C.domNode,Q={paste:{domNode:{}}};if(G.nodeName){Q.paste.domNode.name=G.nodeName,G.className&&(Q.paste.domNode.className=G.className),G.id&&(Q.paste.domNode.id=G.id);var et=G.getAttribute&&G.getAttribute("type");et&&(Q.paste.domNode.type=et),Q.paste.domNode.content={};var ct=u(G),ft=ct.nodeContent,ot=ct.normalizedNodeContent;Q.paste.domNode.content.beforePaste=d(M),Q.paste.domNode.content.afterPaste=d(ft),Q.paste.domNode.normalizedContent={},Q.paste.domNode.normalizedContent.beforePaste=d(F),Q.paste.domNode.normalizedContent.afterPaste=d(ot),G.placeholder&&(Q.paste.domNode.placeholder=G.placeholder),Q.paste.url=window.location.href}o.getFingerprint(function(bt){var Rt=bt.fingerprintHash;n.reportEvent({eventType:"paste",deviceId:N,fingerprintHash:Rt,payload:Q})})})({deviceId:v,contentBeforePaste:O,domNode:S.target})},0)})}};r.exports=l},472:function(r,t,e){var n=e(127),o=e(108),i=e(884),u=e(23),d=e(776),l=e(528),v=e(298).inactivityEvent,S=e(143),O=e(387),C=e(376),N="ns_sid";function B(){o.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function M(G){var Q=G.deviceId,et=G.initModuleConfig,ct=G.jwtSessionId,ft=G.callback,ot=1e4;try{ot=n(ct).inactivityTimeout}catch{ot=1e4}var bt=new S(new Date().getTime());bt.addEventListener(v,function Rt(){bt.removeEventListener(v,Rt),F({deviceId:Q,initModuleConfig:et,forceRenewSessionDueToInactivity:!0,callback:ft})}),bt.trackInactivity(ot)}function F(G){var Q,et=G.deviceId,ct=G.initModuleConfig,ft=!!G.forceRenewSessionDueToInactivity,ot=G.callback,bt=l.getItem(N);try{Q=n(bt),d.setSessionId(bt)}catch{Q=null}ft||!Q||1e3*((Q||{}).exp||0)<new Date().getTime()?function(Rt,At){var gt=Rt.deviceId,wt=(Rt.initModuleConfig||{}).storeInfo,kt=new B;kt.addEventListener(kt.eventTypes.fetchComplete,function q(h){kt.removeEventListener(kt.eventTypes.fetchComplete,q),At(h.detail)}),kt.fetchSessionId(gt,wt)}({deviceId:et,initModuleConfig:ct},function(Rt){bt=Rt,l.setItem(N,bt),d.setSessionId(bt),function(At){try{var gt=At.deviceId,wt=n(At.jwtSessionId).ets;if(!wt)return;C.getFingerprint(function(kt){var q=kt.fingerprintHash,h=kt.fingerprintComponents;O.reportEvent({eventType:"ping",deviceId:gt,fingerprintHash:q,fingerprintComponents:h,payload:{ping:{ets:wt}}})})}catch{}}({deviceId:et,jwtSessionId:bt}),M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt)}):(M({deviceId:et,initModuleConfig:ct,jwtSessionId:bt,callback:ot}),i.isFunction(ot)&&ot(bt))}B.prototype=Object.create(o.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(G,Q){var et=this,ct="session?"+u.getClientMetadata(u.metadataType.queryString)+"&deviceId="+G;Q&&(Q.id&&(ct+="&storeId="+Q.id),Q.type&&(ct+="&storeType="+Q.type)),function ft(){var ot;ot=function(bt,Rt){!bt&&Rt&&Rt.ok?et.dispatchEvent(new CustomEvent(et.eventTypes.fetchComplete,{detail:Rt.response})):setTimeout(ft,i.randomInt(4e4,6e4))},d.makeRequest({path:ct,method:d.methods.get},ot)}()},r.exports={manageSessionId:F,setRetrySessionTimeout:function(G){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(r,t,e){var n=e(23),o=e(376),i=e(625),u=e(528),d=e(543).fingerprintReportedInSessionKey,l=e(543).eventTriggers,v={},S=null,O=!1,C=!1;function N(M){var F=M||{};Object.keys(F).forEach(function(G){G===l.fingerPrint&&C&&(u.getSessionItem(d)||(i.getFingerprint(O,function(Q){o.reportFingerprintWithProInfo(S,Q.fingerprintRequestId)}),u.setSessionItem(d,!0)))})}function B(M,F,G){for(var Q=0;Q<F.payload.length;Q++){var et=F.payload[Q];et&&et.event&&et.action&&n.isSubObject(et.event,M.payload)&&(G[et.action]=!0)}}r.exports={init:function(M){if(M.eventTrigger){try{var F=atob(M.eventTrigger),G=JSON.parse(F);if(!G||!(v=G[M.appId]))return}catch{return}S=M.deviceId,O=M.loadFingerprintJsPro,C=!0,function(){if(C&&v.init&&Array.isArray(v.init)){for(var Q={},et=0;et<v.init.length;et++){var ct=v.init[et];ct&&ct.url&&ct.action&&new RegExp(v.init[et].url).test(window.location.href)&&(Q[v.init[et].action]=!0)}N(Q)}}()}},triggerEventOnEvent:function(M){if(C){var F=v[M.eventType];if(Array.isArray(F)){for(var G={},Q=0;Q<F.length;Q++){var et=F[Q];et&&et.url&&et.payload&&new RegExp(et.url).test(window.location.href)&&B(M,et,G)}N(G)}}}}},636:function(r,t,e){var n=e(528),o=e(387),i=e(376),u="ns_c_ver",d="c";function l(S){n.setItem(u,JSON.stringify(S))}function v(S,O,C,N){var B=O.fingerprintHash,M=O.fingerprintComponents;o.reportEvent({eventType:"sdkVersionUpgrade",deviceId:S,fingerprintHash:B,fingerprintComponents:M,payload:{versionUpgrade:{version:C,prevVersion:N||""}}}),l(C)}r.exports={reportVersionUpgrade:function(S){var O=S.initModuleVersion,C=S.coreModuleVersion,N={};N.i=O,N[d]=C;var B=S.deviceId,M=S.fingerprintInfo,F=function(){var G=n.getItem(u);if(G){try{var Q=JSON.parse(G);if(typeof Q=="object")return Q}catch{}return{i:G}}return null}();F&&F.i?F.i!==O||F[d]&&F[d]!==C?(F[d]||(F[d]=C),M?v(B,M,N,F):i.getFingerprint(function(G){v(B,G,N,F)})):F[d]||l(N):l(N)}}},23:function(r,t,e){var n=e(550),o={payload:"payload",queryString:"queryString"};function i(){return n()}function u(l,v){for(var S in l)if(l.hasOwnProperty(S)&&(!v.hasOwnProperty(S)||!d(l[S],v[S])))return!1;return!0}function d(l,v){if(l===v)return!0;if(typeof l!=typeof v)return!1;if(Array.isArray(l)&&Array.isArray(v)){if(l.length!==v.length)return!1;for(var S=0;S<l.length;S++)if(!d(l[S],v[S]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof v=="object"&&v!==null&&u(l,v)}r.exports={metadataType:o,getClientMetadata:function(l){var v=new Date().getTime(),S=i();return l===o.queryString?"timestamp="+v+"&clientRequestId="+S:{timestamp:v,clientRequestId:S}},oneMinute:6e4,getClientRequestId:i,transformDomNodeContent:function(l){var v,S,O=l||"",C=O.length;return C<=1?(v="",S=""):C===2?(v=O.slice(0,1),S=""):C===3?(v=O.slice(0,1),S=O.slice(C-1)):C===4?(v=O.slice(0,2),S=O.slice(C-1)):C===5?(v=O.slice(0,2),S=O.slice(C-2)):C===6?(v=O.slice(0,3),S=O.slice(C-2)):C===7?(v=O.slice(0,3),S=O.slice(C-3)):C===8?(v=O.slice(0,4),S=O.slice(C-3)):C===9?(v=O.slice(0,5),S=O.slice(C-3)):C===10?(v=O.slice(0,5),S=O.slice(C-4)):C>10&&(v=O.slice(0,6),S=O.slice(C-4)),{length:C,prefix:v,suffix:S}},isSubObject:u,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(r,t,e){var n,o=e(723),i=e(115),u=e(884);function d(){return i.getDeviceId()}r.exports={getDeviceId:function(){return n||(n=d()),n},getCoreModuleParams:function(l,v){var S=v||{},O=!!S.isFingerprintJsProOff,C=[];n&&n!==d()&&C.push([n,d()]);var N=u.getAppContextId(),B=S.bulkEvents||{},M=S.supressInstallBackwardCompatibility||[],F=typeof S.logMessageRate=="number"?S.logMessageRate:100,G=S.eventTrigger||"";return Object.assign(l,{deviceId:d(),linkedDevices:C,loadFingerprintJsPro:!O,clientVersion:o.version,appContextId:N,bulkEvents:B,supressInstallBackwardCompatibility:M,logMessageRate:F,eventTrigger:G,eventsReportUrl:S.eventsReportUrl})},parseInitParams:function(l,v){return typeof(S=l)=="string"||S instanceof String?{appId:l,partnerId:v}:l;var S},internalGetDeviceId:d}},342:function(r,t,e){var n=e(723),o=e(242),i=e(1),u=e(102),d=e(651),l=e(884),v=e(884);r.exports={version:n.version,init:l.isBrowser()?function(S,O){var C=d.parseInitParams(S,O),N=C.appId;i.init(n,{appId:N});var B=v.getConfigBaseUrls(C,n),M=B.mainConfigBaseUrl,F=B.altConfigBaseUrl;function G(et,ct){o.getCoreModuleLoadingInfo({appId:N,url:et},function(ft,ot){!ft&&ot||n.errorServerUrl&&i.send({msg:"Core loading error",reason:"config-file-load-fail",url:n.coreConfigFileUrl,errorDescription:ft}),ct(ot)})}function Q(et){typeof et.onPercentage=="number"&&l.randomInt(0,100)>et.onPercentage||function(ct,ft){var ot=d.getCoreModuleParams(ct,ft);u.init(ot)}(C,et)}return G(M,function(et){if(et)Q(et);else{if(!F)return;G(F,function(ct){ct&&Q(ct)})}}),d.getDeviceId()}:function(S,O){return null},getDeviceId:l.isBrowser()?function(){return d.getDeviceId()}:function(){return null}}},242:function(r,t,e){var n=e(611),o=e(528),i=e(884),u="ns_group";function d(l,v){(function(S,O){n.get(S).end(function(C,N){C?i.isFunction(O)&&O({ok:!1,errorDescription:JSON.stringify({err:C,res:N})}):i.isFunction(O)&&O(null,{ok:N.ok,status:N.status,response:N.body})})})(l.url,function(S,O){!S&&O&&O.response?i.isFunction(v)&&v(null,function(C,N){var B,M=N||{},F=M.configurations||{},G=F[C];if(G){var Q=function(){var bt=o.getItem(u);return bt||(bt=i.randomInt(1,100),o.setItem(u,bt)),bt}(),et=function(bt){var Rt=[],At=0;for(var gt in bt)if(bt.hasOwnProperty(gt)){var wt=bt[gt],kt=At;At+=wt.percentage,Rt.push({from:kt,to:At,url:wt.url})}return Rt}(G.groups),ct=function(bt,Rt){for(var At=0,gt=bt.length;At<gt;At++){var wt=bt[At];if(Rt>wt.from&&Rt<=wt.to)return wt}return null}(et,Q)||{};if(ct)for(B in ct)ct.hasOwnProperty(B)&&(G[B]=ct[B]);var ft=F.default||{};for(B in ft)ft.hasOwnProperty(B)&&!G.hasOwnProperty(B)&&(G[B]=ft[B])}else G=F.default||{};var ot={};for(B in M)M.hasOwnProperty(B)&&B!=="configurations"&&(ot[B]=M[B]);for(B in G)G.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(ot[B]=G[B]);return ot}(l.appId,O.response)):i.isFunction(v)&&v(S.errorDescription)})}r.exports={getCoreModuleLoadingInfo:function(l,v){var S=0;l&&l.url?d(l,function O(C,N){C?(S+=1)<=3?d(l,O):i.isFunction(v)&&v(C):i.isFunction(v)&&v(null,N)}):i.isFunction(v)&&v("config url is not configured")}}},115:function(r,t,e){var n,o=e(550),i=e(528),u=e(13),d=e(884),l=e(616),v="ns_dev_id",S=[];function O(){var C=i.getItem(v);n||(n=C||l.toArray(o(),i.hasAccessToLocalStorage()),i.setItem(v,n))}r.exports={init:function(){u.init(function(){u.getKey(v,function(C){C?(n=C,i.setItem(v,n),u.cleanup()):(O(),u.setKey(v,n),setTimeout(u.cleanup,2e3));for(var N=0,B=S.length;N<B;N+=1){var M=S[N];d.isFunction(M)&&M()}S=[]})})},addOnReadyListener:function(C){S.push(C)},getDeviceId:function(){return O(),n},reset:function(){throw new Error("Cannot call reset!")}}},635:function(r,t,e){e.d(t,{C6:function(){return o},Cl:function(){return i},Tt:function(){return u},YH:function(){return l},fX:function(){return v},sH:function(){return d}});var n=function(S,O){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,N){C.__proto__=N}||function(C,N){for(var B in N)Object.prototype.hasOwnProperty.call(N,B)&&(C[B]=N[B])},n(S,O)};function o(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");function C(){this.constructor=S}n(S,O),S.prototype=O===null?Object.create(O):(C.prototype=O.prototype,new C)}var i=function(){return i=Object.assign||function(S){for(var O,C=1,N=arguments.length;C<N;C++)for(var B in O=arguments[C])Object.prototype.hasOwnProperty.call(O,B)&&(S[B]=O[B]);return S},i.apply(this,arguments)};function u(S,O){var C={};for(var N in S)Object.prototype.hasOwnProperty.call(S,N)&&O.indexOf(N)<0&&(C[N]=S[N]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function"){var B=0;for(N=Object.getOwnPropertySymbols(S);B<N.length;B++)O.indexOf(N[B])<0&&Object.prototype.propertyIsEnumerable.call(S,N[B])&&(C[N[B]]=S[N[B]])}return C}function d(S,O,C,N){return new(C||(C=Promise))(function(B,M){function F(et){try{Q(N.next(et))}catch(ct){M(ct)}}function G(et){try{Q(N.throw(et))}catch(ct){M(ct)}}function Q(et){var ct;et.done?B(et.value):(ct=et.value,ct instanceof C?ct:new C(function(ft){ft(ct)})).then(F,G)}Q((N=N.apply(S,O||[])).next())})}function l(S,O){var C,N,B,M,F={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return M={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function G(Q){return function(et){return function(ct){if(C)throw new TypeError("Generator is already executing.");for(;M&&(M=0,ct[0]&&(F=0)),F;)try{if(C=1,N&&(B=2&ct[0]?N.return:ct[0]?N.throw||((B=N.return)&&B.call(N),0):N.next)&&!(B=B.call(N,ct[1])).done)return B;switch(N=0,B&&(ct=[2&ct[0],B.value]),ct[0]){case 0:case 1:B=ct;break;case 4:return F.label++,{value:ct[1],done:!1};case 5:F.label++,N=ct[1],ct=[0];continue;case 7:ct=F.ops.pop(),F.trys.pop();continue;default:if(!((B=(B=F.trys).length>0&&B[B.length-1])||ct[0]!==6&&ct[0]!==2)){F=0;continue}if(ct[0]===3&&(!B||ct[1]>B[0]&&ct[1]<B[3])){F.label=ct[1];break}if(ct[0]===6&&F.label<B[1]){F.label=B[1],B=ct;break}if(B&&F.label<B[2]){F.label=B[2],F.ops.push(ct);break}B[2]&&F.ops.pop(),F.trys.pop();continue}ct=O.call(S,F)}catch(ft){ct=[6,ft],N=0}finally{C=B=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([Q,et])}}}function v(S,O,C){if(C||arguments.length===2)for(var N,B=0,M=O.length;B<M;B++)!N&&B in O||(N||(N=Array.prototype.slice.call(O,0,B)),N[B]=O[B]);return S.concat(N||Array.prototype.slice.call(O))}typeof SuppressedError=="function"&&SuppressedError}},Fl={};function Dr(r){var t=Fl[r];if(t!==void 0)return t.exports;var e=Fl[r]={exports:{}};return Iy[r](e,e.exports,Dr),e.exports}Dr.d=function(r,t){for(var e in t)Dr.o(t,e)&&!Dr.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},Dr.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},Dr.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})};var Ni={};Dr.d(Ni,{IP:function(){return xi.getDeviceId},Ts:function(){return xi.init},rE:function(){return xi.version}});var xi=Dr(342);const ky={version:xi.version,init:xi.init,getDeviceId:xi.getDeviceId};Ni.Ay=ky;var Hl=Ni.Ay;Ni.IP,Ni.Ts,Ni.rE;class gr{env;url;constructor(t){this.env=t??"prod",this.env==="prod"?this.url="https://api.coinflow.cash":this.env==="local"?this.url="http://localhost:5000":this.url=`https://api-${this.env}.coinflow.cash`}async getNSurePartnerId(t){return fetch(this.url+`/merchant/view/${t}`).then(e=>e.json()).then(e=>e.nSureSettings?.nSurePartnerId||e.nSurePartnerId).catch(e=>{console.error(e)})}static getCoinflowBaseUrl(t){return!t||t==="prod"?"https://coinflow.cash":t==="ngrok"?"https://coinflow.ngrok.app":t==="local"?"http://localhost:3000":`https://${t}.coinflow.cash`}static getCoinflowApiUrl(t){return!t||t==="prod"?"https://api.coinflow.cash":t==="local"?"http://localhost:5000":`https://api-${t}.coinflow.cash`}static getCoinflowUrl({walletPubkey:t,sessionKey:e,route:n,routePrefix:o,env:i,subtotal:u,presentment:d,transaction:l,blockchain:v="solana",webhookInfo:S,email:O,loaderBackground:C,handleHeightChangeId:N,bankAccountLinkRedirect:B,additionalWallets:M,chargebackProtectionData:F,merchantCss:G,color:Q,rent:et,lockDefaultToken:ct,tokens:ft,planCode:ot,disableApplePay:bt,disableGooglePay:Rt,customerInfo:At,settlementType:gt,lockAmount:wt,nativeSolToConvert:kt,theme:q,usePermit:h,transactionSigner:T,authOnly:D,deviceId:Z,jwtToken:j,origins:X,threeDsChallengePreference:at,supportEmail:K,destinationAuthKey:p,allowedPaymentMethods:E,accountFundingTransaction:z,partialUsdcChecked:$,redemptionCheck:dt,allowedWithdrawSpeeds:_t,isZeroAuthorization:Dt}){const Yt=o?`/${o}/${v}`:`/${v}`,zt=new URL(Yt+n,gr.getCoinflowBaseUrl(i));if(t&&zt.searchParams.append("pubkey",t),e&&zt.searchParams.append("sessionKey",e),l&&zt.searchParams.append("transaction",l),u&&("cents"in u?(zt.searchParams.append("cents",u.cents.toString()),"currency"in u?zt.searchParams.append("currency",u.currency.toString()):zt.searchParams.append("currency",Wa.USD)):(zt.searchParams.append("token",u.address.toString()),zt.searchParams.append("amount",u.amount.toString()))),d&&zt.searchParams.append("presentment",d),S&&zt.searchParams.append("webhookInfo",tr.compressToEncodedURIComponent(JSON.stringify(S))),q&&zt.searchParams.append("theme",tr.compressToEncodedURIComponent(JSON.stringify(q))),At&&zt.searchParams.append("customerInfo",tr.compressToEncodedURIComponent(JSON.stringify(At))),O&&zt.searchParams.append("email",O),K&&zt.searchParams.append("supportEmail",K),ft&&zt.searchParams.append("tokens",ft.toString()),C&&zt.searchParams.append("loaderBackground",C),N&&zt.searchParams.append("useHeightChange",N.toString()),B&&zt.searchParams.append("bankAccountLinkRedirect",B),M&&zt.searchParams.append("additionalWallets",tr.compressToEncodedURIComponent(JSON.stringify(M))),F&&zt.searchParams.append("chargebackProtectionData",tr.compressToEncodedURIComponent(JSON.stringify(F))),Z)zt.searchParams.append("deviceId",Z);else if(typeof window<"u"){const fe=Hl.getDeviceId();fe&&zt.searchParams.append("deviceId",fe)}return G&&zt.searchParams.append("merchantCss",G),Q&&zt.searchParams.append("color",Q),et&&zt.searchParams.append("rent",et.lamports.toString()),dt&&zt.searchParams.append("redemptionCheck","true"),kt&&zt.searchParams.append("nativeSolToConvert",kt.lamports.toString()),ct&&zt.searchParams.append("lockDefaultToken","true"),ot&&zt.searchParams.append("planCode",ot),bt&&zt.searchParams.append("disableApplePay","true"),Rt&&zt.searchParams.append("disableGooglePay","true"),gt&&zt.searchParams.append("settlementType",gt),wt&&zt.searchParams.append("lockAmount","true"),h===!1&&zt.searchParams.append("usePermit","false"),T&&zt.searchParams.append("transactionSigner",T),D===!0&&zt.searchParams.append("authOnly","true"),Dt===!0&&zt.searchParams.append("zeroAuthorization","true"),$===!0&&zt.searchParams.append("partialUsdcChecked","true"),j&&zt.searchParams.append("jwtToken",j),X&&zt.searchParams.append("origins",tr.compressToEncodedURIComponent(JSON.stringify(X))),E&&zt.searchParams.append("allowedPaymentMethods",E.join(",")),at&&zt.searchParams.append("threeDsChallengePreference",at),p&&zt.searchParams.append("destinationAuthKey",p),z&&zt.searchParams.append("accountFundingTransaction",tr.compressToEncodedURIComponent(JSON.stringify(z))),_t&&zt.searchParams.append("allowedWithdrawSpeeds",_t.join(",")),zt.toString()}static getTransaction(t){if(t.blockchain)return this.byBlockchain(t.blockchain,{solana:()=>{if(!("transaction"in t))return;const{transaction:e}=t;if(!cs)throw new Error("@solana/web3.js dependency is required for Solana");if(!Mr)throw new Error("bs58 dependency is required for Solana");if(e)return Mr.encode(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))},polygon:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},eth:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},base:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},arbitrum:()=>{if(!("transaction"in t))return;const{transaction:e}=t;return tr.compressToEncodedURIComponent(JSON.stringify(e))},user:()=>{}})()}static byBlockchain(t,e){switch(t){case"solana":return e.solana;case"polygon":return e.polygon;case"eth":return e.eth;case"base":return e.base;case"arbitrum":return e.arbitrum;case"user":return e.user;default:throw new Error("blockchain not supported!")}}}function Oy(r){if(!r)return;let t,e;if("name"in r&&r.name&&(t=r.name.split(" ")[0],e=r.name.split(" ").slice(1).join(" ")),"firstName"in r&&r.firstName&&(t=r.firstName),"lastName"in r&&r.lastName&&(e=r.lastName),t&&e)return{firstName:t,lastName:e}}var za=(r=>(r.SignMessage="signMessage",r.SignTransaction="signTransaction",r.SendTransaction="sendTransaction",r.HeightChange="heightChange",r.Success="success",r.AuthDeclined="authDeclined",r.Loaded="loaded",r.AccountLinked="accountLinked",r))(za||{});function us(r){let t;if("signer"in r&&typeof r.signer=="object"&&r.signer&&"wallet"in r.signer?t=r.signer.wallet:"wallet"in r&&r.wallet&&(t=r.wallet),!!t){if(typeof t=="string")return t;if(typeof t=="object"){if("publicKey"in t)return t.publicKey?t.publicKey.toString():void 0;if("address"in t)return t.address?t.address:void 0}return null}}function Vl(r,t,e){let n;try{if(n=JSON.parse(r),!("method"in n)||!("data"in n))return}catch(u){console.error("handleIFrameMessage JSON parse",u);return}const{data:o,method:i}=n;switch(i){case"signMessage":return t.handleSignMessage?t.handleSignMessage(o):void 0;case"signTransaction":return t.handleSignTransaction?t.handleSignTransaction(o):void 0;case"sendTransaction":return t.handleSendTransaction(o);case"heightChange:"+e:return t.handleHeightChange?t.handleHeightChange(o):void 0;case"success":if(!t.onSuccess)return;t.onSuccess(n.info);return;case"authDeclined":if(!t.onAuthDeclined)return;t.onAuthDeclined(n.info);return;case"loaded":return;case"accountLinked":return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${i} is not one of ${Object.values(za)}`)}function ls(r){let t,e;return"signer"in r&&typeof r.signer=="object"&&r.signer&&"blockchain"in r.signer&&"wallet"in r.signer?(t=r.signer.blockchain,e=r.signer.wallet):"blockchain"in r&&r.blockchain&&(t=r.blockchain,e=r.wallet),t?gr.byBlockchain(t,{solana:()=>Ty({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),eth:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),polygon:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),base:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),arbitrum:()=>fs({wallet:e,onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}),user:()=>Ny(r)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:r.onSuccess,onAuthDeclined:r.onAuthDeclined}}function Ty({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=Wl(n);return await r.sendTransaction(o)},handleSignMessage:async n=>{const o=r.signMessage;if(!o)throw new Error("signMessage is not supported by this wallet");const i=await o(new TextEncoder().encode(n));if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(i)},handleSignTransaction:async n=>{const o=r.signTransaction;if(!o)throw new Error("signTransaction is not supported by this wallet");const i=Wl(n),u=await o(i);if(!Mr)throw new Error("bs58 dependency is required");return Mr.encode(u.serialize({requireAllSignatures:!1,verifySignatures:!1}))},onSuccess:t,onAuthDeclined:e}}function Wl(r){if(!cs)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!Mr)throw new Error("bs58 is not defined. Please install bs58 into your project");const t=Mr.decode(r),e=cs.VersionedTransaction.deserialize(t);return e.version==="legacy"?cs.Transaction.from(t):e}function fs({wallet:r,onSuccess:t,onAuthDeclined:e}){return{handleSendTransaction:async n=>{const o=JSON.parse(Buffer.from(n,"base64").toString()),{hash:i}=await r.sendTransaction(o);return i},handleSignMessage:async n=>r.signMessage(n),onSuccess:t,onAuthDeclined:e}}function Ny({onSuccess:r,onAuthDeclined:t}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:r,onAuthDeclined:t}}class xy{static on(t,e){document.addEventListener(t,e)}static dispatch(t,e){document.dispatchEvent(new CustomEvent(t,{detail:e}))}static remove(t,e){document.removeEventListener(t,e)}}const ro="tokenExCardNumber",Li="tokenExCardCvv",zl={[di.VISA]:"visa",[di.MASTERCARD]:"masterCard",[di.AMEX]:"americanExpress",[di.DISCOVER]:"discover"};async function Gl(r){const{token:t,origins:e,env:n}=r;return new Promise((o,i)=>{fetch(new gr(n).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:e,token:t,merchantId:"merchantId"in r?r.merchantId:void 0,checkoutJwt:"checkoutJwt"in r?r.checkoutJwt:void 0})}).then(async u=>{o(await u.json())}).catch(u=>i(u))})}function Ga({env:r,setTokenExScriptLoaded:t}){const e="tokenex-script";document.head.querySelector(`#${e}`)&&t(!0);const n=document.createElement("script");n.src=r==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",n.id=e,document.head.appendChild(n),document.getElementById(e).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),t(!0)})}function Ly({iframe:r,setCachedToken:t,setLoaded:e}){const n=async()=>(r.tokenize(),await new Promise((o,i)=>{r.on("tokenize",u=>{t(u.token),o(u)}),r.on("validate",u=>{(!u.isValid||u.isCvvValid===!1)&&i(u)})}));return r.on("change",()=>t(void 0)),r.on("cvvChange",()=>t(void 0)),r.on("load",()=>{setTimeout(()=>e(!0),350);const o=document.querySelector("#tx_iframe_tokenExCardNumber");o&&(o.scrolling="no")}),r.on("focus",()=>{r.focus()}),r.on("cvvFocus",()=>{r.cvvFocus()}),e(!1),r.load(),{...r,tokenize:n}}async function Kl(r){const{token:t,cardType:e}=r;return await Ka(Li,r,{cvvOnly:!0,cvv:!0,cvvContainerID:Li,placeholder:"CVV",token:t,cardType:zl[e]})}async function jl(r){return await Ka(ro,r,{cvv:!0,cvvContainerID:Li,cvvPlaceholder:"CVV"})}async function Yl(r){return await Ka(ro,r,{cvv:!1})}async function Ka(r,t,e){const{tokenExScriptLoaded:n,css:o,debug:i,font:u,setCachedToken:d,setLoaded:l}=t;if(!n&&typeof TokenEx>"u"){console.warn("Warning Unable to load TokenEx on first attempt waiting for load event from document.head.script#tokenex-script");return}const v=await Gl({...t,token:e.token}),{styles:S}=Cy(o),O={...v,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:S,font:u,debug:i??!1,...e},C=TokenEx.Iframe(r,O);return Ly({iframe:C,setCachedToken:d,setLoaded:l})}function Cy(r){const t=JSON.parse(r);return{styles:{base:Ur(t.base),focus:Ur(t.focus),error:Ur(t.error),placeholder:Ur(t.placeholder),cvv:{base:Ur(t.cvv?.base),focus:Ur(t.cvv?.focus),error:Ur(t.cvv?.error),placeholder:Ur(t?.placeholder)}}}}function Ur(r){if(!r)return"";if(typeof r=="string")return r;let t="";for(const[e,n]of Object.entries(r)){let o="";e.split("").forEach(i=>{i.toUpperCase()===i?o+="-"+i.toLowerCase():o+=i}),t+=o+":"+n+";"}return t}me.nftCartItem=void 0,(r=>{(t=>{t.NFT="nft"})(r.itemClass||(r.itemClass={})),(t=>{t.IN_GAME_PRODUCT="inGameProduct",t.GAME_OF_SKILL="gameOfSkill",t.DATA_STORAGE="dataStorage",t.COMPUTING_RESOURCES="computingResources",t.SPORTS_TICKET="sportsTicket",t.E_SPORTS_TICKET="eSportsTicket",t.MUSIC_TICKET="musicTicket",t.CONFERENCE_TICKET="conferenceTicket",t.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",t.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",t.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",t.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",t.ALCOHOL="alcohol",t.DLC="DLC",t.SUBSCRIPTION="subscription",t.FUND_ACAUSE="fundACause",t.REAL_ESTATE="realEstate",t.COMPUTING_CONTRACT="computingContract",t.DIGITAL_ART="digitalArt",t.TOP_UP="topUp",t.OWNERSHIP_CONTRACT="ownershipContract",t.IN_GAME_CURRENCY="inGameCurrency",t.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(r.productType||(r.productType={}))})(me.nftCartItem||(me.nftCartItem={}));const By=$t.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return gr.getCoinflowUrl(this.args)}},emits:{onMessage(r){return!0}},methods:{sendMessage(r){const t=this.$refs.iframeRef;if(!t?.contentWindow)throw new Error("Iframe not defined");t.contentWindow.postMessage(r,"*")},handleIframeMessages({data:r,origin:t}){if(!t.includes(gr.getCoinflowBaseUrl(this.args.env)))return;this.$emit("onMessage",{data:r,origin:t});const e=Vl(r,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(n=>{console.error(n),this.sendMessage("ERROR "+n.message)})},async listenForMessage(r){let t;return new Promise((e,n)=>{if(t=({data:o,origin:i})=>{if(i.includes(gr.getCoinflowBaseUrl(this.args.env))){if(o.startsWith("ERROR")){n(new Error(o.replace("ERROR","")));return}r(o)&&e(o)}},!window)throw new Error("Window not defined");window.addEventListener("message",t)}).finally(()=>{window.removeEventListener("message",t)})},async sendAndReceiveMessage(r,t){return this.sendMessage(r),this.listenForMessage(t)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),ja=(r,t)=>{const e=r.__vccOpts||r;for(const[n,o]of t)e[n]=o;return e},Py=["src","scrolling"];function My(r,t,e,n,o,i){return $t.openBlock(),$t.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write",title:"withdraw",frameBorder:"0",src:r.url,scrolling:r.args.handleHeightChange?"no":"yes",onLoad:t[0]||(t[0]=()=>{const u=r.$refs.iframeRef;u&&(u.style.opacity="1")})},null,40,Py)}const ds=ja(By,[["render",My]]),Dy=$t.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Uy(r,t,e,n,o,i){const u=$t.resolveComponent("coinflow-i-frame");return $t.openBlock(),$t.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Fy=ja(Dy,[["render",Uy]]),Hy=$t.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:ds},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const r=us(this.args);return{...this.args,walletPubkey:r,route:`/purchase-v2/${this.args.merchantId}`,transaction:gr.getTransaction(this.args)}},messageHandlers(){return{...ls(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Vy(r,t,e,n,o,i){const u=$t.resolveComponent("coinflow-i-frame");return $t.openBlock(),$t.createBlock(u,{args:{...r.iframeProps,...r.messageHandlers,handleHeightChangeId:r.handleHeightChangeId}},null,8,["args"])}const Wy=ja(Hy,[["render",Vy]]),Ya=r=>{const t=$t.ref(!1),e=$t.ref(!1),n=$t.ref(void 0),o=$t.ref(void 0);$t.onMounted(()=>{Ga({env:r.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),e.value=!0}})});const i=O=>o.value=O,u=()=>t.value=!0,d=O=>n.value=O,l=async O=>{const C=await Kl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},v=async O=>{const C=await jl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C},S=async O=>{const C=await Yl({...r,...O,tokenExScriptLoaded:e.value,setCachedToken:i,setLoaded:u});return d(C),C};return $t.watchEffect(O=>{n.value&&(n.value.load(),O(()=>n.value?.remove()))}),{tokenExIframe:n,initializeTokenExIframe:v,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:S,loaded:t,cachedToken:o,setTokenExScriptTag:Ga,tokenExScriptLoaded:e}},zy=["id"],Gy=$t.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{e({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(ro)},null,8,zy))}}),Ky=["id"],jy=$t.defineComponent({__name:"CoinflowCvvInput",setup(r){return(t,e)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(Li)},null,8,Ky))}}),Yy=["id"],qy=$t.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{initializeCvvOnlyTokenExIframe:e,tokenExIframe:n}=Ya(r.args);async function o(){if(!n.value)throw new Error("Unable to get token");return n.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{e({...r.args,origins:r.args.origins??[],css:i(),font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(Li)},null,8,Yy))}}),$y=$t.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(r){const t=$t.ref(void 0);$t.onMounted(()=>new gr(r.args.env).getNSurePartnerId(r.args.merchantId).then(n=>t.value=n));function e(){return r.args.env==="prod"?"9JBW2RHC7JNJN8ZQ":"SANDBOX_CTCE4XK53ZW0R7V1"}return $t.watchEffect(n=>{t.value&&Hl.init(e(),t.value)}),(n,o)=>null}}),Zy=["id"],Xy=$t.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(r,{expose:t}){const{tokenExIframe:e,initializeTokenExCardOnlyIframe:n}=Ya(r.args);async function o(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}t({getToken:o});function i(){return JSON.stringify(r.args.css)}return $t.watchEffect(()=>{n({css:i(),debug:r.args.debug,origins:r.args.origins,font:r.args.font})},{}),(u,d)=>($t.openBlock(),$t.createElementBlock("div",{id:$t.unref(ro)},null,8,Zy))}}),Jy={style:{position:"relative",height:"100%"}},Qy={style:{position:"relative",zIndex:10,height:"100%"}},ql=$t.defineComponent({__name:"MobileWalletButton",props:{args:{type:Object,required:!0},route:{type:String,required:!0},overlayDisplayOverride:{type:String,required:!1},alignItems:{type:String,required:!1}},setup(r){const{onSuccess:t}=r.args;function e(){const l=us(r.args);return{...r.args,walletPubkey:l,transaction:void 0,routePrefix:"form",route:`/${r.route}/${r.args.merchantId}`}}function n(){return{...ls(r.args),handleHeightChange:r.args.handleHeightChange}}const o=$t.ref(.8),i=$t.ref("flex"),u=Math.random().toString(16).substring(2);function d({data:l}){try{const v=JSON.parse(l);if("method"in v&&v.method==="loaded"&&(o.value=1,i.value="none"),"method"in v&&v.data.startsWith("ERROR"))return r.args?.onError?.(v.info),!1;if(!("method"in v)||v.method!=="getToken")return}catch{return}t?.(l)}return(l,v)=>($t.openBlock(),$t.createElementBlock("div",Jy,[$t.createElementVNode("div",{style:$t.normalizeStyle({backgroundColor:r.args.color,display:r.overlayDisplayOverride??i.value,opacity:o.value,alignItems:r.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[$t.renderSlot(l.$slots,"default")],4),$t.createElementVNode("div",Qy,[$t.createVNode(ds,{onOnMessage:d,args:{...e(),...n(),handleHeightChangeId:$t.unref(u)}},null,8,["args"])])]))}}),t4={id:"svg-logo",viewBox:"0 0 35 15"},e4={id:"svg-logo",x:"0",y:"3.85",height:"7.3",width:"35",className:"logo",viewBox:"0 0 105 43",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},n4={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},r4=["fill"],i4=$t.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(r){const t=r.color==="white"?"#000":"#FFF";return(e,n)=>($t.openBlock(),$t.createElementBlock("svg",t4,[($t.openBlock(),$t.createElementBlock("svg",e4,[n[1]||(n[1]=$t.createElementVNode("title",null,"Apple Logo",-1)),$t.createElementVNode("g",n4,[$t.createElementVNode("g",{fill:$t.unref(t)},[...n[0]||(n[0]=[$t.createStaticVNode('<path d="M19.4028,5.5674 C20.6008,4.0684 21.4138,2.0564 21.1998,0.0004 C19.4458,0.0874 17.3058,1.1574 16.0668,2.6564 C14.9538,3.9414 13.9688,6.0374 14.2258,8.0074 C16.1948,8.1784 18.1618,7.0244 19.4028,5.5674"></path><path d="M21.1772,8.3926 C18.3182,8.2226 15.8872,10.0156 14.5212,10.0156 C13.1552,10.0156 11.0642,8.4786 8.8022,8.5196 C5.8592,8.5626 3.1282,10.2276 1.6342,12.8746 C-1.4378,18.1696 0.8232,26.0246 3.8112,30.3376 C5.2622,32.4716 7.0102,34.8206 9.3142,34.7366 C11.4912,34.6506 12.3442,33.3266 14.9902,33.3266 C17.6352,33.3266 18.4042,34.7366 20.7082,34.6936 C23.0972,34.6506 24.5922,32.5586 26.0422,30.4226 C27.7072,27.9906 28.3882,25.6426 28.4312,25.5126 C28.3882,25.4706 23.8232,23.7186 23.7812,18.4676 C23.7382,14.0706 27.3652,11.9786 27.5362,11.8496 C25.4882,8.8196 22.2872,8.4786 21.1772,8.3926"></path><path d="M85.5508,43.0381 L85.5508,39.1991 C85.8628,39.2421 86.6158,39.2871 87.0158,39.2871 C89.2138,39.2871 90.4558,38.3551 91.2108,35.9581 L91.6548,34.5371 L83.2428,11.2321 L88.4368,11.2321 L94.2958,30.1421 L94.4068,30.1421 L100.2668,11.2321 L105.3278,11.2321 L96.6048,35.7141 C94.6078,41.3291 92.3208,43.1721 87.4828,43.1721 C87.1048,43.1721 85.8838,43.1271 85.5508,43.0381"></path><path d="M42.6499,19.3555 L48.3549,19.3555 C52.6829,19.3555 55.1469,17.0255 55.1469,12.9855 C55.1469,8.9455 52.6829,6.6375 48.3769,6.6375 L42.6499,6.6375 L42.6499,19.3555 Z M49.6869,2.4425 C55.9009,2.4425 60.2289,6.7265 60.2289,12.9625 C60.2289,19.2225 55.8129,23.5285 49.5309,23.5285 L42.6499,23.5285 L42.6499,34.4705 L37.6779,34.4705 L37.6779,2.4425 L49.6869,2.4425 Z"></path><path d="M76.5547,25.7705 L76.5547,23.9715 L71.0287,24.3275 C67.9207,24.5275 66.3007,25.6815 66.3007,27.7015 C66.3007,29.6545 67.9887,30.9195 70.6287,30.9195 C74.0027,30.9195 76.5547,28.7665 76.5547,25.7705 M61.4617,27.8345 C61.4617,23.7285 64.5917,21.3755 70.3627,21.0205 L76.5547,20.6425 L76.5547,18.8675 C76.5547,16.2705 74.8457,14.8495 71.8057,14.8495 C69.2967,14.8495 67.4777,16.1375 67.0997,18.1125 L62.6167,18.1125 C62.7497,13.9615 66.6567,10.9435 71.9387,10.9435 C77.6207,10.9435 81.3267,13.9175 81.3267,18.5345 L81.3267,34.4705 L76.7327,34.4705 L76.7327,30.6305 L76.6217,30.6305 C75.3127,33.1395 72.4267,34.7145 69.2967,34.7145 C64.6807,34.7145 61.4617,31.9625 61.4617,27.8345"></path>',5)])],8,r4)])]))]))}}),o4=$t.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createBlock(ql,{route:"apple-pay",args:r.args},{default:$t.withCtx(()=>[$t.createVNode(i4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}}),s4={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},a4={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},c4=$t.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createElementBlock($t.Fragment,null,[r.color==="white"?($t.openBlock(),$t.createElementBlock("svg",s4,[...e[0]||(e[0]=[$t.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#5F6368"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path><path d="M0 0h41.285v18H0z"></path></g>',1)])])):$t.createCommentVNode("",!0),r.color==="black"?($t.openBlock(),$t.createElementBlock("svg",a4,[...e[1]||(e[1]=[$t.createStaticVNode('<g fill="none" fill-rule="evenodd"><path d="M19.526 2.635v4.083h2.518c.6 0 1.096-.202 1.488-.605.403-.402.605-.882.605-1.437 0-.544-.202-1.018-.605-1.422-.392-.413-.888-.62-1.488-.62h-2.518zm0 5.52v4.736h-1.504V1.198h3.99c1.013 0 1.873.337 2.582 1.012.72.675 1.08 1.497 1.08 2.466 0 .991-.36 1.819-1.08 2.482-.697.665-1.559.996-2.583.996h-2.485v.001zm7.668 2.287c0 .392.166.718.499.98.332.26.722.391 1.168.391.633 0 1.196-.234 1.692-.701.497-.469.744-1.019.744-1.65-.469-.37-1.123-.555-1.962-.555-.61 0-1.12.148-1.528.442-.409.294-.613.657-.613 1.093m1.946-5.815c1.112 0 1.989.297 2.633.89.642.594.964 1.408.964 2.442v4.932h-1.439v-1.11h-.065c-.622.914-1.45 1.372-2.486 1.372-.882 0-1.621-.262-2.215-.784-.594-.523-.891-1.176-.891-1.96 0-.828.313-1.486.94-1.976s1.463-.735 2.51-.735c.892 0 1.629.163 2.206.49v-.344c0-.522-.207-.966-.621-1.33a2.132 2.132 0 0 0-1.455-.547c-.84 0-1.504.353-1.995 1.062l-1.324-.834c.73-1.045 1.81-1.568 3.238-1.568m11.853.262l-5.02 11.53H34.42l1.864-4.034-3.302-7.496h1.635l2.387 5.749h.032l2.322-5.75z" fill="#FFF"></path><path d="M13.448 7.134c0-.473-.04-.93-.116-1.366H6.988v2.588h3.634a3.11 3.11 0 0 1-1.344 2.042v1.68h2.169c1.27-1.17 2.001-2.9 2.001-4.944" fill="#4285F4"></path><path d="M6.988 13.7c1.816 0 3.344-.595 4.459-1.621l-2.169-1.681c-.603.406-1.38.643-2.29.643-1.754 0-3.244-1.182-3.776-2.774H.978v1.731a6.728 6.728 0 0 0 6.01 3.703" fill="#34A853"></path><path d="M3.212 8.267a4.034 4.034 0 0 1 0-2.572V3.964H.978A6.678 6.678 0 0 0 .261 6.98c0 1.085.26 2.11.717 3.017l2.234-1.731z" fill="#FABB05"></path><path d="M6.988 2.921c.992 0 1.88.34 2.58 1.008v.001l1.92-1.918C10.324.928 8.804.262 6.989.262a6.728 6.728 0 0 0-6.01 3.702l2.234 1.731c.532-1.592 2.022-2.774 3.776-2.774" fill="#E94235"></path></g>',1)])])):$t.createCommentVNode("",!0)],64))}}),u4=$t.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(r){return(t,e)=>($t.openBlock(),$t.createBlock(ql,{route:"google-pay",args:r.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:$t.withCtx(()=>[$t.createVNode(c4,{color:r.args.color},null,8,["color"])]),_:1},8,["args"]))}});me.BankingCurrencies=Ul,me.CARD_TYPE_MAPPING=zl,me.CardType=di,me.CoinflowApplePayButton=o4,me.CoinflowCardNumberInput=Gy,me.CoinflowCardNumberOnlyInput=Xy,me.CoinflowCvvInput=jy,me.CoinflowCvvOnlyInput=qy,me.CoinflowGooglePayButton=u4,me.CoinflowIframe=ds,me.CoinflowPurchase=Wy,me.CoinflowPurchaseProtection=$y,me.CoinflowUtils=gr,me.CoinflowWithdraw=Fy,me.Currency=Wa,me.CurrencyToISO4217=yy,me.EventBus=xy,me.IFrameMessageMethods=za,me.MerchantStyle=kc,me.PaymentMethods=Tc,me.SettlementType=Ic,me.ThreeDsChallengePreference=Oc,me.TokenExCardNumberIframeId=ro,me.TokenExCvvContainerID=Li,me.WithdrawCategory=Sc,me.WithdrawCurrencies=Dl,me.WithdrawSpeed=Ac,me.doInitializeCvvOnlyTokenExIframe=Kl,me.doInitializeTokenExCardOnlyIframe=Yl,me.doInitializeTokenExIframe=jl,me.getCurrencyDecimals=Sy,me.getCustomerName=Oy,me.getHandlers=ls,me.getIframeConfig=Gl,me.getWalletPubkey=us,me.handleIFrameMessage=Vl,me.isBankingCurrency=by,me.isTypedCurrencyCents=Ay,me.isWithdrawCurrency=wy,me.paymentMethodLabels=bd,me.setTokenExScriptTag=Ga,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});