@coinflowlabs/vue 1.18.1 → 1.19.1
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.
- package/dist/coinflow-vue.js +9013 -8673
- package/dist/coinflow-vue.umd.cjs +18 -18
- package/dist/components/CoinflowPurchase.vue.d.ts +41 -9
- package/dist/components/CoinflowWithdraw.vue.d.ts +21 -0
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +110 -2
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +24 -3
- package/dist/lib/common/CoinflowTypes.d.ts +122 -7
- package/dist/lib/common/CoinflowUtils.d.ts +6 -1
- package/dist/lib/common/bankLinkCallback.d.ts +53 -0
- package/dist/lib/common/card-form/cardFieldValidationError.d.ts +50 -0
- package/dist/lib/common/index.d.ts +3 -0
- package/dist/lib/common/plaidLinkTokenCache.d.ts +34 -0
- package/dist/lib/common/types/Subtotal.d.ts +10 -0
- package/package.json +2 -4
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
(function(Yt,Ut){typeof exports=="object"&&typeof module<"u"?Ut(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Ut):(Yt=typeof globalThis<"u"?globalThis:Yt||self,Ut(Yt.VueTypeWriter={},Yt.Vue))})(this,(function(Yt,Ut){"use strict";var du=(t=>(t.USER="user",t.BUSINESS="business",t.FIRST_PARTY="firstParty",t))(du||{}),hu=(t=>(t.ASAP="asap",t.SAME_DAY="same_day",t.STANDARD="standard",t.CARD="card",t.IBAN="iban",t.PIX="pix",t.EFT="eft",t.VENMO="venmo",t.PAYPAL="paypal",t.WIRE="wire",t.INTERAC="interac",t.SWIFT="swift",t))(hu||{}),pu=(t=>(t.Credits="Credits",t.USDC="USDC",t.Bank="Bank",t))(pu||{});function Rd(t){return"cardToken"in t}function Ad(t){return"disableSavedPaymentMethods"in t}var vu=(t=>(t.Rounded="rounded",t.Sharp="sharp",t.Pill="pill",t))(vu||{}),mu=(t=>(t.GUEST="guest",t.PRIVATE="private",t.BUSINESS="business",t))(mu||{}),gu=(t=>(t.NoPreference="NoPreference",t.Frictionless="Frictionless",t.Challenge="Challenge",t))(gu||{}),yu=(t=>(t.card="card",t.ach="ach",t.fasterPayments="fasterPayments",t.sepa="sepa",t.pix="pix",t.usdc="usdc",t.googlePay="googlePay",t.applePay="applePay",t.credits="credits",t.crypto="crypto",t.wire="wire",t.cashApp="cashApp",t.apa="apa",t.paypal="paypal",t.venmo="venmo",t.interac="interac",t))(yu||{});const Sd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",wire:"Wire Transfer",cashApp:"CashApp",apa:"APA",paypal:"PayPal",venmo:"Venmo",interac:"Interac"};var $r=(t=>(t.VISA="VISA",t.MASTERCARD="MSTR",t.AMEX="AMEX",t.DISCOVER="DISC",t))($r||{});const Id="rnredirect";function Es(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _s(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var r=function e(){var u=!1;try{u=this instanceof e}catch{}return u?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var u=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,u.get?u:{enumerable:!0,get:function(){return t[e]}})}),r}var bs={},Ri={},wu;function Od(){if(wu)return Ri;wu=1,Ri.byteLength=g,Ri.toByteArray=_,Ri.fromByteArray=N;for(var t=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=e.length;u<a;++u)t[u]=e[u],n[e.charCodeAt(u)]=u;n[45]=62,n[95]=63;function d(x){var M=x.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=x.indexOf("=");U===-1&&(U=M);var Y=U===M?0:4-U%4;return[U,Y]}function g(x){var M=d(x),U=M[0],Y=M[1];return(U+Y)*3/4-Y}function l(x,M,U){return(M+U)*3/4-U}function _(x){var M,U=d(x),Y=U[0],W=U[1],J=new r(l(x,Y,W)),Z=0,et=W>0?Y-4:Y,ht;for(ht=0;ht<et;ht+=4)M=n[x.charCodeAt(ht)]<<18|n[x.charCodeAt(ht+1)]<<12|n[x.charCodeAt(ht+2)]<<6|n[x.charCodeAt(ht+3)],J[Z++]=M>>16&255,J[Z++]=M>>8&255,J[Z++]=M&255;return W===2&&(M=n[x.charCodeAt(ht)]<<2|n[x.charCodeAt(ht+1)]>>4,J[Z++]=M&255),W===1&&(M=n[x.charCodeAt(ht)]<<10|n[x.charCodeAt(ht+1)]<<4|n[x.charCodeAt(ht+2)]>>2,J[Z++]=M>>8&255,J[Z++]=M&255),J}function T(x){return t[x>>18&63]+t[x>>12&63]+t[x>>6&63]+t[x&63]}function C(x,M,U){for(var Y,W=[],J=M;J<U;J+=3)Y=(x[J]<<16&16711680)+(x[J+1]<<8&65280)+(x[J+2]&255),W.push(T(Y));return W.join("")}function N(x){for(var M,U=x.length,Y=U%3,W=[],J=16383,Z=0,et=U-Y;Z<et;Z+=J)W.push(C(x,Z,Z+J>et?et:Z+J));return Y===1?(M=x[U-1],W.push(t[M>>2]+t[M<<4&63]+"==")):Y===2&&(M=(x[U-2]<<8)+x[U-1],W.push(t[M>>10]+t[M>>4&63]+t[M<<2&63]+"=")),W.join("")}return Ri}var vo={};var Eu;function Td(){return Eu||(Eu=1,vo.read=function(t,n,r,e,u){var a,d,g=u*8-e-1,l=(1<<g)-1,_=l>>1,T=-7,C=r?u-1:0,N=r?-1:1,x=t[n+C];for(C+=N,a=x&(1<<-T)-1,x>>=-T,T+=g;T>0;a=a*256+t[n+C],C+=N,T-=8);for(d=a&(1<<-T)-1,a>>=-T,T+=e;T>0;d=d*256+t[n+C],C+=N,T-=8);if(a===0)a=1-_;else{if(a===l)return d?NaN:(x?-1:1)*(1/0);d=d+Math.pow(2,e),a=a-_}return(x?-1:1)*d*Math.pow(2,a-e)},vo.write=function(t,n,r,e,u,a){var d,g,l,_=a*8-u-1,T=(1<<_)-1,C=T>>1,N=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:a-1,M=e?1:-1,U=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(g=isNaN(n)?1:0,d=T):(d=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-d))<1&&(d--,l*=2),d+C>=1?n+=N/l:n+=N*Math.pow(2,1-C),n*l>=2&&(d++,l/=2),d+C>=T?(g=0,d=T):d+C>=1?(g=(n*l-1)*Math.pow(2,u),d=d+C):(g=n*Math.pow(2,C-1)*Math.pow(2,u),d=0));u>=8;t[r+x]=g&255,x+=M,g/=256,u-=8);for(d=d<<u|g,_+=u;_>0;t[r+x]=d&255,x+=M,d/=256,_-=8);t[r+x-M]|=U*128}),vo}var _u;function Rs(){return _u||(_u=1,(function(t){const n=Od(),r=Td(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=g,t.SlowBuffer=J,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u,g.TYPED_ARRAY_SUPPORT=a(),!g.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 a(){try{const F=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(F,R),F.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function d(F){if(F>u)throw new RangeError('The value "'+F+'" is invalid for option "size"');const R=new Uint8Array(F);return Object.setPrototypeOf(R,g.prototype),R}function g(F,R,O){if(typeof F=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(F)}return l(F,R,O)}g.poolSize=8192;function l(F,R,O){if(typeof F=="string")return N(F,R);if(ArrayBuffer.isView(F))return M(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(yt(F,ArrayBuffer)||F&&yt(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(yt(F,SharedArrayBuffer)||F&&yt(F.buffer,SharedArrayBuffer)))return U(F,R,O);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=F.valueOf&&F.valueOf();if(A!=null&&A!==F)return g.from(A,R,O);const V=Y(F);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return g.from(F[Symbol.toPrimitive]("string"),R,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}g.from=function(F,R,O){return l(F,R,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function _(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function T(F,R,O){return _(F),F<=0?d(F):R!==void 0?typeof O=="string"?d(F).fill(R,O):d(F).fill(R):d(F)}g.alloc=function(F,R,O){return T(F,R,O)};function C(F){return _(F),d(F<0?0:W(F)|0)}g.allocUnsafe=function(F){return C(F)},g.allocUnsafeSlow=function(F){return C(F)};function N(F,R){if((typeof R!="string"||R==="")&&(R="utf8"),!g.isEncoding(R))throw new TypeError("Unknown encoding: "+R);const O=Z(F,R)|0;let A=d(O);const V=A.write(F,R);return V!==O&&(A=A.slice(0,V)),A}function x(F){const R=F.length<0?0:W(F.length)|0,O=d(R);for(let A=0;A<R;A+=1)O[A]=F[A]&255;return O}function M(F){if(yt(F,Uint8Array)){const R=new Uint8Array(F);return U(R.buffer,R.byteOffset,R.byteLength)}return x(F)}function U(F,R,O){if(R<0||F.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<R+(O||0))throw new RangeError('"length" is outside of buffer bounds');let A;return R===void 0&&O===void 0?A=new Uint8Array(F):O===void 0?A=new Uint8Array(F,R):A=new Uint8Array(F,R,O),Object.setPrototypeOf(A,g.prototype),A}function Y(F){if(g.isBuffer(F)){const R=W(F.length)|0,O=d(R);return O.length===0||F.copy(O,0,0,R),O}if(F.length!==void 0)return typeof F.length!="number"||Et(F.length)?d(0):x(F);if(F.type==="Buffer"&&Array.isArray(F.data))return x(F.data)}function W(F){if(F>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return F|0}function J(F){return+F!=F&&(F=0),g.alloc(+F)}g.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==g.prototype},g.compare=function(R,O){if(yt(R,Uint8Array)&&(R=g.from(R,R.offset,R.byteLength)),yt(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(R)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===O)return 0;let A=R.length,V=O.length;for(let G=0,ot=Math.min(A,V);G<ot;++G)if(R[G]!==O[G]){A=R[G],V=O[G];break}return A<V?-1:V<A?1:0},g.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}},g.concat=function(R,O){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return g.alloc(0);let A;if(O===void 0)for(O=0,A=0;A<R.length;++A)O+=R[A].length;const V=g.allocUnsafe(O);let G=0;for(A=0;A<R.length;++A){let ot=R[A];if(yt(ot,Uint8Array))G+ot.length>V.length?(g.isBuffer(ot)||(ot=g.from(ot)),ot.copy(V,G)):Uint8Array.prototype.set.call(V,ot,G);else if(g.isBuffer(ot))ot.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=ot.length}return V};function Z(F,R){if(g.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||yt(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const O=F.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&O===0)return 0;let V=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return $t(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return H(F).length;default:if(V)return A?-1:$t(F).length;R=(""+R).toLowerCase(),V=!0}}g.byteLength=Z;function et(F,R,O){let A=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,R>>>=0,O<=R))return"";for(F||(F="utf8");;)switch(F){case"hex":return nt(this,R,O);case"utf8":case"utf-8":return f(this,R,O);case"ascii":return z(this,R,O);case"latin1":case"binary":return q(this,R,O);case"base64":return P(this,R,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft(this,R,O);default:if(A)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),A=!0}}g.prototype._isBuffer=!0;function ht(F,R,O){const A=F[R];F[R]=F[O],F[O]=A}g.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 O=0;O<R;O+=2)ht(this,O,O+1);return this},g.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 O=0;O<R;O+=4)ht(this,O,O+3),ht(this,O+1,O+2);return this},g.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 O=0;O<R;O+=8)ht(this,O,O+7),ht(this,O+1,O+6),ht(this,O+2,O+5),ht(this,O+3,O+4);return this},g.prototype.toString=function(){const R=this.length;return R===0?"":arguments.length===0?f(this,0,R):et.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(R){if(!g.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R?!0:g.compare(this,R)===0},g.prototype.inspect=function(){let R="";const O=t.INSPECT_MAX_BYTES;return R=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(R+=" ... "),"<Buffer "+R+">"},e&&(g.prototype[e]=g.prototype.inspect),g.prototype.compare=function(R,O,A,V,G){if(yt(R,Uint8Array)&&(R=g.from(R,R.offset,R.byteLength)),!g.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(O===void 0&&(O=0),A===void 0&&(A=R?R.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),O<0||A>R.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&O>=A)return 0;if(V>=G)return-1;if(O>=A)return 1;if(O>>>=0,A>>>=0,V>>>=0,G>>>=0,this===R)return 0;let ot=G-V,Lt=A-O;const Bt=Math.min(ot,Lt),Dt=this.slice(V,G),kt=R.slice(O,A);for(let it=0;it<Bt;++it)if(Dt[it]!==kt[it]){ot=Dt[it],Lt=kt[it];break}return ot<Lt?-1:Lt<ot?1:0};function ut(F,R,O,A,V){if(F.length===0)return-1;if(typeof O=="string"?(A=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Et(O)&&(O=V?0:F.length-1),O<0&&(O=F.length+O),O>=F.length){if(V)return-1;O=F.length-1}else if(O<0)if(V)O=0;else return-1;if(typeof R=="string"&&(R=g.from(R,A)),g.isBuffer(R))return R.length===0?-1:At(F,R,O,A,V);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(F,R,O):Uint8Array.prototype.lastIndexOf.call(F,R,O):At(F,[R],O,A,V);throw new TypeError("val must be string, number or Buffer")}function At(F,R,O,A,V){let G=1,ot=F.length,Lt=R.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(F.length<2||R.length<2)return-1;G=2,ot/=2,Lt/=2,O/=2}function Bt(kt,it){return G===1?kt[it]:kt.readUInt16BE(it*G)}let Dt;if(V){let kt=-1;for(Dt=O;Dt<ot;Dt++)if(Bt(F,Dt)===Bt(R,kt===-1?0:Dt-kt)){if(kt===-1&&(kt=Dt),Dt-kt+1===Lt)return kt*G}else kt!==-1&&(Dt-=Dt-kt),kt=-1}else for(O+Lt>ot&&(O=ot-Lt),Dt=O;Dt>=0;Dt--){let kt=!0;for(let it=0;it<Lt;it++)if(Bt(F,Dt+it)!==Bt(R,it)){kt=!1;break}if(kt)return Dt}return-1}g.prototype.includes=function(R,O,A){return this.indexOf(R,O,A)!==-1},g.prototype.indexOf=function(R,O,A){return ut(this,R,O,A,!0)},g.prototype.lastIndexOf=function(R,O,A){return ut(this,R,O,A,!1)};function Rt(F,R,O,A){O=Number(O)||0;const V=F.length-O;A?(A=Number(A),A>V&&(A=V)):A=V;const G=R.length;A>G/2&&(A=G/2);let ot;for(ot=0;ot<A;++ot){const Lt=parseInt(R.substr(ot*2,2),16);if(Et(Lt))return ot;F[O+ot]=Lt}return ot}function st(F,R,O,A){return lt($t(R,F.length-O),F,O,A)}function ct(F,R,O,A){return lt(m(R),F,O,A)}function gt(F,R,O,A){return lt(H(R),F,O,A)}function wt(F,R,O,A){return lt(k(R,F.length-O),F,O,A)}g.prototype.write=function(R,O,A,V){if(O===void 0)V="utf8",A=this.length,O=0;else if(A===void 0&&typeof O=="string")V=O,A=this.length,O=0;else if(isFinite(O))O=O>>>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 G=this.length-O;if((A===void 0||A>G)&&(A=G),R.length>0&&(A<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ot=!1;for(;;)switch(V){case"hex":return Rt(this,R,O,A);case"utf8":case"utf-8":return st(this,R,O,A);case"ascii":case"latin1":case"binary":return ct(this,R,O,A);case"base64":return gt(this,R,O,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,R,O,A);default:if(ot)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ot=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(F,R,O){return R===0&&O===F.length?n.fromByteArray(F):n.fromByteArray(F.slice(R,O))}function f(F,R,O){O=Math.min(F.length,O);const A=[];let V=R;for(;V<O;){const G=F[V];let ot=null,Lt=G>239?4:G>223?3:G>191?2:1;if(V+Lt<=O){let Bt,Dt,kt,it;switch(Lt){case 1:G<128&&(ot=G);break;case 2:Bt=F[V+1],(Bt&192)===128&&(it=(G&31)<<6|Bt&63,it>127&&(ot=it));break;case 3:Bt=F[V+1],Dt=F[V+2],(Bt&192)===128&&(Dt&192)===128&&(it=(G&15)<<12|(Bt&63)<<6|Dt&63,it>2047&&(it<55296||it>57343)&&(ot=it));break;case 4:Bt=F[V+1],Dt=F[V+2],kt=F[V+3],(Bt&192)===128&&(Dt&192)===128&&(kt&192)===128&&(it=(G&15)<<18|(Bt&63)<<12|(Dt&63)<<6|kt&63,it>65535&&it<1114112&&(ot=it))}}ot===null?(ot=65533,Lt=1):ot>65535&&(ot-=65536,A.push(ot>>>10&1023|55296),ot=56320|ot&1023),A.push(ot),V+=Lt}return D(A)}const S=4096;function D(F){const R=F.length;if(R<=S)return String.fromCharCode.apply(String,F);let O="",A=0;for(;A<R;)O+=String.fromCharCode.apply(String,F.slice(A,A+=S));return O}function z(F,R,O){let A="";O=Math.min(F.length,O);for(let V=R;V<O;++V)A+=String.fromCharCode(F[V]&127);return A}function q(F,R,O){let A="";O=Math.min(F.length,O);for(let V=R;V<O;++V)A+=String.fromCharCode(F[V]);return A}function nt(F,R,O){const A=F.length;(!R||R<0)&&(R=0),(!O||O<0||O>A)&&(O=A);let V="";for(let G=R;G<O;++G)V+=Ct[F[G]];return V}function ft(F,R,O){const A=F.slice(R,O);let V="";for(let G=0;G<A.length-1;G+=2)V+=String.fromCharCode(A[G]+A[G+1]*256);return V}g.prototype.slice=function(R,O){const A=this.length;R=~~R,O=O===void 0?A:~~O,R<0?(R+=A,R<0&&(R=0)):R>A&&(R=A),O<0?(O+=A,O<0&&(O=0)):O>A&&(O=A),O<R&&(O=R);const V=this.subarray(R,O);return Object.setPrototypeOf(V,g.prototype),V};function K(F,R,O){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+R>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let V=this[R],G=1,ot=0;for(;++ot<O&&(G*=256);)V+=this[R+ot]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let V=this[R+--O],G=1;for(;O>0&&(G*=256);)V+=this[R+--O]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(R,O){return R=R>>>0,O||K(R,1,this.length),this[R]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(R,O){return R=R>>>0,O||K(R,2,this.length),this[R]|this[R+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(R,O){return R=R>>>0,O||K(R,2,this.length),this[R]<<8|this[R+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(R,O){return R=R>>>0,O||K(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(R,O){return R=R>>>0,O||K(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},g.prototype.readBigUInt64LE=Wt(function(R){R=R>>>0,Oe(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(R,this.length-8);const V=O+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24,G=this[++R]+this[++R]*2**8+this[++R]*2**16+A*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=Wt(function(R){R=R>>>0,Oe(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(R,this.length-8);const V=O*2**24+this[++R]*2**16+this[++R]*2**8+this[++R],G=this[++R]*2**24+this[++R]*2**16+this[++R]*2**8+A;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let V=this[R],G=1,ot=0;for(;++ot<O&&(G*=256);)V+=this[R+ot]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*O)),V},g.prototype.readIntBE=function(R,O,A){R=R>>>0,O=O>>>0,A||K(R,O,this.length);let V=O,G=1,ot=this[R+--V];for(;V>0&&(G*=256);)ot+=this[R+--V]*G;return G*=128,ot>=G&&(ot-=Math.pow(2,8*O)),ot},g.prototype.readInt8=function(R,O){return R=R>>>0,O||K(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},g.prototype.readInt16LE=function(R,O){R=R>>>0,O||K(R,2,this.length);const A=this[R]|this[R+1]<<8;return A&32768?A|4294901760:A},g.prototype.readInt16BE=function(R,O){R=R>>>0,O||K(R,2,this.length);const A=this[R+1]|this[R]<<8;return A&32768?A|4294901760:A},g.prototype.readInt32LE=function(R,O){return R=R>>>0,O||K(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},g.prototype.readInt32BE=function(R,O){return R=R>>>0,O||K(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},g.prototype.readBigInt64LE=Wt(function(R){R=R>>>0,Oe(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(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(O+this[++R]*2**8+this[++R]*2**16+this[++R]*2**24)}),g.prototype.readBigInt64BE=Wt(function(R){R=R>>>0,Oe(R,"offset");const O=this[R],A=this[R+7];(O===void 0||A===void 0)&&_e(R,this.length-8);const V=(O<<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)}),g.prototype.readFloatLE=function(R,O){return R=R>>>0,O||K(R,4,this.length),r.read(this,R,!0,23,4)},g.prototype.readFloatBE=function(R,O){return R=R>>>0,O||K(R,4,this.length),r.read(this,R,!1,23,4)},g.prototype.readDoubleLE=function(R,O){return R=R>>>0,O||K(R,8,this.length),r.read(this,R,!0,52,8)},g.prototype.readDoubleBE=function(R,O){return R=R>>>0,O||K(R,8,this.length),r.read(this,R,!1,52,8)};function h(F,R,O,A,V,G){if(!g.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>V||R<G)throw new RangeError('"value" argument is out of bounds');if(O+A>F.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(R,O,A,V){if(R=+R,O=O>>>0,A=A>>>0,!V){const Lt=Math.pow(2,8*A)-1;h(this,R,O,A,Lt,0)}let G=1,ot=0;for(this[O]=R&255;++ot<A&&(G*=256);)this[O+ot]=R/G&255;return O+A},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(R,O,A,V){if(R=+R,O=O>>>0,A=A>>>0,!V){const Lt=Math.pow(2,8*A)-1;h(this,R,O,A,Lt,0)}let G=A-1,ot=1;for(this[O+G]=R&255;--G>=0&&(ot*=256);)this[O+G]=R/ot&255;return O+A},g.prototype.writeUint8=g.prototype.writeUInt8=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,1,255,0),this[O]=R&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,65535,0),this[O]=R&255,this[O+1]=R>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,65535,0),this[O]=R>>>8,this[O+1]=R&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,4294967295,0),this[O+3]=R>>>24,this[O+2]=R>>>16,this[O+1]=R>>>8,this[O]=R&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,4294967295,0),this[O]=R>>>24,this[O+1]=R>>>16,this[O+2]=R>>>8,this[O+3]=R&255,O+4};function b(F,R,O,A,V){ge(R,A,V,F,O,7);let G=Number(R&BigInt(4294967295));F[O++]=G,G=G>>8,F[O++]=G,G=G>>8,F[O++]=G,G=G>>8,F[O++]=G;let ot=Number(R>>BigInt(32)&BigInt(4294967295));return F[O++]=ot,ot=ot>>8,F[O++]=ot,ot=ot>>8,F[O++]=ot,ot=ot>>8,F[O++]=ot,O}function j(F,R,O,A,V){ge(R,A,V,F,O,7);let G=Number(R&BigInt(4294967295));F[O+7]=G,G=G>>8,F[O+6]=G,G=G>>8,F[O+5]=G,G=G>>8,F[O+4]=G;let ot=Number(R>>BigInt(32)&BigInt(4294967295));return F[O+3]=ot,ot=ot>>8,F[O+2]=ot,ot=ot>>8,F[O+1]=ot,ot=ot>>8,F[O]=ot,O+8}g.prototype.writeBigUInt64LE=Wt(function(R,O=0){return b(this,R,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=Wt(function(R,O=0){return j(this,R,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(R,O,A,V){if(R=+R,O=O>>>0,!V){const Bt=Math.pow(2,8*A-1);h(this,R,O,A,Bt-1,-Bt)}let G=0,ot=1,Lt=0;for(this[O]=R&255;++G<A&&(ot*=256);)R<0&&Lt===0&&this[O+G-1]!==0&&(Lt=1),this[O+G]=(R/ot>>0)-Lt&255;return O+A},g.prototype.writeIntBE=function(R,O,A,V){if(R=+R,O=O>>>0,!V){const Bt=Math.pow(2,8*A-1);h(this,R,O,A,Bt-1,-Bt)}let G=A-1,ot=1,Lt=0;for(this[O+G]=R&255;--G>=0&&(ot*=256);)R<0&&Lt===0&&this[O+G+1]!==0&&(Lt=1),this[O+G]=(R/ot>>0)-Lt&255;return O+A},g.prototype.writeInt8=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,1,127,-128),R<0&&(R=255+R+1),this[O]=R&255,O+1},g.prototype.writeInt16LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,32767,-32768),this[O]=R&255,this[O+1]=R>>>8,O+2},g.prototype.writeInt16BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,2,32767,-32768),this[O]=R>>>8,this[O+1]=R&255,O+2},g.prototype.writeInt32LE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,2147483647,-2147483648),this[O]=R&255,this[O+1]=R>>>8,this[O+2]=R>>>16,this[O+3]=R>>>24,O+4},g.prototype.writeInt32BE=function(R,O,A){return R=+R,O=O>>>0,A||h(this,R,O,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[O]=R>>>24,this[O+1]=R>>>16,this[O+2]=R>>>8,this[O+3]=R&255,O+4},g.prototype.writeBigInt64LE=Wt(function(R,O=0){return b(this,R,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=Wt(function(R,O=0){return j(this,R,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(F,R,O,A,V,G){if(O+A>F.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function pt(F,R,O,A,V){return R=+R,O=O>>>0,V||X(F,R,O,4),r.write(F,R,O,A,23,4),O+4}g.prototype.writeFloatLE=function(R,O,A){return pt(this,R,O,!0,A)},g.prototype.writeFloatBE=function(R,O,A){return pt(this,R,O,!1,A)};function St(F,R,O,A,V){return R=+R,O=O>>>0,V||X(F,R,O,8),r.write(F,R,O,A,52,8),O+8}g.prototype.writeDoubleLE=function(R,O,A){return St(this,R,O,!0,A)},g.prototype.writeDoubleBE=function(R,O,A){return St(this,R,O,!1,A)},g.prototype.copy=function(R,O,A,V){if(!g.isBuffer(R))throw new TypeError("argument should be a Buffer");if(A||(A=0),!V&&V!==0&&(V=this.length),O>=R.length&&(O=R.length),O||(O=0),V>0&&V<A&&(V=A),V===A||R.length===0||this.length===0)return 0;if(O<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-O<V-A&&(V=R.length-O+A);const G=V-A;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,A,V):Uint8Array.prototype.set.call(R,this.subarray(A,V),O),G},g.prototype.fill=function(R,O,A,V){if(typeof R=="string"){if(typeof O=="string"?(V=O,O=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"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(R.length===1){const ot=R.charCodeAt(0);(V==="utf8"&&ot<128||V==="latin1")&&(R=ot)}}else typeof R=="number"?R=R&255:typeof R=="boolean"&&(R=Number(R));if(O<0||this.length<O||this.length<A)throw new RangeError("Out of range index");if(A<=O)return this;O=O>>>0,A=A===void 0?this.length:A>>>0,R||(R=0);let G;if(typeof R=="number")for(G=O;G<A;++G)this[G]=R;else{const ot=g.isBuffer(R)?R:g.from(R,V),Lt=ot.length;if(Lt===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(G=0;G<A-O;++G)this[G+O]=ot[G%Lt]}return this};const Ht={};function Zt(F,R,O){Ht[F]=class extends O{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}Zt("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Zt("ERR_INVALID_ARG_TYPE",function(F,R){return`The "${F}" argument must be of type number. Received type ${typeof R}`},TypeError),Zt("ERR_OUT_OF_RANGE",function(F,R,O){let A=`The value of "${F}" is out of range.`,V=O;return Number.isInteger(O)&&Math.abs(O)>2**32?V=de(String(O)):typeof O=="bigint"&&(V=String(O),(O>BigInt(2)**BigInt(32)||O<-(BigInt(2)**BigInt(32)))&&(V=de(V)),V+="n"),A+=` It must be ${R}. Received ${V}`,A},RangeError);function de(F){let R="",O=F.length;const A=F[0]==="-"?1:0;for(;O>=A+4;O-=3)R=`_${F.slice(O-3,O)}${R}`;return`${F.slice(0,O)}${R}`}function ye(F,R,O){Oe(R,"offset"),(F[R]===void 0||F[R+O]===void 0)&&_e(R,F.length-(O+1))}function ge(F,R,O,A,V,G){if(F>O||F<R){const ot=typeof R=="bigint"?"n":"";let Lt;throw R===0||R===BigInt(0)?Lt=`>= 0${ot} and < 2${ot} ** ${(G+1)*8}${ot}`:Lt=`>= -(2${ot} ** ${(G+1)*8-1}${ot}) and < 2 ** ${(G+1)*8-1}${ot}`,new Ht.ERR_OUT_OF_RANGE("value",Lt,F)}ye(A,V,G)}function Oe(F,R){if(typeof F!="number")throw new Ht.ERR_INVALID_ARG_TYPE(R,"number",F)}function _e(F,R,O){throw Math.floor(F)!==F?(Oe(F,O),new Ht.ERR_OUT_OF_RANGE("offset","an integer",F)):R<0?new Ht.ERR_BUFFER_OUT_OF_BOUNDS:new Ht.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,F)}const be=/[^+/0-9A-Za-z-_]/g;function Ve(F){if(F=F.split("=")[0],F=F.trim().replace(be,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function $t(F,R){R=R||1/0;let O;const A=F.length;let V=null;const G=[];for(let ot=0;ot<A;++ot){if(O=F.charCodeAt(ot),O>55295&&O<57344){if(!V){if(O>56319){(R-=3)>-1&&G.push(239,191,189);continue}else if(ot+1===A){(R-=3)>-1&&G.push(239,191,189);continue}V=O;continue}if(O<56320){(R-=3)>-1&&G.push(239,191,189),V=O;continue}O=(V-55296<<10|O-56320)+65536}else V&&(R-=3)>-1&&G.push(239,191,189);if(V=null,O<128){if((R-=1)<0)break;G.push(O)}else if(O<2048){if((R-=2)<0)break;G.push(O>>6|192,O&63|128)}else if(O<65536){if((R-=3)<0)break;G.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((R-=4)<0)break;G.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return G}function m(F){const R=[];for(let O=0;O<F.length;++O)R.push(F.charCodeAt(O)&255);return R}function k(F,R){let O,A,V;const G=[];for(let ot=0;ot<F.length&&!((R-=2)<0);++ot)O=F.charCodeAt(ot),A=O>>8,V=O%256,G.push(V),G.push(A);return G}function H(F){return n.toByteArray(Ve(F))}function lt(F,R,O,A){let V;for(V=0;V<A&&!(V+O>=R.length||V>=F.length);++V)R[V+O]=F[V];return V}function yt(F,R){return F instanceof R||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===R.name}function Et(F){return F!==F}const Ct=(function(){const F="0123456789abcdef",R=new Array(256);for(let O=0;O<16;++O){const A=O*16;for(let V=0;V<16;++V)R[A+V]=F[O]+F[V]}return R})();function Wt(F){return typeof BigInt>"u"?ee:F}function ee(){throw new Error("BigInt not supported")}})(bs)),bs}var Ae=Rs();const qr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Ai(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function As(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function Lr(t,...n){if(!Ai(t))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(t.length))throw new Error("Uint8Array expected of length "+n+", got length="+t.length)}function bu(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");As(t.outputLen),As(t.blockLen)}function mo(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")}function Nd(t,n){Lr(t);const r=n.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Jr(...t){for(let n=0;n<t.length;n++)t[n].fill(0)}function Ss(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Zn(t,n){return t<<32-n|t>>>n}const Ru=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",xd=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function Br(t){if(Lr(t),Ru)return t.toHex();let n="";for(let r=0;r<t.length;r++)n+=xd[t[r]];return n}const rr={_0:48,_9:57,A:65,F:70,a:97,f:102};function Au(t){if(t>=rr._0&&t<=rr._9)return t-rr._0;if(t>=rr.A&&t<=rr.F)return t-(rr.A-10);if(t>=rr.a&&t<=rr.f)return t-(rr.a-10)}function go(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(Ru)return Uint8Array.fromHex(t);const n=t.length,r=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const e=new Uint8Array(r);for(let u=0,a=0;u<r;u++,a+=2){const d=Au(t.charCodeAt(a)),g=Au(t.charCodeAt(a+1));if(d===void 0||g===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}e[u]=d*16+g}return e}function Cd(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function Is(t){return typeof t=="string"&&(t=Cd(t)),Lr(t),t}function Xn(...t){let n=0;for(let e=0;e<t.length;e++){const u=t[e];Lr(u),n+=u.length}const r=new Uint8Array(n);for(let e=0,u=0;e<t.length;e++){const a=t[e];r.set(a,u),u+=a.length}return r}class Su{}function Iu(t){const n=e=>t().update(Is(e)).digest(),r=t();return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=()=>t(),n}function Os(t=32){if(qr&&typeof qr.getRandomValues=="function")return qr.getRandomValues(new Uint8Array(t));if(qr&&typeof qr.randomBytes=="function")return Uint8Array.from(qr.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function Ld(t,n,r,e){if(typeof t.setBigUint64=="function")return t.setBigUint64(n,r,e);const u=BigInt(32),a=BigInt(4294967295),d=Number(r>>u&a),g=Number(r&a),l=e?4:0,_=e?0:4;t.setUint32(n+l,d,e),t.setUint32(n+_,g,e)}function Bd(t,n,r){return t&n^~t&r}function Md(t,n,r){return t&n^t&r^n&r}class Ou extends Su{constructor(n,r,e,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=n,this.outputLen=r,this.padOffset=e,this.isLE=u,this.buffer=new Uint8Array(n),this.view=Ss(this.buffer)}update(n){mo(this),n=Is(n),Lr(n);const{view:r,buffer:e,blockLen:u}=this,a=n.length;for(let d=0;d<a;){const g=Math.min(u-this.pos,a-d);if(g===u){const l=Ss(n);for(;u<=a-d;d+=u)this.process(l,d);continue}e.set(n.subarray(d,d+g),this.pos),this.pos+=g,d+=g,this.pos===u&&(this.process(r,0),this.pos=0)}return this.length+=n.length,this.roundClean(),this}digestInto(n){mo(this),Nd(n,this),this.finished=!0;const{buffer:r,view:e,blockLen:u,isLE:a}=this;let{pos:d}=this;r[d++]=128,Jr(this.buffer.subarray(d)),this.padOffset>u-d&&(this.process(e,0),d=0);for(let C=d;C<u;C++)r[C]=0;Ld(e,u-8,BigInt(this.length*8),a),this.process(e,0);const g=Ss(n),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const _=l/4,T=this.get();if(_>T.length)throw new Error("_sha2: outputLen bigger than state");for(let C=0;C<_;C++)g.setUint32(4*C,T[C],a)}digest(){const{buffer:n,outputLen:r}=this;this.digestInto(n);const e=n.slice(0,r);return this.destroy(),e}_cloneInto(n){n||(n=new this.constructor),n.set(...this.get());const{blockLen:r,buffer:e,length:u,finished:a,destroyed:d,pos:g}=this;return n.destroyed=d,n.finished=a,n.length=u,n.pos=g,u%r&&n.buffer.set(e),n}clone(){return this._cloneInto()}}const vr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yn=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),yo=BigInt(2**32-1),Tu=BigInt(32);function kd(t,n=!1){return n?{h:Number(t&yo),l:Number(t>>Tu&yo)}:{h:Number(t>>Tu&yo)|0,l:Number(t&yo)|0}}function Dd(t,n=!1){const r=t.length;let e=new Uint32Array(r),u=new Uint32Array(r);for(let a=0;a<r;a++){const{h:d,l:g}=kd(t[a],n);[e[a],u[a]]=[d,g]}return[e,u]}const Nu=(t,n,r)=>t>>>r,xu=(t,n,r)=>t<<32-r|n>>>r,Qr=(t,n,r)=>t>>>r|n<<32-r,ti=(t,n,r)=>t<<32-r|n>>>r,wo=(t,n,r)=>t<<64-r|n>>>r-32,Eo=(t,n,r)=>t>>>r-32|n<<64-r;function ir(t,n,r,e){const u=(n>>>0)+(e>>>0);return{h:t+r+(u/2**32|0)|0,l:u|0}}const Ud=(t,n,r)=>(t>>>0)+(n>>>0)+(r>>>0),Pd=(t,n,r,e)=>n+r+e+(t/2**32|0)|0,Fd=(t,n,r,e)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0),Hd=(t,n,r,e,u)=>n+r+e+u+(t/2**32|0)|0,Vd=(t,n,r,e,u)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0)+(u>>>0),Gd=(t,n,r,e,u,a)=>n+r+e+u+a+(t/2**32|0)|0,jd=Uint32Array.from([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]),mr=new Uint32Array(64);class Yd extends Ou{constructor(n=32){super(64,n,8,!1),this.A=vr[0]|0,this.B=vr[1]|0,this.C=vr[2]|0,this.D=vr[3]|0,this.E=vr[4]|0,this.F=vr[5]|0,this.G=vr[6]|0,this.H=vr[7]|0}get(){const{A:n,B:r,C:e,D:u,E:a,F:d,G:g,H:l}=this;return[n,r,e,u,a,d,g,l]}set(n,r,e,u,a,d,g,l){this.A=n|0,this.B=r|0,this.C=e|0,this.D=u|0,this.E=a|0,this.F=d|0,this.G=g|0,this.H=l|0}process(n,r){for(let C=0;C<16;C++,r+=4)mr[C]=n.getUint32(r,!1);for(let C=16;C<64;C++){const N=mr[C-15],x=mr[C-2],M=Zn(N,7)^Zn(N,18)^N>>>3,U=Zn(x,17)^Zn(x,19)^x>>>10;mr[C]=U+mr[C-7]+M+mr[C-16]|0}let{A:e,B:u,C:a,D:d,E:g,F:l,G:_,H:T}=this;for(let C=0;C<64;C++){const N=Zn(g,6)^Zn(g,11)^Zn(g,25),x=T+N+Bd(g,l,_)+jd[C]+mr[C]|0,U=(Zn(e,2)^Zn(e,13)^Zn(e,22))+Md(e,u,a)|0;T=_,_=l,l=g,g=d+x|0,d=a,a=u,u=e,e=x+U|0}e=e+this.A|0,u=u+this.B|0,a=a+this.C|0,d=d+this.D|0,g=g+this.E|0,l=l+this.F|0,_=_+this.G|0,T=T+this.H|0,this.set(e,u,a,d,g,l,_,T)}roundClean(){Jr(mr)}destroy(){this.set(0,0,0,0,0,0,0,0),Jr(this.buffer)}}const Cu=Dd(["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(t=>BigInt(t))),Wd=Cu[0],zd=Cu[1],gr=new Uint32Array(80),yr=new Uint32Array(80);class Kd extends Ou{constructor(n=64){super(128,n,16,!1),this.Ah=yn[0]|0,this.Al=yn[1]|0,this.Bh=yn[2]|0,this.Bl=yn[3]|0,this.Ch=yn[4]|0,this.Cl=yn[5]|0,this.Dh=yn[6]|0,this.Dl=yn[7]|0,this.Eh=yn[8]|0,this.El=yn[9]|0,this.Fh=yn[10]|0,this.Fl=yn[11]|0,this.Gh=yn[12]|0,this.Gl=yn[13]|0,this.Hh=yn[14]|0,this.Hl=yn[15]|0}get(){const{Ah:n,Al:r,Bh:e,Bl:u,Ch:a,Cl:d,Dh:g,Dl:l,Eh:_,El:T,Fh:C,Fl:N,Gh:x,Gl:M,Hh:U,Hl:Y}=this;return[n,r,e,u,a,d,g,l,_,T,C,N,x,M,U,Y]}set(n,r,e,u,a,d,g,l,_,T,C,N,x,M,U,Y){this.Ah=n|0,this.Al=r|0,this.Bh=e|0,this.Bl=u|0,this.Ch=a|0,this.Cl=d|0,this.Dh=g|0,this.Dl=l|0,this.Eh=_|0,this.El=T|0,this.Fh=C|0,this.Fl=N|0,this.Gh=x|0,this.Gl=M|0,this.Hh=U|0,this.Hl=Y|0}process(n,r){for(let Z=0;Z<16;Z++,r+=4)gr[Z]=n.getUint32(r),yr[Z]=n.getUint32(r+=4);for(let Z=16;Z<80;Z++){const et=gr[Z-15]|0,ht=yr[Z-15]|0,ut=Qr(et,ht,1)^Qr(et,ht,8)^Nu(et,ht,7),At=ti(et,ht,1)^ti(et,ht,8)^xu(et,ht,7),Rt=gr[Z-2]|0,st=yr[Z-2]|0,ct=Qr(Rt,st,19)^wo(Rt,st,61)^Nu(Rt,st,6),gt=ti(Rt,st,19)^Eo(Rt,st,61)^xu(Rt,st,6),wt=Fd(At,gt,yr[Z-7],yr[Z-16]),P=Hd(wt,ut,ct,gr[Z-7],gr[Z-16]);gr[Z]=P|0,yr[Z]=wt|0}let{Ah:e,Al:u,Bh:a,Bl:d,Ch:g,Cl:l,Dh:_,Dl:T,Eh:C,El:N,Fh:x,Fl:M,Gh:U,Gl:Y,Hh:W,Hl:J}=this;for(let Z=0;Z<80;Z++){const et=Qr(C,N,14)^Qr(C,N,18)^wo(C,N,41),ht=ti(C,N,14)^ti(C,N,18)^Eo(C,N,41),ut=C&x^~C&U,At=N&M^~N&Y,Rt=Vd(J,ht,At,zd[Z],yr[Z]),st=Gd(Rt,W,et,ut,Wd[Z],gr[Z]),ct=Rt|0,gt=Qr(e,u,28)^wo(e,u,34)^wo(e,u,39),wt=ti(e,u,28)^Eo(e,u,34)^Eo(e,u,39),P=e&a^e&g^a&g,f=u&d^u&l^d&l;W=U|0,J=Y|0,U=x|0,Y=M|0,x=C|0,M=N|0,{h:C,l:N}=ir(_|0,T|0,st|0,ct|0),_=g|0,T=l|0,g=a|0,l=d|0,a=e|0,d=u|0;const S=Ud(ct,wt,f);e=Pd(S,st,gt,P),u=S|0}({h:e,l:u}=ir(this.Ah|0,this.Al|0,e|0,u|0)),{h:a,l:d}=ir(this.Bh|0,this.Bl|0,a|0,d|0),{h:g,l}=ir(this.Ch|0,this.Cl|0,g|0,l|0),{h:_,l:T}=ir(this.Dh|0,this.Dl|0,_|0,T|0),{h:C,l:N}=ir(this.Eh|0,this.El|0,C|0,N|0),{h:x,l:M}=ir(this.Fh|0,this.Fl|0,x|0,M|0),{h:U,l:Y}=ir(this.Gh|0,this.Gl|0,U|0,Y|0),{h:W,l:J}=ir(this.Hh|0,this.Hl|0,W|0,J|0),this.set(e,u,a,d,g,l,_,T,C,N,x,M,U,Y,W,J)}roundClean(){Jr(gr,yr)}destroy(){Jr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Lu=Iu(()=>new Yd),Zd=Iu(()=>new Kd);const Ts=BigInt(0),Ns=BigInt(1);function Mr(t,n=""){if(typeof t!="boolean"){const r=n&&`"${n}"`;throw new Error(r+"expected boolean, got type="+typeof t)}return t}function Hn(t,n,r=""){const e=Ai(t),u=t?.length,a=n!==void 0;if(!e||a&&u!==n){const d=r&&`"${r}" `,g=a?` of length ${n}`:"",l=e?`length=${u}`:`type=${typeof t}`;throw new Error(d+"expected Uint8Array"+g+", got "+l)}return t}function _o(t){const n=t.toString(16);return n.length&1?"0"+n:n}function Bu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?Ts:BigInt("0x"+t)}function bo(t){return Bu(Br(t))}function Si(t){return Lr(t),Bu(Br(Uint8Array.from(t).reverse()))}function xs(t,n){return go(t.toString(16).padStart(n*2,"0"))}function Mu(t,n){return xs(t,n).reverse()}function Ke(t,n,r){let e;if(typeof n=="string")try{e=go(n)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if(Ai(n))e=Uint8Array.from(n);else throw new Error(t+" must be hex string or Uint8Array");const u=e.length;if(typeof r=="number"&&u!==r)throw new Error(t+" of length "+r+" expected, got "+u);return e}function ku(t){return Uint8Array.from(t)}const Cs=t=>typeof t=="bigint"&&Ts<=t;function Xd(t,n,r){return Cs(t)&&Cs(n)&&Cs(r)&&n<=t&&t<r}function Ls(t,n,r,e){if(!Xd(n,r,e))throw new Error("expected valid "+t+": "+r+" <= n < "+e+", got "+n)}function Du(t){let n;for(n=0;t>Ts;t>>=Ns,n+=1);return n}const Ii=t=>(Ns<<BigInt(t))-Ns;function $d(t,n,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const e=x=>new Uint8Array(x),u=x=>Uint8Array.of(x);let a=e(t),d=e(t),g=0;const l=()=>{a.fill(1),d.fill(0),g=0},_=(...x)=>r(d,a,...x),T=(x=e(0))=>{d=_(u(0),x),a=_(),x.length!==0&&(d=_(u(1),x),a=_())},C=()=>{if(g++>=1e3)throw new Error("drbg: tried 1000 values");let x=0;const M=[];for(;x<n;){a=_();const U=a.slice();M.push(U),x+=a.length}return Xn(...M)};return(x,M)=>{l(),T(x);let U;for(;!(U=M(C()));)T();return l(),U}}function Oi(t,n,r={}){if(!t||typeof t!="object")throw new Error("expected valid options object");function e(u,a,d){const g=t[u];if(d&&g===void 0)return;const l=typeof g;if(l!==a||g===null)throw new Error(`param "${u}" is invalid: expected ${a}, got ${l}`)}Object.entries(n).forEach(([u,a])=>e(u,a,!1)),Object.entries(r).forEach(([u,a])=>e(u,a,!0))}function Ro(t){const n=new WeakMap;return(r,...e)=>{const u=n.get(r);if(u!==void 0)return u;const a=t(r,...e);return n.set(r,a),a}}const xn=BigInt(0),vn=BigInt(1),kr=BigInt(2),Uu=BigInt(3),Pu=BigInt(4),Fu=BigInt(5),qd=BigInt(7),Hu=BigInt(8),Jd=BigInt(9),Vu=BigInt(16);function sn(t,n){const r=t%n;return r>=xn?r:n+r}function Ze(t,n,r){let e=t;for(;n-- >xn;)e*=e,e%=r;return e}function Gu(t,n){if(t===xn)throw new Error("invert: expected non-zero number");if(n<=xn)throw new Error("invert: expected positive modulus, got "+n);let r=sn(t,n),e=n,u=xn,a=vn;for(;r!==xn;){const g=e/r,l=e%r,_=u-a*g;e=r,r=l,u=a,a=_}if(e!==vn)throw new Error("invert: does not exist");return sn(u,n)}function Bs(t,n,r){if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root")}function ju(t,n){const r=(t.ORDER+vn)/Pu,e=t.pow(n,r);return Bs(t,e,n),e}function Qd(t,n){const r=(t.ORDER-Fu)/Hu,e=t.mul(n,kr),u=t.pow(e,r),a=t.mul(n,u),d=t.mul(t.mul(a,kr),u),g=t.mul(a,t.sub(d,t.ONE));return Bs(t,g,n),g}function t1(t){const n=Dr(t),r=Yu(t),e=r(n,n.neg(n.ONE)),u=r(n,e),a=r(n,n.neg(e)),d=(t+qd)/Vu;return(g,l)=>{let _=g.pow(l,d),T=g.mul(_,e);const C=g.mul(_,u),N=g.mul(_,a),x=g.eql(g.sqr(T),l),M=g.eql(g.sqr(C),l);_=g.cmov(_,T,x),T=g.cmov(N,C,M);const U=g.eql(g.sqr(T),l),Y=g.cmov(_,T,U);return Bs(g,Y,l),Y}}function Yu(t){if(t<Uu)throw new Error("sqrt is not defined for small field");let n=t-vn,r=0;for(;n%kr===xn;)n/=kr,r++;let e=kr;const u=Dr(t);for(;zu(u,e)===1;)if(e++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return ju;let a=u.pow(e,n);const d=(n+vn)/kr;return function(l,_){if(l.is0(_))return _;if(zu(l,_)!==1)throw new Error("Cannot find square root");let T=r,C=l.mul(l.ONE,a),N=l.pow(_,n),x=l.pow(_,d);for(;!l.eql(N,l.ONE);){if(l.is0(N))return l.ZERO;let M=1,U=l.sqr(N);for(;!l.eql(U,l.ONE);)if(M++,U=l.sqr(U),M===T)throw new Error("Cannot find square root");const Y=vn<<BigInt(T-M-1),W=l.pow(C,Y);T=M,C=l.sqr(W),N=l.mul(N,C),x=l.mul(x,W)}return x}}function e1(t){return t%Pu===Uu?ju:t%Hu===Fu?Qd:t%Vu===Jd?t1(t):Yu(t)}const n1=(t,n)=>(sn(t,n)&vn)===vn,r1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function i1(t){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=r1.reduce((e,u)=>(e[u]="function",e),n);return Oi(t,r),t}function o1(t,n,r){if(r<xn)throw new Error("invalid exponent, negatives unsupported");if(r===xn)return t.ONE;if(r===vn)return n;let e=t.ONE,u=n;for(;r>xn;)r&vn&&(e=t.mul(e,u)),u=t.sqr(u),r>>=vn;return e}function Wu(t,n,r=!1){const e=new Array(n.length).fill(r?t.ZERO:void 0),u=n.reduce((d,g,l)=>t.is0(g)?d:(e[l]=d,t.mul(d,g)),t.ONE),a=t.inv(u);return n.reduceRight((d,g,l)=>t.is0(g)?d:(e[l]=t.mul(d,e[l]),t.mul(d,g)),a),e}function zu(t,n){const r=(t.ORDER-vn)/kr,e=t.pow(n,r),u=t.eql(e,t.ONE),a=t.eql(e,t.ZERO),d=t.eql(e,t.neg(t.ONE));if(!u&&!a&&!d)throw new Error("invalid Legendre symbol result");return u?1:a?0:-1}function Ku(t,n){n!==void 0&&As(n);const r=n!==void 0?n:t.toString(2).length,e=Math.ceil(r/8);return{nBitLength:r,nByteLength:e}}function Dr(t,n,r=!1,e={}){if(t<=xn)throw new Error("invalid field: expected ORDER > 0, got "+t);let u,a,d=!1,g;if(typeof n=="object"&&n!=null){if(e.sqrt||r)throw new Error("cannot specify opts in two arguments");const N=n;N.BITS&&(u=N.BITS),N.sqrt&&(a=N.sqrt),typeof N.isLE=="boolean"&&(r=N.isLE),typeof N.modFromBytes=="boolean"&&(d=N.modFromBytes),g=N.allowedLengths}else typeof n=="number"&&(u=n),e.sqrt&&(a=e.sqrt);const{nBitLength:l,nByteLength:_}=Ku(t,u);if(_>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let T;const C=Object.freeze({ORDER:t,isLE:r,BITS:l,BYTES:_,MASK:Ii(l),ZERO:xn,ONE:vn,allowedLengths:g,create:N=>sn(N,t),isValid:N=>{if(typeof N!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof N);return xn<=N&&N<t},is0:N=>N===xn,isValidNot0:N=>!C.is0(N)&&C.isValid(N),isOdd:N=>(N&vn)===vn,neg:N=>sn(-N,t),eql:(N,x)=>N===x,sqr:N=>sn(N*N,t),add:(N,x)=>sn(N+x,t),sub:(N,x)=>sn(N-x,t),mul:(N,x)=>sn(N*x,t),pow:(N,x)=>o1(C,N,x),div:(N,x)=>sn(N*Gu(x,t),t),sqrN:N=>N*N,addN:(N,x)=>N+x,subN:(N,x)=>N-x,mulN:(N,x)=>N*x,inv:N=>Gu(N,t),sqrt:a||(N=>(T||(T=e1(t)),T(C,N))),toBytes:N=>r?Mu(N,_):xs(N,_),fromBytes:(N,x=!0)=>{if(g){if(!g.includes(N.length)||N.length>_)throw new Error("Field.fromBytes: expected "+g+" bytes, got "+N.length);const U=new Uint8Array(_);U.set(N,r?0:U.length-N.length),N=U}if(N.length!==_)throw new Error("Field.fromBytes: expected "+_+" bytes, got "+N.length);let M=r?Si(N):bo(N);if(d&&(M=sn(M,t)),!x&&!C.isValid(M))throw new Error("invalid field element: outside of range 0..ORDER");return M},invertBatch:N=>Wu(C,N),cmov:(N,x,M)=>M?x:N});return Object.freeze(C)}function Zu(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const n=t.toString(2).length;return Math.ceil(n/8)}function Xu(t){const n=Zu(t);return n+Math.ceil(n/2)}function s1(t,n,r=!1){const e=t.length,u=Zu(n),a=Xu(n);if(e<16||e<a||e>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+e);const d=r?Si(t):bo(t),g=sn(d,n-vn)+vn;return r?Mu(g,u):xs(g,u)}const ei=BigInt(0),Ur=BigInt(1);function Ao(t,n){const r=n.negate();return t?r:n}function Pr(t,n){const r=Wu(t.Fp,n.map(e=>e.Z));return n.map((e,u)=>t.fromAffine(e.toAffine(r[u])))}function $u(t,n){if(!Number.isSafeInteger(t)||t<=0||t>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+t)}function Ms(t,n){$u(t,n);const r=Math.ceil(n/t)+1,e=2**(t-1),u=2**t,a=Ii(t),d=BigInt(t);return{windows:r,windowSize:e,mask:a,maxNumber:u,shiftBy:d}}function qu(t,n,r){const{windowSize:e,mask:u,maxNumber:a,shiftBy:d}=r;let g=Number(t&u),l=t>>d;g>e&&(g-=a,l+=Ur);const _=n*e,T=_+Math.abs(g)-1,C=g===0,N=g<0,x=n%2!==0;return{nextN:l,offset:T,isZero:C,isNeg:N,isNegF:x,offsetF:_}}function a1(t,n){if(!Array.isArray(t))throw new Error("array expected");t.forEach((r,e)=>{if(!(r instanceof n))throw new Error("invalid point at index "+e)})}function u1(t,n){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((r,e)=>{if(!n.isValid(r))throw new Error("invalid scalar at index "+e)})}const ks=new WeakMap,Ju=new WeakMap;function Ds(t){return Ju.get(t)||1}function Qu(t){if(t!==ei)throw new Error("invalid wNAF")}class tc{constructor(n,r){this.BASE=n.BASE,this.ZERO=n.ZERO,this.Fn=n.Fn,this.bits=r}_unsafeLadder(n,r,e=this.ZERO){let u=n;for(;r>ei;)r&Ur&&(e=e.add(u)),u=u.double(),r>>=Ur;return e}precomputeWindow(n,r){const{windows:e,windowSize:u}=Ms(r,this.bits),a=[];let d=n,g=d;for(let l=0;l<e;l++){g=d,a.push(g);for(let _=1;_<u;_++)g=g.add(d),a.push(g);d=g.double()}return a}wNAF(n,r,e){if(!this.Fn.isValid(e))throw new Error("invalid scalar");let u=this.ZERO,a=this.BASE;const d=Ms(n,this.bits);for(let g=0;g<d.windows;g++){const{nextN:l,offset:_,isZero:T,isNeg:C,isNegF:N,offsetF:x}=qu(e,g,d);e=l,T?a=a.add(Ao(N,r[x])):u=u.add(Ao(C,r[_]))}return Qu(e),{p:u,f:a}}wNAFUnsafe(n,r,e,u=this.ZERO){const a=Ms(n,this.bits);for(let d=0;d<a.windows&&e!==ei;d++){const{nextN:g,offset:l,isZero:_,isNeg:T}=qu(e,d,a);if(e=g,!_){const C=r[l];u=u.add(T?C.negate():C)}}return Qu(e),u}getPrecomputes(n,r,e){let u=ks.get(r);return u||(u=this.precomputeWindow(r,n),n!==1&&(typeof e=="function"&&(u=e(u)),ks.set(r,u))),u}cached(n,r,e){const u=Ds(n);return this.wNAF(u,this.getPrecomputes(u,n,e),r)}unsafe(n,r,e,u){const a=Ds(n);return a===1?this._unsafeLadder(n,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,n,e),r,u)}createCache(n,r){$u(r,this.bits),Ju.set(n,r),ks.delete(n)}hasCache(n){return Ds(n)!==1}}function c1(t,n,r,e){let u=n,a=t.ZERO,d=t.ZERO;for(;r>ei||e>ei;)r&Ur&&(a=a.add(u)),e&Ur&&(d=d.add(u)),u=u.double(),r>>=Ur,e>>=Ur;return{p1:a,p2:d}}function ec(t,n,r,e){a1(r,t),u1(e,n);const u=r.length,a=e.length;if(u!==a)throw new Error("arrays of points and scalars must have equal length");const d=t.ZERO,g=Du(BigInt(u));let l=1;g>12?l=g-3:g>4?l=g-2:g>0&&(l=2);const _=Ii(l),T=new Array(Number(_)+1).fill(d),C=Math.floor((n.BITS-1)/l)*l;let N=d;for(let x=C;x>=0;x-=l){T.fill(d);for(let U=0;U<a;U++){const Y=e[U],W=Number(Y>>BigInt(x)&_);T[W]=T[W].add(r[U])}let M=d;for(let U=T.length-1,Y=d;U>0;U--)Y=Y.add(T[U]),M=M.add(Y);if(N=N.add(M),x!==0)for(let U=0;U<l;U++)N=N.double()}return N}function nc(t,n,r){if(n){if(n.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return i1(n),n}else return Dr(t,{isLE:r})}function rc(t,n,r={},e){if(e===void 0&&(e=t==="edwards"),!n||typeof n!="object")throw new Error(`expected valid ${t} CURVE object`);for(const l of["p","n","h"]){const _=n[l];if(!(typeof _=="bigint"&&_>ei))throw new Error(`CURVE.${l} must be positive bigint`)}const u=nc(n.p,r.Fp,e),a=nc(n.n,r.Fn,e),g=["Gx","Gy","a",t==="weierstrass"?"b":"d"];for(const l of g)if(!u.isValid(n[l]))throw new Error(`CURVE.${l} must be valid field element of CURVE.Fp`);return n=Object.freeze(Object.assign({},n)),{CURVE:n,Fp:u,Fn:a}}const wr=BigInt(0),ln=BigInt(1),Us=BigInt(2),f1=BigInt(8);function l1(t,n,r,e){const u=t.sqr(r),a=t.sqr(e),d=t.add(t.mul(n.a,u),a),g=t.add(t.ONE,t.mul(n.d,t.mul(u,a)));return t.eql(d,g)}function d1(t,n={}){const r=rc("edwards",t,n,n.FpFnLE),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:d}=a;Oi(n,{},{uvRatio:"function"});const g=Us<<BigInt(u.BYTES*8)-ln,l=Y=>e.create(Y),_=n.uvRatio||((Y,W)=>{try{return{isValid:!0,value:e.sqrt(e.div(Y,W))}}catch{return{isValid:!1,value:wr}}});if(!l1(e,a,a.Gx,a.Gy))throw new Error("bad curve params: generator point");function T(Y,W,J=!1){const Z=J?ln:wr;return Ls("coordinate "+Y,W,Z,g),W}function C(Y){if(!(Y instanceof M))throw new Error("ExtendedPoint expected")}const N=Ro((Y,W)=>{const{X:J,Y:Z,Z:et}=Y,ht=Y.is0();W==null&&(W=ht?f1:e.inv(et));const ut=l(J*W),At=l(Z*W),Rt=e.mul(et,W);if(ht)return{x:wr,y:ln};if(Rt!==ln)throw new Error("invZ was invalid");return{x:ut,y:At}}),x=Ro(Y=>{const{a:W,d:J}=a;if(Y.is0())throw new Error("bad point: ZERO");const{X:Z,Y:et,Z:ht,T:ut}=Y,At=l(Z*Z),Rt=l(et*et),st=l(ht*ht),ct=l(st*st),gt=l(At*W),wt=l(st*l(gt+Rt)),P=l(ct+l(J*l(At*Rt)));if(wt!==P)throw new Error("bad point: equation left != right (1)");const f=l(Z*et),S=l(ht*ut);if(f!==S)throw new Error("bad point: equation left != right (2)");return!0});class M{constructor(W,J,Z,et){this.X=T("x",W),this.Y=T("y",J),this.Z=T("z",Z,!0),this.T=T("t",et),Object.freeze(this)}static CURVE(){return a}static fromAffine(W){if(W instanceof M)throw new Error("extended point not allowed");const{x:J,y:Z}=W||{};return T("x",J),T("y",Z),new M(J,Z,ln,l(J*Z))}static fromBytes(W,J=!1){const Z=e.BYTES,{a:et,d:ht}=a;W=ku(Hn(W,Z,"point")),Mr(J,"zip215");const ut=ku(W),At=W[Z-1];ut[Z-1]=At&-129;const Rt=Si(ut),st=J?g:e.ORDER;Ls("point.y",Rt,wr,st);const ct=l(Rt*Rt),gt=l(ct-ln),wt=l(ht*ct-et);let{isValid:P,value:f}=_(gt,wt);if(!P)throw new Error("bad point: invalid y coordinate");const S=(f&ln)===ln,D=(At&128)!==0;if(!J&&f===wr&&D)throw new Error("bad point: x=0 and x_0=1");return D!==S&&(f=l(-f)),M.fromAffine({x:f,y:Rt})}static fromHex(W,J=!1){return M.fromBytes(Ke("point",W),J)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(W=8,J=!0){return U.createCache(this,W),J||this.multiply(Us),this}assertValidity(){x(this)}equals(W){C(W);const{X:J,Y:Z,Z:et}=this,{X:ht,Y:ut,Z:At}=W,Rt=l(J*At),st=l(ht*et),ct=l(Z*At),gt=l(ut*et);return Rt===st&&ct===gt}is0(){return this.equals(M.ZERO)}negate(){return new M(l(-this.X),this.Y,this.Z,l(-this.T))}double(){const{a:W}=a,{X:J,Y:Z,Z:et}=this,ht=l(J*J),ut=l(Z*Z),At=l(Us*l(et*et)),Rt=l(W*ht),st=J+Z,ct=l(l(st*st)-ht-ut),gt=Rt+ut,wt=gt-At,P=Rt-ut,f=l(ct*wt),S=l(gt*P),D=l(ct*P),z=l(wt*gt);return new M(f,S,z,D)}add(W){C(W);const{a:J,d:Z}=a,{X:et,Y:ht,Z:ut,T:At}=this,{X:Rt,Y:st,Z:ct,T:gt}=W,wt=l(et*Rt),P=l(ht*st),f=l(At*Z*gt),S=l(ut*ct),D=l((et+ht)*(Rt+st)-wt-P),z=S-f,q=S+f,nt=l(P-J*wt),ft=l(D*z),K=l(q*nt),h=l(D*nt),b=l(z*q);return new M(ft,K,b,h)}subtract(W){return this.add(W.negate())}multiply(W){if(!u.isValidNot0(W))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:J,f:Z}=U.cached(this,W,et=>Pr(M,et));return Pr(M,[J,Z])[0]}multiplyUnsafe(W,J=M.ZERO){if(!u.isValid(W))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return W===wr?M.ZERO:this.is0()||W===ln?this:U.unsafe(this,W,Z=>Pr(M,Z),J)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}isTorsionFree(){return U.unsafe(this,a.n).is0()}toAffine(W){return N(this,W)}clearCofactor(){return d===ln?this:this.multiplyUnsafe(d)}toBytes(){const{x:W,y:J}=this.toAffine(),Z=e.toBytes(J);return Z[Z.length-1]|=W&ln?128:0,Z}toHex(){return Br(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(W){return Pr(M,W)}static msm(W,J){return ec(M,u,W,J)}_setWindowSize(W){this.precompute(W)}toRawBytes(){return this.toBytes()}}M.BASE=new M(a.Gx,a.Gy,ln,l(a.Gx*a.Gy)),M.ZERO=new M(wr,ln,ln,wr),M.Fp=e,M.Fn=u;const U=new tc(M,u.BITS);return M.BASE.precompute(8),M}function h1(t,n,r={}){if(typeof n!="function")throw new Error('"hash" function param is required');Oi(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:e}=r,{BASE:u,Fp:a,Fn:d}=t,g=r.randomBytes||Os,l=r.adjustScalarBytes||(st=>st),_=r.domain||((st,ct,gt)=>{if(Mr(gt,"phflag"),ct.length||gt)throw new Error("Contexts/pre-hash are not supported");return st});function T(st){return d.create(Si(st))}function C(st){const ct=Z.secretKey;st=Ke("private key",st,ct);const gt=Ke("hashed private key",n(st),2*ct),wt=l(gt.slice(0,ct)),P=gt.slice(ct,2*ct),f=T(wt);return{head:wt,prefix:P,scalar:f}}function N(st){const{head:ct,prefix:gt,scalar:wt}=C(st),P=u.multiply(wt),f=P.toBytes();return{head:ct,prefix:gt,scalar:wt,point:P,pointBytes:f}}function x(st){return N(st).pointBytes}function M(st=Uint8Array.of(),...ct){const gt=Xn(...ct);return T(n(_(gt,Ke("context",st),!!e)))}function U(st,ct,gt={}){st=Ke("message",st),e&&(st=e(st));const{prefix:wt,scalar:P,pointBytes:f}=N(ct),S=M(gt.context,wt,st),D=u.multiply(S).toBytes(),z=M(gt.context,D,f,st),q=d.create(S+z*P);if(!d.isValid(q))throw new Error("sign failed: invalid s");const nt=Xn(D,d.toBytes(q));return Hn(nt,Z.signature,"result")}const Y={zip215:!0};function W(st,ct,gt,wt=Y){const{context:P,zip215:f}=wt,S=Z.signature;st=Ke("signature",st,S),ct=Ke("message",ct),gt=Ke("publicKey",gt,Z.publicKey),f!==void 0&&Mr(f,"zip215"),e&&(ct=e(ct));const D=S/2,z=st.subarray(0,D),q=Si(st.subarray(D,S));let nt,ft,K;try{nt=t.fromBytes(gt,f),ft=t.fromBytes(z,f),K=u.multiplyUnsafe(q)}catch{return!1}if(!f&&nt.isSmallOrder())return!1;const h=M(P,ft.toBytes(),nt.toBytes(),ct);return ft.add(nt.multiplyUnsafe(h)).subtract(K).clearCofactor().is0()}const J=a.BYTES,Z={secretKey:J,publicKey:J,signature:2*J,seed:J};function et(st=g(Z.seed)){return Hn(st,Z.seed,"seed")}function ht(st){const ct=Rt.randomSecretKey(st);return{secretKey:ct,publicKey:x(ct)}}function ut(st){return Ai(st)&&st.length===d.BYTES}function At(st,ct){try{return!!t.fromBytes(st,ct)}catch{return!1}}const Rt={getExtendedPublicKey:N,randomSecretKey:et,isValidSecretKey:ut,isValidPublicKey:At,toMontgomery(st){const{y:ct}=t.fromBytes(st),gt=Z.publicKey,wt=gt===32;if(!wt&>!==57)throw new Error("only defined for 25519 and 448");const P=wt?a.div(ln+ct,ln-ct):a.div(ct-ln,ct+ln);return a.toBytes(P)},toMontgomerySecret(st){const ct=Z.secretKey;Hn(st,ct);const gt=n(st.subarray(0,ct));return l(gt).subarray(0,ct)},randomPrivateKey:et,precompute(st=8,ct=t.BASE){return ct.precompute(st,!1)}};return Object.freeze({keygen:ht,getPublicKey:x,sign:U,verify:W,utils:Rt,Point:t,lengths:Z})}function p1(t){const n={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,e=Dr(n.n,t.nBitLength,!0),u={Fp:r,Fn:e,uvRatio:t.uvRatio},a={randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:n,curveOpts:u,hash:t.hash,eddsaOpts:a}}function v1(t,n){const r=n.Point;return Object.assign({},n,{ExtendedPoint:r,CURVE:t,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function m1(t){const{CURVE:n,curveOpts:r,hash:e,eddsaOpts:u}=p1(t),a=d1(n,r),d=h1(a,e,u);return v1(t,d)}const g1=BigInt(1),ic=BigInt(2);BigInt(3);const y1=BigInt(5),w1=BigInt(8),Ps=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),oc={p:Ps,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:w1,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function E1(t){const n=BigInt(10),r=BigInt(20),e=BigInt(40),u=BigInt(80),a=Ps,g=t*t%a*t%a,l=Ze(g,ic,a)*g%a,_=Ze(l,g1,a)*t%a,T=Ze(_,y1,a)*_%a,C=Ze(T,n,a)*T%a,N=Ze(C,r,a)*C%a,x=Ze(N,e,a)*N%a,M=Ze(x,u,a)*x%a,U=Ze(M,u,a)*x%a,Y=Ze(U,n,a)*T%a;return{pow_p_5_8:Ze(Y,ic,a)*t%a,b2:g}}function _1(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const sc=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function b1(t,n){const r=Ps,e=sn(n*n*n,r),u=sn(e*e*n,r),a=E1(t*u).pow_p_5_8;let d=sn(t*e*a,r);const g=sn(n*d*d,r),l=d,_=sn(d*sc,r),T=g===t,C=g===sn(-t,r),N=g===sn(-t*sc,r);return T&&(d=l),(C||N)&&(d=_),n1(d,r)&&(d=sn(-d,r)),{isValid:T||C,value:d}}const R1=Dr(oc.p,{isLE:!0}),A1={...oc,Fp:R1,hash:Zd,adjustScalarBytes:_1,uvRatio:b1},Ti=m1(A1);var So={exports:{}};const S1=_s(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var I1=So.exports,ac;function uc(){return ac||(ac=1,(function(t){(function(n,r){function e(P,f){if(!P)throw new Error(f||"Assertion failed")}function u(P,f){P.super_=f;var S=function(){};S.prototype=f.prototype,P.prototype=new S,P.prototype.constructor=P}function a(P,f,S){if(a.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((f==="le"||f==="be")&&(S=f,f=10),this._init(P||0,f||10,S||"be"))}typeof n=="object"?n.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var d;try{typeof window<"u"&&typeof window.Buffer<"u"?d=window.Buffer:d=S1.Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,S){return f.cmp(S)>0?f:S},a.min=function(f,S){return f.cmp(S)<0?f:S},a.prototype._init=function(f,S,D){if(typeof f=="number")return this._initNumber(f,S,D);if(typeof f=="object")return this._initArray(f,S,D);S==="hex"&&(S=16),e(S===(S|0)&&S>=2&&S<=36),f=f.toString().replace(/\s+/g,"");var z=0;f[0]==="-"&&(z++,this.negative=1),z<f.length&&(S===16?this._parseHex(f,z,D):(this._parseBase(f,S,z),D==="le"&&this._initArray(this.toArray(),S,D)))},a.prototype._initNumber=function(f,S,D){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(e(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),D==="le"&&this._initArray(this.toArray(),S,D)},a.prototype._initArray=function(f,S,D){if(e(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var q,nt,ft=0;if(D==="be")for(z=f.length-1,q=0;z>=0;z-=3)nt=f[z]|f[z-1]<<8|f[z-2]<<16,this.words[q]|=nt<<ft&67108863,this.words[q+1]=nt>>>26-ft&67108863,ft+=24,ft>=26&&(ft-=26,q++);else if(D==="le")for(z=0,q=0;z<f.length;z+=3)nt=f[z]|f[z+1]<<8|f[z+2]<<16,this.words[q]|=nt<<ft&67108863,this.words[q+1]=nt>>>26-ft&67108863,ft+=24,ft>=26&&(ft-=26,q++);return this._strip()};function g(P,f){var S=P.charCodeAt(f);if(S>=48&&S<=57)return S-48;if(S>=65&&S<=70)return S-55;if(S>=97&&S<=102)return S-87;e(!1,"Invalid character in "+P)}function l(P,f,S){var D=g(P,S);return S-1>=f&&(D|=g(P,S-1)<<4),D}a.prototype._parseHex=function(f,S,D){this.length=Math.ceil((f.length-S)/6),this.words=new Array(this.length);for(var z=0;z<this.length;z++)this.words[z]=0;var q=0,nt=0,ft;if(D==="be")for(z=f.length-1;z>=S;z-=2)ft=l(f,S,z)<<q,this.words[nt]|=ft&67108863,q>=18?(q-=18,nt+=1,this.words[nt]|=ft>>>26):q+=8;else{var K=f.length-S;for(z=K%2===0?S+1:S;z<f.length;z+=2)ft=l(f,S,z)<<q,this.words[nt]|=ft&67108863,q>=18?(q-=18,nt+=1,this.words[nt]|=ft>>>26):q+=8}this._strip()};function _(P,f,S,D){for(var z=0,q=0,nt=Math.min(P.length,S),ft=f;ft<nt;ft++){var K=P.charCodeAt(ft)-48;z*=D,K>=49?q=K-49+10:K>=17?q=K-17+10:q=K,e(K>=0&&q<D,"Invalid character"),z+=q}return z}a.prototype._parseBase=function(f,S,D){this.words=[0],this.length=1;for(var z=0,q=1;q<=67108863;q*=S)z++;z--,q=q/S|0;for(var nt=f.length-D,ft=nt%z,K=Math.min(nt,nt-ft)+D,h=0,b=D;b<K;b+=z)h=_(f,b,b+z,S),this.imuln(q),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(ft!==0){var j=1;for(h=_(f,b,f.length,S),b=0;b<ft;b++)j*=S;this.imuln(j),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},a.prototype.copy=function(f){f.words=new Array(this.length);for(var S=0;S<this.length;S++)f.words[S]=this.words[S];f.length=this.length,f.negative=this.negative,f.red=this.red};function T(P,f){P.words=f.words,P.length=f.length,P.negative=f.negative,P.red=f.red}if(a.prototype._move=function(f){T(f,this)},a.prototype.clone=function(){var f=new a(null);return this.copy(f),f},a.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{a.prototype.inspect=C}else a.prototype.inspect=C;function C(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","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"],x=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(f,S){f=f||10,S=S|0||1;var D;if(f===16||f==="hex"){D="";for(var z=0,q=0,nt=0;nt<this.length;nt++){var ft=this.words[nt],K=((ft<<z|q)&16777215).toString(16);q=ft>>>24-z&16777215,z+=2,z>=26&&(z-=26,nt--),q!==0||nt!==this.length-1?D=N[6-K.length]+K+D:D=K+D}for(q!==0&&(D=q.toString(16)+D);D.length%S!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}if(f===(f|0)&&f>=2&&f<=36){var h=x[f],b=M[f];D="";var j=this.clone();for(j.negative=0;!j.isZero();){var X=j.modrn(b).toString(f);j=j.idivn(b),j.isZero()?D=X+D:D=N[h-X.length]+X+D}for(this.isZero()&&(D="0"+D);D.length%S!==0;)D="0"+D;return this.negative!==0&&(D="-"+D),D}e(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(f,S){return this.toArrayLike(d,f,S)}),a.prototype.toArray=function(f,S){return this.toArrayLike(Array,f,S)};var U=function(f,S){return f.allocUnsafe?f.allocUnsafe(S):new f(S)};a.prototype.toArrayLike=function(f,S,D){this._strip();var z=this.byteLength(),q=D||Math.max(1,z);e(z<=q,"byte array longer than desired length"),e(q>0,"Requested array length <= 0");var nt=U(f,q),ft=S==="le"?"LE":"BE";return this["_toArrayLike"+ft](nt,z),nt},a.prototype._toArrayLikeLE=function(f,S){for(var D=0,z=0,q=0,nt=0;q<this.length;q++){var ft=this.words[q]<<nt|z;f[D++]=ft&255,D<f.length&&(f[D++]=ft>>8&255),D<f.length&&(f[D++]=ft>>16&255),nt===6?(D<f.length&&(f[D++]=ft>>24&255),z=0,nt=0):(z=ft>>>24,nt+=2)}if(D<f.length)for(f[D++]=z;D<f.length;)f[D++]=0},a.prototype._toArrayLikeBE=function(f,S){for(var D=f.length-1,z=0,q=0,nt=0;q<this.length;q++){var ft=this.words[q]<<nt|z;f[D--]=ft&255,D>=0&&(f[D--]=ft>>8&255),D>=0&&(f[D--]=ft>>16&255),nt===6?(D>=0&&(f[D--]=ft>>24&255),z=0,nt=0):(z=ft>>>24,nt+=2)}if(D>=0)for(f[D--]=z;D>=0;)f[D--]=0},Math.clz32?a.prototype._countBits=function(f){return 32-Math.clz32(f)}:a.prototype._countBits=function(f){var S=f,D=0;return S>=4096&&(D+=13,S>>>=13),S>=64&&(D+=7,S>>>=7),S>=8&&(D+=4,S>>>=4),S>=2&&(D+=2,S>>>=2),D+S},a.prototype._zeroBits=function(f){if(f===0)return 26;var S=f,D=0;return(S&8191)===0&&(D+=13,S>>>=13),(S&127)===0&&(D+=7,S>>>=7),(S&15)===0&&(D+=4,S>>>=4),(S&3)===0&&(D+=2,S>>>=2),(S&1)===0&&D++,D},a.prototype.bitLength=function(){var f=this.words[this.length-1],S=this._countBits(f);return(this.length-1)*26+S};function Y(P){for(var f=new Array(P.bitLength()),S=0;S<f.length;S++){var D=S/26|0,z=S%26;f[S]=P.words[D]>>>z&1}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,S=0;S<this.length;S++){var D=this._zeroBits(this.words[S]);if(f+=D,D!==26)break}return f},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},a.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var S=0;S<f.length;S++)this.words[S]=this.words[S]|f.words[S];return this._strip()},a.prototype.ior=function(f){return e((this.negative|f.negative)===0),this.iuor(f)},a.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var S;this.length>f.length?S=f:S=this;for(var D=0;D<S.length;D++)this.words[D]=this.words[D]&f.words[D];return this.length=S.length,this._strip()},a.prototype.iand=function(f){return e((this.negative|f.negative)===0),this.iuand(f)},a.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var S,D;this.length>f.length?(S=this,D=f):(S=f,D=this);for(var z=0;z<D.length;z++)this.words[z]=S.words[z]^D.words[z];if(this!==S)for(;z<S.length;z++)this.words[z]=S.words[z];return this.length=S.length,this._strip()},a.prototype.ixor=function(f){return e((this.negative|f.negative)===0),this.iuxor(f)},a.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){e(typeof f=="number"&&f>=0);var S=Math.ceil(f/26)|0,D=f%26;this._expand(S),D>0&&S--;for(var z=0;z<S;z++)this.words[z]=~this.words[z]&67108863;return D>0&&(this.words[z]=~this.words[z]&67108863>>26-D),this._strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,S){e(typeof f=="number"&&f>=0);var D=f/26|0,z=f%26;return this._expand(D+1),S?this.words[D]=this.words[D]|1<<z:this.words[D]=this.words[D]&~(1<<z),this._strip()},a.prototype.iadd=function(f){var S;if(this.negative!==0&&f.negative===0)return this.negative=0,S=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,S=this.isub(f),f.negative=1,S._normSign();var D,z;this.length>f.length?(D=this,z=f):(D=f,z=this);for(var q=0,nt=0;nt<z.length;nt++)S=(D.words[nt]|0)+(z.words[nt]|0)+q,this.words[nt]=S&67108863,q=S>>>26;for(;q!==0&&nt<D.length;nt++)S=(D.words[nt]|0)+q,this.words[nt]=S&67108863,q=S>>>26;if(this.length=D.length,q!==0)this.words[this.length]=q,this.length++;else if(D!==this)for(;nt<D.length;nt++)this.words[nt]=D.words[nt];return this},a.prototype.add=function(f){var S;return f.negative!==0&&this.negative===0?(f.negative=0,S=this.sub(f),f.negative^=1,S):f.negative===0&&this.negative!==0?(this.negative=0,S=f.sub(this),this.negative=1,S):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var S=this.iadd(f);return f.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var D=this.cmp(f);if(D===0)return this.negative=0,this.length=1,this.words[0]=0,this;var z,q;D>0?(z=this,q=f):(z=f,q=this);for(var nt=0,ft=0;ft<q.length;ft++)S=(z.words[ft]|0)-(q.words[ft]|0)+nt,nt=S>>26,this.words[ft]=S&67108863;for(;nt!==0&&ft<z.length;ft++)S=(z.words[ft]|0)+nt,nt=S>>26,this.words[ft]=S&67108863;if(nt===0&&ft<z.length&&z!==this)for(;ft<z.length;ft++)this.words[ft]=z.words[ft];return this.length=Math.max(this.length,ft),z!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(f){return this.clone().isub(f)};function W(P,f,S){S.negative=f.negative^P.negative;var D=P.length+f.length|0;S.length=D,D=D-1|0;var z=P.words[0]|0,q=f.words[0]|0,nt=z*q,ft=nt&67108863,K=nt/67108864|0;S.words[0]=ft;for(var h=1;h<D;h++){for(var b=K>>>26,j=K&67108863,X=Math.min(h,f.length-1),pt=Math.max(0,h-P.length+1);pt<=X;pt++){var St=h-pt|0;z=P.words[St]|0,q=f.words[pt]|0,nt=z*q+j,b+=nt/67108864|0,j=nt&67108863}S.words[h]=j|0,K=b|0}return K!==0?S.words[h]=K|0:S.length--,S._strip()}var J=function(f,S,D){var z=f.words,q=S.words,nt=D.words,ft=0,K,h,b,j=z[0]|0,X=j&8191,pt=j>>>13,St=z[1]|0,Ht=St&8191,Zt=St>>>13,de=z[2]|0,ye=de&8191,ge=de>>>13,Oe=z[3]|0,_e=Oe&8191,be=Oe>>>13,Ve=z[4]|0,$t=Ve&8191,m=Ve>>>13,k=z[5]|0,H=k&8191,lt=k>>>13,yt=z[6]|0,Et=yt&8191,Ct=yt>>>13,Wt=z[7]|0,ee=Wt&8191,F=Wt>>>13,R=z[8]|0,O=R&8191,A=R>>>13,V=z[9]|0,G=V&8191,ot=V>>>13,Lt=q[0]|0,Bt=Lt&8191,Dt=Lt>>>13,kt=q[1]|0,it=kt&8191,zt=kt>>>13,pe=q[2]|0,ne=pe&8191,se=pe>>>13,he=q[3]|0,le=he&8191,ue=he>>>13,We=q[4]|0,we=We&8191,Re=We>>>13,an=q[5]|0,Be=an&8191,Ue=an>>>13,lr=q[6]|0,Ge=lr&8191,He=lr>>>13,Yr=q[7]|0,$e=Yr&8191,qe=Yr>>>13,ts=q[8]|0,Je=ts&8191,Qe=ts>>>13,es=q[9]|0,tn=es&8191,en=es>>>13;D.negative=f.negative^S.negative,D.length=19,K=Math.imul(X,Bt),h=Math.imul(X,Dt),h=h+Math.imul(pt,Bt)|0,b=Math.imul(pt,Dt);var Gi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Gi>>>26)|0,Gi&=67108863,K=Math.imul(Ht,Bt),h=Math.imul(Ht,Dt),h=h+Math.imul(Zt,Bt)|0,b=Math.imul(Zt,Dt),K=K+Math.imul(X,it)|0,h=h+Math.imul(X,zt)|0,h=h+Math.imul(pt,it)|0,b=b+Math.imul(pt,zt)|0;var ji=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(ji>>>26)|0,ji&=67108863,K=Math.imul(ye,Bt),h=Math.imul(ye,Dt),h=h+Math.imul(ge,Bt)|0,b=Math.imul(ge,Dt),K=K+Math.imul(Ht,it)|0,h=h+Math.imul(Ht,zt)|0,h=h+Math.imul(Zt,it)|0,b=b+Math.imul(Zt,zt)|0,K=K+Math.imul(X,ne)|0,h=h+Math.imul(X,se)|0,h=h+Math.imul(pt,ne)|0,b=b+Math.imul(pt,se)|0;var Yi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,K=Math.imul(_e,Bt),h=Math.imul(_e,Dt),h=h+Math.imul(be,Bt)|0,b=Math.imul(be,Dt),K=K+Math.imul(ye,it)|0,h=h+Math.imul(ye,zt)|0,h=h+Math.imul(ge,it)|0,b=b+Math.imul(ge,zt)|0,K=K+Math.imul(Ht,ne)|0,h=h+Math.imul(Ht,se)|0,h=h+Math.imul(Zt,ne)|0,b=b+Math.imul(Zt,se)|0,K=K+Math.imul(X,le)|0,h=h+Math.imul(X,ue)|0,h=h+Math.imul(pt,le)|0,b=b+Math.imul(pt,ue)|0;var Wi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,K=Math.imul($t,Bt),h=Math.imul($t,Dt),h=h+Math.imul(m,Bt)|0,b=Math.imul(m,Dt),K=K+Math.imul(_e,it)|0,h=h+Math.imul(_e,zt)|0,h=h+Math.imul(be,it)|0,b=b+Math.imul(be,zt)|0,K=K+Math.imul(ye,ne)|0,h=h+Math.imul(ye,se)|0,h=h+Math.imul(ge,ne)|0,b=b+Math.imul(ge,se)|0,K=K+Math.imul(Ht,le)|0,h=h+Math.imul(Ht,ue)|0,h=h+Math.imul(Zt,le)|0,b=b+Math.imul(Zt,ue)|0,K=K+Math.imul(X,we)|0,h=h+Math.imul(X,Re)|0,h=h+Math.imul(pt,we)|0,b=b+Math.imul(pt,Re)|0;var zi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(zi>>>26)|0,zi&=67108863,K=Math.imul(H,Bt),h=Math.imul(H,Dt),h=h+Math.imul(lt,Bt)|0,b=Math.imul(lt,Dt),K=K+Math.imul($t,it)|0,h=h+Math.imul($t,zt)|0,h=h+Math.imul(m,it)|0,b=b+Math.imul(m,zt)|0,K=K+Math.imul(_e,ne)|0,h=h+Math.imul(_e,se)|0,h=h+Math.imul(be,ne)|0,b=b+Math.imul(be,se)|0,K=K+Math.imul(ye,le)|0,h=h+Math.imul(ye,ue)|0,h=h+Math.imul(ge,le)|0,b=b+Math.imul(ge,ue)|0,K=K+Math.imul(Ht,we)|0,h=h+Math.imul(Ht,Re)|0,h=h+Math.imul(Zt,we)|0,b=b+Math.imul(Zt,Re)|0,K=K+Math.imul(X,Be)|0,h=h+Math.imul(X,Ue)|0,h=h+Math.imul(pt,Be)|0,b=b+Math.imul(pt,Ue)|0;var Ki=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,K=Math.imul(Et,Bt),h=Math.imul(Et,Dt),h=h+Math.imul(Ct,Bt)|0,b=Math.imul(Ct,Dt),K=K+Math.imul(H,it)|0,h=h+Math.imul(H,zt)|0,h=h+Math.imul(lt,it)|0,b=b+Math.imul(lt,zt)|0,K=K+Math.imul($t,ne)|0,h=h+Math.imul($t,se)|0,h=h+Math.imul(m,ne)|0,b=b+Math.imul(m,se)|0,K=K+Math.imul(_e,le)|0,h=h+Math.imul(_e,ue)|0,h=h+Math.imul(be,le)|0,b=b+Math.imul(be,ue)|0,K=K+Math.imul(ye,we)|0,h=h+Math.imul(ye,Re)|0,h=h+Math.imul(ge,we)|0,b=b+Math.imul(ge,Re)|0,K=K+Math.imul(Ht,Be)|0,h=h+Math.imul(Ht,Ue)|0,h=h+Math.imul(Zt,Be)|0,b=b+Math.imul(Zt,Ue)|0,K=K+Math.imul(X,Ge)|0,h=h+Math.imul(X,He)|0,h=h+Math.imul(pt,Ge)|0,b=b+Math.imul(pt,He)|0;var Zi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,K=Math.imul(ee,Bt),h=Math.imul(ee,Dt),h=h+Math.imul(F,Bt)|0,b=Math.imul(F,Dt),K=K+Math.imul(Et,it)|0,h=h+Math.imul(Et,zt)|0,h=h+Math.imul(Ct,it)|0,b=b+Math.imul(Ct,zt)|0,K=K+Math.imul(H,ne)|0,h=h+Math.imul(H,se)|0,h=h+Math.imul(lt,ne)|0,b=b+Math.imul(lt,se)|0,K=K+Math.imul($t,le)|0,h=h+Math.imul($t,ue)|0,h=h+Math.imul(m,le)|0,b=b+Math.imul(m,ue)|0,K=K+Math.imul(_e,we)|0,h=h+Math.imul(_e,Re)|0,h=h+Math.imul(be,we)|0,b=b+Math.imul(be,Re)|0,K=K+Math.imul(ye,Be)|0,h=h+Math.imul(ye,Ue)|0,h=h+Math.imul(ge,Be)|0,b=b+Math.imul(ge,Ue)|0,K=K+Math.imul(Ht,Ge)|0,h=h+Math.imul(Ht,He)|0,h=h+Math.imul(Zt,Ge)|0,b=b+Math.imul(Zt,He)|0,K=K+Math.imul(X,$e)|0,h=h+Math.imul(X,qe)|0,h=h+Math.imul(pt,$e)|0,b=b+Math.imul(pt,qe)|0;var Xi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,K=Math.imul(O,Bt),h=Math.imul(O,Dt),h=h+Math.imul(A,Bt)|0,b=Math.imul(A,Dt),K=K+Math.imul(ee,it)|0,h=h+Math.imul(ee,zt)|0,h=h+Math.imul(F,it)|0,b=b+Math.imul(F,zt)|0,K=K+Math.imul(Et,ne)|0,h=h+Math.imul(Et,se)|0,h=h+Math.imul(Ct,ne)|0,b=b+Math.imul(Ct,se)|0,K=K+Math.imul(H,le)|0,h=h+Math.imul(H,ue)|0,h=h+Math.imul(lt,le)|0,b=b+Math.imul(lt,ue)|0,K=K+Math.imul($t,we)|0,h=h+Math.imul($t,Re)|0,h=h+Math.imul(m,we)|0,b=b+Math.imul(m,Re)|0,K=K+Math.imul(_e,Be)|0,h=h+Math.imul(_e,Ue)|0,h=h+Math.imul(be,Be)|0,b=b+Math.imul(be,Ue)|0,K=K+Math.imul(ye,Ge)|0,h=h+Math.imul(ye,He)|0,h=h+Math.imul(ge,Ge)|0,b=b+Math.imul(ge,He)|0,K=K+Math.imul(Ht,$e)|0,h=h+Math.imul(Ht,qe)|0,h=h+Math.imul(Zt,$e)|0,b=b+Math.imul(Zt,qe)|0,K=K+Math.imul(X,Je)|0,h=h+Math.imul(X,Qe)|0,h=h+Math.imul(pt,Je)|0,b=b+Math.imul(pt,Qe)|0;var $i=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+($i>>>26)|0,$i&=67108863,K=Math.imul(G,Bt),h=Math.imul(G,Dt),h=h+Math.imul(ot,Bt)|0,b=Math.imul(ot,Dt),K=K+Math.imul(O,it)|0,h=h+Math.imul(O,zt)|0,h=h+Math.imul(A,it)|0,b=b+Math.imul(A,zt)|0,K=K+Math.imul(ee,ne)|0,h=h+Math.imul(ee,se)|0,h=h+Math.imul(F,ne)|0,b=b+Math.imul(F,se)|0,K=K+Math.imul(Et,le)|0,h=h+Math.imul(Et,ue)|0,h=h+Math.imul(Ct,le)|0,b=b+Math.imul(Ct,ue)|0,K=K+Math.imul(H,we)|0,h=h+Math.imul(H,Re)|0,h=h+Math.imul(lt,we)|0,b=b+Math.imul(lt,Re)|0,K=K+Math.imul($t,Be)|0,h=h+Math.imul($t,Ue)|0,h=h+Math.imul(m,Be)|0,b=b+Math.imul(m,Ue)|0,K=K+Math.imul(_e,Ge)|0,h=h+Math.imul(_e,He)|0,h=h+Math.imul(be,Ge)|0,b=b+Math.imul(be,He)|0,K=K+Math.imul(ye,$e)|0,h=h+Math.imul(ye,qe)|0,h=h+Math.imul(ge,$e)|0,b=b+Math.imul(ge,qe)|0,K=K+Math.imul(Ht,Je)|0,h=h+Math.imul(Ht,Qe)|0,h=h+Math.imul(Zt,Je)|0,b=b+Math.imul(Zt,Qe)|0,K=K+Math.imul(X,tn)|0,h=h+Math.imul(X,en)|0,h=h+Math.imul(pt,tn)|0,b=b+Math.imul(pt,en)|0;var qi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(qi>>>26)|0,qi&=67108863,K=Math.imul(G,it),h=Math.imul(G,zt),h=h+Math.imul(ot,it)|0,b=Math.imul(ot,zt),K=K+Math.imul(O,ne)|0,h=h+Math.imul(O,se)|0,h=h+Math.imul(A,ne)|0,b=b+Math.imul(A,se)|0,K=K+Math.imul(ee,le)|0,h=h+Math.imul(ee,ue)|0,h=h+Math.imul(F,le)|0,b=b+Math.imul(F,ue)|0,K=K+Math.imul(Et,we)|0,h=h+Math.imul(Et,Re)|0,h=h+Math.imul(Ct,we)|0,b=b+Math.imul(Ct,Re)|0,K=K+Math.imul(H,Be)|0,h=h+Math.imul(H,Ue)|0,h=h+Math.imul(lt,Be)|0,b=b+Math.imul(lt,Ue)|0,K=K+Math.imul($t,Ge)|0,h=h+Math.imul($t,He)|0,h=h+Math.imul(m,Ge)|0,b=b+Math.imul(m,He)|0,K=K+Math.imul(_e,$e)|0,h=h+Math.imul(_e,qe)|0,h=h+Math.imul(be,$e)|0,b=b+Math.imul(be,qe)|0,K=K+Math.imul(ye,Je)|0,h=h+Math.imul(ye,Qe)|0,h=h+Math.imul(ge,Je)|0,b=b+Math.imul(ge,Qe)|0,K=K+Math.imul(Ht,tn)|0,h=h+Math.imul(Ht,en)|0,h=h+Math.imul(Zt,tn)|0,b=b+Math.imul(Zt,en)|0;var dn=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(dn>>>26)|0,dn&=67108863,K=Math.imul(G,ne),h=Math.imul(G,se),h=h+Math.imul(ot,ne)|0,b=Math.imul(ot,se),K=K+Math.imul(O,le)|0,h=h+Math.imul(O,ue)|0,h=h+Math.imul(A,le)|0,b=b+Math.imul(A,ue)|0,K=K+Math.imul(ee,we)|0,h=h+Math.imul(ee,Re)|0,h=h+Math.imul(F,we)|0,b=b+Math.imul(F,Re)|0,K=K+Math.imul(Et,Be)|0,h=h+Math.imul(Et,Ue)|0,h=h+Math.imul(Ct,Be)|0,b=b+Math.imul(Ct,Ue)|0,K=K+Math.imul(H,Ge)|0,h=h+Math.imul(H,He)|0,h=h+Math.imul(lt,Ge)|0,b=b+Math.imul(lt,He)|0,K=K+Math.imul($t,$e)|0,h=h+Math.imul($t,qe)|0,h=h+Math.imul(m,$e)|0,b=b+Math.imul(m,qe)|0,K=K+Math.imul(_e,Je)|0,h=h+Math.imul(_e,Qe)|0,h=h+Math.imul(be,Je)|0,b=b+Math.imul(be,Qe)|0,K=K+Math.imul(ye,tn)|0,h=h+Math.imul(ye,en)|0,h=h+Math.imul(ge,tn)|0,b=b+Math.imul(ge,en)|0;var Ji=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,K=Math.imul(G,le),h=Math.imul(G,ue),h=h+Math.imul(ot,le)|0,b=Math.imul(ot,ue),K=K+Math.imul(O,we)|0,h=h+Math.imul(O,Re)|0,h=h+Math.imul(A,we)|0,b=b+Math.imul(A,Re)|0,K=K+Math.imul(ee,Be)|0,h=h+Math.imul(ee,Ue)|0,h=h+Math.imul(F,Be)|0,b=b+Math.imul(F,Ue)|0,K=K+Math.imul(Et,Ge)|0,h=h+Math.imul(Et,He)|0,h=h+Math.imul(Ct,Ge)|0,b=b+Math.imul(Ct,He)|0,K=K+Math.imul(H,$e)|0,h=h+Math.imul(H,qe)|0,h=h+Math.imul(lt,$e)|0,b=b+Math.imul(lt,qe)|0,K=K+Math.imul($t,Je)|0,h=h+Math.imul($t,Qe)|0,h=h+Math.imul(m,Je)|0,b=b+Math.imul(m,Qe)|0,K=K+Math.imul(_e,tn)|0,h=h+Math.imul(_e,en)|0,h=h+Math.imul(be,tn)|0,b=b+Math.imul(be,en)|0;var Qi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,K=Math.imul(G,we),h=Math.imul(G,Re),h=h+Math.imul(ot,we)|0,b=Math.imul(ot,Re),K=K+Math.imul(O,Be)|0,h=h+Math.imul(O,Ue)|0,h=h+Math.imul(A,Be)|0,b=b+Math.imul(A,Ue)|0,K=K+Math.imul(ee,Ge)|0,h=h+Math.imul(ee,He)|0,h=h+Math.imul(F,Ge)|0,b=b+Math.imul(F,He)|0,K=K+Math.imul(Et,$e)|0,h=h+Math.imul(Et,qe)|0,h=h+Math.imul(Ct,$e)|0,b=b+Math.imul(Ct,qe)|0,K=K+Math.imul(H,Je)|0,h=h+Math.imul(H,Qe)|0,h=h+Math.imul(lt,Je)|0,b=b+Math.imul(lt,Qe)|0,K=K+Math.imul($t,tn)|0,h=h+Math.imul($t,en)|0,h=h+Math.imul(m,tn)|0,b=b+Math.imul(m,en)|0;var to=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(to>>>26)|0,to&=67108863,K=Math.imul(G,Be),h=Math.imul(G,Ue),h=h+Math.imul(ot,Be)|0,b=Math.imul(ot,Ue),K=K+Math.imul(O,Ge)|0,h=h+Math.imul(O,He)|0,h=h+Math.imul(A,Ge)|0,b=b+Math.imul(A,He)|0,K=K+Math.imul(ee,$e)|0,h=h+Math.imul(ee,qe)|0,h=h+Math.imul(F,$e)|0,b=b+Math.imul(F,qe)|0,K=K+Math.imul(Et,Je)|0,h=h+Math.imul(Et,Qe)|0,h=h+Math.imul(Ct,Je)|0,b=b+Math.imul(Ct,Qe)|0,K=K+Math.imul(H,tn)|0,h=h+Math.imul(H,en)|0,h=h+Math.imul(lt,tn)|0,b=b+Math.imul(lt,en)|0;var Me=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Me>>>26)|0,Me&=67108863,K=Math.imul(G,Ge),h=Math.imul(G,He),h=h+Math.imul(ot,Ge)|0,b=Math.imul(ot,He),K=K+Math.imul(O,$e)|0,h=h+Math.imul(O,qe)|0,h=h+Math.imul(A,$e)|0,b=b+Math.imul(A,qe)|0,K=K+Math.imul(ee,Je)|0,h=h+Math.imul(ee,Qe)|0,h=h+Math.imul(F,Je)|0,b=b+Math.imul(F,Qe)|0,K=K+Math.imul(Et,tn)|0,h=h+Math.imul(Et,en)|0,h=h+Math.imul(Ct,tn)|0,b=b+Math.imul(Ct,en)|0;var eo=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(eo>>>26)|0,eo&=67108863,K=Math.imul(G,$e),h=Math.imul(G,qe),h=h+Math.imul(ot,$e)|0,b=Math.imul(ot,qe),K=K+Math.imul(O,Je)|0,h=h+Math.imul(O,Qe)|0,h=h+Math.imul(A,Je)|0,b=b+Math.imul(A,Qe)|0,K=K+Math.imul(ee,tn)|0,h=h+Math.imul(ee,en)|0,h=h+Math.imul(F,tn)|0,b=b+Math.imul(F,en)|0;var Dn=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,K=Math.imul(G,Je),h=Math.imul(G,Qe),h=h+Math.imul(ot,Je)|0,b=Math.imul(ot,Qe),K=K+Math.imul(O,tn)|0,h=h+Math.imul(O,en)|0,h=h+Math.imul(A,tn)|0,b=b+Math.imul(A,en)|0;var vi=(ft+K|0)+((h&8191)<<13)|0;ft=(b+(h>>>13)|0)+(vi>>>26)|0,vi&=67108863,K=Math.imul(G,tn),h=Math.imul(G,en),h=h+Math.imul(ot,tn)|0,b=Math.imul(ot,en);var mi=(ft+K|0)+((h&8191)<<13)|0;return ft=(b+(h>>>13)|0)+(mi>>>26)|0,mi&=67108863,nt[0]=Gi,nt[1]=ji,nt[2]=Yi,nt[3]=Wi,nt[4]=zi,nt[5]=Ki,nt[6]=Zi,nt[7]=Xi,nt[8]=$i,nt[9]=qi,nt[10]=dn,nt[11]=Ji,nt[12]=Qi,nt[13]=to,nt[14]=Me,nt[15]=eo,nt[16]=Dn,nt[17]=vi,nt[18]=mi,ft!==0&&(nt[19]=ft,D.length++),D};Math.imul||(J=W);function Z(P,f,S){S.negative=f.negative^P.negative,S.length=P.length+f.length;for(var D=0,z=0,q=0;q<S.length-1;q++){var nt=z;z=0;for(var ft=D&67108863,K=Math.min(q,f.length-1),h=Math.max(0,q-P.length+1);h<=K;h++){var b=q-h,j=P.words[b]|0,X=f.words[h]|0,pt=j*X,St=pt&67108863;nt=nt+(pt/67108864|0)|0,St=St+ft|0,ft=St&67108863,nt=nt+(St>>>26)|0,z+=nt>>>26,nt&=67108863}S.words[q]=ft,D=nt,nt=z}return D!==0?S.words[q]=D:S.length--,S._strip()}function et(P,f,S){return Z(P,f,S)}a.prototype.mulTo=function(f,S){var D,z=this.length+f.length;return this.length===10&&f.length===10?D=J(this,f,S):z<63?D=W(this,f,S):z<1024?D=Z(this,f,S):D=et(this,f,S),D},a.prototype.mul=function(f){var S=new a(null);return S.words=new Array(this.length+f.length),this.mulTo(f,S)},a.prototype.mulf=function(f){var S=new a(null);return S.words=new Array(this.length+f.length),et(this,f,S)},a.prototype.imul=function(f){return this.clone().mulTo(f,this)},a.prototype.imuln=function(f){var S=f<0;S&&(f=-f),e(typeof f=="number"),e(f<67108864);for(var D=0,z=0;z<this.length;z++){var q=(this.words[z]|0)*f,nt=(q&67108863)+(D&67108863);D>>=26,D+=q/67108864|0,D+=nt>>>26,this.words[z]=nt&67108863}return D!==0&&(this.words[z]=D,this.length++),this.length=f===0?1:this.length,S?this.ineg():this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var S=Y(f);if(S.length===0)return new a(1);for(var D=this,z=0;z<S.length&&S[z]===0;z++,D=D.sqr());if(++z<S.length)for(var q=D.sqr();z<S.length;z++,q=q.sqr())S[z]!==0&&(D=D.mul(q));return D},a.prototype.iushln=function(f){e(typeof f=="number"&&f>=0);var S=f%26,D=(f-S)/26,z=67108863>>>26-S<<26-S,q;if(S!==0){var nt=0;for(q=0;q<this.length;q++){var ft=this.words[q]&z,K=(this.words[q]|0)-ft<<S;this.words[q]=K|nt,nt=ft>>>26-S}nt&&(this.words[q]=nt,this.length++)}if(D!==0){for(q=this.length-1;q>=0;q--)this.words[q+D]=this.words[q];for(q=0;q<D;q++)this.words[q]=0;this.length+=D}return this._strip()},a.prototype.ishln=function(f){return e(this.negative===0),this.iushln(f)},a.prototype.iushrn=function(f,S,D){e(typeof f=="number"&&f>=0);var z;S?z=(S-S%26)/26:z=0;var q=f%26,nt=Math.min((f-q)/26,this.length),ft=67108863^67108863>>>q<<q,K=D;if(z-=nt,z=Math.max(0,z),K){for(var h=0;h<nt;h++)K.words[h]=this.words[h];K.length=nt}if(nt!==0)if(this.length>nt)for(this.length-=nt,h=0;h<this.length;h++)this.words[h]=this.words[h+nt];else this.words[0]=0,this.length=1;var b=0;for(h=this.length-1;h>=0&&(b!==0||h>=z);h--){var j=this.words[h]|0;this.words[h]=b<<26-q|j>>>q,b=j&ft}return K&&b!==0&&(K.words[K.length++]=b),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(f,S,D){return e(this.negative===0),this.iushrn(f,S,D)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){e(typeof f=="number"&&f>=0);var S=f%26,D=(f-S)/26,z=1<<S;if(this.length<=D)return!1;var q=this.words[D];return!!(q&z)},a.prototype.imaskn=function(f){e(typeof f=="number"&&f>=0);var S=f%26,D=(f-S)/26;if(e(this.negative===0,"imaskn works only with positive numbers"),this.length<=D)return this;if(S!==0&&D++,this.length=Math.min(D,this.length),S!==0){var z=67108863^67108863>>>S<<S;this.words[this.length-1]&=z}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.maskn=function(f){return this.clone().imaskn(f)},a.prototype.iaddn=function(f){return e(typeof f=="number"),e(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},a.prototype._iaddn=function(f){this.words[0]+=f;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},a.prototype.isubn=function(f){if(e(typeof f=="number"),e(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this._strip()},a.prototype.addn=function(f){return this.clone().iaddn(f)},a.prototype.subn=function(f){return this.clone().isubn(f)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(f,S,D){var z=f.length+D,q;this._expand(z);var nt,ft=0;for(q=0;q<f.length;q++){nt=(this.words[q+D]|0)+ft;var K=(f.words[q]|0)*S;nt-=K&67108863,ft=(nt>>26)-(K/67108864|0),this.words[q+D]=nt&67108863}for(;q<this.length-D;q++)nt=(this.words[q+D]|0)+ft,ft=nt>>26,this.words[q+D]=nt&67108863;if(ft===0)return this._strip();for(e(ft===-1),ft=0,q=0;q<this.length;q++)nt=-(this.words[q]|0)+ft,ft=nt>>26,this.words[q]=nt&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(f,S){var D=this.length-f.length,z=this.clone(),q=f,nt=q.words[q.length-1]|0,ft=this._countBits(nt);D=26-ft,D!==0&&(q=q.ushln(D),z.iushln(D),nt=q.words[q.length-1]|0);var K=z.length-q.length,h;if(S!=="mod"){h=new a(null),h.length=K+1,h.words=new Array(h.length);for(var b=0;b<h.length;b++)h.words[b]=0}var j=z.clone()._ishlnsubmul(q,1,K);j.negative===0&&(z=j,h&&(h.words[K]=1));for(var X=K-1;X>=0;X--){var pt=(z.words[q.length+X]|0)*67108864+(z.words[q.length+X-1]|0);for(pt=Math.min(pt/nt|0,67108863),z._ishlnsubmul(q,pt,X);z.negative!==0;)pt--,z.negative=0,z._ishlnsubmul(q,1,X),z.isZero()||(z.negative^=1);h&&(h.words[X]=pt)}return h&&h._strip(),z._strip(),S!=="div"&&D!==0&&z.iushrn(D),{div:h||null,mod:z}},a.prototype.divmod=function(f,S,D){if(e(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var z,q,nt;return this.negative!==0&&f.negative===0?(nt=this.neg().divmod(f,S),S!=="mod"&&(z=nt.div.neg()),S!=="div"&&(q=nt.mod.neg(),D&&q.negative!==0&&q.iadd(f)),{div:z,mod:q}):this.negative===0&&f.negative!==0?(nt=this.divmod(f.neg(),S),S!=="mod"&&(z=nt.div.neg()),{div:z,mod:nt.mod}):(this.negative&f.negative)!==0?(nt=this.neg().divmod(f.neg(),S),S!=="div"&&(q=nt.mod.neg(),D&&q.negative!==0&&q.isub(f)),{div:nt.div,mod:q}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?S==="div"?{div:this.divn(f.words[0]),mod:null}:S==="mod"?{div:null,mod:new a(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modrn(f.words[0]))}:this._wordDiv(f,S)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var S=this.divmod(f);if(S.mod.isZero())return S.div;var D=S.div.negative!==0?S.mod.isub(f):S.mod,z=f.ushrn(1),q=f.andln(1),nt=D.cmp(z);return nt<0||q===1&&nt===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},a.prototype.modrn=function(f){var S=f<0;S&&(f=-f),e(f<=67108863);for(var D=(1<<26)%f,z=0,q=this.length-1;q>=0;q--)z=(D*z+(this.words[q]|0))%f;return S?-z:z},a.prototype.modn=function(f){return this.modrn(f)},a.prototype.idivn=function(f){var S=f<0;S&&(f=-f),e(f<=67108863);for(var D=0,z=this.length-1;z>=0;z--){var q=(this.words[z]|0)+D*67108864;this.words[z]=q/f|0,D=q%f}return this._strip(),S?this.ineg():this},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){e(f.negative===0),e(!f.isZero());var S=this,D=f.clone();S.negative!==0?S=S.umod(f):S=S.clone();for(var z=new a(1),q=new a(0),nt=new a(0),ft=new a(1),K=0;S.isEven()&&D.isEven();)S.iushrn(1),D.iushrn(1),++K;for(var h=D.clone(),b=S.clone();!S.isZero();){for(var j=0,X=1;(S.words[0]&X)===0&&j<26;++j,X<<=1);if(j>0)for(S.iushrn(j);j-- >0;)(z.isOdd()||q.isOdd())&&(z.iadd(h),q.isub(b)),z.iushrn(1),q.iushrn(1);for(var pt=0,St=1;(D.words[0]&St)===0&&pt<26;++pt,St<<=1);if(pt>0)for(D.iushrn(pt);pt-- >0;)(nt.isOdd()||ft.isOdd())&&(nt.iadd(h),ft.isub(b)),nt.iushrn(1),ft.iushrn(1);S.cmp(D)>=0?(S.isub(D),z.isub(nt),q.isub(ft)):(D.isub(S),nt.isub(z),ft.isub(q))}return{a:nt,b:ft,gcd:D.iushln(K)}},a.prototype._invmp=function(f){e(f.negative===0),e(!f.isZero());var S=this,D=f.clone();S.negative!==0?S=S.umod(f):S=S.clone();for(var z=new a(1),q=new a(0),nt=D.clone();S.cmpn(1)>0&&D.cmpn(1)>0;){for(var ft=0,K=1;(S.words[0]&K)===0&&ft<26;++ft,K<<=1);if(ft>0)for(S.iushrn(ft);ft-- >0;)z.isOdd()&&z.iadd(nt),z.iushrn(1);for(var h=0,b=1;(D.words[0]&b)===0&&h<26;++h,b<<=1);if(h>0)for(D.iushrn(h);h-- >0;)q.isOdd()&&q.iadd(nt),q.iushrn(1);S.cmp(D)>=0?(S.isub(D),z.isub(q)):(D.isub(S),q.isub(z))}var j;return S.cmpn(1)===0?j=z:j=q,j.cmpn(0)<0&&j.iadd(f),j},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var S=this.clone(),D=f.clone();S.negative=0,D.negative=0;for(var z=0;S.isEven()&&D.isEven();z++)S.iushrn(1),D.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;D.isEven();)D.iushrn(1);var q=S.cmp(D);if(q<0){var nt=S;S=D,D=nt}else if(q===0||D.cmpn(1)===0)break;S.isub(D)}while(!0);return D.iushln(z)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){e(typeof f=="number");var S=f%26,D=(f-S)/26,z=1<<S;if(this.length<=D)return this._expand(D+1),this.words[D]|=z,this;for(var q=z,nt=D;q!==0&&nt<this.length;nt++){var ft=this.words[nt]|0;ft+=q,q=ft>>>26,ft&=67108863,this.words[nt]=ft}return q!==0&&(this.words[nt]=q,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var S=f<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var D;if(this.length>1)D=1;else{S&&(f=-f),e(f<=67108863,"Number is too big");var z=this.words[0]|0;D=z===f?0:z<f?-1:1}return this.negative!==0?-D|0:D},a.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var S=this.ucmp(f);return this.negative!==0?-S|0:S},a.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var S=0,D=this.length-1;D>=0;D--){var z=this.words[D]|0,q=f.words[D]|0;if(z!==q){z<q?S=-1:z>q&&(S=1);break}}return S},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new gt(f)},a.prototype.toRed=function(f){return e(!this.red,"Already a number in reduction context"),e(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return e(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return e(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var ht={k256:null,p224:null,p192:null,p25519:null};function ut(P,f){this.name=P,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ut.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},ut.prototype.ireduce=function(f){var S=f,D;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),D=S.bitLength();while(D>this.n);var z=D<this.n?-1:S.ucmp(this.p);return z===0?(S.words[0]=0,S.length=1):z>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},ut.prototype.split=function(f,S){f.iushrn(this.n,0,S)},ut.prototype.imulK=function(f){return f.imul(this.k)};function At(){ut.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(At,ut),At.prototype.split=function(f,S){for(var D=4194303,z=Math.min(f.length,9),q=0;q<z;q++)S.words[q]=f.words[q];if(S.length=z,f.length<=9){f.words[0]=0,f.length=1;return}var nt=f.words[9];for(S.words[S.length++]=nt&D,q=10;q<f.length;q++){var ft=f.words[q]|0;f.words[q-10]=(ft&D)<<4|nt>>>22,nt=ft}nt>>>=22,f.words[q-10]=nt,nt===0&&f.length>10?f.length-=10:f.length-=9},At.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var S=0,D=0;D<f.length;D++){var z=f.words[D]|0;S+=z*977,f.words[D]=S&67108863,S=z*64+(S/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function Rt(){ut.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(Rt,ut);function st(){ut.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(st,ut);function ct(){ut.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(ct,ut),ct.prototype.imulK=function(f){for(var S=0,D=0;D<f.length;D++){var z=(f.words[D]|0)*19+S,q=z&67108863;z>>>=26,f.words[D]=q,S=z}return S!==0&&(f.words[f.length++]=S),f},a._prime=function(f){if(ht[f])return ht[f];var S;if(f==="k256")S=new At;else if(f==="p224")S=new Rt;else if(f==="p192")S=new st;else if(f==="p25519")S=new ct;else throw new Error("Unknown prime "+f);return ht[f]=S,S};function gt(P){if(typeof P=="string"){var f=a._prime(P);this.m=f.p,this.prime=f}else e(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}gt.prototype._verify1=function(f){e(f.negative===0,"red works only with positives"),e(f.red,"red works only with red numbers")},gt.prototype._verify2=function(f,S){e((f.negative|S.negative)===0,"red works only with positives"),e(f.red&&f.red===S.red,"red works only with red numbers")},gt.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(T(f,f.umod(this.m)._forceRed(this)),f)},gt.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},gt.prototype.add=function(f,S){this._verify2(f,S);var D=f.add(S);return D.cmp(this.m)>=0&&D.isub(this.m),D._forceRed(this)},gt.prototype.iadd=function(f,S){this._verify2(f,S);var D=f.iadd(S);return D.cmp(this.m)>=0&&D.isub(this.m),D},gt.prototype.sub=function(f,S){this._verify2(f,S);var D=f.sub(S);return D.cmpn(0)<0&&D.iadd(this.m),D._forceRed(this)},gt.prototype.isub=function(f,S){this._verify2(f,S);var D=f.isub(S);return D.cmpn(0)<0&&D.iadd(this.m),D},gt.prototype.shl=function(f,S){return this._verify1(f),this.imod(f.ushln(S))},gt.prototype.imul=function(f,S){return this._verify2(f,S),this.imod(f.imul(S))},gt.prototype.mul=function(f,S){return this._verify2(f,S),this.imod(f.mul(S))},gt.prototype.isqr=function(f){return this.imul(f,f.clone())},gt.prototype.sqr=function(f){return this.mul(f,f)},gt.prototype.sqrt=function(f){if(f.isZero())return f.clone();var S=this.m.andln(3);if(e(S%2===1),S===3){var D=this.m.add(new a(1)).iushrn(2);return this.pow(f,D)}for(var z=this.m.subn(1),q=0;!z.isZero()&&z.andln(1)===0;)q++,z.iushrn(1);e(!z.isZero());var nt=new a(1).toRed(this),ft=nt.redNeg(),K=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new a(2*h*h).toRed(this);this.pow(h,K).cmp(ft)!==0;)h.redIAdd(ft);for(var b=this.pow(h,z),j=this.pow(f,z.addn(1).iushrn(1)),X=this.pow(f,z),pt=q;X.cmp(nt)!==0;){for(var St=X,Ht=0;St.cmp(nt)!==0;Ht++)St=St.redSqr();e(Ht<pt);var Zt=this.pow(b,new a(1).iushln(pt-Ht-1));j=j.redMul(Zt),b=Zt.redSqr(),X=X.redMul(b),pt=Ht}return j},gt.prototype.invm=function(f){var S=f._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},gt.prototype.pow=function(f,S){if(S.isZero())return new a(1).toRed(this);if(S.cmpn(1)===0)return f.clone();var D=4,z=new Array(1<<D);z[0]=new a(1).toRed(this),z[1]=f;for(var q=2;q<z.length;q++)z[q]=this.mul(z[q-1],f);var nt=z[0],ft=0,K=0,h=S.bitLength()%26;for(h===0&&(h=26),q=S.length-1;q>=0;q--){for(var b=S.words[q],j=h-1;j>=0;j--){var X=b>>j&1;if(nt!==z[0]&&(nt=this.sqr(nt)),X===0&&ft===0){K=0;continue}ft<<=1,ft|=X,K++,!(K!==D&&(q!==0||j!==0))&&(nt=this.mul(nt,z[ft]),K=0,ft=0)}h=26}return nt},gt.prototype.convertTo=function(f){var S=f.umod(this.m);return S===f?S.clone():S},gt.prototype.convertFrom=function(f){var S=f.clone();return S.red=null,S},a.mont=function(f){return new wt(f)};function wt(P){gt.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}u(wt,gt),wt.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},wt.prototype.convertFrom=function(f){var S=this.imod(f.mul(this.rinv));return S.red=null,S},wt.prototype.imul=function(f,S){if(f.isZero()||S.isZero())return f.words[0]=0,f.length=1,f;var D=f.imul(S),z=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=D.isub(z).iushrn(this.shift),nt=q;return q.cmp(this.m)>=0?nt=q.isub(this.m):q.cmpn(0)<0&&(nt=q.iadd(this.m)),nt._forceRed(this)},wt.prototype.mul=function(f,S){if(f.isZero()||S.isZero())return new a(0)._forceRed(this);var D=f.mul(S),z=D.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=D.isub(z).iushrn(this.shift),nt=q;return q.cmp(this.m)>=0?nt=q.isub(this.m):q.cmpn(0)<0&&(nt=q.iadd(this.m)),nt._forceRed(this)},wt.prototype.invm=function(f){var S=this.imod(f._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,I1)})(So)),So.exports}var O1=uc();const cc=Es(O1);var Io={exports:{}};var fc;function lc(){return fc||(fc=1,(function(t,n){var r=Rs(),e=r.Buffer;function u(d,g){for(var l in d)g[l]=d[l]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?t.exports=r:(u(r,n),n.Buffer=a);function a(d,g,l){return e(d,g,l)}a.prototype=Object.create(e.prototype),u(e,a),a.from=function(d,g,l){if(typeof d=="number")throw new TypeError("Argument must not be a number");return e(d,g,l)},a.alloc=function(d,g,l){if(typeof d!="number")throw new TypeError("Argument must be a number");var _=e(d);return g!==void 0?typeof l=="string"?_.fill(g,l):_.fill(g):_.fill(0),_},a.allocUnsafe=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return e(d)},a.allocUnsafeSlow=function(d){if(typeof d!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(d)}})(Io,Io.exports)),Io.exports}var Fs,dc;function T1(){if(dc)return Fs;dc=1;var t=lc().Buffer;function n(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),u=0;u<e.length;u++)e[u]=255;for(var a=0;a<r.length;a++){var d=r.charAt(a),g=d.charCodeAt(0);if(e[g]!==255)throw new TypeError(d+" is ambiguous");e[g]=a}var l=r.length,_=r.charAt(0),T=Math.log(l)/Math.log(256),C=Math.log(256)/Math.log(l);function N(U){if((Array.isArray(U)||U instanceof Uint8Array)&&(U=t.from(U)),!t.isBuffer(U))throw new TypeError("Expected Buffer");if(U.length===0)return"";for(var Y=0,W=0,J=0,Z=U.length;J!==Z&&U[J]===0;)J++,Y++;for(var et=(Z-J)*C+1>>>0,ht=new Uint8Array(et);J!==Z;){for(var ut=U[J],At=0,Rt=et-1;(ut!==0||At<W)&&Rt!==-1;Rt--,At++)ut+=256*ht[Rt]>>>0,ht[Rt]=ut%l>>>0,ut=ut/l>>>0;if(ut!==0)throw new Error("Non-zero carry");W=At,J++}for(var st=et-W;st!==et&&ht[st]===0;)st++;for(var ct=_.repeat(Y);st<et;++st)ct+=r.charAt(ht[st]);return ct}function x(U){if(typeof U!="string")throw new TypeError("Expected String");if(U.length===0)return t.alloc(0);for(var Y=0,W=0,J=0;U[Y]===_;)W++,Y++;for(var Z=(U.length-Y)*T+1>>>0,et=new Uint8Array(Z);Y<U.length;){var ht=U.charCodeAt(Y);if(ht>255)return;var ut=e[ht];if(ut===255)return;for(var At=0,Rt=Z-1;(ut!==0||At<J)&&Rt!==-1;Rt--,At++)ut+=l*et[Rt]>>>0,et[Rt]=ut%256>>>0,ut=ut/256>>>0;if(ut!==0)throw new Error("Non-zero carry");J=At,Y++}for(var st=Z-J;st!==Z&&et[st]===0;)st++;var ct=t.allocUnsafe(W+(Z-st));ct.fill(0,0,W);for(var gt=W;st!==Z;)ct[gt++]=et[st++];return ct}function M(U){var Y=x(U);if(Y)return Y;throw new Error("Non-base"+l+" character")}return{encode:N,decodeUnsafe:x,decode:M}}return Fs=n,Fs}var Hs,hc;function N1(){if(hc)return Hs;hc=1;var t=T1(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Hs=t(n),Hs}var x1=N1();const In=Es(x1),pc=Lu;var De={},Vs,vc;function C1(){if(vc)return Vs;vc=1;var t=lc().Buffer;function n(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),u=0;u<e.length;u++)e[u]=255;for(var a=0;a<r.length;a++){var d=r.charAt(a),g=d.charCodeAt(0);if(e[g]!==255)throw new TypeError(d+" is ambiguous");e[g]=a}var l=r.length,_=r.charAt(0),T=Math.log(l)/Math.log(256),C=Math.log(256)/Math.log(l);function N(U){if((Array.isArray(U)||U instanceof Uint8Array)&&(U=t.from(U)),!t.isBuffer(U))throw new TypeError("Expected Buffer");if(U.length===0)return"";for(var Y=0,W=0,J=0,Z=U.length;J!==Z&&U[J]===0;)J++,Y++;for(var et=(Z-J)*C+1>>>0,ht=new Uint8Array(et);J!==Z;){for(var ut=U[J],At=0,Rt=et-1;(ut!==0||At<W)&&Rt!==-1;Rt--,At++)ut+=256*ht[Rt]>>>0,ht[Rt]=ut%l>>>0,ut=ut/l>>>0;if(ut!==0)throw new Error("Non-zero carry");W=At,J++}for(var st=et-W;st!==et&&ht[st]===0;)st++;for(var ct=_.repeat(Y);st<et;++st)ct+=r.charAt(ht[st]);return ct}function x(U){if(typeof U!="string")throw new TypeError("Expected String");if(U.length===0)return t.alloc(0);for(var Y=0,W=0,J=0;U[Y]===_;)W++,Y++;for(var Z=(U.length-Y)*T+1>>>0,et=new Uint8Array(Z);Y<U.length;){var ht=U.charCodeAt(Y);if(ht>255)return;var ut=e[ht];if(ut===255)return;for(var At=0,Rt=Z-1;(ut!==0||At<J)&&Rt!==-1;Rt--,At++)ut+=l*et[Rt]>>>0,et[Rt]=ut%256>>>0,ut=ut/256>>>0;if(ut!==0)throw new Error("Non-zero carry");J=At,Y++}for(var st=Z-J;st!==Z&&et[st]===0;)st++;var ct=t.allocUnsafe(W+(Z-st));ct.fill(0,0,W);for(var gt=W;st!==Z;)ct[gt++]=et[st++];return ct}function M(U){var Y=x(U);if(Y)return Y;throw new Error("Non-base"+l+" character")}return{encode:N,decodeUnsafe:x,decode:M}}return Vs=n,Vs}var Gs,mc;function L1(){if(mc)return Gs;mc=1;var t=C1(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Gs=t(n),Gs}function or(t,n,r){return n<=t&&t<=r}function Oo(t){if(t===void 0)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function B1(t){for(var n=String(t),r=n.length,e=0,u=[];e<r;){var a=n.charCodeAt(e);if(a<55296||a>57343)u.push(a);else if(56320<=a&&a<=57343)u.push(65533);else if(55296<=a&&a<=56319)if(e===r-1)u.push(65533);else{var d=t.charCodeAt(e+1);if(56320<=d&&d<=57343){var g=a&1023,l=d&1023;u.push(65536+(g<<10)+l),e+=1}else u.push(65533)}e+=1}return u}function M1(t){for(var n="",r=0;r<t.length;++r){var e=t[r];e<=65535?n+=String.fromCharCode(e):(e-=65536,n+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return n}var To=-1;function js(t){this.tokens=[].slice.call(t)}js.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():To},prepend:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.tokens.unshift(n.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.tokens.push(n.shift());else this.tokens.push(t)}};var ni=-1;function Ys(t,n){if(t)throw TypeError("Decoder error");return n||65533}var No="utf-8";function xo(t,n){if(!(this instanceof xo))return new xo(t,n);if(t=t!==void 0?String(t).toLowerCase():No,t!==No)throw new Error("Encoding not supported. Only utf-8 is supported");n=Oo(n),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!n.fatal,this._ignoreBOM=!!n.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}xo.prototype={decode:function(n,r){var e;typeof n=="object"&&n instanceof ArrayBuffer?e=new Uint8Array(n):typeof n=="object"&&"buffer"in n&&n.buffer instanceof ArrayBuffer?e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):e=new Uint8Array(0),r=Oo(r),this._streaming||(this._decoder=new k1({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var u=new js(e),a=[],d;!u.endOfStream()&&(d=this._decoder.handler(u,u.read()),d!==ni);)d!==null&&(Array.isArray(d)?a.push.apply(a,d):a.push(d));if(!this._streaming){do{if(d=this._decoder.handler(u,u.read()),d===ni)break;d!==null&&(Array.isArray(d)?a.push.apply(a,d):a.push(d))}while(!u.endOfStream());this._decoder=null}return a.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(a[0]===65279?(this._BOMseen=!0,a.shift()):this._BOMseen=!0),M1(a)}};function Co(t,n){if(!(this instanceof Co))return new Co(t,n);if(t=t!==void 0?String(t).toLowerCase():No,t!==No)throw new Error("Encoding not supported. Only utf-8 is supported");n=Oo(n),this._streaming=!1,this._encoder=null,this._options={fatal:!!n.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Co.prototype={encode:function(n,r){n=n?String(n):"",r=Oo(r),this._streaming||(this._encoder=new D1(this._options)),this._streaming=!!r.stream;for(var e=[],u=new js(B1(n)),a;!u.endOfStream()&&(a=this._encoder.handler(u,u.read()),a!==ni);)Array.isArray(a)?e.push.apply(e,a):e.push(a);if(!this._streaming){for(;a=this._encoder.handler(u,u.read()),a!==ni;)Array.isArray(a)?e.push.apply(e,a):e.push(a);this._encoder=null}return new Uint8Array(e)}};function k1(t){var n=t.fatal,r=0,e=0,u=0,a=128,d=191;this.handler=function(g,l){if(l===To&&u!==0)return u=0,Ys(n);if(l===To)return ni;if(u===0){if(or(l,0,127))return l;if(or(l,194,223))u=1,r=l-192;else if(or(l,224,239))l===224&&(a=160),l===237&&(d=159),u=2,r=l-224;else if(or(l,240,244))l===240&&(a=144),l===244&&(d=143),u=3,r=l-240;else return Ys(n);return r=r<<6*u,null}if(!or(l,a,d))return r=u=e=0,a=128,d=191,g.prepend(l),Ys(n);if(a=128,d=191,e+=1,r+=l-128<<6*(u-e),e!==u)return null;var _=r;return r=u=e=0,_}}function D1(t){t.fatal,this.handler=function(n,r){if(r===To)return ni;if(or(r,0,127))return r;var e,u;or(r,128,2047)?(e=1,u=192):or(r,2048,65535)?(e=2,u=224):or(r,65536,1114111)&&(e=3,u=240);for(var a=[(r>>6*e)+u];e>0;){var d=r>>6*(e-1);a.push(128|d&63),e-=1}return a}}const U1=_s(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:xo,TextEncoder:Co},Symbol.toStringTag,{value:"Module"})));var gc;function P1(){if(gc)return De;gc=1;var t=De&&De.__createBinding||(Object.create?(function(st,ct,gt,wt){wt===void 0&&(wt=gt),Object.defineProperty(st,wt,{enumerable:!0,get:function(){return ct[gt]}})}):(function(st,ct,gt,wt){wt===void 0&&(wt=gt),st[wt]=ct[gt]})),n=De&&De.__setModuleDefault||(Object.create?(function(st,ct){Object.defineProperty(st,"default",{enumerable:!0,value:ct})}):function(st,ct){st.default=ct}),r=De&&De.__decorate||function(st,ct,gt,wt){var P=arguments.length,f=P<3?ct:wt===null?wt=Object.getOwnPropertyDescriptor(ct,gt):wt,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(st,ct,gt,wt);else for(var D=st.length-1;D>=0;D--)(S=st[D])&&(f=(P<3?S(f):P>3?S(ct,gt,f):S(ct,gt))||f);return P>3&&f&&Object.defineProperty(ct,gt,f),f},e=De&&De.__importStar||function(st){if(st&&st.__esModule)return st;var ct={};if(st!=null)for(var gt in st)gt!=="default"&&Object.hasOwnProperty.call(st,gt)&&t(ct,st,gt);return n(ct,st),ct},u=De&&De.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(De,"__esModule",{value:!0}),De.deserializeUnchecked=De.deserialize=De.serialize=De.BinaryReader=De.BinaryWriter=De.BorshError=De.baseDecode=De.baseEncode=void 0;const a=u(uc()),d=u(L1()),g=e(U1),l=typeof TextDecoder!="function"?g.TextDecoder:TextDecoder,_=new l("utf-8",{fatal:!0});function T(st){return typeof st=="string"&&(st=Buffer.from(st,"utf8")),d.default.encode(Buffer.from(st))}De.baseEncode=T;function C(st){return Buffer.from(d.default.decode(st))}De.baseDecode=C;const N=1024;class x extends Error{constructor(ct){super(ct),this.fieldPath=[],this.originalMessage=ct}addToFieldPath(ct){this.fieldPath.splice(0,0,ct),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}De.BorshError=x;class M{constructor(){this.buf=Buffer.alloc(N),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(N)]))}writeU8(ct){this.maybeResize(),this.buf.writeUInt8(ct,this.length),this.length+=1}writeU16(ct){this.maybeResize(),this.buf.writeUInt16LE(ct,this.length),this.length+=2}writeU32(ct){this.maybeResize(),this.buf.writeUInt32LE(ct,this.length),this.length+=4}writeU64(ct){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ct).toArray("le",8)))}writeU128(ct){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ct).toArray("le",16)))}writeU256(ct){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ct).toArray("le",32)))}writeU512(ct){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(ct).toArray("le",64)))}writeBuffer(ct){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),ct,Buffer.alloc(N)]),this.length+=ct.length}writeString(ct){this.maybeResize();const gt=Buffer.from(ct,"utf8");this.writeU32(gt.length),this.writeBuffer(gt)}writeFixedArray(ct){this.writeBuffer(Buffer.from(ct))}writeArray(ct,gt){this.maybeResize(),this.writeU32(ct.length);for(const wt of ct)this.maybeResize(),gt(wt)}toArray(){return this.buf.subarray(0,this.length)}}De.BinaryWriter=M;function U(st,ct,gt){const wt=gt.value;gt.value=function(...P){try{return wt.apply(this,P)}catch(f){if(f instanceof RangeError){const S=f.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(S)>=0)throw new x("Reached the end of buffer when deserializing")}throw f}}}class Y{constructor(ct){this.buf=ct,this.offset=0}readU8(){const ct=this.buf.readUInt8(this.offset);return this.offset+=1,ct}readU16(){const ct=this.buf.readUInt16LE(this.offset);return this.offset+=2,ct}readU32(){const ct=this.buf.readUInt32LE(this.offset);return this.offset+=4,ct}readU64(){const ct=this.readBuffer(8);return new a.default(ct,"le")}readU128(){const ct=this.readBuffer(16);return new a.default(ct,"le")}readU256(){const ct=this.readBuffer(32);return new a.default(ct,"le")}readU512(){const ct=this.readBuffer(64);return new a.default(ct,"le")}readBuffer(ct){if(this.offset+ct>this.buf.length)throw new x(`Expected buffer length ${ct} isn't within bounds`);const gt=this.buf.slice(this.offset,this.offset+ct);return this.offset+=ct,gt}readString(){const ct=this.readU32(),gt=this.readBuffer(ct);try{return _.decode(gt)}catch(wt){throw new x(`Error decoding UTF-8 string: ${wt}`)}}readFixedArray(ct){return new Uint8Array(this.readBuffer(ct))}readArray(ct){const gt=this.readU32(),wt=Array();for(let P=0;P<gt;++P)wt.push(ct());return wt}}r([U],Y.prototype,"readU8",null),r([U],Y.prototype,"readU16",null),r([U],Y.prototype,"readU32",null),r([U],Y.prototype,"readU64",null),r([U],Y.prototype,"readU128",null),r([U],Y.prototype,"readU256",null),r([U],Y.prototype,"readU512",null),r([U],Y.prototype,"readString",null),r([U],Y.prototype,"readFixedArray",null),r([U],Y.prototype,"readArray",null),De.BinaryReader=Y;function W(st){return st.charAt(0).toUpperCase()+st.slice(1)}function J(st,ct,gt,wt,P){try{if(typeof wt=="string")P[`write${W(wt)}`](gt);else if(wt instanceof Array)if(typeof wt[0]=="number"){if(gt.length!==wt[0])throw new x(`Expecting byte array of length ${wt[0]}, but got ${gt.length} bytes`);P.writeFixedArray(gt)}else if(wt.length===2&&typeof wt[1]=="number"){if(gt.length!==wt[1])throw new x(`Expecting byte array of length ${wt[1]}, but got ${gt.length} bytes`);for(let f=0;f<wt[1];f++)J(st,null,gt[f],wt[0],P)}else P.writeArray(gt,f=>{J(st,ct,f,wt[0],P)});else if(wt.kind!==void 0)switch(wt.kind){case"option":{gt==null?P.writeU8(0):(P.writeU8(1),J(st,ct,gt,wt.type,P));break}case"map":{P.writeU32(gt.size),gt.forEach((f,S)=>{J(st,ct,S,wt.key,P),J(st,ct,f,wt.value,P)});break}default:throw new x(`FieldType ${wt} unrecognized`)}else Z(st,gt,P)}catch(f){throw f instanceof x&&f.addToFieldPath(ct),f}}function Z(st,ct,gt){if(typeof ct.borshSerialize=="function"){ct.borshSerialize(gt);return}const wt=st.get(ct.constructor);if(!wt)throw new x(`Class ${ct.constructor.name} is missing in schema`);if(wt.kind==="struct")wt.fields.map(([P,f])=>{J(st,P,ct[P],f,gt)});else if(wt.kind==="enum"){const P=ct[wt.field];for(let f=0;f<wt.values.length;++f){const[S,D]=wt.values[f];if(S===P){gt.writeU8(f),J(st,S,ct[S],D,gt);break}}}else throw new x(`Unexpected schema kind: ${wt.kind} for ${ct.constructor.name}`)}function et(st,ct,gt=M){const wt=new gt;return Z(st,ct,wt),wt.toArray()}De.serialize=et;function ht(st,ct,gt,wt){try{if(typeof gt=="string")return wt[`read${W(gt)}`]();if(gt instanceof Array){if(typeof gt[0]=="number")return wt.readFixedArray(gt[0]);if(typeof gt[1]=="number"){const P=[];for(let f=0;f<gt[1];f++)P.push(ht(st,null,gt[0],wt));return P}else return wt.readArray(()=>ht(st,ct,gt[0],wt))}if(gt.kind==="option")return wt.readU8()?ht(st,ct,gt.type,wt):void 0;if(gt.kind==="map"){let P=new Map;const f=wt.readU32();for(let S=0;S<f;S++){const D=ht(st,ct,gt.key,wt),z=ht(st,ct,gt.value,wt);P.set(D,z)}return P}return ut(st,gt,wt)}catch(P){throw P instanceof x&&P.addToFieldPath(ct),P}}function ut(st,ct,gt){if(typeof ct.borshDeserialize=="function")return ct.borshDeserialize(gt);const wt=st.get(ct);if(!wt)throw new x(`Class ${ct.name} is missing in schema`);if(wt.kind==="struct"){const P={};for(const[f,S]of st.get(ct).fields)P[f]=ht(st,f,S,gt);return new ct(P)}if(wt.kind==="enum"){const P=gt.readU8();if(P>=wt.values.length)throw new x(`Enum index: ${P} is out of range`);const[f,S]=wt.values[P],D=ht(st,f,S,gt);return new ct({[f]:D})}throw new x(`Unexpected schema kind: ${wt.kind} for ${ct.constructor.name}`)}function At(st,ct,gt,wt=Y){const P=new wt(gt),f=ut(st,ct,P);if(P.offset<gt.length)throw new x(`Unexpected ${gt.length-P.offset} bytes after deserialized data`);return f}De.deserialize=At;function Rt(st,ct,gt,wt=Y){const P=new wt(gt);return ut(st,ct,P)}return De.deserializeUnchecked=Rt,De}var Ws=P1(),Ot={},yc;function F1(){if(yc)return Ot;yc=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.s16=Ot.s8=Ot.nu64be=Ot.u48be=Ot.u40be=Ot.u32be=Ot.u24be=Ot.u16be=Ot.nu64=Ot.u48=Ot.u40=Ot.u32=Ot.u24=Ot.u16=Ot.u8=Ot.offset=Ot.greedy=Ot.Constant=Ot.UTF8=Ot.CString=Ot.Blob=Ot.Boolean=Ot.BitField=Ot.BitStructure=Ot.VariantLayout=Ot.Union=Ot.UnionLayoutDiscriminator=Ot.UnionDiscriminator=Ot.Structure=Ot.Sequence=Ot.DoubleBE=Ot.Double=Ot.FloatBE=Ot.Float=Ot.NearInt64BE=Ot.NearInt64=Ot.NearUInt64BE=Ot.NearUInt64=Ot.IntBE=Ot.Int=Ot.UIntBE=Ot.UInt=Ot.OffsetLayout=Ot.GreedyCount=Ot.ExternalLayout=Ot.bindConstructorLayout=Ot.nameWithProperty=Ot.Layout=Ot.uint8ArrayToBuffer=Ot.checkUint8Array=void 0,Ot.constant=Ot.utf8=Ot.cstr=Ot.blob=Ot.unionLayoutDiscriminator=Ot.union=Ot.seq=Ot.bits=Ot.struct=Ot.f64be=Ot.f64=Ot.f32be=Ot.f32=Ot.ns64be=Ot.s48be=Ot.s40be=Ot.s32be=Ot.s24be=Ot.s16be=Ot.ns64=Ot.s48=Ot.s40=Ot.s32=Ot.s24=void 0;const t=Rs();function n(h){if(!(h instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Ot.checkUint8Array=n;function r(h){return n(h),t.Buffer.from(h.buffer,h.byteOffset,h.length)}Ot.uint8ArrayToBuffer=r;let e=class{constructor(b,j){if(!Number.isInteger(b))throw new TypeError("span must be an integer");this.span=b,this.property=j}makeDestinationObject(){return{}}getSpan(b,j){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(b){const j=Object.create(this.constructor.prototype);return Object.assign(j,this),j.property=b,j}fromArray(b){}};Ot.Layout=e;function u(h,b){return b.property?h+"["+b.property+"]":h}Ot.nameWithProperty=u;function a(h,b){if(typeof h!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(h,"layout_"))throw new Error("Class is already bound to a layout");if(!(b&&b instanceof e))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(b,"boundConstructor_"))throw new Error("layout is already bound to a constructor");h.layout_=b,b.boundConstructor_=h,b.makeDestinationObject=(()=>new h),Object.defineProperty(h.prototype,"encode",{value(j,X){return b.encode(this,j,X)},writable:!0}),Object.defineProperty(h,"decode",{value(j,X){return b.decode(j,X)},writable:!0})}Ot.bindConstructorLayout=a;class d extends e{isCount(){throw new Error("ExternalLayout is abstract")}}Ot.ExternalLayout=d;class g extends d{constructor(b=1,j){if(!Number.isInteger(b)||0>=b)throw new TypeError("elementSpan must be a (positive) integer");super(-1,j),this.elementSpan=b}isCount(){return!0}decode(b,j=0){n(b);const X=b.length-j;return Math.floor(X/this.elementSpan)}encode(b,j,X){return 0}}Ot.GreedyCount=g;class l extends d{constructor(b,j=0,X){if(!(b instanceof e))throw new TypeError("layout must be a Layout");if(!Number.isInteger(j))throw new TypeError("offset must be integer or undefined");super(b.span,X||b.property),this.layout=b,this.offset=j}isCount(){return this.layout instanceof _||this.layout instanceof T}decode(b,j=0){return this.layout.decode(b,j+this.offset)}encode(b,j,X=0){return this.layout.encode(b,j,X+this.offset)}}Ot.OffsetLayout=l;class _ extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readUIntLE(j,this.span)}encode(b,j,X=0){return r(j).writeUIntLE(b,X,this.span),this.span}}Ot.UInt=_;class T extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readUIntBE(j,this.span)}encode(b,j,X=0){return r(j).writeUIntBE(b,X,this.span),this.span}}Ot.UIntBE=T;class C extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readIntLE(j,this.span)}encode(b,j,X=0){return r(j).writeIntLE(b,X,this.span),this.span}}Ot.Int=C;class N extends e{constructor(b,j){if(super(b,j),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(b,j=0){return r(b).readIntBE(j,this.span)}encode(b,j,X=0){return r(j).writeIntBE(b,X,this.span),this.span}}Ot.IntBE=N;const x=Math.pow(2,32);function M(h){const b=Math.floor(h/x),j=h-b*x;return{hi32:b,lo32:j}}function U(h,b){return h*x+b}class Y extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readUInt32LE(j),St=X.readUInt32LE(j+4);return U(St,pt)}encode(b,j,X=0){const pt=M(b),St=r(j);return St.writeUInt32LE(pt.lo32,X),St.writeUInt32LE(pt.hi32,X+4),8}}Ot.NearUInt64=Y;class W extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readUInt32BE(j),St=X.readUInt32BE(j+4);return U(pt,St)}encode(b,j,X=0){const pt=M(b),St=r(j);return St.writeUInt32BE(pt.hi32,X),St.writeUInt32BE(pt.lo32,X+4),8}}Ot.NearUInt64BE=W;class J extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readUInt32LE(j),St=X.readInt32LE(j+4);return U(St,pt)}encode(b,j,X=0){const pt=M(b),St=r(j);return St.writeUInt32LE(pt.lo32,X),St.writeInt32LE(pt.hi32,X+4),8}}Ot.NearInt64=J;class Z extends e{constructor(b){super(8,b)}decode(b,j=0){const X=r(b),pt=X.readInt32BE(j),St=X.readUInt32BE(j+4);return U(pt,St)}encode(b,j,X=0){const pt=M(b),St=r(j);return St.writeInt32BE(pt.hi32,X),St.writeUInt32BE(pt.lo32,X+4),8}}Ot.NearInt64BE=Z;class et extends e{constructor(b){super(4,b)}decode(b,j=0){return r(b).readFloatLE(j)}encode(b,j,X=0){return r(j).writeFloatLE(b,X),4}}Ot.Float=et;class ht extends e{constructor(b){super(4,b)}decode(b,j=0){return r(b).readFloatBE(j)}encode(b,j,X=0){return r(j).writeFloatBE(b,X),4}}Ot.FloatBE=ht;class ut extends e{constructor(b){super(8,b)}decode(b,j=0){return r(b).readDoubleLE(j)}encode(b,j,X=0){return r(j).writeDoubleLE(b,X),8}}Ot.Double=ut;class At extends e{constructor(b){super(8,b)}decode(b,j=0){return r(b).readDoubleBE(j)}encode(b,j,X=0){return r(j).writeDoubleBE(b,X),8}}Ot.DoubleBE=At;class Rt extends e{constructor(b,j,X){if(!(b instanceof e))throw new TypeError("elementLayout must be a Layout");if(!(j instanceof d&&j.isCount()||Number.isInteger(j)&&0<=j))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let pt=-1;!(j instanceof d)&&0<b.span&&(pt=j*b.span),super(pt,X),this.elementLayout=b,this.count=j}getSpan(b,j=0){if(0<=this.span)return this.span;let X=0,pt=this.count;if(pt instanceof d&&(pt=pt.decode(b,j)),0<this.elementLayout.span)X=pt*this.elementLayout.span;else{let St=0;for(;St<pt;)X+=this.elementLayout.getSpan(b,j+X),++St}return X}decode(b,j=0){const X=[];let pt=0,St=this.count;for(St instanceof d&&(St=St.decode(b,j));pt<St;)X.push(this.elementLayout.decode(b,j)),j+=this.elementLayout.getSpan(b,j),pt+=1;return X}encode(b,j,X=0){const pt=this.elementLayout,St=b.reduce((Ht,Zt)=>Ht+pt.encode(Zt,j,X+Ht),0);return this.count instanceof d&&this.count.encode(b.length,j,X),St}}Ot.Sequence=Rt;class st extends e{constructor(b,j,X){if(!(Array.isArray(b)&&b.reduce((St,Ht)=>St&&Ht instanceof e,!0)))throw new TypeError("fields must be array of Layout instances");typeof j=="boolean"&&X===void 0&&(X=j,j=void 0);for(const St of b)if(0>St.span&&St.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let pt=-1;try{pt=b.reduce((St,Ht)=>St+Ht.getSpan(),0)}catch{}super(pt,j),this.fields=b,this.decodePrefixes=!!X}getSpan(b,j=0){if(0<=this.span)return this.span;let X=0;try{X=this.fields.reduce((pt,St)=>{const Ht=St.getSpan(b,j);return j+=Ht,pt+Ht},0)}catch{throw new RangeError("indeterminate span")}return X}decode(b,j=0){n(b);const X=this.makeDestinationObject();for(const pt of this.fields)if(pt.property!==void 0&&(X[pt.property]=pt.decode(b,j)),j+=pt.getSpan(b,j),this.decodePrefixes&&b.length===j)break;return X}encode(b,j,X=0){const pt=X;let St=0,Ht=0;for(const Zt of this.fields){let de=Zt.span;if(Ht=0<de?de:0,Zt.property!==void 0){const ye=b[Zt.property];ye!==void 0&&(Ht=Zt.encode(ye,j,X),0>de&&(de=Zt.getSpan(j,X)))}St=X,X+=de}return St+Ht-pt}fromArray(b){const j=this.makeDestinationObject();for(const X of this.fields)X.property!==void 0&&0<b.length&&(j[X.property]=b.shift());return j}layoutFor(b){if(typeof b!="string")throw new TypeError("property must be string");for(const j of this.fields)if(j.property===b)return j}offsetOf(b){if(typeof b!="string")throw new TypeError("property must be string");let j=0;for(const X of this.fields){if(X.property===b)return j;0>X.span?j=-1:0<=j&&(j+=X.span)}}}Ot.Structure=st;class ct{constructor(b){this.property=b}decode(b,j){throw new Error("UnionDiscriminator is abstract")}encode(b,j,X){throw new Error("UnionDiscriminator is abstract")}}Ot.UnionDiscriminator=ct;class gt extends ct{constructor(b,j){if(!(b instanceof d&&b.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(j||b.property||"variant"),this.layout=b}decode(b,j){return this.layout.decode(b,j)}encode(b,j,X){return this.layout.encode(b,j,X)}}Ot.UnionLayoutDiscriminator=gt;class wt extends e{constructor(b,j,X){let pt;if(b instanceof _||b instanceof T)pt=new gt(new l(b));else if(b instanceof d&&b.isCount())pt=new gt(b);else if(b instanceof ct)pt=b;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(j===void 0&&(j=null),!(j===null||j instanceof e))throw new TypeError("defaultLayout must be null or a Layout");if(j!==null){if(0>j.span)throw new Error("defaultLayout must have constant span");j.property===void 0&&(j=j.replicate("content"))}let St=-1;j&&(St=j.span,0<=St&&(b instanceof _||b instanceof T)&&(St+=pt.layout.span)),super(St,X),this.discriminator=pt,this.usesPrefixDiscriminator=b instanceof _||b instanceof T,this.defaultLayout=j,this.registry={};let Ht=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Zt){return Ht(Zt)},this.configGetSourceVariant=function(Zt){Ht=Zt.bind(this)}}getSpan(b,j=0){if(0<=this.span)return this.span;const X=this.getVariant(b,j);if(!X)throw new Error("unable to determine span for unrecognized variant");return X.getSpan(b,j)}defaultGetSourceVariant(b){if(Object.prototype.hasOwnProperty.call(b,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(b,this.defaultLayout.property))return;const j=this.registry[b[this.discriminator.property]];if(j&&(!j.layout||j.property&&Object.prototype.hasOwnProperty.call(b,j.property)))return j}else for(const j in this.registry){const X=this.registry[j];if(X.property&&Object.prototype.hasOwnProperty.call(b,X.property))return X}throw new Error("unable to infer src variant")}decode(b,j=0){let X;const pt=this.discriminator,St=pt.decode(b,j),Ht=this.registry[St];if(Ht===void 0){const Zt=this.defaultLayout;let de=0;this.usesPrefixDiscriminator&&(de=pt.layout.span),X=this.makeDestinationObject(),X[pt.property]=St,X[Zt.property]=Zt.decode(b,j+de)}else X=Ht.decode(b,j);return X}encode(b,j,X=0){const pt=this.getSourceVariant(b);if(pt===void 0){const St=this.discriminator,Ht=this.defaultLayout;let Zt=0;return this.usesPrefixDiscriminator&&(Zt=St.layout.span),St.encode(b[St.property],j,X),Zt+Ht.encode(b[Ht.property],j,X+Zt)}return pt.encode(b,j,X)}addVariant(b,j,X){const pt=new P(this,b,j,X);return this.registry[b]=pt,pt}getVariant(b,j=0){let X;return b instanceof Uint8Array?X=this.discriminator.decode(b,j):X=b,this.registry[X]}}Ot.Union=wt;class P extends e{constructor(b,j,X,pt){if(!(b instanceof wt))throw new TypeError("union must be a Union");if(!Number.isInteger(j)||0>j)throw new TypeError("variant must be a (non-negative) integer");if(typeof X=="string"&&pt===void 0&&(pt=X,X=null),X){if(!(X instanceof e))throw new TypeError("layout must be a Layout");if(b.defaultLayout!==null&&0<=X.span&&X.span>b.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof pt!="string")throw new TypeError("variant must have a String property")}let St=b.span;0>b.span&&(St=X?X.span:0,0<=St&&b.usesPrefixDiscriminator&&(St+=b.discriminator.layout.span)),super(St,pt),this.union=b,this.variant=j,this.layout=X||null}getSpan(b,j=0){if(0<=this.span)return this.span;let X=0;this.union.usesPrefixDiscriminator&&(X=this.union.discriminator.layout.span);let pt=0;return this.layout&&(pt=this.layout.getSpan(b,j+X)),X+pt}decode(b,j=0){const X=this.makeDestinationObject();if(this!==this.union.getVariant(b,j))throw new Error("variant mismatch");let pt=0;return this.union.usesPrefixDiscriminator&&(pt=this.union.discriminator.layout.span),this.layout?X[this.property]=this.layout.decode(b,j+pt):this.property?X[this.property]=!0:this.union.usesPrefixDiscriminator&&(X[this.union.discriminator.property]=this.variant),X}encode(b,j,X=0){let pt=0;if(this.union.usesPrefixDiscriminator&&(pt=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(b,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,j,X);let St=pt;if(this.layout&&(this.layout.encode(b[this.property],j,X+pt),St+=this.layout.getSpan(j,X+pt),0<=this.union.span&&St>this.union.span))throw new Error("encoded variant overruns containing union");return St}fromArray(b){if(this.layout)return this.layout.fromArray(b)}}Ot.VariantLayout=P;function f(h){return 0>h&&(h+=4294967296),h}class S extends e{constructor(b,j,X){if(!(b instanceof _||b instanceof T))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof j=="string"&&X===void 0&&(X=j,j=!1),4<b.span)throw new RangeError("word cannot exceed 32 bits");super(b.span,X),this.word=b,this.msb=!!j,this.fields=[];let pt=0;this._packedSetValue=function(St){return pt=f(St),this},this._packedGetValue=function(){return pt}}decode(b,j=0){const X=this.makeDestinationObject(),pt=this.word.decode(b,j);this._packedSetValue(pt);for(const St of this.fields)St.property!==void 0&&(X[St.property]=St.decode(b));return X}encode(b,j,X=0){const pt=this.word.decode(j,X);this._packedSetValue(pt);for(const St of this.fields)if(St.property!==void 0){const Ht=b[St.property];Ht!==void 0&&St.encode(Ht)}return this.word.encode(this._packedGetValue(),j,X)}addField(b,j){const X=new D(this,b,j);return this.fields.push(X),X}addBoolean(b){const j=new z(this,b);return this.fields.push(j),j}fieldFor(b){if(typeof b!="string")throw new TypeError("property must be string");for(const j of this.fields)if(j.property===b)return j}}Ot.BitStructure=S;class D{constructor(b,j,X){if(!(b instanceof S))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(j)||0>=j)throw new TypeError("bits must be positive integer");const pt=8*b.span,St=b.fields.reduce((Ht,Zt)=>Ht+Zt.bits,0);if(j+St>pt)throw new Error("bits too long for span remainder ("+(pt-St)+" of "+pt+" remain)");this.container=b,this.bits=j,this.valueMask=(1<<j)-1,j===32&&(this.valueMask=4294967295),this.start=St,this.container.msb&&(this.start=pt-St-j),this.wordMask=f(this.valueMask<<this.start),this.property=X}decode(b,j){const X=this.container._packedGetValue();return f(X&this.wordMask)>>>this.start}encode(b){if(typeof b!="number"||!Number.isInteger(b)||b!==f(b&this.valueMask))throw new TypeError(u("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const j=this.container._packedGetValue(),X=f(b<<this.start);this.container._packedSetValue(f(j&~this.wordMask)|X)}}Ot.BitField=D;class z extends D{constructor(b,j){super(b,1,j)}decode(b,j){return!!super.decode(b,j)}encode(b){typeof b=="boolean"&&(b=+b),super.encode(b)}}Ot.Boolean=z;class q extends e{constructor(b,j){if(!(b instanceof d&&b.isCount()||Number.isInteger(b)&&0<=b))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let X=-1;b instanceof d||(X=b),super(X,j),this.length=b}getSpan(b,j){let X=this.span;return 0>X&&(X=this.length.decode(b,j)),X}decode(b,j=0){let X=this.span;return 0>X&&(X=this.length.decode(b,j)),r(b).slice(j,j+X)}encode(b,j,X){let pt=this.length;if(this.length instanceof d&&(pt=b.length),!(b instanceof Uint8Array&&pt===b.length))throw new TypeError(u("Blob.encode",this)+" requires (length "+pt+") Uint8Array as src");if(X+pt>j.length)throw new RangeError("encoding overruns Uint8Array");const St=r(b);return r(j).write(St.toString("hex"),X,pt,"hex"),this.length instanceof d&&this.length.encode(pt,j,X),pt}}Ot.Blob=q;class nt extends e{constructor(b){super(-1,b)}getSpan(b,j=0){n(b);let X=j;for(;X<b.length&&b[X]!==0;)X+=1;return 1+X-j}decode(b,j=0){const X=this.getSpan(b,j);return r(b).slice(j,j+X-1).toString("utf-8")}encode(b,j,X=0){typeof b!="string"&&(b=String(b));const pt=t.Buffer.from(b,"utf8"),St=pt.length;if(X+St>j.length)throw new RangeError("encoding overruns Buffer");const Ht=r(j);return pt.copy(Ht,X),Ht[X+St]=0,St+1}}Ot.CString=nt;class ft extends e{constructor(b,j){if(typeof b=="string"&&j===void 0&&(j=b,b=void 0),b===void 0)b=-1;else if(!Number.isInteger(b))throw new TypeError("maxSpan must be an integer");super(-1,j),this.maxSpan=b}getSpan(b,j=0){return n(b),b.length-j}decode(b,j=0){const X=this.getSpan(b,j);if(0<=this.maxSpan&&this.maxSpan<X)throw new RangeError("text length exceeds maxSpan");return r(b).slice(j,j+X).toString("utf-8")}encode(b,j,X=0){typeof b!="string"&&(b=String(b));const pt=t.Buffer.from(b,"utf8"),St=pt.length;if(0<=this.maxSpan&&this.maxSpan<St)throw new RangeError("text length exceeds maxSpan");if(X+St>j.length)throw new RangeError("encoding overruns Buffer");return pt.copy(r(j),X),St}}Ot.UTF8=ft;class K extends e{constructor(b,j){super(0,j),this.value=b}decode(b,j){return this.value}encode(b,j,X){return 0}}return Ot.Constant=K,Ot.greedy=((h,b)=>new g(h,b)),Ot.offset=((h,b,j)=>new l(h,b,j)),Ot.u8=(h=>new _(1,h)),Ot.u16=(h=>new _(2,h)),Ot.u24=(h=>new _(3,h)),Ot.u32=(h=>new _(4,h)),Ot.u40=(h=>new _(5,h)),Ot.u48=(h=>new _(6,h)),Ot.nu64=(h=>new Y(h)),Ot.u16be=(h=>new T(2,h)),Ot.u24be=(h=>new T(3,h)),Ot.u32be=(h=>new T(4,h)),Ot.u40be=(h=>new T(5,h)),Ot.u48be=(h=>new T(6,h)),Ot.nu64be=(h=>new W(h)),Ot.s8=(h=>new C(1,h)),Ot.s16=(h=>new C(2,h)),Ot.s24=(h=>new C(3,h)),Ot.s32=(h=>new C(4,h)),Ot.s40=(h=>new C(5,h)),Ot.s48=(h=>new C(6,h)),Ot.ns64=(h=>new J(h)),Ot.s16be=(h=>new N(2,h)),Ot.s24be=(h=>new N(3,h)),Ot.s32be=(h=>new N(4,h)),Ot.s40be=(h=>new N(5,h)),Ot.s48be=(h=>new N(6,h)),Ot.ns64be=(h=>new Z(h)),Ot.f32=(h=>new et(h)),Ot.f32be=(h=>new ht(h)),Ot.f64=(h=>new ut(h)),Ot.f64be=(h=>new At(h)),Ot.struct=((h,b,j)=>new st(h,b,j)),Ot.bits=((h,b,j)=>new S(h,b,j)),Ot.seq=((h,b,j)=>new Rt(h,b,j)),Ot.union=((h,b,j)=>new wt(h,b,j)),Ot.unionLayoutDiscriminator=((h,b)=>new gt(h,b)),Ot.blob=((h,b)=>new q(h,b)),Ot.cstr=(h=>new nt(h)),Ot.utf8=((h,b)=>new ft(h,b)),Ot.constant=((h,b)=>new K(h,b)),Ot}var dt=F1(),H1=1,V1=2,G1=3,j1=4,Y1=5,W1=6,z1=7,K1=8,Z1=9,X1=10,$1=-32700,q1=-32603,J1=-32602,Q1=-32601,th=-32600,eh=-32016,nh=-32015,rh=-32014,ih=-32013,oh=-32012,sh=-32011,ah=-32010,uh=-32009,ch=-32008,fh=-32007,lh=-32006,dh=-32005,hh=-32004,ph=-32003,vh=-32002,mh=-32001,gh=28e5,yh=2800001,wh=2800002,Eh=2800003,_h=2800004,bh=2800005,Rh=2800006,Ah=2800007,Sh=2800008,Ih=2800009,Oh=2800010,Th=2800011,Nh=323e4,xh=32300001,Ch=3230002,Lh=3230003,Bh=3230004,Mh=361e4,kh=3610001,Dh=3610002,Uh=3610003,Ph=3610004,Fh=3610005,Hh=3610006,Vh=3610007,Gh=3611e3,jh=3704e3,Yh=3704001,Wh=3704002,zh=3704003,Kh=3704004,Zh=4128e3,Xh=4128001,$h=4128002,qh=4615e3,Jh=4615001,Qh=4615002,t2=4615003,e2=4615004,n2=4615005,r2=4615006,i2=4615007,o2=4615008,s2=4615009,a2=4615010,u2=4615011,c2=4615012,f2=4615013,l2=4615014,d2=4615015,h2=4615016,p2=4615017,v2=4615018,m2=4615019,g2=4615020,y2=4615021,w2=4615022,E2=4615023,_2=4615024,b2=4615025,R2=4615026,A2=4615027,S2=4615028,I2=4615029,O2=4615030,T2=4615031,N2=4615032,x2=4615033,C2=4615034,L2=4615035,B2=4615036,M2=4615037,k2=4615038,D2=4615039,U2=4615040,P2=4615041,F2=4615042,H2=4615043,V2=4615044,G2=4615045,j2=4615046,Y2=4615047,W2=4615048,z2=4615049,K2=4615050,Z2=4615051,X2=4615052,$2=4615053,q2=4615054,J2=5508e3,Q2=5508001,tp=5508002,ep=5508003,np=5508004,rp=5508005,ip=5508006,op=5508007,sp=5508008,ap=5508009,up=5508010,cp=5508011,fp=5663e3,lp=5663001,dp=5663002,hp=5663003,pp=5663004,vp=5663005,mp=5663006,gp=5663007,yp=5663008,wp=5663009,Ep=5663010,_p=5663011,bp=5663012,Rp=5663013,Ap=5663014,Sp=5663015,Ip=5663016,Op=5663017,Tp=5663018,Np=5663019,xp=5663020,Cp=705e4,Lp=7050001,Bp=7050002,Mp=7050003,kp=7050004,Dp=7050005,Up=7050006,Pp=7050007,Fp=7050008,Hp=7050009,Vp=7050010,Gp=7050011,jp=7050012,Yp=7050013,Wp=7050014,zp=7050015,Kp=7050016,Zp=7050017,Xp=7050018,$p=7050019,qp=7050020,Jp=7050021,Qp=7050022,tv=7050023,ev=7050024,nv=7050025,rv=7050026,iv=7050027,ov=7050028,sv=7050029,av=7050030,uv=7050031,cv=7050032,fv=7050033,lv=7050034,dv=7050035,hv=7050036,wc=8078e3,Ec=8078001,pv=8078002,vv=8078003,_c=8078004,bc=8078005,Rc=8078006,mv=8078007,gv=8078008,yv=8078009,wv=8078010,Ac=8078011,Ev=8078012,_v=8078013,bv=8078014,Rv=8078015,Av=8078016,Sv=8078017,Iv=8078018,Ov=8078019,Tv=8078020,Nv=8078021,xv=8078022,Cv=81e5,Lv=8100001,Bv=8100002,Mv=8100003,kv=819e4,Dv=8190001,Uv=8190002,Pv=8190003,Fv=8190004,Hv=99e5,Vv=9900001,Gv=9900002,jv=9900003,Yv=9900004;function Sc(t){return Array.isArray(t)?"%5B"+t.map(Sc).join("%2C%20")+"%5D":typeof t=="bigint"?`${t}n`:encodeURIComponent(String(t!=null&&Object.getPrototypeOf(t)===null?{...t}:t))}function Wv([t,n]){return`${t}=${Sc(n)}`}function zv(t){const n=Object.entries(t).map(Wv).join("&");return btoa(n)}var Kv={[Nh]:"Account not found at address: $address",[Bh]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Lh]:"Expected decoded account at address: $address",[Ch]:"Failed to decode account data at address: $address",[xh]:"Accounts not found at addresses: $addresses",[Ih]:"Unable to find a viable program address bump seed.",[wh]:"$putativeAddress is not a base58-encoded address.",[gh]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[Eh]:"The `CryptoKey` must be an `Ed25519` public key.",[Th]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[Sh]:"Invalid seeds; point must fall off the Ed25519 curve.",[_h]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Rh]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Ah]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[bh]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Oh]:"Program address cannot end with PDA marker.",[yh]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[j1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[H1]:"The network has progressed past the last block for which this transaction could have been committed.",[wc]:"Codec [$codecDescription] cannot decode empty byte arrays.",[xv]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Tv]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[bc]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Rc]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[_c]:"Encoder and decoder must either both be fixed-size or variable-size.",[gv]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[pv]:"Expected a fixed-size codec, got a variable-size one.",[_v]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[vv]:"Expected a variable-size codec, got a fixed-size one.",[Ov]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[Ec]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[Iv]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[yv]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[wv]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[Rv]:"Invalid literal union variant. Expected one of [$variants], got $value.",[mv]:"Expected [$codecDescription] to have $expected items, got $actual.",[Ev]:"Invalid value $value for base $base with alphabet $alphabet.",[Av]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Ac]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[bv]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[Nv]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[Sv]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Gh]:"No random values implementation could be found.",[s2]:"instruction requires an uninitialized account",[E2]:"instruction tries to borrow reference for an account which is already borrowed",[_2]:"instruction left account with an outstanding borrowed reference",[y2]:"program other than the account's owner changed the size of the account data",[n2]:"account data too small for instruction",[w2]:"instruction expected an executable account",[j2]:"An account does not have enough lamports to be rent-exempt",[W2]:"Program arithmetic overflowed",[G2]:"Failed to serialize or deserialize account data: $encodedData",[q2]:"Builtin programs must consume compute units",[N2]:"Cross-program invocation call depth too deep",[k2]:"Computational budget exceeded",[R2]:"custom program error: #$code",[p2]:"instruction contains duplicate accounts",[b2]:"instruction modifications of multiply-passed account differ",[O2]:"executable accounts must be rent exempt",[S2]:"instruction changed executable accounts data",[I2]:"instruction changed the balance of an executable account",[v2]:"instruction changed executable bit of an account",[l2]:"instruction modified data of an account it does not own",[f2]:"instruction spent from the balance of an account it does not own",[Jh]:"generic instruction error",[K2]:"Provided owner is not allowed",[H2]:"Account is immutable",[V2]:"Incorrect authority provided",[i2]:"incorrect program id for instruction",[r2]:"insufficient funds for instruction",[e2]:"invalid account data for instruction",[Y2]:"Invalid account owner",[Qh]:"invalid program argument",[A2]:"program returned invalid error code",[t2]:"invalid instruction data",[M2]:"Failed to reallocate account data",[B2]:"Provided seeds do not result in a valid address",[Z2]:"Accounts data allocations exceeded the maximum allowed per transaction",[X2]:"Max accounts exceeded",[$2]:"Max instruction trace length exceeded",[L2]:"Length of the seed is too long for address generation",[x2]:"An account required by the instruction is missing",[o2]:"missing required signature for instruction",[c2]:"instruction illegally modified the program id of an account",[g2]:"insufficient account keys for instruction",[D2]:"Cross-program invocation with unauthorized signer or writable account",[U2]:"Failed to create program execution environment",[F2]:"Program failed to compile",[P2]:"Program failed to complete",[h2]:"instruction modified data of a read-only account",[d2]:"instruction changed the balance of a read-only account",[C2]:"Cross-program invocation reentrancy not allowed for this instruction",[m2]:"instruction modified rent epoch of an account",[u2]:"sum of account balances before and after instruction do not match",[a2]:"instruction requires an initialized account",[qh]:"",[T2]:"Unsupported program id",[z2]:"Unsupported sysvar",[Zh]:"The instruction does not have any accounts.",[Xh]:"The instruction does not have any data.",[$h]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[Y1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[V1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Gv]:"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",[Yv]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Vv]:"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",[Hv]:"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",[jv]:"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",[q1]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[J1]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[th]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Q1]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[$1]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[oh]:"$__serverMessage",[mh]:"$__serverMessage",[hh]:"$__serverMessage",[rh]:"$__serverMessage",[ah]:"$__serverMessage",[uh]:"$__serverMessage",[eh]:"Minimum context slot has not been reached",[dh]:"Node is unhealthy; behind by $numSlotsBehind slots",[ch]:"No snapshot",[vh]:"Transaction simulation failed",[fh]:"$__serverMessage",[sh]:"Transaction history is not available from this node",[lh]:"$__serverMessage",[ih]:"Transaction signature length mismatch",[ph]:"Transaction signature verification failure",[nh]:"$__serverMessage",[jh]:"Key pair bytes must be of length 64, got $byteLength.",[Yh]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Wh]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Kh]:"The provided private key does not match the provided public key.",[zh]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[W1]:"Lamports value must be in the range [0, 2e64-1]",[z1]:"`$value` cannot be parsed as a `BigInt`",[X1]:"$message",[K1]:"`$value` cannot be parsed as a `Number`",[G1]:"No nonce account could be found at address `$nonceAccountAddress`",[kv]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Uv]:"WebSocket was closed before payload could be added to the send buffer",[Pv]:"WebSocket connection closed",[Fv]:"WebSocket failed to connect",[Dv]:"Failed to obtain a subscription id from the server",[Mv]:"Could not find an API plan for RPC method: `$method`",[Cv]:"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`.",[Bv]:"HTTP error ($statusCode): $message",[Lv]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[J2]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Q2]:"The provided value does not implement the `KeyPairSigner` interface",[ep]:"The provided value does not implement the `MessageModifyingSigner` interface",[np]:"The provided value does not implement the `MessagePartialSigner` interface",[tp]:"The provided value does not implement any of the `MessageSigner` interfaces",[ip]:"The provided value does not implement the `TransactionModifyingSigner` interface",[op]:"The provided value does not implement the `TransactionPartialSigner` interface",[sp]:"The provided value does not implement the `TransactionSendingSigner` interface",[rp]:"The provided value does not implement any of the `TransactionSigner` interfaces",[ap]:"More than one `TransactionSendingSigner` was identified.",[up]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[cp]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Vh]:"Cannot export a non-extractable key.",[kh]:"No digest implementation could be found.",[Mh]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Dh]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
1
|
+
(function(Pt,Dt){typeof exports=="object"&&typeof module<"u"?Dt(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Dt):(Pt=typeof globalThis<"u"?globalThis:Pt||self,Dt(Pt.VueTypeWriter={},Pt.Vue))})(this,(function(Pt,Dt){"use strict";var vu=(t=>(t.USER="user",t.BUSINESS="business",t.FIRST_PARTY="firstParty",t))(vu||{}),gu=(t=>(t.ASAP="asap",t.SAME_DAY="same_day",t.STANDARD="standard",t.CARD="card",t.IBAN="iban",t.PIX="pix",t.EFT="eft",t.VENMO="venmo",t.PAYPAL="paypal",t.WIRE="wire",t.INTERAC="interac",t.SWIFT="swift",t.CRYPTO="crypto",t))(gu||{}),mu=(t=>(t.Credits="Credits",t.USDC="USDC",t.Bank="Bank",t))(mu||{});function xd(t){return"cardToken"in t}function Ld(t){return"disableSavedPaymentMethods"in t}var yu=(t=>(t.Rounded="rounded",t.Sharp="sharp",t.Pill="pill",t))(yu||{}),wu=(t=>(t.GUEST="guest",t.PRIVATE="private",t.BUSINESS="business",t))(wu||{}),_u=(t=>(t.NoPreference="NoPreference",t.Frictionless="Frictionless",t.Challenge="Challenge",t))(_u||{}),Eu=(t=>(t.card="card",t.ach="ach",t.fasterPayments="fasterPayments",t.sepa="sepa",t.pix="pix",t.usdc="usdc",t.googlePay="googlePay",t.applePay="applePay",t.credits="credits",t.crypto="crypto",t.wire="wire",t.cashApp="cashApp",t.apa="apa",t.paypal="paypal",t.venmo="venmo",t.interac="interac",t))(Eu||{});const Cd={card:"Card",ach:"ACH",fasterPayments:"Faster Payments",sepa:"SEPA",pix:"PIX",usdc:"USDC",googlePay:"Google Pay",applePay:"Apple Pay",credits:"Credits",crypto:"Crypto",wire:"Wire Transfer",cashApp:"CashApp",apa:"APA",paypal:"PayPal",venmo:"Venmo",interac:"Interac"};var qr=(t=>(t.VISA="VISA",t.MASTERCARD="MSTR",t.AMEX="AMEX",t.DISCOVER="DISC",t))(qr||{});const Md="rnredirect";function Ss(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Is(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var r=function e(){var u=!1;try{u=this instanceof e}catch{}return u?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var u=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,u.get?u:{enumerable:!0,get:function(){return t[e]}})}),r}var Os={},Ii={},Ru;function Bd(){if(Ru)return Ii;Ru=1,Ii.byteLength=g,Ii.toByteArray=E,Ii.fromByteArray=N;for(var t=[],n=[],r=typeof Uint8Array<"u"?Uint8Array:Array,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,a=e.length;u<a;++u)t[u]=e[u],n[e.charCodeAt(u)]=u;n[45]=62,n[95]=63;function f(x){var B=x.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=x.indexOf("=");D===-1&&(D=B);var j=D===B?0:4-D%4;return[D,j]}function g(x){var B=f(x),D=B[0],j=B[1];return(D+j)*3/4-j}function l(x,B,D){return(B+D)*3/4-D}function E(x){var B,D=f(x),j=D[0],z=D[1],J=new r(l(x,j,z)),Z=0,nt=z>0?j-4:j,ht;for(ht=0;ht<nt;ht+=4)B=n[x.charCodeAt(ht)]<<18|n[x.charCodeAt(ht+1)]<<12|n[x.charCodeAt(ht+2)]<<6|n[x.charCodeAt(ht+3)],J[Z++]=B>>16&255,J[Z++]=B>>8&255,J[Z++]=B&255;return z===2&&(B=n[x.charCodeAt(ht)]<<2|n[x.charCodeAt(ht+1)]>>4,J[Z++]=B&255),z===1&&(B=n[x.charCodeAt(ht)]<<10|n[x.charCodeAt(ht+1)]<<4|n[x.charCodeAt(ht+2)]>>2,J[Z++]=B>>8&255,J[Z++]=B&255),J}function T(x){return t[x>>18&63]+t[x>>12&63]+t[x>>6&63]+t[x&63]}function L(x,B,D){for(var j,z=[],J=B;J<D;J+=3)j=(x[J]<<16&16711680)+(x[J+1]<<8&65280)+(x[J+2]&255),z.push(T(j));return z.join("")}function N(x){for(var B,D=x.length,j=D%3,z=[],J=16383,Z=0,nt=D-j;Z<nt;Z+=J)z.push(L(x,Z,Z+J>nt?nt:Z+J));return j===1?(B=x[D-1],z.push(t[B>>2]+t[B<<4&63]+"==")):j===2&&(B=(x[D-2]<<8)+x[D-1],z.push(t[B>>10]+t[B>>4&63]+t[B<<2&63]+"=")),z.join("")}return Ii}var mo={};var bu;function kd(){return bu||(bu=1,mo.read=function(t,n,r,e,u){var a,f,g=u*8-e-1,l=(1<<g)-1,E=l>>1,T=-7,L=r?u-1:0,N=r?-1:1,x=t[n+L];for(L+=N,a=x&(1<<-T)-1,x>>=-T,T+=g;T>0;a=a*256+t[n+L],L+=N,T-=8);for(f=a&(1<<-T)-1,a>>=-T,T+=e;T>0;f=f*256+t[n+L],L+=N,T-=8);if(a===0)a=1-E;else{if(a===l)return f?NaN:(x?-1:1)*(1/0);f=f+Math.pow(2,e),a=a-E}return(x?-1:1)*f*Math.pow(2,a-e)},mo.write=function(t,n,r,e,u,a){var f,g,l,E=a*8-u-1,T=(1<<E)-1,L=T>>1,N=u===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=e?0:a-1,B=e?1:-1,D=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(g=isNaN(n)?1:0,f=T):(f=Math.floor(Math.log(n)/Math.LN2),n*(l=Math.pow(2,-f))<1&&(f--,l*=2),f+L>=1?n+=N/l:n+=N*Math.pow(2,1-L),n*l>=2&&(f++,l/=2),f+L>=T?(g=0,f=T):f+L>=1?(g=(n*l-1)*Math.pow(2,u),f=f+L):(g=n*Math.pow(2,L-1)*Math.pow(2,u),f=0));u>=8;t[r+x]=g&255,x+=B,g/=256,u-=8);for(f=f<<u|g,E+=u;E>0;t[r+x]=f&255,x+=B,f/=256,E-=8);t[r+x-B]|=D*128}),mo}var Au;function Ns(){return Au||(Au=1,(function(t){const n=Bd(),r=kd(),e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=g,t.SlowBuffer=J,t.INSPECT_MAX_BYTES=50;const u=2147483647;t.kMaxLength=u,g.TYPED_ARRAY_SUPPORT=a(),!g.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 a(){try{const F=new Uint8Array(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function f(F){if(F>u)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new Uint8Array(F);return Object.setPrototypeOf(b,g.prototype),b}function g(F,b,O){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(F)}return l(F,b,O)}g.poolSize=8192;function l(F,b,O){if(typeof F=="string")return N(F,b);if(ArrayBuffer.isView(F))return B(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(yt(F,ArrayBuffer)||F&&yt(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(yt(F,SharedArrayBuffer)||F&&yt(F.buffer,SharedArrayBuffer)))return D(F,b,O);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=F.valueOf&&F.valueOf();if(A!=null&&A!==F)return g.from(A,b,O);const V=j(F);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return g.from(F[Symbol.toPrimitive]("string"),b,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}g.from=function(F,b,O){return l(F,b,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function E(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function T(F,b,O){return E(F),F<=0?f(F):b!==void 0?typeof O=="string"?f(F).fill(b,O):f(F).fill(b):f(F)}g.alloc=function(F,b,O){return T(F,b,O)};function L(F){return E(F),f(F<0?0:z(F)|0)}g.allocUnsafe=function(F){return L(F)},g.allocUnsafeSlow=function(F){return L(F)};function N(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!g.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const O=Z(F,b)|0;let A=f(O);const V=A.write(F,b);return V!==O&&(A=A.slice(0,V)),A}function x(F){const b=F.length<0?0:z(F.length)|0,O=f(b);for(let A=0;A<b;A+=1)O[A]=F[A]&255;return O}function B(F){if(yt(F,Uint8Array)){const b=new Uint8Array(F);return D(b.buffer,b.byteOffset,b.byteLength)}return x(F)}function D(F,b,O){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(O||0))throw new RangeError('"length" is outside of buffer bounds');let A;return b===void 0&&O===void 0?A=new Uint8Array(F):O===void 0?A=new Uint8Array(F,b):A=new Uint8Array(F,b,O),Object.setPrototypeOf(A,g.prototype),A}function j(F){if(g.isBuffer(F)){const b=z(F.length)|0,O=f(b);return O.length===0||F.copy(O,0,0,b),O}if(F.length!==void 0)return typeof F.length!="number"||_t(F.length)?f(0):x(F);if(F.type==="Buffer"&&Array.isArray(F.data))return x(F.data)}function z(F){if(F>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return F|0}function J(F){return+F!=F&&(F=0),g.alloc(+F)}g.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==g.prototype},g.compare=function(b,O){if(yt(b,Uint8Array)&&(b=g.from(b,b.offset,b.byteLength)),yt(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(b)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===O)return 0;let A=b.length,V=O.length;for(let G=0,st=Math.min(A,V);G<st;++G)if(b[G]!==O[G]){A=b[G],V=O[G];break}return A<V?-1:V<A?1:0},g.isEncoding=function(b){switch(String(b).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}},g.concat=function(b,O){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return g.alloc(0);let A;if(O===void 0)for(O=0,A=0;A<b.length;++A)O+=b[A].length;const V=g.allocUnsafe(O);let G=0;for(A=0;A<b.length;++A){let st=b[A];if(yt(st,Uint8Array))G+st.length>V.length?(g.isBuffer(st)||(st=g.from(st)),st.copy(V,G)):Uint8Array.prototype.set.call(V,st,G);else if(g.isBuffer(st))st.copy(V,G);else throw new TypeError('"list" argument must be an Array of Buffers');G+=st.length}return V};function Z(F,b){if(g.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||yt(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const O=F.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&O===0)return 0;let V=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Ie(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return H(F).length;default:if(V)return A?-1:Ie(F).length;b=(""+b).toLowerCase(),V=!0}}g.byteLength=Z;function nt(F,b,O){let A=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,b>>>=0,O<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return rt(this,b,O);case"utf8":case"utf-8":return d(this,b,O);case"ascii":return K(this,b,O);case"latin1":case"binary":return q(this,b,O);case"base64":return P(this,b,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,b,O);default:if(A)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),A=!0}}g.prototype._isBuffer=!0;function ht(F,b,O){const A=F[b];F[b]=F[O],F[O]=A}g.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<b;O+=2)ht(this,O,O+1);return this},g.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<b;O+=4)ht(this,O,O+3),ht(this,O+1,O+2);return this},g.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<b;O+=8)ht(this,O,O+7),ht(this,O+1,O+6),ht(this,O+2,O+5),ht(this,O+3,O+4);return this},g.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?d(this,0,b):nt.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(b){if(!g.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:g.compare(this,b)===0},g.prototype.inspect=function(){let b="";const O=t.INSPECT_MAX_BYTES;return b=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(b+=" ... "),"<Buffer "+b+">"},e&&(g.prototype[e]=g.prototype.inspect),g.prototype.compare=function(b,O,A,V,G){if(yt(b,Uint8Array)&&(b=g.from(b,b.offset,b.byteLength)),!g.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(O===void 0&&(O=0),A===void 0&&(A=b?b.length:0),V===void 0&&(V=0),G===void 0&&(G=this.length),O<0||A>b.length||V<0||G>this.length)throw new RangeError("out of range index");if(V>=G&&O>=A)return 0;if(V>=G)return-1;if(O>=A)return 1;if(O>>>=0,A>>>=0,V>>>=0,G>>>=0,this===b)return 0;let st=G-V,Ct=A-O;const Mt=Math.min(st,Ct),Ut=this.slice(V,G),kt=b.slice(O,A);for(let ot=0;ot<Mt;++ot)if(Ut[ot]!==kt[ot]){st=Ut[ot],Ct=kt[ot];break}return st<Ct?-1:Ct<st?1:0};function ft(F,b,O,A,V){if(F.length===0)return-1;if(typeof O=="string"?(A=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,_t(O)&&(O=V?0:F.length-1),O<0&&(O=F.length+O),O>=F.length){if(V)return-1;O=F.length-1}else if(O<0)if(V)O=0;else return-1;if(typeof b=="string"&&(b=g.from(b,A)),g.isBuffer(b))return b.length===0?-1:At(F,b,O,A,V);if(typeof b=="number")return b=b&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(F,b,O):Uint8Array.prototype.lastIndexOf.call(F,b,O):At(F,[b],O,A,V);throw new TypeError("val must be string, number or Buffer")}function At(F,b,O,A,V){let G=1,st=F.length,Ct=b.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(F.length<2||b.length<2)return-1;G=2,st/=2,Ct/=2,O/=2}function Mt(kt,ot){return G===1?kt[ot]:kt.readUInt16BE(ot*G)}let Ut;if(V){let kt=-1;for(Ut=O;Ut<st;Ut++)if(Mt(F,Ut)===Mt(b,kt===-1?0:Ut-kt)){if(kt===-1&&(kt=Ut),Ut-kt+1===Ct)return kt*G}else kt!==-1&&(Ut-=Ut-kt),kt=-1}else for(O+Ct>st&&(O=st-Ct),Ut=O;Ut>=0;Ut--){let kt=!0;for(let ot=0;ot<Ct;ot++)if(Mt(F,Ut+ot)!==Mt(b,ot)){kt=!1;break}if(kt)return Ut}return-1}g.prototype.includes=function(b,O,A){return this.indexOf(b,O,A)!==-1},g.prototype.indexOf=function(b,O,A){return ft(this,b,O,A,!0)},g.prototype.lastIndexOf=function(b,O,A){return ft(this,b,O,A,!1)};function bt(F,b,O,A){O=Number(O)||0;const V=F.length-O;A?(A=Number(A),A>V&&(A=V)):A=V;const G=b.length;A>G/2&&(A=G/2);let st;for(st=0;st<A;++st){const Ct=parseInt(b.substr(st*2,2),16);if(_t(Ct))return st;F[O+st]=Ct}return st}function at(F,b,O,A){return Q(Ie(b,F.length-O),F,O,A)}function lt(F,b,O,A){return Q(m(b),F,O,A)}function mt(F,b,O,A){return Q(H(b),F,O,A)}function wt(F,b,O,A){return Q(k(b,F.length-O),F,O,A)}g.prototype.write=function(b,O,A,V){if(O===void 0)V="utf8",A=this.length,O=0;else if(A===void 0&&typeof O=="string")V=O,A=this.length,O=0;else if(isFinite(O))O=O>>>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 G=this.length-O;if((A===void 0||A>G)&&(A=G),b.length>0&&(A<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let st=!1;for(;;)switch(V){case"hex":return bt(this,b,O,A);case"utf8":case"utf-8":return at(this,b,O,A);case"ascii":case"latin1":case"binary":return lt(this,b,O,A);case"base64":return mt(this,b,O,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wt(this,b,O,A);default:if(st)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),st=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function P(F,b,O){return b===0&&O===F.length?n.fromByteArray(F):n.fromByteArray(F.slice(b,O))}function d(F,b,O){O=Math.min(F.length,O);const A=[];let V=b;for(;V<O;){const G=F[V];let st=null,Ct=G>239?4:G>223?3:G>191?2:1;if(V+Ct<=O){let Mt,Ut,kt,ot;switch(Ct){case 1:G<128&&(st=G);break;case 2:Mt=F[V+1],(Mt&192)===128&&(ot=(G&31)<<6|Mt&63,ot>127&&(st=ot));break;case 3:Mt=F[V+1],Ut=F[V+2],(Mt&192)===128&&(Ut&192)===128&&(ot=(G&15)<<12|(Mt&63)<<6|Ut&63,ot>2047&&(ot<55296||ot>57343)&&(st=ot));break;case 4:Mt=F[V+1],Ut=F[V+2],kt=F[V+3],(Mt&192)===128&&(Ut&192)===128&&(kt&192)===128&&(ot=(G&15)<<18|(Mt&63)<<12|(Ut&63)<<6|kt&63,ot>65535&&ot<1114112&&(st=ot))}}st===null?(st=65533,Ct=1):st>65535&&(st-=65536,A.push(st>>>10&1023|55296),st=56320|st&1023),A.push(st),V+=Ct}return U(A)}const S=4096;function U(F){const b=F.length;if(b<=S)return String.fromCharCode.apply(String,F);let O="",A=0;for(;A<b;)O+=String.fromCharCode.apply(String,F.slice(A,A+=S));return O}function K(F,b,O){let A="";O=Math.min(F.length,O);for(let V=b;V<O;++V)A+=String.fromCharCode(F[V]&127);return A}function q(F,b,O){let A="";O=Math.min(F.length,O);for(let V=b;V<O;++V)A+=String.fromCharCode(F[V]);return A}function rt(F,b,O){const A=F.length;(!b||b<0)&&(b=0),(!O||O<0||O>A)&&(O=A);let V="";for(let G=b;G<O;++G)V+=Lt[F[G]];return V}function ct(F,b,O){const A=F.slice(b,O);let V="";for(let G=0;G<A.length-1;G+=2)V+=String.fromCharCode(A[G]+A[G+1]*256);return V}g.prototype.slice=function(b,O){const A=this.length;b=~~b,O=O===void 0?A:~~O,b<0?(b+=A,b<0&&(b=0)):b>A&&(b=A),O<0?(O+=A,O<0&&(O=0)):O>A&&(O=A),O<b&&(O=b);const V=this.subarray(b,O);return Object.setPrototypeOf(V,g.prototype),V};function W(F,b,O){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(b,O,A){b=b>>>0,O=O>>>0,A||W(b,O,this.length);let V=this[b],G=1,st=0;for(;++st<O&&(G*=256);)V+=this[b+st]*G;return V},g.prototype.readUintBE=g.prototype.readUIntBE=function(b,O,A){b=b>>>0,O=O>>>0,A||W(b,O,this.length);let V=this[b+--O],G=1;for(;O>0&&(G*=256);)V+=this[b+--O]*G;return V},g.prototype.readUint8=g.prototype.readUInt8=function(b,O){return b=b>>>0,O||W(b,1,this.length),this[b]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(b,O){return b=b>>>0,O||W(b,2,this.length),this[b]|this[b+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(b,O){return b=b>>>0,O||W(b,2,this.length),this[b]<<8|this[b+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(b,O){return b=b>>>0,O||W(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(b,O){return b=b>>>0,O||W(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},g.prototype.readBigUInt64LE=zt(function(b){b=b>>>0,Se(b,"offset");const O=this[b],A=this[b+7];(O===void 0||A===void 0)&&Ee(b,this.length-8);const V=O+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,G=this[++b]+this[++b]*2**8+this[++b]*2**16+A*2**24;return BigInt(V)+(BigInt(G)<<BigInt(32))}),g.prototype.readBigUInt64BE=zt(function(b){b=b>>>0,Se(b,"offset");const O=this[b],A=this[b+7];(O===void 0||A===void 0)&&Ee(b,this.length-8);const V=O*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],G=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+A;return(BigInt(V)<<BigInt(32))+BigInt(G)}),g.prototype.readIntLE=function(b,O,A){b=b>>>0,O=O>>>0,A||W(b,O,this.length);let V=this[b],G=1,st=0;for(;++st<O&&(G*=256);)V+=this[b+st]*G;return G*=128,V>=G&&(V-=Math.pow(2,8*O)),V},g.prototype.readIntBE=function(b,O,A){b=b>>>0,O=O>>>0,A||W(b,O,this.length);let V=O,G=1,st=this[b+--V];for(;V>0&&(G*=256);)st+=this[b+--V]*G;return G*=128,st>=G&&(st-=Math.pow(2,8*O)),st},g.prototype.readInt8=function(b,O){return b=b>>>0,O||W(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},g.prototype.readInt16LE=function(b,O){b=b>>>0,O||W(b,2,this.length);const A=this[b]|this[b+1]<<8;return A&32768?A|4294901760:A},g.prototype.readInt16BE=function(b,O){b=b>>>0,O||W(b,2,this.length);const A=this[b+1]|this[b]<<8;return A&32768?A|4294901760:A},g.prototype.readInt32LE=function(b,O){return b=b>>>0,O||W(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},g.prototype.readInt32BE=function(b,O){return b=b>>>0,O||W(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},g.prototype.readBigInt64LE=zt(function(b){b=b>>>0,Se(b,"offset");const O=this[b],A=this[b+7];(O===void 0||A===void 0)&&Ee(b,this.length-8);const V=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(A<<24);return(BigInt(V)<<BigInt(32))+BigInt(O+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),g.prototype.readBigInt64BE=zt(function(b){b=b>>>0,Se(b,"offset");const O=this[b],A=this[b+7];(O===void 0||A===void 0)&&Ee(b,this.length-8);const V=(O<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(V)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+A)}),g.prototype.readFloatLE=function(b,O){return b=b>>>0,O||W(b,4,this.length),r.read(this,b,!0,23,4)},g.prototype.readFloatBE=function(b,O){return b=b>>>0,O||W(b,4,this.length),r.read(this,b,!1,23,4)},g.prototype.readDoubleLE=function(b,O){return b=b>>>0,O||W(b,8,this.length),r.read(this,b,!0,52,8)},g.prototype.readDoubleBE=function(b,O){return b=b>>>0,O||W(b,8,this.length),r.read(this,b,!1,52,8)};function h(F,b,O,A,V,G){if(!g.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>V||b<G)throw new RangeError('"value" argument is out of bounds');if(O+A>F.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(b,O,A,V){if(b=+b,O=O>>>0,A=A>>>0,!V){const Ct=Math.pow(2,8*A)-1;h(this,b,O,A,Ct,0)}let G=1,st=0;for(this[O]=b&255;++st<A&&(G*=256);)this[O+st]=b/G&255;return O+A},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(b,O,A,V){if(b=+b,O=O>>>0,A=A>>>0,!V){const Ct=Math.pow(2,8*A)-1;h(this,b,O,A,Ct,0)}let G=A-1,st=1;for(this[O+G]=b&255;--G>=0&&(st*=256);)this[O+G]=b/st&255;return O+A},g.prototype.writeUint8=g.prototype.writeUInt8=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,1,255,0),this[O]=b&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,2,65535,0),this[O]=b&255,this[O+1]=b>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,2,65535,0),this[O]=b>>>8,this[O+1]=b&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,4,4294967295,0),this[O+3]=b>>>24,this[O+2]=b>>>16,this[O+1]=b>>>8,this[O]=b&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,4,4294967295,0),this[O]=b>>>24,this[O+1]=b>>>16,this[O+2]=b>>>8,this[O+3]=b&255,O+4};function R(F,b,O,A,V){ge(b,A,V,F,O,7);let G=Number(b&BigInt(4294967295));F[O++]=G,G=G>>8,F[O++]=G,G=G>>8,F[O++]=G,G=G>>8,F[O++]=G;let st=Number(b>>BigInt(32)&BigInt(4294967295));return F[O++]=st,st=st>>8,F[O++]=st,st=st>>8,F[O++]=st,st=st>>8,F[O++]=st,O}function Y(F,b,O,A,V){ge(b,A,V,F,O,7);let G=Number(b&BigInt(4294967295));F[O+7]=G,G=G>>8,F[O+6]=G,G=G>>8,F[O+5]=G,G=G>>8,F[O+4]=G;let st=Number(b>>BigInt(32)&BigInt(4294967295));return F[O+3]=st,st=st>>8,F[O+2]=st,st=st>>8,F[O+1]=st,st=st>>8,F[O]=st,O+8}g.prototype.writeBigUInt64LE=zt(function(b,O=0){return R(this,b,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=zt(function(b,O=0){return Y(this,b,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(b,O,A,V){if(b=+b,O=O>>>0,!V){const Mt=Math.pow(2,8*A-1);h(this,b,O,A,Mt-1,-Mt)}let G=0,st=1,Ct=0;for(this[O]=b&255;++G<A&&(st*=256);)b<0&&Ct===0&&this[O+G-1]!==0&&(Ct=1),this[O+G]=(b/st>>0)-Ct&255;return O+A},g.prototype.writeIntBE=function(b,O,A,V){if(b=+b,O=O>>>0,!V){const Mt=Math.pow(2,8*A-1);h(this,b,O,A,Mt-1,-Mt)}let G=A-1,st=1,Ct=0;for(this[O+G]=b&255;--G>=0&&(st*=256);)b<0&&Ct===0&&this[O+G+1]!==0&&(Ct=1),this[O+G]=(b/st>>0)-Ct&255;return O+A},g.prototype.writeInt8=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,1,127,-128),b<0&&(b=255+b+1),this[O]=b&255,O+1},g.prototype.writeInt16LE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,2,32767,-32768),this[O]=b&255,this[O+1]=b>>>8,O+2},g.prototype.writeInt16BE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,2,32767,-32768),this[O]=b>>>8,this[O+1]=b&255,O+2},g.prototype.writeInt32LE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,4,2147483647,-2147483648),this[O]=b&255,this[O+1]=b>>>8,this[O+2]=b>>>16,this[O+3]=b>>>24,O+4},g.prototype.writeInt32BE=function(b,O,A){return b=+b,O=O>>>0,A||h(this,b,O,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[O]=b>>>24,this[O+1]=b>>>16,this[O+2]=b>>>8,this[O+3]=b&255,O+4},g.prototype.writeBigInt64LE=zt(function(b,O=0){return R(this,b,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=zt(function(b,O=0){return Y(this,b,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function $(F,b,O,A,V,G){if(O+A>F.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function pt(F,b,O,A,V){return b=+b,O=O>>>0,V||$(F,b,O,4),r.write(F,b,O,A,23,4),O+4}g.prototype.writeFloatLE=function(b,O,A){return pt(this,b,O,!0,A)},g.prototype.writeFloatBE=function(b,O,A){return pt(this,b,O,!1,A)};function It(F,b,O,A,V){return b=+b,O=O>>>0,V||$(F,b,O,8),r.write(F,b,O,A,52,8),O+8}g.prototype.writeDoubleLE=function(b,O,A){return It(this,b,O,!0,A)},g.prototype.writeDoubleBE=function(b,O,A){return It(this,b,O,!1,A)},g.prototype.copy=function(b,O,A,V){if(!g.isBuffer(b))throw new TypeError("argument should be a Buffer");if(A||(A=0),!V&&V!==0&&(V=this.length),O>=b.length&&(O=b.length),O||(O=0),V>0&&V<A&&(V=A),V===A||b.length===0||this.length===0)return 0;if(O<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),b.length-O<V-A&&(V=b.length-O+A);const G=V-A;return this===b&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,A,V):Uint8Array.prototype.set.call(b,this.subarray(A,V),O),G},g.prototype.fill=function(b,O,A,V){if(typeof b=="string"){if(typeof O=="string"?(V=O,O=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"&&!g.isEncoding(V))throw new TypeError("Unknown encoding: "+V);if(b.length===1){const st=b.charCodeAt(0);(V==="utf8"&&st<128||V==="latin1")&&(b=st)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(O<0||this.length<O||this.length<A)throw new RangeError("Out of range index");if(A<=O)return this;O=O>>>0,A=A===void 0?this.length:A>>>0,b||(b=0);let G;if(typeof b=="number")for(G=O;G<A;++G)this[G]=b;else{const st=g.isBuffer(b)?b:g.from(b,V),Ct=st.length;if(Ct===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(G=0;G<A-O;++G)this[G+O]=st[G%Ct]}return this};const Vt={};function Zt(F,b,O){Vt[F]=class extends O{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(V){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:V,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}Zt("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Zt("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),Zt("ERR_OUT_OF_RANGE",function(F,b,O){let A=`The value of "${F}" is out of range.`,V=O;return Number.isInteger(O)&&Math.abs(O)>2**32?V=le(String(O)):typeof O=="bigint"&&(V=String(O),(O>BigInt(2)**BigInt(32)||O<-(BigInt(2)**BigInt(32)))&&(V=le(V)),V+="n"),A+=` It must be ${b}. Received ${V}`,A},RangeError);function le(F){let b="",O=F.length;const A=F[0]==="-"?1:0;for(;O>=A+4;O-=3)b=`_${F.slice(O-3,O)}${b}`;return`${F.slice(0,O)}${b}`}function we(F,b,O){Se(b,"offset"),(F[b]===void 0||F[b+O]===void 0)&&Ee(b,F.length-(O+1))}function ge(F,b,O,A,V,G){if(F>O||F<b){const st=typeof b=="bigint"?"n":"";let Ct;throw b===0||b===BigInt(0)?Ct=`>= 0${st} and < 2${st} ** ${(G+1)*8}${st}`:Ct=`>= -(2${st} ** ${(G+1)*8-1}${st}) and < 2 ** ${(G+1)*8-1}${st}`,new Vt.ERR_OUT_OF_RANGE("value",Ct,F)}we(A,V,G)}function Se(F,b){if(typeof F!="number")throw new Vt.ERR_INVALID_ARG_TYPE(b,"number",F)}function Ee(F,b,O){throw Math.floor(F)!==F?(Se(F,O),new Vt.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new Vt.ERR_BUFFER_OUT_OF_BOUNDS:new Vt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const _e=/[^+/0-9A-Za-z-_]/g;function Ve(F){if(F=F.split("=")[0],F=F.trim().replace(_e,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Ie(F,b){b=b||1/0;let O;const A=F.length;let V=null;const G=[];for(let st=0;st<A;++st){if(O=F.charCodeAt(st),O>55295&&O<57344){if(!V){if(O>56319){(b-=3)>-1&&G.push(239,191,189);continue}else if(st+1===A){(b-=3)>-1&&G.push(239,191,189);continue}V=O;continue}if(O<56320){(b-=3)>-1&&G.push(239,191,189),V=O;continue}O=(V-55296<<10|O-56320)+65536}else V&&(b-=3)>-1&&G.push(239,191,189);if(V=null,O<128){if((b-=1)<0)break;G.push(O)}else if(O<2048){if((b-=2)<0)break;G.push(O>>6|192,O&63|128)}else if(O<65536){if((b-=3)<0)break;G.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((b-=4)<0)break;G.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return G}function m(F){const b=[];for(let O=0;O<F.length;++O)b.push(F.charCodeAt(O)&255);return b}function k(F,b){let O,A,V;const G=[];for(let st=0;st<F.length&&!((b-=2)<0);++st)O=F.charCodeAt(st),A=O>>8,V=O%256,G.push(V),G.push(A);return G}function H(F){return n.toByteArray(Ve(F))}function Q(F,b,O,A){let V;for(V=0;V<A&&!(V+O>=b.length||V>=F.length);++V)b[V+O]=F[V];return V}function yt(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function _t(F){return F!==F}const Lt=(function(){const F="0123456789abcdef",b=new Array(256);for(let O=0;O<16;++O){const A=O*16;for(let V=0;V<16;++V)b[A+V]=F[O]+F[V]}return b})();function zt(F){return typeof BigInt>"u"?ee:F}function ee(){throw new Error("BigInt not supported")}})(Os)),Os}var be=Ns();const Jr=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Oi(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function Ts(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function Mr(t,...n){if(!Oi(t))throw new Error("Uint8Array expected");if(n.length>0&&!n.includes(t.length))throw new Error("Uint8Array expected of length "+n+", got length="+t.length)}function Su(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Ts(t.outputLen),Ts(t.blockLen)}function yo(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")}function Ud(t,n){Mr(t);const r=n.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Qr(...t){for(let n=0;n<t.length;n++)t[n].fill(0)}function xs(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Xn(t,n){return t<<32-n|t>>>n}const Iu=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Dd=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function Br(t){if(Mr(t),Iu)return t.toHex();let n="";for(let r=0;r<t.length;r++)n+=Dd[t[r]];return n}const or={_0:48,_9:57,A:65,F:70,a:97,f:102};function Ou(t){if(t>=or._0&&t<=or._9)return t-or._0;if(t>=or.A&&t<=or.F)return t-(or.A-10);if(t>=or.a&&t<=or.f)return t-(or.a-10)}function wo(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);if(Iu)return Uint8Array.fromHex(t);const n=t.length,r=n/2;if(n%2)throw new Error("hex string expected, got unpadded hex of length "+n);const e=new Uint8Array(r);for(let u=0,a=0;u<r;u++,a+=2){const f=Ou(t.charCodeAt(a)),g=Ou(t.charCodeAt(a+1));if(f===void 0||g===void 0){const l=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+l+'" at index '+a)}e[u]=f*16+g}return e}function Pd(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function Ls(t){return typeof t=="string"&&(t=Pd(t)),Mr(t),t}function qn(...t){let n=0;for(let e=0;e<t.length;e++){const u=t[e];Mr(u),n+=u.length}const r=new Uint8Array(n);for(let e=0,u=0;e<t.length;e++){const a=t[e];r.set(a,u),u+=a.length}return r}class Nu{}function Tu(t){const n=e=>t().update(Ls(e)).digest(),r=t();return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=()=>t(),n}function Cs(t=32){if(Jr&&typeof Jr.getRandomValues=="function")return Jr.getRandomValues(new Uint8Array(t));if(Jr&&typeof Jr.randomBytes=="function")return Uint8Array.from(Jr.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function Fd(t,n,r,e){if(typeof t.setBigUint64=="function")return t.setBigUint64(n,r,e);const u=BigInt(32),a=BigInt(4294967295),f=Number(r>>u&a),g=Number(r&a),l=e?4:0,E=e?0:4;t.setUint32(n+l,f,e),t.setUint32(n+E,g,e)}function Hd(t,n,r){return t&n^~t&r}function Vd(t,n,r){return t&n^t&r^n&r}class xu extends Nu{constructor(n,r,e,u){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=n,this.outputLen=r,this.padOffset=e,this.isLE=u,this.buffer=new Uint8Array(n),this.view=xs(this.buffer)}update(n){yo(this),n=Ls(n),Mr(n);const{view:r,buffer:e,blockLen:u}=this,a=n.length;for(let f=0;f<a;){const g=Math.min(u-this.pos,a-f);if(g===u){const l=xs(n);for(;u<=a-f;f+=u)this.process(l,f);continue}e.set(n.subarray(f,f+g),this.pos),this.pos+=g,f+=g,this.pos===u&&(this.process(r,0),this.pos=0)}return this.length+=n.length,this.roundClean(),this}digestInto(n){yo(this),Ud(n,this),this.finished=!0;const{buffer:r,view:e,blockLen:u,isLE:a}=this;let{pos:f}=this;r[f++]=128,Qr(this.buffer.subarray(f)),this.padOffset>u-f&&(this.process(e,0),f=0);for(let L=f;L<u;L++)r[L]=0;Fd(e,u-8,BigInt(this.length*8),a),this.process(e,0);const g=xs(n),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const E=l/4,T=this.get();if(E>T.length)throw new Error("_sha2: outputLen bigger than state");for(let L=0;L<E;L++)g.setUint32(4*L,T[L],a)}digest(){const{buffer:n,outputLen:r}=this;this.digestInto(n);const e=n.slice(0,r);return this.destroy(),e}_cloneInto(n){n||(n=new this.constructor),n.set(...this.get());const{blockLen:r,buffer:e,length:u,finished:a,destroyed:f,pos:g}=this;return n.destroyed=f,n.finished=a,n.length=u,n.pos=g,u%r&&n.buffer.set(e),n}clone(){return this._cloneInto()}}const vr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_n=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),_o=BigInt(2**32-1),Lu=BigInt(32);function Gd(t,n=!1){return n?{h:Number(t&_o),l:Number(t>>Lu&_o)}:{h:Number(t>>Lu&_o)|0,l:Number(t&_o)|0}}function Yd(t,n=!1){const r=t.length;let e=new Uint32Array(r),u=new Uint32Array(r);for(let a=0;a<r;a++){const{h:f,l:g}=Gd(t[a],n);[e[a],u[a]]=[f,g]}return[e,u]}const Cu=(t,n,r)=>t>>>r,Mu=(t,n,r)=>t<<32-r|n>>>r,ti=(t,n,r)=>t>>>r|n<<32-r,ei=(t,n,r)=>t<<32-r|n>>>r,Eo=(t,n,r)=>t<<64-r|n>>>r-32,Ro=(t,n,r)=>t>>>r-32|n<<64-r;function sr(t,n,r,e){const u=(n>>>0)+(e>>>0);return{h:t+r+(u/2**32|0)|0,l:u|0}}const jd=(t,n,r)=>(t>>>0)+(n>>>0)+(r>>>0),zd=(t,n,r,e)=>n+r+e+(t/2**32|0)|0,Kd=(t,n,r,e)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0),Wd=(t,n,r,e,u)=>n+r+e+u+(t/2**32|0)|0,Zd=(t,n,r,e,u)=>(t>>>0)+(n>>>0)+(r>>>0)+(e>>>0)+(u>>>0),$d=(t,n,r,e,u,a)=>n+r+e+u+a+(t/2**32|0)|0,Xd=Uint32Array.from([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]),gr=new Uint32Array(64);class qd extends xu{constructor(n=32){super(64,n,8,!1),this.A=vr[0]|0,this.B=vr[1]|0,this.C=vr[2]|0,this.D=vr[3]|0,this.E=vr[4]|0,this.F=vr[5]|0,this.G=vr[6]|0,this.H=vr[7]|0}get(){const{A:n,B:r,C:e,D:u,E:a,F:f,G:g,H:l}=this;return[n,r,e,u,a,f,g,l]}set(n,r,e,u,a,f,g,l){this.A=n|0,this.B=r|0,this.C=e|0,this.D=u|0,this.E=a|0,this.F=f|0,this.G=g|0,this.H=l|0}process(n,r){for(let L=0;L<16;L++,r+=4)gr[L]=n.getUint32(r,!1);for(let L=16;L<64;L++){const N=gr[L-15],x=gr[L-2],B=Xn(N,7)^Xn(N,18)^N>>>3,D=Xn(x,17)^Xn(x,19)^x>>>10;gr[L]=D+gr[L-7]+B+gr[L-16]|0}let{A:e,B:u,C:a,D:f,E:g,F:l,G:E,H:T}=this;for(let L=0;L<64;L++){const N=Xn(g,6)^Xn(g,11)^Xn(g,25),x=T+N+Hd(g,l,E)+Xd[L]+gr[L]|0,D=(Xn(e,2)^Xn(e,13)^Xn(e,22))+Vd(e,u,a)|0;T=E,E=l,l=g,g=f+x|0,f=a,a=u,u=e,e=x+D|0}e=e+this.A|0,u=u+this.B|0,a=a+this.C|0,f=f+this.D|0,g=g+this.E|0,l=l+this.F|0,E=E+this.G|0,T=T+this.H|0,this.set(e,u,a,f,g,l,E,T)}roundClean(){Qr(gr)}destroy(){this.set(0,0,0,0,0,0,0,0),Qr(this.buffer)}}const Bu=Yd(["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(t=>BigInt(t))),Jd=Bu[0],Qd=Bu[1],mr=new Uint32Array(80),yr=new Uint32Array(80);class t1 extends xu{constructor(n=64){super(128,n,16,!1),this.Ah=_n[0]|0,this.Al=_n[1]|0,this.Bh=_n[2]|0,this.Bl=_n[3]|0,this.Ch=_n[4]|0,this.Cl=_n[5]|0,this.Dh=_n[6]|0,this.Dl=_n[7]|0,this.Eh=_n[8]|0,this.El=_n[9]|0,this.Fh=_n[10]|0,this.Fl=_n[11]|0,this.Gh=_n[12]|0,this.Gl=_n[13]|0,this.Hh=_n[14]|0,this.Hl=_n[15]|0}get(){const{Ah:n,Al:r,Bh:e,Bl:u,Ch:a,Cl:f,Dh:g,Dl:l,Eh:E,El:T,Fh:L,Fl:N,Gh:x,Gl:B,Hh:D,Hl:j}=this;return[n,r,e,u,a,f,g,l,E,T,L,N,x,B,D,j]}set(n,r,e,u,a,f,g,l,E,T,L,N,x,B,D,j){this.Ah=n|0,this.Al=r|0,this.Bh=e|0,this.Bl=u|0,this.Ch=a|0,this.Cl=f|0,this.Dh=g|0,this.Dl=l|0,this.Eh=E|0,this.El=T|0,this.Fh=L|0,this.Fl=N|0,this.Gh=x|0,this.Gl=B|0,this.Hh=D|0,this.Hl=j|0}process(n,r){for(let Z=0;Z<16;Z++,r+=4)mr[Z]=n.getUint32(r),yr[Z]=n.getUint32(r+=4);for(let Z=16;Z<80;Z++){const nt=mr[Z-15]|0,ht=yr[Z-15]|0,ft=ti(nt,ht,1)^ti(nt,ht,8)^Cu(nt,ht,7),At=ei(nt,ht,1)^ei(nt,ht,8)^Mu(nt,ht,7),bt=mr[Z-2]|0,at=yr[Z-2]|0,lt=ti(bt,at,19)^Eo(bt,at,61)^Cu(bt,at,6),mt=ei(bt,at,19)^Ro(bt,at,61)^Mu(bt,at,6),wt=Kd(At,mt,yr[Z-7],yr[Z-16]),P=Wd(wt,ft,lt,mr[Z-7],mr[Z-16]);mr[Z]=P|0,yr[Z]=wt|0}let{Ah:e,Al:u,Bh:a,Bl:f,Ch:g,Cl:l,Dh:E,Dl:T,Eh:L,El:N,Fh:x,Fl:B,Gh:D,Gl:j,Hh:z,Hl:J}=this;for(let Z=0;Z<80;Z++){const nt=ti(L,N,14)^ti(L,N,18)^Eo(L,N,41),ht=ei(L,N,14)^ei(L,N,18)^Ro(L,N,41),ft=L&x^~L&D,At=N&B^~N&j,bt=Zd(J,ht,At,Qd[Z],yr[Z]),at=$d(bt,z,nt,ft,Jd[Z],mr[Z]),lt=bt|0,mt=ti(e,u,28)^Eo(e,u,34)^Eo(e,u,39),wt=ei(e,u,28)^Ro(e,u,34)^Ro(e,u,39),P=e&a^e&g^a&g,d=u&f^u&l^f&l;z=D|0,J=j|0,D=x|0,j=B|0,x=L|0,B=N|0,{h:L,l:N}=sr(E|0,T|0,at|0,lt|0),E=g|0,T=l|0,g=a|0,l=f|0,a=e|0,f=u|0;const S=jd(lt,wt,d);e=zd(S,at,mt,P),u=S|0}({h:e,l:u}=sr(this.Ah|0,this.Al|0,e|0,u|0)),{h:a,l:f}=sr(this.Bh|0,this.Bl|0,a|0,f|0),{h:g,l}=sr(this.Ch|0,this.Cl|0,g|0,l|0),{h:E,l:T}=sr(this.Dh|0,this.Dl|0,E|0,T|0),{h:L,l:N}=sr(this.Eh|0,this.El|0,L|0,N|0),{h:x,l:B}=sr(this.Fh|0,this.Fl|0,x|0,B|0),{h:D,l:j}=sr(this.Gh|0,this.Gl|0,D|0,j|0),{h:z,l:J}=sr(this.Hh|0,this.Hl|0,z|0,J|0),this.set(e,u,a,f,g,l,E,T,L,N,x,B,D,j,z,J)}roundClean(){Qr(mr,yr)}destroy(){Qr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const ku=Tu(()=>new qd),e1=Tu(()=>new t1);const Ms=BigInt(0),Bs=BigInt(1);function kr(t,n=""){if(typeof t!="boolean"){const r=n&&`"${n}"`;throw new Error(r+"expected boolean, got type="+typeof t)}return t}function Vn(t,n,r=""){const e=Oi(t),u=t?.length,a=n!==void 0;if(!e||a&&u!==n){const f=r&&`"${r}" `,g=a?` of length ${n}`:"",l=e?`length=${u}`:`type=${typeof t}`;throw new Error(f+"expected Uint8Array"+g+", got "+l)}return t}function bo(t){const n=t.toString(16);return n.length&1?"0"+n:n}function Uu(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);return t===""?Ms:BigInt("0x"+t)}function Ao(t){return Uu(Br(t))}function Ni(t){return Mr(t),Uu(Br(Uint8Array.from(t).reverse()))}function ks(t,n){return wo(t.toString(16).padStart(n*2,"0"))}function Du(t,n){return ks(t,n).reverse()}function Ze(t,n,r){let e;if(typeof n=="string")try{e=wo(n)}catch(a){throw new Error(t+" must be hex string or Uint8Array, cause: "+a)}else if(Oi(n))e=Uint8Array.from(n);else throw new Error(t+" must be hex string or Uint8Array");const u=e.length;if(typeof r=="number"&&u!==r)throw new Error(t+" of length "+r+" expected, got "+u);return e}function Pu(t){return Uint8Array.from(t)}const Us=t=>typeof t=="bigint"&&Ms<=t;function n1(t,n,r){return Us(t)&&Us(n)&&Us(r)&&n<=t&&t<r}function Ds(t,n,r,e){if(!n1(n,r,e))throw new Error("expected valid "+t+": "+r+" <= n < "+e+", got "+n)}function Fu(t){let n;for(n=0;t>Ms;t>>=Bs,n+=1);return n}const Ti=t=>(Bs<<BigInt(t))-Bs;function r1(t,n,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof n!="number"||n<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");const e=x=>new Uint8Array(x),u=x=>Uint8Array.of(x);let a=e(t),f=e(t),g=0;const l=()=>{a.fill(1),f.fill(0),g=0},E=(...x)=>r(f,a,...x),T=(x=e(0))=>{f=E(u(0),x),a=E(),x.length!==0&&(f=E(u(1),x),a=E())},L=()=>{if(g++>=1e3)throw new Error("drbg: tried 1000 values");let x=0;const B=[];for(;x<n;){a=E();const D=a.slice();B.push(D),x+=a.length}return qn(...B)};return(x,B)=>{l(),T(x);let D;for(;!(D=B(L()));)T();return l(),D}}function xi(t,n,r={}){if(!t||typeof t!="object")throw new Error("expected valid options object");function e(u,a,f){const g=t[u];if(f&&g===void 0)return;const l=typeof g;if(l!==a||g===null)throw new Error(`param "${u}" is invalid: expected ${a}, got ${l}`)}Object.entries(n).forEach(([u,a])=>e(u,a,!1)),Object.entries(r).forEach(([u,a])=>e(u,a,!0))}function So(t){const n=new WeakMap;return(r,...e)=>{const u=n.get(r);if(u!==void 0)return u;const a=t(r,...e);return n.set(r,a),a}}const Cn=BigInt(0),mn=BigInt(1),Ur=BigInt(2),Hu=BigInt(3),Vu=BigInt(4),Gu=BigInt(5),i1=BigInt(7),Yu=BigInt(8),o1=BigInt(9),ju=BigInt(16);function an(t,n){const r=t%n;return r>=Cn?r:n+r}function $e(t,n,r){let e=t;for(;n-- >Cn;)e*=e,e%=r;return e}function zu(t,n){if(t===Cn)throw new Error("invert: expected non-zero number");if(n<=Cn)throw new Error("invert: expected positive modulus, got "+n);let r=an(t,n),e=n,u=Cn,a=mn;for(;r!==Cn;){const g=e/r,l=e%r,E=u-a*g;e=r,r=l,u=a,a=E}if(e!==mn)throw new Error("invert: does not exist");return an(u,n)}function Ps(t,n,r){if(!t.eql(t.sqr(n),r))throw new Error("Cannot find square root")}function Ku(t,n){const r=(t.ORDER+mn)/Vu,e=t.pow(n,r);return Ps(t,e,n),e}function s1(t,n){const r=(t.ORDER-Gu)/Yu,e=t.mul(n,Ur),u=t.pow(e,r),a=t.mul(n,u),f=t.mul(t.mul(a,Ur),u),g=t.mul(a,t.sub(f,t.ONE));return Ps(t,g,n),g}function a1(t){const n=Dr(t),r=Wu(t),e=r(n,n.neg(n.ONE)),u=r(n,e),a=r(n,n.neg(e)),f=(t+i1)/ju;return(g,l)=>{let E=g.pow(l,f),T=g.mul(E,e);const L=g.mul(E,u),N=g.mul(E,a),x=g.eql(g.sqr(T),l),B=g.eql(g.sqr(L),l);E=g.cmov(E,T,x),T=g.cmov(N,L,B);const D=g.eql(g.sqr(T),l),j=g.cmov(E,T,D);return Ps(g,j,l),j}}function Wu(t){if(t<Hu)throw new Error("sqrt is not defined for small field");let n=t-mn,r=0;for(;n%Ur===Cn;)n/=Ur,r++;let e=Ur;const u=Dr(t);for(;$u(u,e)===1;)if(e++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(r===1)return Ku;let a=u.pow(e,n);const f=(n+mn)/Ur;return function(l,E){if(l.is0(E))return E;if($u(l,E)!==1)throw new Error("Cannot find square root");let T=r,L=l.mul(l.ONE,a),N=l.pow(E,n),x=l.pow(E,f);for(;!l.eql(N,l.ONE);){if(l.is0(N))return l.ZERO;let B=1,D=l.sqr(N);for(;!l.eql(D,l.ONE);)if(B++,D=l.sqr(D),B===T)throw new Error("Cannot find square root");const j=mn<<BigInt(T-B-1),z=l.pow(L,j);T=B,L=l.sqr(z),N=l.mul(N,L),x=l.mul(x,z)}return x}}function u1(t){return t%Vu===Hu?Ku:t%Yu===Gu?s1:t%ju===o1?a1(t):Wu(t)}const c1=(t,n)=>(an(t,n)&mn)===mn,f1=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function l1(t){const n={ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"},r=f1.reduce((e,u)=>(e[u]="function",e),n);return xi(t,r),t}function d1(t,n,r){if(r<Cn)throw new Error("invalid exponent, negatives unsupported");if(r===Cn)return t.ONE;if(r===mn)return n;let e=t.ONE,u=n;for(;r>Cn;)r&mn&&(e=t.mul(e,u)),u=t.sqr(u),r>>=mn;return e}function Zu(t,n,r=!1){const e=new Array(n.length).fill(r?t.ZERO:void 0),u=n.reduce((f,g,l)=>t.is0(g)?f:(e[l]=f,t.mul(f,g)),t.ONE),a=t.inv(u);return n.reduceRight((f,g,l)=>t.is0(g)?f:(e[l]=t.mul(f,e[l]),t.mul(f,g)),a),e}function $u(t,n){const r=(t.ORDER-mn)/Ur,e=t.pow(n,r),u=t.eql(e,t.ONE),a=t.eql(e,t.ZERO),f=t.eql(e,t.neg(t.ONE));if(!u&&!a&&!f)throw new Error("invalid Legendre symbol result");return u?1:a?0:-1}function Xu(t,n){n!==void 0&&Ts(n);const r=n!==void 0?n:t.toString(2).length,e=Math.ceil(r/8);return{nBitLength:r,nByteLength:e}}function Dr(t,n,r=!1,e={}){if(t<=Cn)throw new Error("invalid field: expected ORDER > 0, got "+t);let u,a,f=!1,g;if(typeof n=="object"&&n!=null){if(e.sqrt||r)throw new Error("cannot specify opts in two arguments");const N=n;N.BITS&&(u=N.BITS),N.sqrt&&(a=N.sqrt),typeof N.isLE=="boolean"&&(r=N.isLE),typeof N.modFromBytes=="boolean"&&(f=N.modFromBytes),g=N.allowedLengths}else typeof n=="number"&&(u=n),e.sqrt&&(a=e.sqrt);const{nBitLength:l,nByteLength:E}=Xu(t,u);if(E>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let T;const L=Object.freeze({ORDER:t,isLE:r,BITS:l,BYTES:E,MASK:Ti(l),ZERO:Cn,ONE:mn,allowedLengths:g,create:N=>an(N,t),isValid:N=>{if(typeof N!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof N);return Cn<=N&&N<t},is0:N=>N===Cn,isValidNot0:N=>!L.is0(N)&&L.isValid(N),isOdd:N=>(N&mn)===mn,neg:N=>an(-N,t),eql:(N,x)=>N===x,sqr:N=>an(N*N,t),add:(N,x)=>an(N+x,t),sub:(N,x)=>an(N-x,t),mul:(N,x)=>an(N*x,t),pow:(N,x)=>d1(L,N,x),div:(N,x)=>an(N*zu(x,t),t),sqrN:N=>N*N,addN:(N,x)=>N+x,subN:(N,x)=>N-x,mulN:(N,x)=>N*x,inv:N=>zu(N,t),sqrt:a||(N=>(T||(T=u1(t)),T(L,N))),toBytes:N=>r?Du(N,E):ks(N,E),fromBytes:(N,x=!0)=>{if(g){if(!g.includes(N.length)||N.length>E)throw new Error("Field.fromBytes: expected "+g+" bytes, got "+N.length);const D=new Uint8Array(E);D.set(N,r?0:D.length-N.length),N=D}if(N.length!==E)throw new Error("Field.fromBytes: expected "+E+" bytes, got "+N.length);let B=r?Ni(N):Ao(N);if(f&&(B=an(B,t)),!x&&!L.isValid(B))throw new Error("invalid field element: outside of range 0..ORDER");return B},invertBatch:N=>Zu(L,N),cmov:(N,x,B)=>B?x:N});return Object.freeze(L)}function qu(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const n=t.toString(2).length;return Math.ceil(n/8)}function Ju(t){const n=qu(t);return n+Math.ceil(n/2)}function h1(t,n,r=!1){const e=t.length,u=qu(n),a=Ju(n);if(e<16||e<a||e>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+e);const f=r?Ni(t):Ao(t),g=an(f,n-mn)+mn;return r?Du(g,u):ks(g,u)}const ni=BigInt(0),Pr=BigInt(1);function Io(t,n){const r=n.negate();return t?r:n}function Fr(t,n){const r=Zu(t.Fp,n.map(e=>e.Z));return n.map((e,u)=>t.fromAffine(e.toAffine(r[u])))}function Qu(t,n){if(!Number.isSafeInteger(t)||t<=0||t>n)throw new Error("invalid window size, expected [1.."+n+"], got W="+t)}function Fs(t,n){Qu(t,n);const r=Math.ceil(n/t)+1,e=2**(t-1),u=2**t,a=Ti(t),f=BigInt(t);return{windows:r,windowSize:e,mask:a,maxNumber:u,shiftBy:f}}function tc(t,n,r){const{windowSize:e,mask:u,maxNumber:a,shiftBy:f}=r;let g=Number(t&u),l=t>>f;g>e&&(g-=a,l+=Pr);const E=n*e,T=E+Math.abs(g)-1,L=g===0,N=g<0,x=n%2!==0;return{nextN:l,offset:T,isZero:L,isNeg:N,isNegF:x,offsetF:E}}function p1(t,n){if(!Array.isArray(t))throw new Error("array expected");t.forEach((r,e)=>{if(!(r instanceof n))throw new Error("invalid point at index "+e)})}function v1(t,n){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((r,e)=>{if(!n.isValid(r))throw new Error("invalid scalar at index "+e)})}const Hs=new WeakMap,ec=new WeakMap;function Vs(t){return ec.get(t)||1}function nc(t){if(t!==ni)throw new Error("invalid wNAF")}class rc{constructor(n,r){this.BASE=n.BASE,this.ZERO=n.ZERO,this.Fn=n.Fn,this.bits=r}_unsafeLadder(n,r,e=this.ZERO){let u=n;for(;r>ni;)r&Pr&&(e=e.add(u)),u=u.double(),r>>=Pr;return e}precomputeWindow(n,r){const{windows:e,windowSize:u}=Fs(r,this.bits),a=[];let f=n,g=f;for(let l=0;l<e;l++){g=f,a.push(g);for(let E=1;E<u;E++)g=g.add(f),a.push(g);f=g.double()}return a}wNAF(n,r,e){if(!this.Fn.isValid(e))throw new Error("invalid scalar");let u=this.ZERO,a=this.BASE;const f=Fs(n,this.bits);for(let g=0;g<f.windows;g++){const{nextN:l,offset:E,isZero:T,isNeg:L,isNegF:N,offsetF:x}=tc(e,g,f);e=l,T?a=a.add(Io(N,r[x])):u=u.add(Io(L,r[E]))}return nc(e),{p:u,f:a}}wNAFUnsafe(n,r,e,u=this.ZERO){const a=Fs(n,this.bits);for(let f=0;f<a.windows&&e!==ni;f++){const{nextN:g,offset:l,isZero:E,isNeg:T}=tc(e,f,a);if(e=g,!E){const L=r[l];u=u.add(T?L.negate():L)}}return nc(e),u}getPrecomputes(n,r,e){let u=Hs.get(r);return u||(u=this.precomputeWindow(r,n),n!==1&&(typeof e=="function"&&(u=e(u)),Hs.set(r,u))),u}cached(n,r,e){const u=Vs(n);return this.wNAF(u,this.getPrecomputes(u,n,e),r)}unsafe(n,r,e,u){const a=Vs(n);return a===1?this._unsafeLadder(n,r,u):this.wNAFUnsafe(a,this.getPrecomputes(a,n,e),r,u)}createCache(n,r){Qu(r,this.bits),ec.set(n,r),Hs.delete(n)}hasCache(n){return Vs(n)!==1}}function g1(t,n,r,e){let u=n,a=t.ZERO,f=t.ZERO;for(;r>ni||e>ni;)r&Pr&&(a=a.add(u)),e&Pr&&(f=f.add(u)),u=u.double(),r>>=Pr,e>>=Pr;return{p1:a,p2:f}}function ic(t,n,r,e){p1(r,t),v1(e,n);const u=r.length,a=e.length;if(u!==a)throw new Error("arrays of points and scalars must have equal length");const f=t.ZERO,g=Fu(BigInt(u));let l=1;g>12?l=g-3:g>4?l=g-2:g>0&&(l=2);const E=Ti(l),T=new Array(Number(E)+1).fill(f),L=Math.floor((n.BITS-1)/l)*l;let N=f;for(let x=L;x>=0;x-=l){T.fill(f);for(let D=0;D<a;D++){const j=e[D],z=Number(j>>BigInt(x)&E);T[z]=T[z].add(r[D])}let B=f;for(let D=T.length-1,j=f;D>0;D--)j=j.add(T[D]),B=B.add(j);if(N=N.add(B),x!==0)for(let D=0;D<l;D++)N=N.double()}return N}function oc(t,n,r){if(n){if(n.ORDER!==t)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return l1(n),n}else return Dr(t,{isLE:r})}function sc(t,n,r={},e){if(e===void 0&&(e=t==="edwards"),!n||typeof n!="object")throw new Error(`expected valid ${t} CURVE object`);for(const l of["p","n","h"]){const E=n[l];if(!(typeof E=="bigint"&&E>ni))throw new Error(`CURVE.${l} must be positive bigint`)}const u=oc(n.p,r.Fp,e),a=oc(n.n,r.Fn,e),g=["Gx","Gy","a",t==="weierstrass"?"b":"d"];for(const l of g)if(!u.isValid(n[l]))throw new Error(`CURVE.${l} must be valid field element of CURVE.Fp`);return n=Object.freeze(Object.assign({},n)),{CURVE:n,Fp:u,Fn:a}}const wr=BigInt(0),hn=BigInt(1),Gs=BigInt(2),m1=BigInt(8);function y1(t,n,r,e){const u=t.sqr(r),a=t.sqr(e),f=t.add(t.mul(n.a,u),a),g=t.add(t.ONE,t.mul(n.d,t.mul(u,a)));return t.eql(f,g)}function w1(t,n={}){const r=sc("edwards",t,n,n.FpFnLE),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:f}=a;xi(n,{},{uvRatio:"function"});const g=Gs<<BigInt(u.BYTES*8)-hn,l=j=>e.create(j),E=n.uvRatio||((j,z)=>{try{return{isValid:!0,value:e.sqrt(e.div(j,z))}}catch{return{isValid:!1,value:wr}}});if(!y1(e,a,a.Gx,a.Gy))throw new Error("bad curve params: generator point");function T(j,z,J=!1){const Z=J?hn:wr;return Ds("coordinate "+j,z,Z,g),z}function L(j){if(!(j instanceof B))throw new Error("ExtendedPoint expected")}const N=So((j,z)=>{const{X:J,Y:Z,Z:nt}=j,ht=j.is0();z==null&&(z=ht?m1:e.inv(nt));const ft=l(J*z),At=l(Z*z),bt=e.mul(nt,z);if(ht)return{x:wr,y:hn};if(bt!==hn)throw new Error("invZ was invalid");return{x:ft,y:At}}),x=So(j=>{const{a:z,d:J}=a;if(j.is0())throw new Error("bad point: ZERO");const{X:Z,Y:nt,Z:ht,T:ft}=j,At=l(Z*Z),bt=l(nt*nt),at=l(ht*ht),lt=l(at*at),mt=l(At*z),wt=l(at*l(mt+bt)),P=l(lt+l(J*l(At*bt)));if(wt!==P)throw new Error("bad point: equation left != right (1)");const d=l(Z*nt),S=l(ht*ft);if(d!==S)throw new Error("bad point: equation left != right (2)");return!0});class B{constructor(z,J,Z,nt){this.X=T("x",z),this.Y=T("y",J),this.Z=T("z",Z,!0),this.T=T("t",nt),Object.freeze(this)}static CURVE(){return a}static fromAffine(z){if(z instanceof B)throw new Error("extended point not allowed");const{x:J,y:Z}=z||{};return T("x",J),T("y",Z),new B(J,Z,hn,l(J*Z))}static fromBytes(z,J=!1){const Z=e.BYTES,{a:nt,d:ht}=a;z=Pu(Vn(z,Z,"point")),kr(J,"zip215");const ft=Pu(z),At=z[Z-1];ft[Z-1]=At&-129;const bt=Ni(ft),at=J?g:e.ORDER;Ds("point.y",bt,wr,at);const lt=l(bt*bt),mt=l(lt-hn),wt=l(ht*lt-nt);let{isValid:P,value:d}=E(mt,wt);if(!P)throw new Error("bad point: invalid y coordinate");const S=(d&hn)===hn,U=(At&128)!==0;if(!J&&d===wr&&U)throw new Error("bad point: x=0 and x_0=1");return U!==S&&(d=l(-d)),B.fromAffine({x:d,y:bt})}static fromHex(z,J=!1){return B.fromBytes(Ze("point",z),J)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(z=8,J=!0){return D.createCache(this,z),J||this.multiply(Gs),this}assertValidity(){x(this)}equals(z){L(z);const{X:J,Y:Z,Z:nt}=this,{X:ht,Y:ft,Z:At}=z,bt=l(J*At),at=l(ht*nt),lt=l(Z*At),mt=l(ft*nt);return bt===at&<===mt}is0(){return this.equals(B.ZERO)}negate(){return new B(l(-this.X),this.Y,this.Z,l(-this.T))}double(){const{a:z}=a,{X:J,Y:Z,Z:nt}=this,ht=l(J*J),ft=l(Z*Z),At=l(Gs*l(nt*nt)),bt=l(z*ht),at=J+Z,lt=l(l(at*at)-ht-ft),mt=bt+ft,wt=mt-At,P=bt-ft,d=l(lt*wt),S=l(mt*P),U=l(lt*P),K=l(wt*mt);return new B(d,S,K,U)}add(z){L(z);const{a:J,d:Z}=a,{X:nt,Y:ht,Z:ft,T:At}=this,{X:bt,Y:at,Z:lt,T:mt}=z,wt=l(nt*bt),P=l(ht*at),d=l(At*Z*mt),S=l(ft*lt),U=l((nt+ht)*(bt+at)-wt-P),K=S-d,q=S+d,rt=l(P-J*wt),ct=l(U*K),W=l(q*rt),h=l(U*rt),R=l(K*q);return new B(ct,W,R,h)}subtract(z){return this.add(z.negate())}multiply(z){if(!u.isValidNot0(z))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:J,f:Z}=D.cached(this,z,nt=>Fr(B,nt));return Fr(B,[J,Z])[0]}multiplyUnsafe(z,J=B.ZERO){if(!u.isValid(z))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return z===wr?B.ZERO:this.is0()||z===hn?this:D.unsafe(this,z,Z=>Fr(B,Z),J)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}isTorsionFree(){return D.unsafe(this,a.n).is0()}toAffine(z){return N(this,z)}clearCofactor(){return f===hn?this:this.multiplyUnsafe(f)}toBytes(){const{x:z,y:J}=this.toAffine(),Z=e.toBytes(J);return Z[Z.length-1]|=z&hn?128:0,Z}toHex(){return Br(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(z){return Fr(B,z)}static msm(z,J){return ic(B,u,z,J)}_setWindowSize(z){this.precompute(z)}toRawBytes(){return this.toBytes()}}B.BASE=new B(a.Gx,a.Gy,hn,l(a.Gx*a.Gy)),B.ZERO=new B(wr,hn,hn,wr),B.Fp=e,B.Fn=u;const D=new rc(B,u.BITS);return B.BASE.precompute(8),B}function _1(t,n,r={}){if(typeof n!="function")throw new Error('"hash" function param is required');xi(r,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:e}=r,{BASE:u,Fp:a,Fn:f}=t,g=r.randomBytes||Cs,l=r.adjustScalarBytes||(at=>at),E=r.domain||((at,lt,mt)=>{if(kr(mt,"phflag"),lt.length||mt)throw new Error("Contexts/pre-hash are not supported");return at});function T(at){return f.create(Ni(at))}function L(at){const lt=Z.secretKey;at=Ze("private key",at,lt);const mt=Ze("hashed private key",n(at),2*lt),wt=l(mt.slice(0,lt)),P=mt.slice(lt,2*lt),d=T(wt);return{head:wt,prefix:P,scalar:d}}function N(at){const{head:lt,prefix:mt,scalar:wt}=L(at),P=u.multiply(wt),d=P.toBytes();return{head:lt,prefix:mt,scalar:wt,point:P,pointBytes:d}}function x(at){return N(at).pointBytes}function B(at=Uint8Array.of(),...lt){const mt=qn(...lt);return T(n(E(mt,Ze("context",at),!!e)))}function D(at,lt,mt={}){at=Ze("message",at),e&&(at=e(at));const{prefix:wt,scalar:P,pointBytes:d}=N(lt),S=B(mt.context,wt,at),U=u.multiply(S).toBytes(),K=B(mt.context,U,d,at),q=f.create(S+K*P);if(!f.isValid(q))throw new Error("sign failed: invalid s");const rt=qn(U,f.toBytes(q));return Vn(rt,Z.signature,"result")}const j={zip215:!0};function z(at,lt,mt,wt=j){const{context:P,zip215:d}=wt,S=Z.signature;at=Ze("signature",at,S),lt=Ze("message",lt),mt=Ze("publicKey",mt,Z.publicKey),d!==void 0&&kr(d,"zip215"),e&&(lt=e(lt));const U=S/2,K=at.subarray(0,U),q=Ni(at.subarray(U,S));let rt,ct,W;try{rt=t.fromBytes(mt,d),ct=t.fromBytes(K,d),W=u.multiplyUnsafe(q)}catch{return!1}if(!d&&rt.isSmallOrder())return!1;const h=B(P,ct.toBytes(),rt.toBytes(),lt);return ct.add(rt.multiplyUnsafe(h)).subtract(W).clearCofactor().is0()}const J=a.BYTES,Z={secretKey:J,publicKey:J,signature:2*J,seed:J};function nt(at=g(Z.seed)){return Vn(at,Z.seed,"seed")}function ht(at){const lt=bt.randomSecretKey(at);return{secretKey:lt,publicKey:x(lt)}}function ft(at){return Oi(at)&&at.length===f.BYTES}function At(at,lt){try{return!!t.fromBytes(at,lt)}catch{return!1}}const bt={getExtendedPublicKey:N,randomSecretKey:nt,isValidSecretKey:ft,isValidPublicKey:At,toMontgomery(at){const{y:lt}=t.fromBytes(at),mt=Z.publicKey,wt=mt===32;if(!wt&&mt!==57)throw new Error("only defined for 25519 and 448");const P=wt?a.div(hn+lt,hn-lt):a.div(lt-hn,lt+hn);return a.toBytes(P)},toMontgomerySecret(at){const lt=Z.secretKey;Vn(at,lt);const mt=n(at.subarray(0,lt));return l(mt).subarray(0,lt)},randomPrivateKey:nt,precompute(at=8,lt=t.BASE){return lt.precompute(at,!1)}};return Object.freeze({keygen:ht,getPublicKey:x,sign:D,verify:z,utils:bt,Point:t,lengths:Z})}function E1(t){const n={a:t.a,d:t.d,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp,e=Dr(n.n,t.nBitLength,!0),u={Fp:r,Fn:e,uvRatio:t.uvRatio},a={randomBytes:t.randomBytes,adjustScalarBytes:t.adjustScalarBytes,domain:t.domain,prehash:t.prehash,mapToCurve:t.mapToCurve};return{CURVE:n,curveOpts:u,hash:t.hash,eddsaOpts:a}}function R1(t,n){const r=n.Point;return Object.assign({},n,{ExtendedPoint:r,CURVE:t,nBitLength:r.Fn.BITS,nByteLength:r.Fn.BYTES})}function b1(t){const{CURVE:n,curveOpts:r,hash:e,eddsaOpts:u}=E1(t),a=w1(n,r),f=_1(a,e,u);return R1(t,f)}const A1=BigInt(1),ac=BigInt(2);BigInt(3);const S1=BigInt(5),I1=BigInt(8),Ys=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),uc={p:Ys,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:I1,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function O1(t){const n=BigInt(10),r=BigInt(20),e=BigInt(40),u=BigInt(80),a=Ys,g=t*t%a*t%a,l=$e(g,ac,a)*g%a,E=$e(l,A1,a)*t%a,T=$e(E,S1,a)*E%a,L=$e(T,n,a)*T%a,N=$e(L,r,a)*L%a,x=$e(N,e,a)*N%a,B=$e(x,u,a)*x%a,D=$e(B,u,a)*x%a,j=$e(D,n,a)*T%a;return{pow_p_5_8:$e(j,ac,a)*t%a,b2:g}}function N1(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}const cc=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function T1(t,n){const r=Ys,e=an(n*n*n,r),u=an(e*e*n,r),a=O1(t*u).pow_p_5_8;let f=an(t*e*a,r);const g=an(n*f*f,r),l=f,E=an(f*cc,r),T=g===t,L=g===an(-t,r),N=g===an(-t*cc,r);return T&&(f=l),(L||N)&&(f=E),c1(f,r)&&(f=an(-f,r)),{isValid:T||L,value:f}}const x1=Dr(uc.p,{isLE:!0}),L1={...uc,Fp:x1,hash:e1,adjustScalarBytes:N1,uvRatio:T1},Li=b1(L1);var Oo={exports:{}};const C1=Is(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var M1=Oo.exports,fc;function lc(){return fc||(fc=1,(function(t){(function(n,r){function e(P,d){if(!P)throw new Error(d||"Assertion failed")}function u(P,d){P.super_=d;var S=function(){};S.prototype=d.prototype,P.prototype=new S,P.prototype.constructor=P}function a(P,d,S){if(a.isBN(P))return P;this.negative=0,this.words=null,this.length=0,this.red=null,P!==null&&((d==="le"||d==="be")&&(S=d,d=10),this._init(P||0,d||10,S||"be"))}typeof n=="object"?n.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=C1.Buffer}catch{}a.isBN=function(d){return d instanceof a?!0:d!==null&&typeof d=="object"&&d.constructor.wordSize===a.wordSize&&Array.isArray(d.words)},a.max=function(d,S){return d.cmp(S)>0?d:S},a.min=function(d,S){return d.cmp(S)<0?d:S},a.prototype._init=function(d,S,U){if(typeof d=="number")return this._initNumber(d,S,U);if(typeof d=="object")return this._initArray(d,S,U);S==="hex"&&(S=16),e(S===(S|0)&&S>=2&&S<=36),d=d.toString().replace(/\s+/g,"");var K=0;d[0]==="-"&&(K++,this.negative=1),K<d.length&&(S===16?this._parseHex(d,K,U):(this._parseBase(d,S,K),U==="le"&&this._initArray(this.toArray(),S,U)))},a.prototype._initNumber=function(d,S,U){d<0&&(this.negative=1,d=-d),d<67108864?(this.words=[d&67108863],this.length=1):d<4503599627370496?(this.words=[d&67108863,d/67108864&67108863],this.length=2):(e(d<9007199254740992),this.words=[d&67108863,d/67108864&67108863,1],this.length=3),U==="le"&&this._initArray(this.toArray(),S,U)},a.prototype._initArray=function(d,S,U){if(e(typeof d.length=="number"),d.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(d.length/3),this.words=new Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var q,rt,ct=0;if(U==="be")for(K=d.length-1,q=0;K>=0;K-=3)rt=d[K]|d[K-1]<<8|d[K-2]<<16,this.words[q]|=rt<<ct&67108863,this.words[q+1]=rt>>>26-ct&67108863,ct+=24,ct>=26&&(ct-=26,q++);else if(U==="le")for(K=0,q=0;K<d.length;K+=3)rt=d[K]|d[K+1]<<8|d[K+2]<<16,this.words[q]|=rt<<ct&67108863,this.words[q+1]=rt>>>26-ct&67108863,ct+=24,ct>=26&&(ct-=26,q++);return this._strip()};function g(P,d){var S=P.charCodeAt(d);if(S>=48&&S<=57)return S-48;if(S>=65&&S<=70)return S-55;if(S>=97&&S<=102)return S-87;e(!1,"Invalid character in "+P)}function l(P,d,S){var U=g(P,S);return S-1>=d&&(U|=g(P,S-1)<<4),U}a.prototype._parseHex=function(d,S,U){this.length=Math.ceil((d.length-S)/6),this.words=new Array(this.length);for(var K=0;K<this.length;K++)this.words[K]=0;var q=0,rt=0,ct;if(U==="be")for(K=d.length-1;K>=S;K-=2)ct=l(d,S,K)<<q,this.words[rt]|=ct&67108863,q>=18?(q-=18,rt+=1,this.words[rt]|=ct>>>26):q+=8;else{var W=d.length-S;for(K=W%2===0?S+1:S;K<d.length;K+=2)ct=l(d,S,K)<<q,this.words[rt]|=ct&67108863,q>=18?(q-=18,rt+=1,this.words[rt]|=ct>>>26):q+=8}this._strip()};function E(P,d,S,U){for(var K=0,q=0,rt=Math.min(P.length,S),ct=d;ct<rt;ct++){var W=P.charCodeAt(ct)-48;K*=U,W>=49?q=W-49+10:W>=17?q=W-17+10:q=W,e(W>=0&&q<U,"Invalid character"),K+=q}return K}a.prototype._parseBase=function(d,S,U){this.words=[0],this.length=1;for(var K=0,q=1;q<=67108863;q*=S)K++;K--,q=q/S|0;for(var rt=d.length-U,ct=rt%K,W=Math.min(rt,rt-ct)+U,h=0,R=U;R<W;R+=K)h=E(d,R,R+K,S),this.imuln(q),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h);if(ct!==0){var Y=1;for(h=E(d,R,d.length,S),R=0;R<ct;R++)Y*=S;this.imuln(Y),this.words[0]+h<67108864?this.words[0]+=h:this._iaddn(h)}this._strip()},a.prototype.copy=function(d){d.words=new Array(this.length);for(var S=0;S<this.length;S++)d.words[S]=this.words[S];d.length=this.length,d.negative=this.negative,d.red=this.red};function T(P,d){P.words=d.words,P.length=d.length,P.negative=d.negative,P.red=d.red}if(a.prototype._move=function(d){T(d,this)},a.prototype.clone=function(){var d=new a(null);return this.copy(d),d},a.prototype._expand=function(d){for(;this.length<d;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=L}catch{a.prototype.inspect=L}else a.prototype.inspect=L;function L(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","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"],x=[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];a.prototype.toString=function(d,S){d=d||10,S=S|0||1;var U;if(d===16||d==="hex"){U="";for(var K=0,q=0,rt=0;rt<this.length;rt++){var ct=this.words[rt],W=((ct<<K|q)&16777215).toString(16);q=ct>>>24-K&16777215,K+=2,K>=26&&(K-=26,rt--),q!==0||rt!==this.length-1?U=N[6-W.length]+W+U:U=W+U}for(q!==0&&(U=q.toString(16)+U);U.length%S!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(d===(d|0)&&d>=2&&d<=36){var h=x[d],R=B[d];U="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var $=Y.modrn(R).toString(d);Y=Y.idivn(R),Y.isZero()?U=$+U:U=N[h-$.length]+$+U}for(this.isZero()&&(U="0"+U);U.length%S!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}e(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var d=this.words[0];return this.length===2?d+=this.words[1]*67108864:this.length===3&&this.words[2]===1?d+=4503599627370496+this.words[1]*67108864:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-d:d},a.prototype.toJSON=function(){return this.toString(16,2)},f&&(a.prototype.toBuffer=function(d,S){return this.toArrayLike(f,d,S)}),a.prototype.toArray=function(d,S){return this.toArrayLike(Array,d,S)};var D=function(d,S){return d.allocUnsafe?d.allocUnsafe(S):new d(S)};a.prototype.toArrayLike=function(d,S,U){this._strip();var K=this.byteLength(),q=U||Math.max(1,K);e(K<=q,"byte array longer than desired length"),e(q>0,"Requested array length <= 0");var rt=D(d,q),ct=S==="le"?"LE":"BE";return this["_toArrayLike"+ct](rt,K),rt},a.prototype._toArrayLikeLE=function(d,S){for(var U=0,K=0,q=0,rt=0;q<this.length;q++){var ct=this.words[q]<<rt|K;d[U++]=ct&255,U<d.length&&(d[U++]=ct>>8&255),U<d.length&&(d[U++]=ct>>16&255),rt===6?(U<d.length&&(d[U++]=ct>>24&255),K=0,rt=0):(K=ct>>>24,rt+=2)}if(U<d.length)for(d[U++]=K;U<d.length;)d[U++]=0},a.prototype._toArrayLikeBE=function(d,S){for(var U=d.length-1,K=0,q=0,rt=0;q<this.length;q++){var ct=this.words[q]<<rt|K;d[U--]=ct&255,U>=0&&(d[U--]=ct>>8&255),U>=0&&(d[U--]=ct>>16&255),rt===6?(U>=0&&(d[U--]=ct>>24&255),K=0,rt=0):(K=ct>>>24,rt+=2)}if(U>=0)for(d[U--]=K;U>=0;)d[U--]=0},Math.clz32?a.prototype._countBits=function(d){return 32-Math.clz32(d)}:a.prototype._countBits=function(d){var S=d,U=0;return S>=4096&&(U+=13,S>>>=13),S>=64&&(U+=7,S>>>=7),S>=8&&(U+=4,S>>>=4),S>=2&&(U+=2,S>>>=2),U+S},a.prototype._zeroBits=function(d){if(d===0)return 26;var S=d,U=0;return(S&8191)===0&&(U+=13,S>>>=13),(S&127)===0&&(U+=7,S>>>=7),(S&15)===0&&(U+=4,S>>>=4),(S&3)===0&&(U+=2,S>>>=2),(S&1)===0&&U++,U},a.prototype.bitLength=function(){var d=this.words[this.length-1],S=this._countBits(d);return(this.length-1)*26+S};function j(P){for(var d=new Array(P.bitLength()),S=0;S<d.length;S++){var U=S/26|0,K=S%26;d[S]=P.words[U]>>>K&1}return d}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var d=0,S=0;S<this.length;S++){var U=this._zeroBits(this.words[S]);if(d+=U,U!==26)break}return d},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(d){return this.negative!==0?this.abs().inotn(d).iaddn(1):this.clone()},a.prototype.fromTwos=function(d){return this.testn(d-1)?this.notn(d).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(d){for(;this.length<d.length;)this.words[this.length++]=0;for(var S=0;S<d.length;S++)this.words[S]=this.words[S]|d.words[S];return this._strip()},a.prototype.ior=function(d){return e((this.negative|d.negative)===0),this.iuor(d)},a.prototype.or=function(d){return this.length>d.length?this.clone().ior(d):d.clone().ior(this)},a.prototype.uor=function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},a.prototype.iuand=function(d){var S;this.length>d.length?S=d:S=this;for(var U=0;U<S.length;U++)this.words[U]=this.words[U]&d.words[U];return this.length=S.length,this._strip()},a.prototype.iand=function(d){return e((this.negative|d.negative)===0),this.iuand(d)},a.prototype.and=function(d){return this.length>d.length?this.clone().iand(d):d.clone().iand(this)},a.prototype.uand=function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},a.prototype.iuxor=function(d){var S,U;this.length>d.length?(S=this,U=d):(S=d,U=this);for(var K=0;K<U.length;K++)this.words[K]=S.words[K]^U.words[K];if(this!==S)for(;K<S.length;K++)this.words[K]=S.words[K];return this.length=S.length,this._strip()},a.prototype.ixor=function(d){return e((this.negative|d.negative)===0),this.iuxor(d)},a.prototype.xor=function(d){return this.length>d.length?this.clone().ixor(d):d.clone().ixor(this)},a.prototype.uxor=function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},a.prototype.inotn=function(d){e(typeof d=="number"&&d>=0);var S=Math.ceil(d/26)|0,U=d%26;this._expand(S),U>0&&S--;for(var K=0;K<S;K++)this.words[K]=~this.words[K]&67108863;for(U>0&&(this.words[K]=~this.words[K]&67108863>>26-U,K++);K<this.length;K++)this.words[K]=0;return this._strip()},a.prototype.notn=function(d){return this.clone().inotn(d)},a.prototype.setn=function(d,S){e(typeof d=="number"&&d>=0);var U=d/26|0,K=d%26;return this._expand(U+1),S?this.words[U]=this.words[U]|1<<K:this.words[U]=this.words[U]&~(1<<K),this._strip()},a.prototype.iadd=function(d){var S;if(this.negative!==0&&d.negative===0)return this.negative=0,S=this.isub(d),this.negative^=1,this._normSign();if(this.negative===0&&d.negative!==0)return d.negative=0,S=this.isub(d),d.negative=1,S._normSign();var U,K;this.length>d.length?(U=this,K=d):(U=d,K=this);for(var q=0,rt=0;rt<K.length;rt++)S=(U.words[rt]|0)+(K.words[rt]|0)+q,this.words[rt]=S&67108863,q=S>>>26;for(;q!==0&&rt<U.length;rt++)S=(U.words[rt]|0)+q,this.words[rt]=S&67108863,q=S>>>26;if(this.length=U.length,q!==0)this.words[this.length]=q,this.length++;else if(U!==this)for(;rt<U.length;rt++)this.words[rt]=U.words[rt];return this},a.prototype.add=function(d){var S;return d.negative!==0&&this.negative===0?(d.negative=0,S=this.sub(d),d.negative^=1,S):d.negative===0&&this.negative!==0?(this.negative=0,S=d.sub(this),this.negative=1,S):this.length>d.length?this.clone().iadd(d):d.clone().iadd(this)},a.prototype.isub=function(d){if(d.negative!==0){d.negative=0;var S=this.iadd(d);return d.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var U=this.cmp(d);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var K,q;U>0?(K=this,q=d):(K=d,q=this);for(var rt=0,ct=0;ct<q.length;ct++)S=(K.words[ct]|0)-(q.words[ct]|0)+rt,rt=S>>26,this.words[ct]=S&67108863;for(;rt!==0&&ct<K.length;ct++)S=(K.words[ct]|0)+rt,rt=S>>26,this.words[ct]=S&67108863;if(rt===0&&ct<K.length&&K!==this)for(;ct<K.length;ct++)this.words[ct]=K.words[ct];return this.length=Math.max(this.length,ct),K!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(d){return this.clone().isub(d)};function z(P,d,S){S.negative=d.negative^P.negative;var U=P.length+d.length|0;S.length=U,U=U-1|0;var K=P.words[0]|0,q=d.words[0]|0,rt=K*q,ct=rt&67108863,W=rt/67108864|0;S.words[0]=ct;for(var h=1;h<U;h++){for(var R=W>>>26,Y=W&67108863,$=Math.min(h,d.length-1),pt=Math.max(0,h-P.length+1);pt<=$;pt++){var It=h-pt|0;K=P.words[It]|0,q=d.words[pt]|0,rt=K*q+Y,R+=rt/67108864|0,Y=rt&67108863}S.words[h]=Y|0,W=R|0}return W!==0?S.words[h]=W|0:S.length--,S._strip()}var J=function(d,S,U){var K=d.words,q=S.words,rt=U.words,ct=0,W,h,R,Y=K[0]|0,$=Y&8191,pt=Y>>>13,It=K[1]|0,Vt=It&8191,Zt=It>>>13,le=K[2]|0,we=le&8191,ge=le>>>13,Se=K[3]|0,Ee=Se&8191,_e=Se>>>13,Ve=K[4]|0,Ie=Ve&8191,m=Ve>>>13,k=K[5]|0,H=k&8191,Q=k>>>13,yt=K[6]|0,_t=yt&8191,Lt=yt>>>13,zt=K[7]|0,ee=zt&8191,F=zt>>>13,b=K[8]|0,O=b&8191,A=b>>>13,V=K[9]|0,G=V&8191,st=V>>>13,Ct=q[0]|0,Mt=Ct&8191,Ut=Ct>>>13,kt=q[1]|0,ot=kt&8191,Kt=kt>>>13,he=q[2]|0,ne=he&8191,oe=he>>>13,de=q[3]|0,fe=de&8191,ue=de>>>13,Ke=q[4]|0,me=Ke&8191,Re=Ke>>>13,un=q[5]|0,Me=un&8191,De=un>>>13,lr=q[6]|0,Ye=lr&8191,Ge=lr>>>13,zr=q[7]|0,qe=zr&8191,Je=zr>>>13,os=q[8]|0,Qe=os&8191,tn=os>>>13,ss=q[9]|0,en=ss&8191,nn=ss>>>13;U.negative=d.negative^S.negative,U.length=19,W=Math.imul($,Mt),h=Math.imul($,Ut),h=h+Math.imul(pt,Mt)|0,R=Math.imul(pt,Ut);var ji=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(ji>>>26)|0,ji&=67108863,W=Math.imul(Vt,Mt),h=Math.imul(Vt,Ut),h=h+Math.imul(Zt,Mt)|0,R=Math.imul(Zt,Ut),W=W+Math.imul($,ot)|0,h=h+Math.imul($,Kt)|0,h=h+Math.imul(pt,ot)|0,R=R+Math.imul(pt,Kt)|0;var zi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(zi>>>26)|0,zi&=67108863,W=Math.imul(we,Mt),h=Math.imul(we,Ut),h=h+Math.imul(ge,Mt)|0,R=Math.imul(ge,Ut),W=W+Math.imul(Vt,ot)|0,h=h+Math.imul(Vt,Kt)|0,h=h+Math.imul(Zt,ot)|0,R=R+Math.imul(Zt,Kt)|0,W=W+Math.imul($,ne)|0,h=h+Math.imul($,oe)|0,h=h+Math.imul(pt,ne)|0,R=R+Math.imul(pt,oe)|0;var Ki=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Ki>>>26)|0,Ki&=67108863,W=Math.imul(Ee,Mt),h=Math.imul(Ee,Ut),h=h+Math.imul(_e,Mt)|0,R=Math.imul(_e,Ut),W=W+Math.imul(we,ot)|0,h=h+Math.imul(we,Kt)|0,h=h+Math.imul(ge,ot)|0,R=R+Math.imul(ge,Kt)|0,W=W+Math.imul(Vt,ne)|0,h=h+Math.imul(Vt,oe)|0,h=h+Math.imul(Zt,ne)|0,R=R+Math.imul(Zt,oe)|0,W=W+Math.imul($,fe)|0,h=h+Math.imul($,ue)|0,h=h+Math.imul(pt,fe)|0,R=R+Math.imul(pt,ue)|0;var Wi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,W=Math.imul(Ie,Mt),h=Math.imul(Ie,Ut),h=h+Math.imul(m,Mt)|0,R=Math.imul(m,Ut),W=W+Math.imul(Ee,ot)|0,h=h+Math.imul(Ee,Kt)|0,h=h+Math.imul(_e,ot)|0,R=R+Math.imul(_e,Kt)|0,W=W+Math.imul(we,ne)|0,h=h+Math.imul(we,oe)|0,h=h+Math.imul(ge,ne)|0,R=R+Math.imul(ge,oe)|0,W=W+Math.imul(Vt,fe)|0,h=h+Math.imul(Vt,ue)|0,h=h+Math.imul(Zt,fe)|0,R=R+Math.imul(Zt,ue)|0,W=W+Math.imul($,me)|0,h=h+Math.imul($,Re)|0,h=h+Math.imul(pt,me)|0,R=R+Math.imul(pt,Re)|0;var Zi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,W=Math.imul(H,Mt),h=Math.imul(H,Ut),h=h+Math.imul(Q,Mt)|0,R=Math.imul(Q,Ut),W=W+Math.imul(Ie,ot)|0,h=h+Math.imul(Ie,Kt)|0,h=h+Math.imul(m,ot)|0,R=R+Math.imul(m,Kt)|0,W=W+Math.imul(Ee,ne)|0,h=h+Math.imul(Ee,oe)|0,h=h+Math.imul(_e,ne)|0,R=R+Math.imul(_e,oe)|0,W=W+Math.imul(we,fe)|0,h=h+Math.imul(we,ue)|0,h=h+Math.imul(ge,fe)|0,R=R+Math.imul(ge,ue)|0,W=W+Math.imul(Vt,me)|0,h=h+Math.imul(Vt,Re)|0,h=h+Math.imul(Zt,me)|0,R=R+Math.imul(Zt,Re)|0,W=W+Math.imul($,Me)|0,h=h+Math.imul($,De)|0,h=h+Math.imul(pt,Me)|0,R=R+Math.imul(pt,De)|0;var $i=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+($i>>>26)|0,$i&=67108863,W=Math.imul(_t,Mt),h=Math.imul(_t,Ut),h=h+Math.imul(Lt,Mt)|0,R=Math.imul(Lt,Ut),W=W+Math.imul(H,ot)|0,h=h+Math.imul(H,Kt)|0,h=h+Math.imul(Q,ot)|0,R=R+Math.imul(Q,Kt)|0,W=W+Math.imul(Ie,ne)|0,h=h+Math.imul(Ie,oe)|0,h=h+Math.imul(m,ne)|0,R=R+Math.imul(m,oe)|0,W=W+Math.imul(Ee,fe)|0,h=h+Math.imul(Ee,ue)|0,h=h+Math.imul(_e,fe)|0,R=R+Math.imul(_e,ue)|0,W=W+Math.imul(we,me)|0,h=h+Math.imul(we,Re)|0,h=h+Math.imul(ge,me)|0,R=R+Math.imul(ge,Re)|0,W=W+Math.imul(Vt,Me)|0,h=h+Math.imul(Vt,De)|0,h=h+Math.imul(Zt,Me)|0,R=R+Math.imul(Zt,De)|0,W=W+Math.imul($,Ye)|0,h=h+Math.imul($,Ge)|0,h=h+Math.imul(pt,Ye)|0,R=R+Math.imul(pt,Ge)|0;var Xi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,W=Math.imul(ee,Mt),h=Math.imul(ee,Ut),h=h+Math.imul(F,Mt)|0,R=Math.imul(F,Ut),W=W+Math.imul(_t,ot)|0,h=h+Math.imul(_t,Kt)|0,h=h+Math.imul(Lt,ot)|0,R=R+Math.imul(Lt,Kt)|0,W=W+Math.imul(H,ne)|0,h=h+Math.imul(H,oe)|0,h=h+Math.imul(Q,ne)|0,R=R+Math.imul(Q,oe)|0,W=W+Math.imul(Ie,fe)|0,h=h+Math.imul(Ie,ue)|0,h=h+Math.imul(m,fe)|0,R=R+Math.imul(m,ue)|0,W=W+Math.imul(Ee,me)|0,h=h+Math.imul(Ee,Re)|0,h=h+Math.imul(_e,me)|0,R=R+Math.imul(_e,Re)|0,W=W+Math.imul(we,Me)|0,h=h+Math.imul(we,De)|0,h=h+Math.imul(ge,Me)|0,R=R+Math.imul(ge,De)|0,W=W+Math.imul(Vt,Ye)|0,h=h+Math.imul(Vt,Ge)|0,h=h+Math.imul(Zt,Ye)|0,R=R+Math.imul(Zt,Ge)|0,W=W+Math.imul($,qe)|0,h=h+Math.imul($,Je)|0,h=h+Math.imul(pt,qe)|0,R=R+Math.imul(pt,Je)|0;var qi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(qi>>>26)|0,qi&=67108863,W=Math.imul(O,Mt),h=Math.imul(O,Ut),h=h+Math.imul(A,Mt)|0,R=Math.imul(A,Ut),W=W+Math.imul(ee,ot)|0,h=h+Math.imul(ee,Kt)|0,h=h+Math.imul(F,ot)|0,R=R+Math.imul(F,Kt)|0,W=W+Math.imul(_t,ne)|0,h=h+Math.imul(_t,oe)|0,h=h+Math.imul(Lt,ne)|0,R=R+Math.imul(Lt,oe)|0,W=W+Math.imul(H,fe)|0,h=h+Math.imul(H,ue)|0,h=h+Math.imul(Q,fe)|0,R=R+Math.imul(Q,ue)|0,W=W+Math.imul(Ie,me)|0,h=h+Math.imul(Ie,Re)|0,h=h+Math.imul(m,me)|0,R=R+Math.imul(m,Re)|0,W=W+Math.imul(Ee,Me)|0,h=h+Math.imul(Ee,De)|0,h=h+Math.imul(_e,Me)|0,R=R+Math.imul(_e,De)|0,W=W+Math.imul(we,Ye)|0,h=h+Math.imul(we,Ge)|0,h=h+Math.imul(ge,Ye)|0,R=R+Math.imul(ge,Ge)|0,W=W+Math.imul(Vt,qe)|0,h=h+Math.imul(Vt,Je)|0,h=h+Math.imul(Zt,qe)|0,R=R+Math.imul(Zt,Je)|0,W=W+Math.imul($,Qe)|0,h=h+Math.imul($,tn)|0,h=h+Math.imul(pt,Qe)|0,R=R+Math.imul(pt,tn)|0;var Ji=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,W=Math.imul(G,Mt),h=Math.imul(G,Ut),h=h+Math.imul(st,Mt)|0,R=Math.imul(st,Ut),W=W+Math.imul(O,ot)|0,h=h+Math.imul(O,Kt)|0,h=h+Math.imul(A,ot)|0,R=R+Math.imul(A,Kt)|0,W=W+Math.imul(ee,ne)|0,h=h+Math.imul(ee,oe)|0,h=h+Math.imul(F,ne)|0,R=R+Math.imul(F,oe)|0,W=W+Math.imul(_t,fe)|0,h=h+Math.imul(_t,ue)|0,h=h+Math.imul(Lt,fe)|0,R=R+Math.imul(Lt,ue)|0,W=W+Math.imul(H,me)|0,h=h+Math.imul(H,Re)|0,h=h+Math.imul(Q,me)|0,R=R+Math.imul(Q,Re)|0,W=W+Math.imul(Ie,Me)|0,h=h+Math.imul(Ie,De)|0,h=h+Math.imul(m,Me)|0,R=R+Math.imul(m,De)|0,W=W+Math.imul(Ee,Ye)|0,h=h+Math.imul(Ee,Ge)|0,h=h+Math.imul(_e,Ye)|0,R=R+Math.imul(_e,Ge)|0,W=W+Math.imul(we,qe)|0,h=h+Math.imul(we,Je)|0,h=h+Math.imul(ge,qe)|0,R=R+Math.imul(ge,Je)|0,W=W+Math.imul(Vt,Qe)|0,h=h+Math.imul(Vt,tn)|0,h=h+Math.imul(Zt,Qe)|0,R=R+Math.imul(Zt,tn)|0,W=W+Math.imul($,en)|0,h=h+Math.imul($,nn)|0,h=h+Math.imul(pt,en)|0,R=R+Math.imul(pt,nn)|0;var Qi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Qi>>>26)|0,Qi&=67108863,W=Math.imul(G,ot),h=Math.imul(G,Kt),h=h+Math.imul(st,ot)|0,R=Math.imul(st,Kt),W=W+Math.imul(O,ne)|0,h=h+Math.imul(O,oe)|0,h=h+Math.imul(A,ne)|0,R=R+Math.imul(A,oe)|0,W=W+Math.imul(ee,fe)|0,h=h+Math.imul(ee,ue)|0,h=h+Math.imul(F,fe)|0,R=R+Math.imul(F,ue)|0,W=W+Math.imul(_t,me)|0,h=h+Math.imul(_t,Re)|0,h=h+Math.imul(Lt,me)|0,R=R+Math.imul(Lt,Re)|0,W=W+Math.imul(H,Me)|0,h=h+Math.imul(H,De)|0,h=h+Math.imul(Q,Me)|0,R=R+Math.imul(Q,De)|0,W=W+Math.imul(Ie,Ye)|0,h=h+Math.imul(Ie,Ge)|0,h=h+Math.imul(m,Ye)|0,R=R+Math.imul(m,Ge)|0,W=W+Math.imul(Ee,qe)|0,h=h+Math.imul(Ee,Je)|0,h=h+Math.imul(_e,qe)|0,R=R+Math.imul(_e,Je)|0,W=W+Math.imul(we,Qe)|0,h=h+Math.imul(we,tn)|0,h=h+Math.imul(ge,Qe)|0,R=R+Math.imul(ge,tn)|0,W=W+Math.imul(Vt,en)|0,h=h+Math.imul(Vt,nn)|0,h=h+Math.imul(Zt,en)|0,R=R+Math.imul(Zt,nn)|0;var pn=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(pn>>>26)|0,pn&=67108863,W=Math.imul(G,ne),h=Math.imul(G,oe),h=h+Math.imul(st,ne)|0,R=Math.imul(st,oe),W=W+Math.imul(O,fe)|0,h=h+Math.imul(O,ue)|0,h=h+Math.imul(A,fe)|0,R=R+Math.imul(A,ue)|0,W=W+Math.imul(ee,me)|0,h=h+Math.imul(ee,Re)|0,h=h+Math.imul(F,me)|0,R=R+Math.imul(F,Re)|0,W=W+Math.imul(_t,Me)|0,h=h+Math.imul(_t,De)|0,h=h+Math.imul(Lt,Me)|0,R=R+Math.imul(Lt,De)|0,W=W+Math.imul(H,Ye)|0,h=h+Math.imul(H,Ge)|0,h=h+Math.imul(Q,Ye)|0,R=R+Math.imul(Q,Ge)|0,W=W+Math.imul(Ie,qe)|0,h=h+Math.imul(Ie,Je)|0,h=h+Math.imul(m,qe)|0,R=R+Math.imul(m,Je)|0,W=W+Math.imul(Ee,Qe)|0,h=h+Math.imul(Ee,tn)|0,h=h+Math.imul(_e,Qe)|0,R=R+Math.imul(_e,tn)|0,W=W+Math.imul(we,en)|0,h=h+Math.imul(we,nn)|0,h=h+Math.imul(ge,en)|0,R=R+Math.imul(ge,nn)|0;var to=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(to>>>26)|0,to&=67108863,W=Math.imul(G,fe),h=Math.imul(G,ue),h=h+Math.imul(st,fe)|0,R=Math.imul(st,ue),W=W+Math.imul(O,me)|0,h=h+Math.imul(O,Re)|0,h=h+Math.imul(A,me)|0,R=R+Math.imul(A,Re)|0,W=W+Math.imul(ee,Me)|0,h=h+Math.imul(ee,De)|0,h=h+Math.imul(F,Me)|0,R=R+Math.imul(F,De)|0,W=W+Math.imul(_t,Ye)|0,h=h+Math.imul(_t,Ge)|0,h=h+Math.imul(Lt,Ye)|0,R=R+Math.imul(Lt,Ge)|0,W=W+Math.imul(H,qe)|0,h=h+Math.imul(H,Je)|0,h=h+Math.imul(Q,qe)|0,R=R+Math.imul(Q,Je)|0,W=W+Math.imul(Ie,Qe)|0,h=h+Math.imul(Ie,tn)|0,h=h+Math.imul(m,Qe)|0,R=R+Math.imul(m,tn)|0,W=W+Math.imul(Ee,en)|0,h=h+Math.imul(Ee,nn)|0,h=h+Math.imul(_e,en)|0,R=R+Math.imul(_e,nn)|0;var eo=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(eo>>>26)|0,eo&=67108863,W=Math.imul(G,me),h=Math.imul(G,Re),h=h+Math.imul(st,me)|0,R=Math.imul(st,Re),W=W+Math.imul(O,Me)|0,h=h+Math.imul(O,De)|0,h=h+Math.imul(A,Me)|0,R=R+Math.imul(A,De)|0,W=W+Math.imul(ee,Ye)|0,h=h+Math.imul(ee,Ge)|0,h=h+Math.imul(F,Ye)|0,R=R+Math.imul(F,Ge)|0,W=W+Math.imul(_t,qe)|0,h=h+Math.imul(_t,Je)|0,h=h+Math.imul(Lt,qe)|0,R=R+Math.imul(Lt,Je)|0,W=W+Math.imul(H,Qe)|0,h=h+Math.imul(H,tn)|0,h=h+Math.imul(Q,Qe)|0,R=R+Math.imul(Q,tn)|0,W=W+Math.imul(Ie,en)|0,h=h+Math.imul(Ie,nn)|0,h=h+Math.imul(m,en)|0,R=R+Math.imul(m,nn)|0;var no=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(no>>>26)|0,no&=67108863,W=Math.imul(G,Me),h=Math.imul(G,De),h=h+Math.imul(st,Me)|0,R=Math.imul(st,De),W=W+Math.imul(O,Ye)|0,h=h+Math.imul(O,Ge)|0,h=h+Math.imul(A,Ye)|0,R=R+Math.imul(A,Ge)|0,W=W+Math.imul(ee,qe)|0,h=h+Math.imul(ee,Je)|0,h=h+Math.imul(F,qe)|0,R=R+Math.imul(F,Je)|0,W=W+Math.imul(_t,Qe)|0,h=h+Math.imul(_t,tn)|0,h=h+Math.imul(Lt,Qe)|0,R=R+Math.imul(Lt,tn)|0,W=W+Math.imul(H,en)|0,h=h+Math.imul(H,nn)|0,h=h+Math.imul(Q,en)|0,R=R+Math.imul(Q,nn)|0;var Be=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Be>>>26)|0,Be&=67108863,W=Math.imul(G,Ye),h=Math.imul(G,Ge),h=h+Math.imul(st,Ye)|0,R=Math.imul(st,Ge),W=W+Math.imul(O,qe)|0,h=h+Math.imul(O,Je)|0,h=h+Math.imul(A,qe)|0,R=R+Math.imul(A,Je)|0,W=W+Math.imul(ee,Qe)|0,h=h+Math.imul(ee,tn)|0,h=h+Math.imul(F,Qe)|0,R=R+Math.imul(F,tn)|0,W=W+Math.imul(_t,en)|0,h=h+Math.imul(_t,nn)|0,h=h+Math.imul(Lt,en)|0,R=R+Math.imul(Lt,nn)|0;var ro=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(ro>>>26)|0,ro&=67108863,W=Math.imul(G,qe),h=Math.imul(G,Je),h=h+Math.imul(st,qe)|0,R=Math.imul(st,Je),W=W+Math.imul(O,Qe)|0,h=h+Math.imul(O,tn)|0,h=h+Math.imul(A,Qe)|0,R=R+Math.imul(A,tn)|0,W=W+Math.imul(ee,en)|0,h=h+Math.imul(ee,nn)|0,h=h+Math.imul(F,en)|0,R=R+Math.imul(F,nn)|0;var Dn=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,W=Math.imul(G,Qe),h=Math.imul(G,tn),h=h+Math.imul(st,Qe)|0,R=Math.imul(st,tn),W=W+Math.imul(O,en)|0,h=h+Math.imul(O,nn)|0,h=h+Math.imul(A,en)|0,R=R+Math.imul(A,nn)|0;var yi=(ct+W|0)+((h&8191)<<13)|0;ct=(R+(h>>>13)|0)+(yi>>>26)|0,yi&=67108863,W=Math.imul(G,en),h=Math.imul(G,nn),h=h+Math.imul(st,en)|0,R=Math.imul(st,nn);var wi=(ct+W|0)+((h&8191)<<13)|0;return ct=(R+(h>>>13)|0)+(wi>>>26)|0,wi&=67108863,rt[0]=ji,rt[1]=zi,rt[2]=Ki,rt[3]=Wi,rt[4]=Zi,rt[5]=$i,rt[6]=Xi,rt[7]=qi,rt[8]=Ji,rt[9]=Qi,rt[10]=pn,rt[11]=to,rt[12]=eo,rt[13]=no,rt[14]=Be,rt[15]=ro,rt[16]=Dn,rt[17]=yi,rt[18]=wi,ct!==0&&(rt[19]=ct,U.length++),U};Math.imul||(J=z);function Z(P,d,S){S.negative=d.negative^P.negative,S.length=P.length+d.length;for(var U=0,K=0,q=0;q<S.length-1;q++){var rt=K;K=0;for(var ct=U&67108863,W=Math.min(q,d.length-1),h=Math.max(0,q-P.length+1);h<=W;h++){var R=q-h,Y=P.words[R]|0,$=d.words[h]|0,pt=Y*$,It=pt&67108863;rt=rt+(pt/67108864|0)|0,It=It+ct|0,ct=It&67108863,rt=rt+(It>>>26)|0,K+=rt>>>26,rt&=67108863}S.words[q]=ct,U=rt,rt=K}return U!==0?S.words[q]=U:S.length--,S._strip()}function nt(P,d,S){return Z(P,d,S)}a.prototype.mulTo=function(d,S){var U,K=this.length+d.length;return this.length===10&&d.length===10?U=J(this,d,S):K<63?U=z(this,d,S):K<1024?U=Z(this,d,S):U=nt(this,d,S),U},a.prototype.mul=function(d){var S=new a(null);return S.words=new Array(this.length+d.length),this.mulTo(d,S)},a.prototype.mulf=function(d){var S=new a(null);return S.words=new Array(this.length+d.length),nt(this,d,S)},a.prototype.imul=function(d){return this.clone().mulTo(d,this)},a.prototype.imuln=function(d){var S=d<0;S&&(d=-d),e(typeof d=="number"),e(d<67108864);for(var U=0,K=0;K<this.length;K++){var q=(this.words[K]|0)*d,rt=(q&67108863)+(U&67108863);U>>=26,U+=q/67108864|0,U+=rt>>>26,this.words[K]=rt&67108863}return U!==0&&(this.words[K]=U,this.length++),d===0&&(this.length=1,this._normSign()),S?this.ineg():this},a.prototype.muln=function(d){return this.clone().imuln(d)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(d){var S=j(d);if(S.length===0)return new a(1);for(var U=this,K=0;K<S.length&&S[K]===0;K++,U=U.sqr());if(++K<S.length)for(var q=U.sqr();K<S.length;K++,q=q.sqr())S[K]!==0&&(U=U.mul(q));return U},a.prototype.iushln=function(d){e(typeof d=="number"&&d>=0);var S=d%26,U=(d-S)/26,K=67108863>>>26-S<<26-S,q;if(S!==0){var rt=0;for(q=0;q<this.length;q++){var ct=this.words[q]&K,W=(this.words[q]|0)-ct<<S;this.words[q]=W|rt,rt=ct>>>26-S}rt&&(this.words[q]=rt,this.length++)}if(U!==0){for(q=this.length-1;q>=0;q--)this.words[q+U]=this.words[q];for(q=0;q<U;q++)this.words[q]=0;this.length+=U}return this._strip()},a.prototype.ishln=function(d){return e(this.negative===0),this.iushln(d)},a.prototype.iushrn=function(d,S,U){e(typeof d=="number"&&d>=0);var K;S?K=(S-S%26)/26:K=0;var q=d%26,rt=Math.min((d-q)/26,this.length),ct=67108863^67108863>>>q<<q,W=U;if(K-=rt,K=Math.max(0,K),W){for(var h=0;h<rt;h++)W.words[h]=this.words[h];W.length=rt}if(rt!==0)if(this.length>rt)for(this.length-=rt,h=0;h<this.length;h++)this.words[h]=this.words[h+rt];else this.words[0]=0,this.length=1;var R=0;for(h=this.length-1;h>=0&&(R!==0||h>=K);h--){var Y=this.words[h]|0;this.words[h]=R<<26-q|Y>>>q,R=Y&ct}return W&&R!==0&&(W.words[W.length++]=R),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(d,S,U){return e(this.negative===0),this.iushrn(d,S,U)},a.prototype.shln=function(d){return this.clone().ishln(d)},a.prototype.ushln=function(d){return this.clone().iushln(d)},a.prototype.shrn=function(d){return this.clone().ishrn(d)},a.prototype.ushrn=function(d){return this.clone().iushrn(d)},a.prototype.testn=function(d){e(typeof d=="number"&&d>=0);var S=d%26,U=(d-S)/26,K=1<<S;if(this.length<=U)return!1;var q=this.words[U];return!!(q&K)},a.prototype.imaskn=function(d){e(typeof d=="number"&&d>=0);var S=d%26,U=(d-S)/26;if(e(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(S!==0&&U++,this.length=Math.min(U,this.length),S!==0){var K=67108863^67108863>>>S<<S;this.words[this.length-1]&=K}return this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.maskn=function(d){return this.clone().imaskn(d)},a.prototype.iaddn=function(d){return e(typeof d=="number"),e(d<67108864),d<0?this.isubn(-d):this.negative!==0?this.length===1&&(this.words[0]|0)<=d?(this.words[0]=d-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(d),this.negative=1,this):this._iaddn(d)},a.prototype._iaddn=function(d){this.words[0]+=d;for(var S=0;S<this.length&&this.words[S]>=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},a.prototype.isubn=function(d){if(e(typeof d=="number"),e(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S<this.length&&this.words[S]<0;S++)this.words[S]+=67108864,this.words[S+1]-=1;return this._strip()},a.prototype.addn=function(d){return this.clone().iaddn(d)},a.prototype.subn=function(d){return this.clone().isubn(d)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(d,S,U){var K=d.length+U,q;this._expand(K);var rt,ct=0;for(q=0;q<d.length;q++){rt=(this.words[q+U]|0)+ct;var W=(d.words[q]|0)*S;rt-=W&67108863,ct=(rt>>26)-(W/67108864|0),this.words[q+U]=rt&67108863}for(;q<this.length-U;q++)rt=(this.words[q+U]|0)+ct,ct=rt>>26,this.words[q+U]=rt&67108863;if(ct===0)return this._strip();for(e(ct===-1),ct=0,q=0;q<this.length;q++)rt=-(this.words[q]|0)+ct,ct=rt>>26,this.words[q]=rt&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(d,S){var U=this.length-d.length,K=this.clone(),q=d,rt=q.words[q.length-1]|0,ct=this._countBits(rt);U=26-ct,U!==0&&(q=q.ushln(U),K.iushln(U),rt=q.words[q.length-1]|0);var W=K.length-q.length,h;if(S!=="mod"){h=new a(null),h.length=W+1,h.words=new Array(h.length);for(var R=0;R<h.length;R++)h.words[R]=0}var Y=K.clone()._ishlnsubmul(q,1,W);Y.negative===0&&(K=Y,h&&(h.words[W]=1));for(var $=W-1;$>=0;$--){var pt=(K.words[q.length+$]|0)*67108864+(K.words[q.length+$-1]|0);for(pt=Math.min(pt/rt|0,67108863),K._ishlnsubmul(q,pt,$);K.negative!==0;)pt--,K.negative=0,K._ishlnsubmul(q,1,$),K.isZero()||(K.negative^=1);h&&(h.words[$]=pt)}return h&&h._strip(),K._strip(),S!=="div"&&U!==0&&K.iushrn(U),{div:h||null,mod:K}},a.prototype.divmod=function(d,S,U){if(e(!d.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var K,q,rt;return this.negative!==0&&d.negative===0?(rt=this.neg().divmod(d,S),S!=="mod"&&(K=rt.div.neg()),S!=="div"&&(q=rt.mod.neg(),U&&q.negative!==0&&q.iadd(d)),{div:K,mod:q}):this.negative===0&&d.negative!==0?(rt=this.divmod(d.neg(),S),S!=="mod"&&(K=rt.div.neg()),{div:K,mod:rt.mod}):(this.negative&d.negative)!==0?(rt=this.neg().divmod(d.neg(),S),S!=="div"&&(q=rt.mod.neg(),U&&q.negative!==0&&q.isub(d)),{div:rt.div,mod:q}):d.length>this.length||this.cmp(d)<0?{div:new a(0),mod:this}:d.length===1?S==="div"?{div:this.divn(d.words[0]),mod:null}:S==="mod"?{div:null,mod:new a(this.modrn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new a(this.modrn(d.words[0]))}:this._wordDiv(d,S)},a.prototype.div=function(d){return this.divmod(d,"div",!1).div},a.prototype.mod=function(d){return this.divmod(d,"mod",!1).mod},a.prototype.umod=function(d){return this.divmod(d,"mod",!0).mod},a.prototype.divRound=function(d){var S=this.divmod(d);if(S.mod.isZero())return S.div;var U=S.mod.abs(),K=d.abs().iushrn(1),q=d.words[0]&1,rt=U.cmp(K);if(rt<0||q===1&&rt===0)return S.div;var ct=new a(1);return ct.negative=this.negative^d.negative,S.div.iadd(ct)},a.prototype.modrn=function(d){var S=d<0;S&&(d=-d),e(d<=67108863);for(var U=(1<<26)%d,K=0,q=this.length-1;q>=0;q--)K=(U*K+(this.words[q]|0))%d;return S?-K:K},a.prototype.modn=function(d){return this.modrn(d)},a.prototype.idivn=function(d){var S=d<0;S&&(d=-d),e(d<=67108863);for(var U=0,K=this.length-1;K>=0;K--){var q=(this.words[K]|0)+U*67108864;this.words[K]=q/d|0,U=q%d}return this._strip(),S?this.ineg():this},a.prototype.divn=function(d){return this.clone().idivn(d)},a.prototype.egcd=function(d){e(d.negative===0),e(!d.isZero());var S=this,U=d.clone();S.negative!==0?S=S.umod(d):S=S.clone();for(var K=new a(1),q=new a(0),rt=new a(0),ct=new a(1),W=0;S.isEven()&&U.isEven();)S.iushrn(1),U.iushrn(1),++W;for(var h=U.clone(),R=S.clone();!S.isZero();){for(var Y=0,$=1;(S.words[0]&$)===0&&Y<26;++Y,$<<=1);if(Y>0)for(S.iushrn(Y);Y-- >0;)(K.isOdd()||q.isOdd())&&(K.iadd(h),q.isub(R)),K.iushrn(1),q.iushrn(1);for(var pt=0,It=1;(U.words[0]&It)===0&&pt<26;++pt,It<<=1);if(pt>0)for(U.iushrn(pt);pt-- >0;)(rt.isOdd()||ct.isOdd())&&(rt.iadd(h),ct.isub(R)),rt.iushrn(1),ct.iushrn(1);S.cmp(U)>=0?(S.isub(U),K.isub(rt),q.isub(ct)):(U.isub(S),rt.isub(K),ct.isub(q))}return{a:rt,b:ct,gcd:U.iushln(W)}},a.prototype._invmp=function(d){e(d.negative===0),e(!d.isZero());var S=this,U=d.clone();S.negative!==0?S=S.umod(d):S=S.clone();for(var K=new a(1),q=new a(0),rt=U.clone();S.cmpn(1)>0&&U.cmpn(1)>0;){for(var ct=0,W=1;(S.words[0]&W)===0&&ct<26;++ct,W<<=1);if(ct>0)for(S.iushrn(ct);ct-- >0;)K.isOdd()&&K.iadd(rt),K.iushrn(1);for(var h=0,R=1;(U.words[0]&R)===0&&h<26;++h,R<<=1);if(h>0)for(U.iushrn(h);h-- >0;)q.isOdd()&&q.iadd(rt),q.iushrn(1);S.cmp(U)>=0?(S.isub(U),K.isub(q)):(U.isub(S),q.isub(K))}var Y;return S.cmpn(1)===0?Y=K:Y=q,Y.cmpn(0)<0&&Y.iadd(d),Y},a.prototype.gcd=function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var S=this.clone(),U=d.clone();S.negative=0,U.negative=0;for(var K=0;S.isEven()&&U.isEven();K++)S.iushrn(1),U.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;U.isEven();)U.iushrn(1);var q=S.cmp(U);if(q<0){var rt=S;S=U,U=rt}else if(q===0||U.cmpn(1)===0)break;S.isub(U)}while(!0);return U.iushln(K)},a.prototype.invm=function(d){return this.egcd(d).a.umod(d)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(d){return this.words[0]&d},a.prototype.bincn=function(d){e(typeof d=="number");var S=d%26,U=(d-S)/26,K=1<<S;if(this.length<=U)return this._expand(U+1),this.words[U]|=K,this;for(var q=K,rt=U;q!==0&&rt<this.length;rt++){var ct=this.words[rt]|0;ct+=q,q=ct>>>26,ct&=67108863,this.words[rt]=ct}return q!==0&&(this.words[rt]=q,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(d){var S=d<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var U;if(this.length>1)U=1;else{S&&(d=-d),e(d<=67108863,"Number is too big");var K=this.words[0]|0;U=K===d?0:K<d?-1:1}return this.negative!==0?-U|0:U},a.prototype.cmp=function(d){if(this.negative!==0&&d.negative===0)return-1;if(this.negative===0&&d.negative!==0)return 1;var S=this.ucmp(d);return this.negative!==0?-S|0:S},a.prototype.ucmp=function(d){if(this.length>d.length)return 1;if(this.length<d.length)return-1;for(var S=0,U=this.length-1;U>=0;U--){var K=this.words[U]|0,q=d.words[U]|0;if(K!==q){K<q?S=-1:K>q&&(S=1);break}}return S},a.prototype.gtn=function(d){return this.cmpn(d)===1},a.prototype.gt=function(d){return this.cmp(d)===1},a.prototype.gten=function(d){return this.cmpn(d)>=0},a.prototype.gte=function(d){return this.cmp(d)>=0},a.prototype.ltn=function(d){return this.cmpn(d)===-1},a.prototype.lt=function(d){return this.cmp(d)===-1},a.prototype.lten=function(d){return this.cmpn(d)<=0},a.prototype.lte=function(d){return this.cmp(d)<=0},a.prototype.eqn=function(d){return this.cmpn(d)===0},a.prototype.eq=function(d){return this.cmp(d)===0},a.red=function(d){return new mt(d)},a.prototype.toRed=function(d){return e(!this.red,"Already a number in reduction context"),e(this.negative===0,"red works only with positives"),d.convertTo(this)._forceRed(d)},a.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(d){return this.red=d,this},a.prototype.forceRed=function(d){return e(!this.red,"Already a number in reduction context"),this._forceRed(d)},a.prototype.redAdd=function(d){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,d)},a.prototype.redIAdd=function(d){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,d)},a.prototype.redSub=function(d){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,d)},a.prototype.redISub=function(d){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,d)},a.prototype.redShl=function(d){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,d)},a.prototype.redMul=function(d){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.mul(this,d)},a.prototype.redIMul=function(d){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.imul(this,d)},a.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(d){return e(this.red&&!d.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,d)};var ht={k256:null,p224:null,p192:null,p25519:null};function ft(P,d){this.name=P,this.p=new a(d,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}ft.prototype._tmp=function(){var d=new a(null);return d.words=new Array(Math.ceil(this.n/13)),d},ft.prototype.ireduce=function(d){var S=d,U;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),U=S.bitLength();while(U>this.n);var K=U<this.n?-1:S.ucmp(this.p);return K===0?(S.words[0]=0,S.length=1):K>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},ft.prototype.split=function(d,S){d.iushrn(this.n,0,S)},ft.prototype.imulK=function(d){return d.imul(this.k)};function At(){ft.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}u(At,ft),At.prototype.split=function(d,S){for(var U=4194303,K=Math.min(d.length,9),q=0;q<K;q++)S.words[q]=d.words[q];if(S.length=K,d.length<=9){d.words[0]=0,d.length=1;return}var rt=d.words[9];for(S.words[S.length++]=rt&U,q=10;q<d.length;q++){var ct=d.words[q]|0;d.words[q-10]=(ct&U)<<4|rt>>>22,rt=ct}rt>>>=22,d.words[q-10]=rt,rt===0&&d.length>10?d.length-=10:d.length-=9},At.prototype.imulK=function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var S=0,U=0;U<d.length;U++){var K=d.words[U]|0;S+=K*977,d.words[U]=S&67108863,S=K*64+(S/67108864|0)}return d.words[d.length-1]===0&&(d.length--,d.words[d.length-1]===0&&d.length--),d};function bt(){ft.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}u(bt,ft);function at(){ft.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}u(at,ft);function lt(){ft.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}u(lt,ft),lt.prototype.imulK=function(d){for(var S=0,U=0;U<d.length;U++){var K=(d.words[U]|0)*19+S,q=K&67108863;K>>>=26,d.words[U]=q,S=K}return S!==0&&(d.words[d.length++]=S),d},a._prime=function(d){if(ht[d])return ht[d];var S;if(d==="k256")S=new At;else if(d==="p224")S=new bt;else if(d==="p192")S=new at;else if(d==="p25519")S=new lt;else throw new Error("Unknown prime "+d);return ht[d]=S,S};function mt(P){if(typeof P=="string"){var d=a._prime(P);this.m=d.p,this.prime=d}else e(P.gtn(1),"modulus must be greater than 1"),this.m=P,this.prime=null}mt.prototype._verify1=function(d){e(d.negative===0,"red works only with positives"),e(d.red,"red works only with red numbers")},mt.prototype._verify2=function(d,S){e((d.negative|S.negative)===0,"red works only with positives"),e(d.red&&d.red===S.red,"red works only with red numbers")},mt.prototype.imod=function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):(T(d,d.umod(this.m)._forceRed(this)),d)},mt.prototype.neg=function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},mt.prototype.add=function(d,S){this._verify2(d,S);var U=d.add(S);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},mt.prototype.iadd=function(d,S){this._verify2(d,S);var U=d.iadd(S);return U.cmp(this.m)>=0&&U.isub(this.m),U},mt.prototype.sub=function(d,S){this._verify2(d,S);var U=d.sub(S);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},mt.prototype.isub=function(d,S){this._verify2(d,S);var U=d.isub(S);return U.cmpn(0)<0&&U.iadd(this.m),U},mt.prototype.shl=function(d,S){return this._verify1(d),this.imod(d.ushln(S))},mt.prototype.imul=function(d,S){return this._verify2(d,S),this.imod(d.imul(S))},mt.prototype.mul=function(d,S){return this._verify2(d,S),this.imod(d.mul(S))},mt.prototype.isqr=function(d){return this.imul(d,d.clone())},mt.prototype.sqr=function(d){return this.mul(d,d)},mt.prototype.sqrt=function(d){if(d.isZero())return d.clone();var S=this.m.andln(3);if(e(S%2===1),S===3){var U=this.m.add(new a(1)).iushrn(2);return this.pow(d,U)}for(var K=this.m.subn(1),q=0;!K.isZero()&&K.andln(1)===0;)q++,K.iushrn(1);e(!K.isZero());var rt=new a(1).toRed(this),ct=rt.redNeg(),W=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new a(2*h*h).toRed(this);this.pow(h,W).cmp(ct)!==0;)h.redIAdd(ct);for(var R=this.pow(h,K),Y=this.pow(d,K.addn(1).iushrn(1)),$=this.pow(d,K),pt=q;$.cmp(rt)!==0;){for(var It=$,Vt=0;It.cmp(rt)!==0;Vt++)It=It.redSqr();e(Vt<pt);var Zt=this.pow(R,new a(1).iushln(pt-Vt-1));Y=Y.redMul(Zt),R=Zt.redSqr(),$=$.redMul(R),pt=Vt}return Y},mt.prototype.invm=function(d){var S=d._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},mt.prototype.pow=function(d,S){if(S.isZero())return new a(1).toRed(this);if(S.cmpn(1)===0)return d.clone();var U=4,K=new Array(1<<U);K[0]=new a(1).toRed(this),K[1]=d;for(var q=2;q<K.length;q++)K[q]=this.mul(K[q-1],d);var rt=K[0],ct=0,W=0,h=S.bitLength()%26;for(h===0&&(h=26),q=S.length-1;q>=0;q--){for(var R=S.words[q],Y=h-1;Y>=0;Y--){var $=R>>Y&1;if(rt!==K[0]&&(rt=this.sqr(rt)),$===0&&ct===0){W=0;continue}ct<<=1,ct|=$,W++,!(W!==U&&(q!==0||Y!==0))&&(rt=this.mul(rt,K[ct]),W=0,ct=0)}h=26}return rt},mt.prototype.convertTo=function(d){var S=d.umod(this.m);return S===d?S.clone():S},mt.prototype.convertFrom=function(d){var S=d.clone();return S.red=null,S},a.mont=function(d){return new wt(d)};function wt(P){mt.call(this,P),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}u(wt,mt),wt.prototype.convertTo=function(d){return this.imod(d.ushln(this.shift))},wt.prototype.convertFrom=function(d){var S=this.imod(d.mul(this.rinv));return S.red=null,S},wt.prototype.imul=function(d,S){if(d.isZero()||S.isZero())return d.words[0]=0,d.length=1,d;var U=d.imul(S),K=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=U.isub(K).iushrn(this.shift),rt=q;return q.cmp(this.m)>=0?rt=q.isub(this.m):q.cmpn(0)<0&&(rt=q.iadd(this.m)),rt._forceRed(this)},wt.prototype.mul=function(d,S){if(d.isZero()||S.isZero())return new a(0)._forceRed(this);var U=d.mul(S),K=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),q=U.isub(K).iushrn(this.shift),rt=q;return q.cmp(this.m)>=0?rt=q.isub(this.m):q.cmpn(0)<0&&(rt=q.iadd(this.m)),rt._forceRed(this)},wt.prototype.invm=function(d){var S=this.imod(d._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,M1)})(Oo)),Oo.exports}var B1=lc();const dc=Ss(B1);var No={exports:{}};var hc;function pc(){return hc||(hc=1,(function(t,n){var r=Ns(),e=r.Buffer;function u(f,g){for(var l in f)g[l]=f[l]}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?t.exports=r:(u(r,n),n.Buffer=a);function a(f,g,l){return e(f,g,l)}a.prototype=Object.create(e.prototype),u(e,a),a.from=function(f,g,l){if(typeof f=="number")throw new TypeError("Argument must not be a number");return e(f,g,l)},a.alloc=function(f,g,l){if(typeof f!="number")throw new TypeError("Argument must be a number");var E=e(f);return g!==void 0?typeof l=="string"?E.fill(g,l):E.fill(g):E.fill(0),E},a.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return e(f)},a.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(f)}})(No,No.exports)),No.exports}var js,vc;function k1(){if(vc)return js;vc=1;var t=pc().Buffer;function n(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),u=0;u<e.length;u++)e[u]=255;for(var a=0;a<r.length;a++){var f=r.charAt(a),g=f.charCodeAt(0);if(e[g]!==255)throw new TypeError(f+" is ambiguous");e[g]=a}var l=r.length,E=r.charAt(0),T=Math.log(l)/Math.log(256),L=Math.log(256)/Math.log(l);function N(D){if((Array.isArray(D)||D instanceof Uint8Array)&&(D=t.from(D)),!t.isBuffer(D))throw new TypeError("Expected Buffer");if(D.length===0)return"";for(var j=0,z=0,J=0,Z=D.length;J!==Z&&D[J]===0;)J++,j++;for(var nt=(Z-J)*L+1>>>0,ht=new Uint8Array(nt);J!==Z;){for(var ft=D[J],At=0,bt=nt-1;(ft!==0||At<z)&&bt!==-1;bt--,At++)ft+=256*ht[bt]>>>0,ht[bt]=ft%l>>>0,ft=ft/l>>>0;if(ft!==0)throw new Error("Non-zero carry");z=At,J++}for(var at=nt-z;at!==nt&&ht[at]===0;)at++;for(var lt=E.repeat(j);at<nt;++at)lt+=r.charAt(ht[at]);return lt}function x(D){if(typeof D!="string")throw new TypeError("Expected String");if(D.length===0)return t.alloc(0);for(var j=0,z=0,J=0;D[j]===E;)z++,j++;for(var Z=(D.length-j)*T+1>>>0,nt=new Uint8Array(Z);j<D.length;){var ht=D.charCodeAt(j);if(ht>255)return;var ft=e[ht];if(ft===255)return;for(var At=0,bt=Z-1;(ft!==0||At<J)&&bt!==-1;bt--,At++)ft+=l*nt[bt]>>>0,nt[bt]=ft%256>>>0,ft=ft/256>>>0;if(ft!==0)throw new Error("Non-zero carry");J=At,j++}for(var at=Z-J;at!==Z&&nt[at]===0;)at++;var lt=t.allocUnsafe(z+(Z-at));lt.fill(0,0,z);for(var mt=z;at!==Z;)lt[mt++]=nt[at++];return lt}function B(D){var j=x(D);if(j)return j;throw new Error("Non-base"+l+" character")}return{encode:N,decodeUnsafe:x,decode:B}}return js=n,js}var zs,gc;function U1(){if(gc)return zs;gc=1;var t=k1(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return zs=t(n),zs}var D1=U1();const En=Ss(D1),mc=ku;var Ue={},Ks,yc;function P1(){if(yc)return Ks;yc=1;var t=pc().Buffer;function n(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),u=0;u<e.length;u++)e[u]=255;for(var a=0;a<r.length;a++){var f=r.charAt(a),g=f.charCodeAt(0);if(e[g]!==255)throw new TypeError(f+" is ambiguous");e[g]=a}var l=r.length,E=r.charAt(0),T=Math.log(l)/Math.log(256),L=Math.log(256)/Math.log(l);function N(D){if((Array.isArray(D)||D instanceof Uint8Array)&&(D=t.from(D)),!t.isBuffer(D))throw new TypeError("Expected Buffer");if(D.length===0)return"";for(var j=0,z=0,J=0,Z=D.length;J!==Z&&D[J]===0;)J++,j++;for(var nt=(Z-J)*L+1>>>0,ht=new Uint8Array(nt);J!==Z;){for(var ft=D[J],At=0,bt=nt-1;(ft!==0||At<z)&&bt!==-1;bt--,At++)ft+=256*ht[bt]>>>0,ht[bt]=ft%l>>>0,ft=ft/l>>>0;if(ft!==0)throw new Error("Non-zero carry");z=At,J++}for(var at=nt-z;at!==nt&&ht[at]===0;)at++;for(var lt=E.repeat(j);at<nt;++at)lt+=r.charAt(ht[at]);return lt}function x(D){if(typeof D!="string")throw new TypeError("Expected String");if(D.length===0)return t.alloc(0);for(var j=0,z=0,J=0;D[j]===E;)z++,j++;for(var Z=(D.length-j)*T+1>>>0,nt=new Uint8Array(Z);j<D.length;){var ht=D.charCodeAt(j);if(ht>255)return;var ft=e[ht];if(ft===255)return;for(var At=0,bt=Z-1;(ft!==0||At<J)&&bt!==-1;bt--,At++)ft+=l*nt[bt]>>>0,nt[bt]=ft%256>>>0,ft=ft/256>>>0;if(ft!==0)throw new Error("Non-zero carry");J=At,j++}for(var at=Z-J;at!==Z&&nt[at]===0;)at++;var lt=t.allocUnsafe(z+(Z-at));lt.fill(0,0,z);for(var mt=z;at!==Z;)lt[mt++]=nt[at++];return lt}function B(D){var j=x(D);if(j)return j;throw new Error("Non-base"+l+" character")}return{encode:N,decodeUnsafe:x,decode:B}}return Ks=n,Ks}var Ws,wc;function F1(){if(wc)return Ws;wc=1;var t=P1(),n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";return Ws=t(n),Ws}function ar(t,n,r){return n<=t&&t<=r}function To(t){if(t===void 0)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function H1(t){for(var n=String(t),r=n.length,e=0,u=[];e<r;){var a=n.charCodeAt(e);if(a<55296||a>57343)u.push(a);else if(56320<=a&&a<=57343)u.push(65533);else if(55296<=a&&a<=56319)if(e===r-1)u.push(65533);else{var f=t.charCodeAt(e+1);if(56320<=f&&f<=57343){var g=a&1023,l=f&1023;u.push(65536+(g<<10)+l),e+=1}else u.push(65533)}e+=1}return u}function V1(t){for(var n="",r=0;r<t.length;++r){var e=t[r];e<=65535?n+=String.fromCharCode(e):(e-=65536,n+=String.fromCharCode((e>>10)+55296,(e&1023)+56320))}return n}var xo=-1;function Zs(t){this.tokens=[].slice.call(t)}Zs.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():xo},prepend:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.tokens.unshift(n.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var n=t;n.length;)this.tokens.push(n.shift());else this.tokens.push(t)}};var ri=-1;function $s(t,n){if(t)throw TypeError("Decoder error");return n||65533}var Lo="utf-8";function Co(t,n){if(!(this instanceof Co))return new Co(t,n);if(t=t!==void 0?String(t).toLowerCase():Lo,t!==Lo)throw new Error("Encoding not supported. Only utf-8 is supported");n=To(n),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!n.fatal,this._ignoreBOM=!!n.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Co.prototype={decode:function(n,r){var e;typeof n=="object"&&n instanceof ArrayBuffer?e=new Uint8Array(n):typeof n=="object"&&"buffer"in n&&n.buffer instanceof ArrayBuffer?e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength):e=new Uint8Array(0),r=To(r),this._streaming||(this._decoder=new G1({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var u=new Zs(e),a=[],f;!u.endOfStream()&&(f=this._decoder.handler(u,u.read()),f!==ri);)f!==null&&(Array.isArray(f)?a.push.apply(a,f):a.push(f));if(!this._streaming){do{if(f=this._decoder.handler(u,u.read()),f===ri)break;f!==null&&(Array.isArray(f)?a.push.apply(a,f):a.push(f))}while(!u.endOfStream());this._decoder=null}return a.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(a[0]===65279?(this._BOMseen=!0,a.shift()):this._BOMseen=!0),V1(a)}};function Mo(t,n){if(!(this instanceof Mo))return new Mo(t,n);if(t=t!==void 0?String(t).toLowerCase():Lo,t!==Lo)throw new Error("Encoding not supported. Only utf-8 is supported");n=To(n),this._streaming=!1,this._encoder=null,this._options={fatal:!!n.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Mo.prototype={encode:function(n,r){n=n?String(n):"",r=To(r),this._streaming||(this._encoder=new Y1(this._options)),this._streaming=!!r.stream;for(var e=[],u=new Zs(H1(n)),a;!u.endOfStream()&&(a=this._encoder.handler(u,u.read()),a!==ri);)Array.isArray(a)?e.push.apply(e,a):e.push(a);if(!this._streaming){for(;a=this._encoder.handler(u,u.read()),a!==ri;)Array.isArray(a)?e.push.apply(e,a):e.push(a);this._encoder=null}return new Uint8Array(e)}};function G1(t){var n=t.fatal,r=0,e=0,u=0,a=128,f=191;this.handler=function(g,l){if(l===xo&&u!==0)return u=0,$s(n);if(l===xo)return ri;if(u===0){if(ar(l,0,127))return l;if(ar(l,194,223))u=1,r=l-192;else if(ar(l,224,239))l===224&&(a=160),l===237&&(f=159),u=2,r=l-224;else if(ar(l,240,244))l===240&&(a=144),l===244&&(f=143),u=3,r=l-240;else return $s(n);return r=r<<6*u,null}if(!ar(l,a,f))return r=u=e=0,a=128,f=191,g.prepend(l),$s(n);if(a=128,f=191,e+=1,r+=l-128<<6*(u-e),e!==u)return null;var E=r;return r=u=e=0,E}}function Y1(t){t.fatal,this.handler=function(n,r){if(r===xo)return ri;if(ar(r,0,127))return r;var e,u;ar(r,128,2047)?(e=1,u=192):ar(r,2048,65535)?(e=2,u=224):ar(r,65536,1114111)&&(e=3,u=240);for(var a=[(r>>6*e)+u];e>0;){var f=r>>6*(e-1);a.push(128|f&63),e-=1}return a}}const j1=Is(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Co,TextEncoder:Mo},Symbol.toStringTag,{value:"Module"})));var _c;function z1(){if(_c)return Ue;_c=1;var t=Ue&&Ue.__createBinding||(Object.create?(function(at,lt,mt,wt){wt===void 0&&(wt=mt),Object.defineProperty(at,wt,{enumerable:!0,get:function(){return lt[mt]}})}):(function(at,lt,mt,wt){wt===void 0&&(wt=mt),at[wt]=lt[mt]})),n=Ue&&Ue.__setModuleDefault||(Object.create?(function(at,lt){Object.defineProperty(at,"default",{enumerable:!0,value:lt})}):function(at,lt){at.default=lt}),r=Ue&&Ue.__decorate||function(at,lt,mt,wt){var P=arguments.length,d=P<3?lt:wt===null?wt=Object.getOwnPropertyDescriptor(lt,mt):wt,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(at,lt,mt,wt);else for(var U=at.length-1;U>=0;U--)(S=at[U])&&(d=(P<3?S(d):P>3?S(lt,mt,d):S(lt,mt))||d);return P>3&&d&&Object.defineProperty(lt,mt,d),d},e=Ue&&Ue.__importStar||function(at){if(at&&at.__esModule)return at;var lt={};if(at!=null)for(var mt in at)mt!=="default"&&Object.hasOwnProperty.call(at,mt)&&t(lt,at,mt);return n(lt,at),lt},u=Ue&&Ue.__importDefault||function(at){return at&&at.__esModule?at:{default:at}};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.deserializeUnchecked=Ue.deserialize=Ue.serialize=Ue.BinaryReader=Ue.BinaryWriter=Ue.BorshError=Ue.baseDecode=Ue.baseEncode=void 0;const a=u(lc()),f=u(F1()),g=e(j1),l=typeof TextDecoder!="function"?g.TextDecoder:TextDecoder,E=new l("utf-8",{fatal:!0});function T(at){return typeof at=="string"&&(at=Buffer.from(at,"utf8")),f.default.encode(Buffer.from(at))}Ue.baseEncode=T;function L(at){return Buffer.from(f.default.decode(at))}Ue.baseDecode=L;const N=1024;class x extends Error{constructor(lt){super(lt),this.fieldPath=[],this.originalMessage=lt}addToFieldPath(lt){this.fieldPath.splice(0,0,lt),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}Ue.BorshError=x;class B{constructor(){this.buf=Buffer.alloc(N),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(N)]))}writeU8(lt){this.maybeResize(),this.buf.writeUInt8(lt,this.length),this.length+=1}writeU16(lt){this.maybeResize(),this.buf.writeUInt16LE(lt,this.length),this.length+=2}writeU32(lt){this.maybeResize(),this.buf.writeUInt32LE(lt,this.length),this.length+=4}writeU64(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",8)))}writeU128(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",16)))}writeU256(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",32)))}writeU512(lt){this.maybeResize(),this.writeBuffer(Buffer.from(new a.default(lt).toArray("le",64)))}writeBuffer(lt){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),lt,Buffer.alloc(N)]),this.length+=lt.length}writeString(lt){this.maybeResize();const mt=Buffer.from(lt,"utf8");this.writeU32(mt.length),this.writeBuffer(mt)}writeFixedArray(lt){this.writeBuffer(Buffer.from(lt))}writeArray(lt,mt){this.maybeResize(),this.writeU32(lt.length);for(const wt of lt)this.maybeResize(),mt(wt)}toArray(){return this.buf.subarray(0,this.length)}}Ue.BinaryWriter=B;function D(at,lt,mt){const wt=mt.value;mt.value=function(...P){try{return wt.apply(this,P)}catch(d){if(d instanceof RangeError){const S=d.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(S)>=0)throw new x("Reached the end of buffer when deserializing")}throw d}}}class j{constructor(lt){this.buf=lt,this.offset=0}readU8(){const lt=this.buf.readUInt8(this.offset);return this.offset+=1,lt}readU16(){const lt=this.buf.readUInt16LE(this.offset);return this.offset+=2,lt}readU32(){const lt=this.buf.readUInt32LE(this.offset);return this.offset+=4,lt}readU64(){const lt=this.readBuffer(8);return new a.default(lt,"le")}readU128(){const lt=this.readBuffer(16);return new a.default(lt,"le")}readU256(){const lt=this.readBuffer(32);return new a.default(lt,"le")}readU512(){const lt=this.readBuffer(64);return new a.default(lt,"le")}readBuffer(lt){if(this.offset+lt>this.buf.length)throw new x(`Expected buffer length ${lt} isn't within bounds`);const mt=this.buf.slice(this.offset,this.offset+lt);return this.offset+=lt,mt}readString(){const lt=this.readU32(),mt=this.readBuffer(lt);try{return E.decode(mt)}catch(wt){throw new x(`Error decoding UTF-8 string: ${wt}`)}}readFixedArray(lt){return new Uint8Array(this.readBuffer(lt))}readArray(lt){const mt=this.readU32(),wt=Array();for(let P=0;P<mt;++P)wt.push(lt());return wt}}r([D],j.prototype,"readU8",null),r([D],j.prototype,"readU16",null),r([D],j.prototype,"readU32",null),r([D],j.prototype,"readU64",null),r([D],j.prototype,"readU128",null),r([D],j.prototype,"readU256",null),r([D],j.prototype,"readU512",null),r([D],j.prototype,"readString",null),r([D],j.prototype,"readFixedArray",null),r([D],j.prototype,"readArray",null),Ue.BinaryReader=j;function z(at){return at.charAt(0).toUpperCase()+at.slice(1)}function J(at,lt,mt,wt,P){try{if(typeof wt=="string")P[`write${z(wt)}`](mt);else if(wt instanceof Array)if(typeof wt[0]=="number"){if(mt.length!==wt[0])throw new x(`Expecting byte array of length ${wt[0]}, but got ${mt.length} bytes`);P.writeFixedArray(mt)}else if(wt.length===2&&typeof wt[1]=="number"){if(mt.length!==wt[1])throw new x(`Expecting byte array of length ${wt[1]}, but got ${mt.length} bytes`);for(let d=0;d<wt[1];d++)J(at,null,mt[d],wt[0],P)}else P.writeArray(mt,d=>{J(at,lt,d,wt[0],P)});else if(wt.kind!==void 0)switch(wt.kind){case"option":{mt==null?P.writeU8(0):(P.writeU8(1),J(at,lt,mt,wt.type,P));break}case"map":{P.writeU32(mt.size),mt.forEach((d,S)=>{J(at,lt,S,wt.key,P),J(at,lt,d,wt.value,P)});break}default:throw new x(`FieldType ${wt} unrecognized`)}else Z(at,mt,P)}catch(d){throw d instanceof x&&d.addToFieldPath(lt),d}}function Z(at,lt,mt){if(typeof lt.borshSerialize=="function"){lt.borshSerialize(mt);return}const wt=at.get(lt.constructor);if(!wt)throw new x(`Class ${lt.constructor.name} is missing in schema`);if(wt.kind==="struct")wt.fields.map(([P,d])=>{J(at,P,lt[P],d,mt)});else if(wt.kind==="enum"){const P=lt[wt.field];for(let d=0;d<wt.values.length;++d){const[S,U]=wt.values[d];if(S===P){mt.writeU8(d),J(at,S,lt[S],U,mt);break}}}else throw new x(`Unexpected schema kind: ${wt.kind} for ${lt.constructor.name}`)}function nt(at,lt,mt=B){const wt=new mt;return Z(at,lt,wt),wt.toArray()}Ue.serialize=nt;function ht(at,lt,mt,wt){try{if(typeof mt=="string")return wt[`read${z(mt)}`]();if(mt instanceof Array){if(typeof mt[0]=="number")return wt.readFixedArray(mt[0]);if(typeof mt[1]=="number"){const P=[];for(let d=0;d<mt[1];d++)P.push(ht(at,null,mt[0],wt));return P}else return wt.readArray(()=>ht(at,lt,mt[0],wt))}if(mt.kind==="option")return wt.readU8()?ht(at,lt,mt.type,wt):void 0;if(mt.kind==="map"){let P=new Map;const d=wt.readU32();for(let S=0;S<d;S++){const U=ht(at,lt,mt.key,wt),K=ht(at,lt,mt.value,wt);P.set(U,K)}return P}return ft(at,mt,wt)}catch(P){throw P instanceof x&&P.addToFieldPath(lt),P}}function ft(at,lt,mt){if(typeof lt.borshDeserialize=="function")return lt.borshDeserialize(mt);const wt=at.get(lt);if(!wt)throw new x(`Class ${lt.name} is missing in schema`);if(wt.kind==="struct"){const P={};for(const[d,S]of at.get(lt).fields)P[d]=ht(at,d,S,mt);return new lt(P)}if(wt.kind==="enum"){const P=mt.readU8();if(P>=wt.values.length)throw new x(`Enum index: ${P} is out of range`);const[d,S]=wt.values[P],U=ht(at,d,S,mt);return new lt({[d]:U})}throw new x(`Unexpected schema kind: ${wt.kind} for ${lt.constructor.name}`)}function At(at,lt,mt,wt=j){const P=new wt(mt),d=ft(at,lt,P);if(P.offset<mt.length)throw new x(`Unexpected ${mt.length-P.offset} bytes after deserialized data`);return d}Ue.deserialize=At;function bt(at,lt,mt,wt=j){const P=new wt(mt);return ft(at,lt,P)}return Ue.deserializeUnchecked=bt,Ue}var Xs=z1(),Ot={},Ec;function K1(){if(Ec)return Ot;Ec=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.s16=Ot.s8=Ot.nu64be=Ot.u48be=Ot.u40be=Ot.u32be=Ot.u24be=Ot.u16be=Ot.nu64=Ot.u48=Ot.u40=Ot.u32=Ot.u24=Ot.u16=Ot.u8=Ot.offset=Ot.greedy=Ot.Constant=Ot.UTF8=Ot.CString=Ot.Blob=Ot.Boolean=Ot.BitField=Ot.BitStructure=Ot.VariantLayout=Ot.Union=Ot.UnionLayoutDiscriminator=Ot.UnionDiscriminator=Ot.Structure=Ot.Sequence=Ot.DoubleBE=Ot.Double=Ot.FloatBE=Ot.Float=Ot.NearInt64BE=Ot.NearInt64=Ot.NearUInt64BE=Ot.NearUInt64=Ot.IntBE=Ot.Int=Ot.UIntBE=Ot.UInt=Ot.OffsetLayout=Ot.GreedyCount=Ot.ExternalLayout=Ot.bindConstructorLayout=Ot.nameWithProperty=Ot.Layout=Ot.uint8ArrayToBuffer=Ot.checkUint8Array=void 0,Ot.constant=Ot.utf8=Ot.cstr=Ot.blob=Ot.unionLayoutDiscriminator=Ot.union=Ot.seq=Ot.bits=Ot.struct=Ot.f64be=Ot.f64=Ot.f32be=Ot.f32=Ot.ns64be=Ot.s48be=Ot.s40be=Ot.s32be=Ot.s24be=Ot.s16be=Ot.ns64=Ot.s48=Ot.s40=Ot.s32=Ot.s24=void 0;const t=Ns();function n(h){if(!(h instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}Ot.checkUint8Array=n;function r(h){return n(h),t.Buffer.from(h.buffer,h.byteOffset,h.length)}Ot.uint8ArrayToBuffer=r;let e=class{constructor(R,Y){if(!Number.isInteger(R))throw new TypeError("span must be an integer");this.span=R,this.property=Y}makeDestinationObject(){return{}}getSpan(R,Y){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(R){const Y=Object.create(this.constructor.prototype);return Object.assign(Y,this),Y.property=R,Y}fromArray(R){}};Ot.Layout=e;function u(h,R){return R.property?h+"["+R.property+"]":h}Ot.nameWithProperty=u;function a(h,R){if(typeof h!="function")throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(h,"layout_"))throw new Error("Class is already bound to a layout");if(!(R&&R instanceof e))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(R,"boundConstructor_"))throw new Error("layout is already bound to a constructor");h.layout_=R,R.boundConstructor_=h,R.makeDestinationObject=(()=>new h),Object.defineProperty(h.prototype,"encode",{value(Y,$){return R.encode(this,Y,$)},writable:!0}),Object.defineProperty(h,"decode",{value(Y,$){return R.decode(Y,$)},writable:!0})}Ot.bindConstructorLayout=a;class f extends e{isCount(){throw new Error("ExternalLayout is abstract")}}Ot.ExternalLayout=f;class g extends f{constructor(R=1,Y){if(!Number.isInteger(R)||0>=R)throw new TypeError("elementSpan must be a (positive) integer");super(-1,Y),this.elementSpan=R}isCount(){return!0}decode(R,Y=0){n(R);const $=R.length-Y;return Math.floor($/this.elementSpan)}encode(R,Y,$){return 0}}Ot.GreedyCount=g;class l extends f{constructor(R,Y=0,$){if(!(R instanceof e))throw new TypeError("layout must be a Layout");if(!Number.isInteger(Y))throw new TypeError("offset must be integer or undefined");super(R.span,$||R.property),this.layout=R,this.offset=Y}isCount(){return this.layout instanceof E||this.layout instanceof T}decode(R,Y=0){return this.layout.decode(R,Y+this.offset)}encode(R,Y,$=0){return this.layout.encode(R,Y,$+this.offset)}}Ot.OffsetLayout=l;class E extends e{constructor(R,Y){if(super(R,Y),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(R,Y=0){return r(R).readUIntLE(Y,this.span)}encode(R,Y,$=0){return r(Y).writeUIntLE(R,$,this.span),this.span}}Ot.UInt=E;class T extends e{constructor(R,Y){if(super(R,Y),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(R,Y=0){return r(R).readUIntBE(Y,this.span)}encode(R,Y,$=0){return r(Y).writeUIntBE(R,$,this.span),this.span}}Ot.UIntBE=T;class L extends e{constructor(R,Y){if(super(R,Y),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(R,Y=0){return r(R).readIntLE(Y,this.span)}encode(R,Y,$=0){return r(Y).writeIntLE(R,$,this.span),this.span}}Ot.Int=L;class N extends e{constructor(R,Y){if(super(R,Y),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(R,Y=0){return r(R).readIntBE(Y,this.span)}encode(R,Y,$=0){return r(Y).writeIntBE(R,$,this.span),this.span}}Ot.IntBE=N;const x=Math.pow(2,32);function B(h){const R=Math.floor(h/x),Y=h-R*x;return{hi32:R,lo32:Y}}function D(h,R){return h*x+R}class j extends e{constructor(R){super(8,R)}decode(R,Y=0){const $=r(R),pt=$.readUInt32LE(Y),It=$.readUInt32LE(Y+4);return D(It,pt)}encode(R,Y,$=0){const pt=B(R),It=r(Y);return It.writeUInt32LE(pt.lo32,$),It.writeUInt32LE(pt.hi32,$+4),8}}Ot.NearUInt64=j;class z extends e{constructor(R){super(8,R)}decode(R,Y=0){const $=r(R),pt=$.readUInt32BE(Y),It=$.readUInt32BE(Y+4);return D(pt,It)}encode(R,Y,$=0){const pt=B(R),It=r(Y);return It.writeUInt32BE(pt.hi32,$),It.writeUInt32BE(pt.lo32,$+4),8}}Ot.NearUInt64BE=z;class J extends e{constructor(R){super(8,R)}decode(R,Y=0){const $=r(R),pt=$.readUInt32LE(Y),It=$.readInt32LE(Y+4);return D(It,pt)}encode(R,Y,$=0){const pt=B(R),It=r(Y);return It.writeUInt32LE(pt.lo32,$),It.writeInt32LE(pt.hi32,$+4),8}}Ot.NearInt64=J;class Z extends e{constructor(R){super(8,R)}decode(R,Y=0){const $=r(R),pt=$.readInt32BE(Y),It=$.readUInt32BE(Y+4);return D(pt,It)}encode(R,Y,$=0){const pt=B(R),It=r(Y);return It.writeInt32BE(pt.hi32,$),It.writeUInt32BE(pt.lo32,$+4),8}}Ot.NearInt64BE=Z;class nt extends e{constructor(R){super(4,R)}decode(R,Y=0){return r(R).readFloatLE(Y)}encode(R,Y,$=0){return r(Y).writeFloatLE(R,$),4}}Ot.Float=nt;class ht extends e{constructor(R){super(4,R)}decode(R,Y=0){return r(R).readFloatBE(Y)}encode(R,Y,$=0){return r(Y).writeFloatBE(R,$),4}}Ot.FloatBE=ht;class ft extends e{constructor(R){super(8,R)}decode(R,Y=0){return r(R).readDoubleLE(Y)}encode(R,Y,$=0){return r(Y).writeDoubleLE(R,$),8}}Ot.Double=ft;class At extends e{constructor(R){super(8,R)}decode(R,Y=0){return r(R).readDoubleBE(Y)}encode(R,Y,$=0){return r(Y).writeDoubleBE(R,$),8}}Ot.DoubleBE=At;class bt extends e{constructor(R,Y,$){if(!(R instanceof e))throw new TypeError("elementLayout must be a Layout");if(!(Y instanceof f&&Y.isCount()||Number.isInteger(Y)&&0<=Y))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let pt=-1;!(Y instanceof f)&&0<R.span&&(pt=Y*R.span),super(pt,$),this.elementLayout=R,this.count=Y}getSpan(R,Y=0){if(0<=this.span)return this.span;let $=0,pt=this.count;if(pt instanceof f&&(pt=pt.decode(R,Y)),0<this.elementLayout.span)$=pt*this.elementLayout.span;else{let It=0;for(;It<pt;)$+=this.elementLayout.getSpan(R,Y+$),++It}return $}decode(R,Y=0){const $=[];let pt=0,It=this.count;for(It instanceof f&&(It=It.decode(R,Y));pt<It;)$.push(this.elementLayout.decode(R,Y)),Y+=this.elementLayout.getSpan(R,Y),pt+=1;return $}encode(R,Y,$=0){const pt=this.elementLayout,It=R.reduce((Vt,Zt)=>Vt+pt.encode(Zt,Y,$+Vt),0);return this.count instanceof f&&this.count.encode(R.length,Y,$),It}}Ot.Sequence=bt;class at extends e{constructor(R,Y,$){if(!(Array.isArray(R)&&R.reduce((It,Vt)=>It&&Vt instanceof e,!0)))throw new TypeError("fields must be array of Layout instances");typeof Y=="boolean"&&$===void 0&&($=Y,Y=void 0);for(const It of R)if(0>It.span&&It.property===void 0)throw new Error("fields cannot contain unnamed variable-length layout");let pt=-1;try{pt=R.reduce((It,Vt)=>It+Vt.getSpan(),0)}catch{}super(pt,Y),this.fields=R,this.decodePrefixes=!!$}getSpan(R,Y=0){if(0<=this.span)return this.span;let $=0;try{$=this.fields.reduce((pt,It)=>{const Vt=It.getSpan(R,Y);return Y+=Vt,pt+Vt},0)}catch{throw new RangeError("indeterminate span")}return $}decode(R,Y=0){n(R);const $=this.makeDestinationObject();for(const pt of this.fields)if(pt.property!==void 0&&($[pt.property]=pt.decode(R,Y)),Y+=pt.getSpan(R,Y),this.decodePrefixes&&R.length===Y)break;return $}encode(R,Y,$=0){const pt=$;let It=0,Vt=0;for(const Zt of this.fields){let le=Zt.span;if(Vt=0<le?le:0,Zt.property!==void 0){const we=R[Zt.property];we!==void 0&&(Vt=Zt.encode(we,Y,$),0>le&&(le=Zt.getSpan(Y,$)))}It=$,$+=le}return It+Vt-pt}fromArray(R){const Y=this.makeDestinationObject();for(const $ of this.fields)$.property!==void 0&&0<R.length&&(Y[$.property]=R.shift());return Y}layoutFor(R){if(typeof R!="string")throw new TypeError("property must be string");for(const Y of this.fields)if(Y.property===R)return Y}offsetOf(R){if(typeof R!="string")throw new TypeError("property must be string");let Y=0;for(const $ of this.fields){if($.property===R)return Y;0>$.span?Y=-1:0<=Y&&(Y+=$.span)}}}Ot.Structure=at;class lt{constructor(R){this.property=R}decode(R,Y){throw new Error("UnionDiscriminator is abstract")}encode(R,Y,$){throw new Error("UnionDiscriminator is abstract")}}Ot.UnionDiscriminator=lt;class mt extends lt{constructor(R,Y){if(!(R instanceof f&&R.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(Y||R.property||"variant"),this.layout=R}decode(R,Y){return this.layout.decode(R,Y)}encode(R,Y,$){return this.layout.encode(R,Y,$)}}Ot.UnionLayoutDiscriminator=mt;class wt extends e{constructor(R,Y,$){let pt;if(R instanceof E||R instanceof T)pt=new mt(new l(R));else if(R instanceof f&&R.isCount())pt=new mt(R);else if(R instanceof lt)pt=R;else throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(Y===void 0&&(Y=null),!(Y===null||Y instanceof e))throw new TypeError("defaultLayout must be null or a Layout");if(Y!==null){if(0>Y.span)throw new Error("defaultLayout must have constant span");Y.property===void 0&&(Y=Y.replicate("content"))}let It=-1;Y&&(It=Y.span,0<=It&&(R instanceof E||R instanceof T)&&(It+=pt.layout.span)),super(It,$),this.discriminator=pt,this.usesPrefixDiscriminator=R instanceof E||R instanceof T,this.defaultLayout=Y,this.registry={};let Vt=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(Zt){return Vt(Zt)},this.configGetSourceVariant=function(Zt){Vt=Zt.bind(this)}}getSpan(R,Y=0){if(0<=this.span)return this.span;const $=this.getVariant(R,Y);if(!$)throw new Error("unable to determine span for unrecognized variant");return $.getSpan(R,Y)}defaultGetSourceVariant(R){if(Object.prototype.hasOwnProperty.call(R,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(R,this.defaultLayout.property))return;const Y=this.registry[R[this.discriminator.property]];if(Y&&(!Y.layout||Y.property&&Object.prototype.hasOwnProperty.call(R,Y.property)))return Y}else for(const Y in this.registry){const $=this.registry[Y];if($.property&&Object.prototype.hasOwnProperty.call(R,$.property))return $}throw new Error("unable to infer src variant")}decode(R,Y=0){let $;const pt=this.discriminator,It=pt.decode(R,Y),Vt=this.registry[It];if(Vt===void 0){const Zt=this.defaultLayout;let le=0;this.usesPrefixDiscriminator&&(le=pt.layout.span),$=this.makeDestinationObject(),$[pt.property]=It,$[Zt.property]=Zt.decode(R,Y+le)}else $=Vt.decode(R,Y);return $}encode(R,Y,$=0){const pt=this.getSourceVariant(R);if(pt===void 0){const It=this.discriminator,Vt=this.defaultLayout;let Zt=0;return this.usesPrefixDiscriminator&&(Zt=It.layout.span),It.encode(R[It.property],Y,$),Zt+Vt.encode(R[Vt.property],Y,$+Zt)}return pt.encode(R,Y,$)}addVariant(R,Y,$){const pt=new P(this,R,Y,$);return this.registry[R]=pt,pt}getVariant(R,Y=0){let $;return R instanceof Uint8Array?$=this.discriminator.decode(R,Y):$=R,this.registry[$]}}Ot.Union=wt;class P extends e{constructor(R,Y,$,pt){if(!(R instanceof wt))throw new TypeError("union must be a Union");if(!Number.isInteger(Y)||0>Y)throw new TypeError("variant must be a (non-negative) integer");if(typeof $=="string"&&pt===void 0&&(pt=$,$=null),$){if(!($ instanceof e))throw new TypeError("layout must be a Layout");if(R.defaultLayout!==null&&0<=$.span&&$.span>R.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if(typeof pt!="string")throw new TypeError("variant must have a String property")}let It=R.span;0>R.span&&(It=$?$.span:0,0<=It&&R.usesPrefixDiscriminator&&(It+=R.discriminator.layout.span)),super(It,pt),this.union=R,this.variant=Y,this.layout=$||null}getSpan(R,Y=0){if(0<=this.span)return this.span;let $=0;this.union.usesPrefixDiscriminator&&($=this.union.discriminator.layout.span);let pt=0;return this.layout&&(pt=this.layout.getSpan(R,Y+$)),$+pt}decode(R,Y=0){const $=this.makeDestinationObject();if(this!==this.union.getVariant(R,Y))throw new Error("variant mismatch");let pt=0;return this.union.usesPrefixDiscriminator&&(pt=this.union.discriminator.layout.span),this.layout?$[this.property]=this.layout.decode(R,Y+pt):this.property?$[this.property]=!0:this.union.usesPrefixDiscriminator&&($[this.union.discriminator.property]=this.variant),$}encode(R,Y,$=0){let pt=0;if(this.union.usesPrefixDiscriminator&&(pt=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(R,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,Y,$);let It=pt;if(this.layout&&(this.layout.encode(R[this.property],Y,$+pt),It+=this.layout.getSpan(Y,$+pt),0<=this.union.span&&It>this.union.span))throw new Error("encoded variant overruns containing union");return It}fromArray(R){if(this.layout)return this.layout.fromArray(R)}}Ot.VariantLayout=P;function d(h){return 0>h&&(h+=4294967296),h}class S extends e{constructor(R,Y,$){if(!(R instanceof E||R instanceof T))throw new TypeError("word must be a UInt or UIntBE layout");if(typeof Y=="string"&&$===void 0&&($=Y,Y=!1),4<R.span)throw new RangeError("word cannot exceed 32 bits");super(R.span,$),this.word=R,this.msb=!!Y,this.fields=[];let pt=0;this._packedSetValue=function(It){return pt=d(It),this},this._packedGetValue=function(){return pt}}decode(R,Y=0){const $=this.makeDestinationObject(),pt=this.word.decode(R,Y);this._packedSetValue(pt);for(const It of this.fields)It.property!==void 0&&($[It.property]=It.decode(R));return $}encode(R,Y,$=0){const pt=this.word.decode(Y,$);this._packedSetValue(pt);for(const It of this.fields)if(It.property!==void 0){const Vt=R[It.property];Vt!==void 0&&It.encode(Vt)}return this.word.encode(this._packedGetValue(),Y,$)}addField(R,Y){const $=new U(this,R,Y);return this.fields.push($),$}addBoolean(R){const Y=new K(this,R);return this.fields.push(Y),Y}fieldFor(R){if(typeof R!="string")throw new TypeError("property must be string");for(const Y of this.fields)if(Y.property===R)return Y}}Ot.BitStructure=S;class U{constructor(R,Y,$){if(!(R instanceof S))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(Y)||0>=Y)throw new TypeError("bits must be positive integer");const pt=8*R.span,It=R.fields.reduce((Vt,Zt)=>Vt+Zt.bits,0);if(Y+It>pt)throw new Error("bits too long for span remainder ("+(pt-It)+" of "+pt+" remain)");this.container=R,this.bits=Y,this.valueMask=(1<<Y)-1,Y===32&&(this.valueMask=4294967295),this.start=It,this.container.msb&&(this.start=pt-It-Y),this.wordMask=d(this.valueMask<<this.start),this.property=$}decode(R,Y){const $=this.container._packedGetValue();return d($&this.wordMask)>>>this.start}encode(R){if(typeof R!="number"||!Number.isInteger(R)||R!==d(R&this.valueMask))throw new TypeError(u("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const Y=this.container._packedGetValue(),$=d(R<<this.start);this.container._packedSetValue(d(Y&~this.wordMask)|$)}}Ot.BitField=U;class K extends U{constructor(R,Y){super(R,1,Y)}decode(R,Y){return!!super.decode(R,Y)}encode(R){typeof R=="boolean"&&(R=+R),super.encode(R)}}Ot.Boolean=K;class q extends e{constructor(R,Y){if(!(R instanceof f&&R.isCount()||Number.isInteger(R)&&0<=R))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let $=-1;R instanceof f||($=R),super($,Y),this.length=R}getSpan(R,Y){let $=this.span;return 0>$&&($=this.length.decode(R,Y)),$}decode(R,Y=0){let $=this.span;return 0>$&&($=this.length.decode(R,Y)),r(R).slice(Y,Y+$)}encode(R,Y,$){let pt=this.length;if(this.length instanceof f&&(pt=R.length),!(R instanceof Uint8Array&&pt===R.length))throw new TypeError(u("Blob.encode",this)+" requires (length "+pt+") Uint8Array as src");if($+pt>Y.length)throw new RangeError("encoding overruns Uint8Array");const It=r(R);return r(Y).write(It.toString("hex"),$,pt,"hex"),this.length instanceof f&&this.length.encode(pt,Y,$),pt}}Ot.Blob=q;class rt extends e{constructor(R){super(-1,R)}getSpan(R,Y=0){n(R);let $=Y;for(;$<R.length&&R[$]!==0;)$+=1;return 1+$-Y}decode(R,Y=0){const $=this.getSpan(R,Y);return r(R).slice(Y,Y+$-1).toString("utf-8")}encode(R,Y,$=0){typeof R!="string"&&(R=String(R));const pt=t.Buffer.from(R,"utf8"),It=pt.length;if($+It>Y.length)throw new RangeError("encoding overruns Buffer");const Vt=r(Y);return pt.copy(Vt,$),Vt[$+It]=0,It+1}}Ot.CString=rt;class ct extends e{constructor(R,Y){if(typeof R=="string"&&Y===void 0&&(Y=R,R=void 0),R===void 0)R=-1;else if(!Number.isInteger(R))throw new TypeError("maxSpan must be an integer");super(-1,Y),this.maxSpan=R}getSpan(R,Y=0){return n(R),R.length-Y}decode(R,Y=0){const $=this.getSpan(R,Y);if(0<=this.maxSpan&&this.maxSpan<$)throw new RangeError("text length exceeds maxSpan");return r(R).slice(Y,Y+$).toString("utf-8")}encode(R,Y,$=0){typeof R!="string"&&(R=String(R));const pt=t.Buffer.from(R,"utf8"),It=pt.length;if(0<=this.maxSpan&&this.maxSpan<It)throw new RangeError("text length exceeds maxSpan");if($+It>Y.length)throw new RangeError("encoding overruns Buffer");return pt.copy(r(Y),$),It}}Ot.UTF8=ct;class W extends e{constructor(R,Y){super(0,Y),this.value=R}decode(R,Y){return this.value}encode(R,Y,$){return 0}}return Ot.Constant=W,Ot.greedy=((h,R)=>new g(h,R)),Ot.offset=((h,R,Y)=>new l(h,R,Y)),Ot.u8=(h=>new E(1,h)),Ot.u16=(h=>new E(2,h)),Ot.u24=(h=>new E(3,h)),Ot.u32=(h=>new E(4,h)),Ot.u40=(h=>new E(5,h)),Ot.u48=(h=>new E(6,h)),Ot.nu64=(h=>new j(h)),Ot.u16be=(h=>new T(2,h)),Ot.u24be=(h=>new T(3,h)),Ot.u32be=(h=>new T(4,h)),Ot.u40be=(h=>new T(5,h)),Ot.u48be=(h=>new T(6,h)),Ot.nu64be=(h=>new z(h)),Ot.s8=(h=>new L(1,h)),Ot.s16=(h=>new L(2,h)),Ot.s24=(h=>new L(3,h)),Ot.s32=(h=>new L(4,h)),Ot.s40=(h=>new L(5,h)),Ot.s48=(h=>new L(6,h)),Ot.ns64=(h=>new J(h)),Ot.s16be=(h=>new N(2,h)),Ot.s24be=(h=>new N(3,h)),Ot.s32be=(h=>new N(4,h)),Ot.s40be=(h=>new N(5,h)),Ot.s48be=(h=>new N(6,h)),Ot.ns64be=(h=>new Z(h)),Ot.f32=(h=>new nt(h)),Ot.f32be=(h=>new ht(h)),Ot.f64=(h=>new ft(h)),Ot.f64be=(h=>new At(h)),Ot.struct=((h,R,Y)=>new at(h,R,Y)),Ot.bits=((h,R,Y)=>new S(h,R,Y)),Ot.seq=((h,R,Y)=>new bt(h,R,Y)),Ot.union=((h,R,Y)=>new wt(h,R,Y)),Ot.unionLayoutDiscriminator=((h,R)=>new mt(h,R)),Ot.blob=((h,R)=>new q(h,R)),Ot.cstr=(h=>new rt(h)),Ot.utf8=((h,R)=>new ct(h,R)),Ot.constant=((h,R)=>new W(h,R)),Ot}var dt=K1(),W1=1,Z1=2,$1=3,X1=4,q1=5,J1=6,Q1=7,th=8,eh=9,nh=10,rh=-32700,ih=-32603,oh=-32602,sh=-32601,ah=-32600,uh=-32019,ch=-32018,fh=-32017,lh=-32016,dh=-32015,hh=-32014,ph=-32013,vh=-32012,gh=-32011,mh=-32010,yh=-32009,wh=-32008,_h=-32007,Eh=-32006,Rh=-32005,bh=-32004,Ah=-32003,Sh=-32002,Ih=-32001,Oh=28e5,Nh=2800001,Th=2800002,xh=2800003,Lh=2800004,Ch=2800005,Mh=2800006,Bh=2800007,kh=2800008,Uh=2800009,Dh=2800010,Ph=2800011,Fh=323e4,Hh=32300001,Vh=3230002,Gh=3230003,Yh=3230004,jh=361e4,zh=3610001,Kh=3610002,Wh=3610003,Zh=3610004,$h=3610005,Xh=3610006,qh=3610007,Jh=3611e3,Qh=3704e3,t2=3704001,e2=3704002,n2=3704003,r2=3704004,i2=4128e3,o2=4128001,s2=4128002,a2=4615e3,u2=4615001,c2=4615002,f2=4615003,l2=4615004,d2=4615005,h2=4615006,p2=4615007,v2=4615008,g2=4615009,m2=4615010,y2=4615011,w2=4615012,_2=4615013,E2=4615014,R2=4615015,b2=4615016,A2=4615017,S2=4615018,I2=4615019,O2=4615020,N2=4615021,T2=4615022,x2=4615023,L2=4615024,C2=4615025,M2=4615026,B2=4615027,k2=4615028,U2=4615029,D2=4615030,P2=4615031,F2=4615032,H2=4615033,V2=4615034,G2=4615035,Y2=4615036,j2=4615037,z2=4615038,K2=4615039,W2=4615040,Z2=4615041,$2=4615042,X2=4615043,q2=4615044,J2=4615045,Q2=4615046,tp=4615047,ep=4615048,np=4615049,rp=4615050,ip=4615051,op=4615052,sp=4615053,ap=4615054,up=5508e3,cp=5508001,fp=5508002,lp=5508003,dp=5508004,hp=5508005,pp=5508006,vp=5508007,gp=5508008,mp=5508009,yp=5508010,wp=5508011,_p=5607e3,Ep=5607001,Rp=5607002,bp=5607003,Ap=5607004,Sp=5607005,Ip=5607006,Op=5607007,Np=5607008,Tp=5607009,xp=5607010,Lp=5607011,Cp=5607012,Mp=5607013,Bp=5607014,kp=5607015,Up=5607016,Dp=5607017,Pp=5663e3,Fp=5663001,Hp=5663002,Vp=5663003,Gp=5663004,Yp=5663005,jp=5663006,zp=5663007,Kp=5663008,Wp=5663009,Zp=5663010,$p=5663011,Xp=5663012,qp=5663013,Jp=5663014,Qp=5663015,tv=5663016,ev=5663017,nv=5663018,rv=5663019,iv=5663020,ov=5663021,sv=5663022,av=705e4,uv=7050001,cv=7050002,fv=7050003,lv=7050004,dv=7050005,hv=7050006,pv=7050007,vv=7050008,gv=7050009,mv=7050010,yv=7050011,wv=7050012,_v=7050013,Ev=7050014,Rv=7050015,bv=7050016,Av=7050017,Sv=7050018,Iv=7050019,Ov=7050020,Nv=7050021,Tv=7050022,xv=7050023,Lv=7050024,Cv=7050025,Mv=7050026,Bv=7050027,kv=7050028,Uv=7050029,Dv=7050030,Pv=7050031,Fv=7050032,Hv=7050033,Vv=7050034,Gv=7050035,Yv=7050036,jv=7618e3,zv=7618001,Kv=7618002,Wv=7618003,Zv=7618004,$v=7618005,Xv=7618006,qv=7618007,Jv=7618008,Qv=7618009,Rc=8078e3,bc=8078001,tg=8078002,eg=8078003,Ac=8078004,Sc=8078005,Ic=8078006,ng=8078007,rg=8078008,ig=8078009,og=8078010,Oc=8078011,sg=8078012,ag=8078013,ug=8078014,cg=8078015,fg=8078016,lg=8078017,dg=8078018,hg=8078019,pg=8078020,vg=8078021,gg=8078022,mg=8078023,yg=81e5,wg=8100001,_g=8100002,Eg=8100003,Rg=819e4,bg=8190001,Ag=8190002,Sg=8190003,Ig=8190004,Og=99e5,Ng=9900001,Tg=9900002,xg=9900003,Lg=9900004,Cg=9900005,Mg=9900006;function Nc(t){return Array.isArray(t)?"%5B"+t.map(Nc).join("%2C%20")+"%5D":typeof t=="bigint"?`${t}n`:encodeURIComponent(String(t!=null&&Object.getPrototypeOf(t)===null?{...t}:t))}function Bg([t,n]){return`${t}=${Nc(n)}`}function kg(t){const n=Object.entries(t).map(Bg).join("&");return btoa(n)}var Ug={[Fh]:"Account not found at address: $address",[Yh]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[Gh]:"Expected decoded account at address: $address",[Vh]:"Failed to decode account data at address: $address",[Hh]:"Accounts not found at addresses: $addresses",[Uh]:"Unable to find a viable program address bump seed.",[Th]:"$putativeAddress is not a base58-encoded address.",[Oh]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[xh]:"The `CryptoKey` must be an `Ed25519` public key.",[Ph]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[kh]:"Invalid seeds; point must fall off the Ed25519 curve.",[Lh]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[Mh]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[Bh]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[Ch]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[Dh]:"Program address cannot end with PDA marker.",[Nh]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[X1]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[W1]:"The network has progressed past the last block for which this transaction could have been committed.",[Rc]:"Codec [$codecDescription] cannot decode empty byte arrays.",[gg]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[pg]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[Sc]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[Ic]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[Ac]:"Encoder and decoder must either both be fixed-size or variable-size.",[rg]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[tg]:"Expected a fixed-size codec, got a variable-size one.",[ag]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[eg]:"Expected a variable-size codec, got a fixed-size one.",[hg]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[bc]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[dg]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[ig]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[og]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[cg]:"Invalid literal union variant. Expected one of [$variants], got $value.",[ng]:"Expected [$codecDescription] to have $expected items, got $actual.",[sg]:"Invalid value $value for base $base with alphabet $alphabet.",[fg]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[Oc]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[ug]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[vg]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[lg]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[mg]:"This decoder expected a byte array of exactly $expectedLength bytes, but $numExcessBytes unexpected excess bytes remained after decoding. Are you sure that you have chosen the correct decoder for this data?",[Jh]:"No random values implementation could be found.",[g2]:"instruction requires an uninitialized account",[x2]:"instruction tries to borrow reference for an account which is already borrowed",[L2]:"instruction left account with an outstanding borrowed reference",[N2]:"program other than the account's owner changed the size of the account data",[d2]:"account data too small for instruction",[T2]:"instruction expected an executable account",[Q2]:"An account does not have enough lamports to be rent-exempt",[ep]:"Program arithmetic overflowed",[J2]:"Failed to serialize or deserialize account data: $encodedData",[ap]:"Builtin programs must consume compute units",[F2]:"Cross-program invocation call depth too deep",[z2]:"Computational budget exceeded",[M2]:"custom program error: #$code",[A2]:"instruction contains duplicate accounts",[C2]:"instruction modifications of multiply-passed account differ",[D2]:"executable accounts must be rent exempt",[k2]:"instruction changed executable accounts data",[U2]:"instruction changed the balance of an executable account",[S2]:"instruction changed executable bit of an account",[E2]:"instruction modified data of an account it does not own",[_2]:"instruction spent from the balance of an account it does not own",[u2]:"generic instruction error",[rp]:"Provided owner is not allowed",[X2]:"Account is immutable",[q2]:"Incorrect authority provided",[p2]:"incorrect program id for instruction",[h2]:"insufficient funds for instruction",[l2]:"invalid account data for instruction",[tp]:"Invalid account owner",[c2]:"invalid program argument",[B2]:"program returned invalid error code",[f2]:"invalid instruction data",[j2]:"Failed to reallocate account data",[Y2]:"Provided seeds do not result in a valid address",[ip]:"Accounts data allocations exceeded the maximum allowed per transaction",[op]:"Max accounts exceeded",[sp]:"Max instruction trace length exceeded",[G2]:"Length of the seed is too long for address generation",[H2]:"An account required by the instruction is missing",[v2]:"missing required signature for instruction",[w2]:"instruction illegally modified the program id of an account",[O2]:"insufficient account keys for instruction",[K2]:"Cross-program invocation with unauthorized signer or writable account",[W2]:"Failed to create program execution environment",[$2]:"Program failed to compile",[Z2]:"Program failed to complete",[b2]:"instruction modified data of a read-only account",[R2]:"instruction changed the balance of a read-only account",[V2]:"Cross-program invocation reentrancy not allowed for this instruction",[I2]:"instruction modified rent epoch of an account",[y2]:"sum of account balances before and after instruction do not match",[m2]:"instruction requires an initialized account",[a2]:"",[P2]:"Unsupported program id",[np]:"Unsupported sysvar",[Cg]:"Invalid instruction plan kind: $kind.",[Kv]:"The provided instruction plan is empty.",[$v]:"No failed transaction plan result was found in the provided transaction plan result.",[Zv]:"This transaction plan executor does not support non-divisible sequential plans. To support them, you may create your own executor such that multi-transaction atomicity is preserved — e.g. by targetting RPCs that support transaction bundles.",[Wv]:"The provided transaction plan failed to execute. See the `transactionPlanResult` attribute for more details. Note that the `cause` property is deprecated, and a future version will not set it.",[jv]:"The provided message has insufficient capacity to accommodate the next instruction(s) in this plan. Expected at least $numBytesRequired free byte(s), got $numFreeBytes byte(s).",[Mg]:"Invalid transaction plan kind: $kind.",[zv]:"No more instructions to pack; the message packer has completed the instruction plan.",[Xv]:"Unexpected instruction plan. Expected $expectedKind plan, got $actualKind plan.",[qv]:"Unexpected transaction plan. Expected $expectedKind plan, got $actualKind plan.",[Jv]:"Unexpected transaction plan result. Expected $expectedKind plan, got $actualKind plan.",[Qv]:"Expected a successful transaction plan result. I.e. there is at least one failed or cancelled transaction in the plan.",[i2]:"The instruction does not have any accounts.",[o2]:"The instruction does not have any data.",[s2]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[q1]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Z1]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Tg]:"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",[Lg]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ng]:"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",[Og]:"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",[xg]:"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",[ih]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[oh]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[ah]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[sh]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[rh]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[vh]:"$__serverMessage",[Ih]:"$__serverMessage",[bh]:"$__serverMessage",[hh]:"$__serverMessage",[fh]:"Epoch rewards period still active at slot $slot",[mh]:"$__serverMessage",[yh]:"$__serverMessage",[uh]:"Failed to query long-term storage; please try again",[lh]:"Minimum context slot has not been reached",[Rh]:"Node is unhealthy; behind by $numSlotsBehind slots",[wh]:"No snapshot",[Sh]:"Transaction simulation failed",[ch]:"Rewards cannot be found because slot $slot is not the epoch boundary. This may be due to gap in the queried node's local ledger or long-term storage",[_h]:"$__serverMessage",[gh]:"Transaction history is not available from this node",[Eh]:"$__serverMessage",[ph]:"Transaction signature length mismatch",[Ah]:"Transaction signature verification failure",[dh]:"$__serverMessage",[Qh]:"Key pair bytes must be of length 64, got $byteLength.",[t2]:"Expected private key bytes with length 32. Actual length: $actualLength.",[e2]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[r2]:"The provided private key does not match the provided public key.",[n2]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[J1]:"Lamports value must be in the range [0, 2e64-1]",[Q1]:"`$value` cannot be parsed as a `BigInt`",[nh]:"$message",[th]:"`$value` cannot be parsed as a `Number`",[$1]:"No nonce account could be found at address `$nonceAccountAddress`",[bp]:"Expected base58 encoded application domain to decode to a byte array of length 32. Actual length: $actualLength.",[Mp]:"Attempted to sign an offchain message with an address that is not a signer for it",[Rp]:"Expected base58-encoded application domain string of length in the range [32, 44]. Actual length: $actualLength.",[Cp]:"The signer addresses in this offchain message envelope do not match the list of required signers in the message preamble. These unexpected signers were present in the envelope: `[$unexpectedSigners]`. These required signers were missing from the envelope `[$missingSigners]`.",[_p]:"The message body provided has a byte-length of $actualBytes. The maximum allowable byte-length is $maxBytes",[Op]:"Expected message format $expectedMessageFormat, got $actualMessageFormat",[Np]:"The message length specified in the message preamble is $specifiedLength bytes. The actual length of the message is $actualLength bytes.",[Tp]:"Offchain message content must be non-empty",[Sp]:"Offchain message must specify the address of at least one required signer",[xp]:"Offchain message envelope must reserve space for at least one signature",[Ap]:"The offchain message preamble specifies $numRequiredSignatures required signature(s), got $signaturesLength.",[kp]:"The signatories of this offchain message must be listed in lexicographical order",[Up]:"An address must be listed no more than once among the signatories of an offchain message",[Lp]:"Offchain message is missing signatures for addresses: $addresses.",[Dp]:"Offchain message signature verification failed. Signature mismatch for required signatories [$signatoriesWithInvalidSignatures]. Missing signatures for signatories [$signatoriesWithMissingSignatures]",[Ep]:"The message body provided contains characters whose codes fall outside the allowed range. In order to ensure clear-signing compatiblity with hardware wallets, the message may only contain line feeds and characters in the range [\\x20-\\x7e].",[Bp]:"Expected offchain message version $expectedVersion. Got $actualVersion.",[Ip]:"This version of Kit does not support decoding offchain messages with version $unsupportedVersion. The current max supported version is 0.",[Rg]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Ag]:"WebSocket was closed before payload could be added to the send buffer",[Sg]:"WebSocket connection closed",[Ig]:"WebSocket failed to connect",[bg]:"Failed to obtain a subscription id from the server",[Eg]:"Could not find an API plan for RPC method: `$method`",[yg]:"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`.",[_g]:"HTTP error ($statusCode): $message",[wg]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[up]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[cp]:"The provided value does not implement the `KeyPairSigner` interface",[lp]:"The provided value does not implement the `MessageModifyingSigner` interface",[dp]:"The provided value does not implement the `MessagePartialSigner` interface",[fp]:"The provided value does not implement any of the `MessageSigner` interfaces",[pp]:"The provided value does not implement the `TransactionModifyingSigner` interface",[vp]:"The provided value does not implement the `TransactionPartialSigner` interface",[gp]:"The provided value does not implement the `TransactionSendingSigner` interface",[hp]:"The provided value does not implement any of the `TransactionSigner` interfaces",[mp]:"More than one `TransactionSendingSigner` was identified.",[yp]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[wp]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[qh]:"Cannot export a non-extractable key.",[zh]:"No digest implementation could be found.",[jh]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[Kh]:`This runtime does not support the generation of Ed25519 key pairs.
|
|
2
2
|
|
|
3
3
|
Install @solana/webcrypto-ed25519-polyfill and call its \`install\` function before generating keys in environments that do not support Ed25519.
|
|
4
4
|
|
|
5
|
-
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Uh]:"No signature verification implementation could be found.",[Ph]:"No key generation implementation could be found.",[Fh]:"No signing implementation could be found.",[Hh]:"No key export implementation could be found.",[Z1]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Kp]:"Transaction processing left an account with an outstanding borrowed reference",[Lp]:"Account in use",[Bp]:"Account loaded twice",[Mp]:"Attempt to debit an account but found no record of a prior credit.",[tv]:"Transaction loads an address table account that doesn't exist",[Pp]:"This transaction has already been processed",[Fp]:"Blockhash not found",[Hp]:"Loader call chain is too deep",[zp]:"Transactions are currently disabled due to cluster maintenance",[av]:"Transaction contains a duplicate instruction ($index) that is not allowed",[Dp]:"Insufficient funds for fee",[uv]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Up]:"This account may not be used to pay transaction fees",[Gp]:"Transaction contains an invalid account reference",[nv]:"Transaction loads an address table account with invalid data",[rv]:"Transaction address table lookup uses an invalid index",[ev]:"Transaction loads an address table account with an invalid owner",[fv]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Yp]:"This program may not be used for executing instructions",[iv]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[$p]:"Transaction loads a writable account that cannot be written",[cv]:"Transaction exceeded max loaded accounts data size cap",[Vp]:"Transaction requires a fee but has no signature present",[kp]:"Attempt to load a program that does not exist",[dv]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[lv]:"ResanitizationNeeded",[Wp]:"Transaction failed to sanitize accounts offsets correctly",[jp]:"Transaction did not pass signature verification",[Qp]:"Transaction locked too many accounts",[hv]:"Sum of account balances before and after transaction do not match",[Cp]:"The transaction failed with the error `$errorName`",[Xp]:"Transaction version is unsupported",[Jp]:"Transaction would exceed account data limit within the block",[sv]:"Transaction would exceed total account data limit",[qp]:"Transaction would exceed max account limit within the block",[Zp]:"Transaction would exceed max Block Cost Limit",[ov]:"Transaction would exceed max Vote Cost Limit",[Sp]:"Attempted to sign a transaction with an address that is not a signer for it",[Ep]:"Transaction is missing an address at index: $index.",[Ip]:"Transaction has no expected signers therefore it cannot be encoded",[xp]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[dp]:"Transaction does not have a blockhash lifetime",[hp]:"Transaction is not a durable nonce transaction",[vp]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[mp]:"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",[yp]:"No fee payer set in CompiledTransaction",[gp]:"Could not find program address at index $index",[Tp]:"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",[Np]:"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",[_p]:"Transaction is missing a fee payer.",[bp]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Ap]:"Transaction first instruction is not advance nonce account instruction.",[Rp]:"Transaction with no instructions cannot be durable nonce transaction.",[fp]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[lp]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[Op]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[wp]:"Transaction is missing signatures for addresses: $addresses.",[pp]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},sr="i",$n="t";function Zv(t,n={}){const r=Kv[t];if(r.length===0)return"";let e;function u(d){if(e[$n]===2){const g=r.slice(e[sr]+1,d);a.push(g in n?`${n[g]}`:`$${g}`)}else e[$n]===1&&a.push(r.slice(e[sr],d))}const a=[];return r.split("").forEach((d,g)=>{if(g===0){e={[sr]:0,[$n]:r[0]==="\\"?0:r[0]==="$"?2:1};return}let l;switch(e[$n]){case 0:l={[sr]:g,[$n]:1};break;case 1:d==="\\"?l={[sr]:g,[$n]:0}:d==="$"&&(l={[sr]:g,[$n]:2});break;case 2:d==="\\"?l={[sr]:g,[$n]:0}:d==="$"?l={[sr]:g,[$n]:2}:d.match(/\w/)||(l={[sr]:g,[$n]:1});break}l&&(e!==l&&u(g),e=l)}),u(),a.join("")}function Xv(t,n={}){if(process.env.NODE_ENV!=="production")return Zv(t,n);{let r=`Solana error #${t}; Decode this error by running \`npx @solana/errors decode -- ${t}`;return Object.keys(n).length&&(r+=` '${zv(n)}'`),`${r}\``}}var ri=class extends Error{cause=this.cause;context;constructor(...[t,n]){let r,e;if(n){const{cause:a,...d}=n;a&&(e={cause:a}),Object.keys(d).length>0&&(r=d)}const u=Xv(t,r);super(u,e),this.context={__code:t,...r},this.name="SolanaError"}};function $v(t,n){return"fixedSize"in n?n.fixedSize:n.getSizeFromValue(t)}function qv(t){return Object.freeze({...t,encode:n=>{const r=new Uint8Array($v(n,t));return t.write(n,r,0),r}})}function Jv(t){return Object.freeze({...t,decode:(n,r=0)=>t.read(n,r)[0]})}function ii(t){return"fixedSize"in t&&typeof t.fixedSize=="number"}function Qv(t,n){if(ii(t)!==ii(n))throw new ri(_c);if(ii(t)&&ii(n)&&t.fixedSize!==n.fixedSize)throw new ri(bc,{decoderFixedSize:n.fixedSize,encoderFixedSize:t.fixedSize});if(!ii(t)&&!ii(n)&&t.maxSize!==n.maxSize)throw new ri(Rc,{decoderMaxSize:n.maxSize,encoderMaxSize:t.maxSize});return{...n,...t,decode:n.decode,encode:t.encode,read:n.read,write:t.write}}function t3(t,n,r=0){if(n.length-r<=0)throw new ri(wc,{codecDescription:t})}function e3(t,n,r,e=0){const u=r.length-e;if(u<n)throw new ri(Ec,{bytesLength:u,codecDescription:t,expected:n})}function n3(t,n,r,e){if(e<n||e>r)throw new ri(Ac,{codecDescription:t,max:r,min:n,value:e})}function Ic(t){return t?.endian!==1}function r3(t){return qv({fixedSize:t.size,write(n,r,e){t.range&&n3(t.name,t.range[0],t.range[1],n);const u=new ArrayBuffer(t.size);return t.set(new DataView(u),n,Ic(t.config)),r.set(new Uint8Array(u),e),e+t.size}})}function i3(t){return Jv({fixedSize:t.size,read(n,r=0){t3(t.name,n,r),e3(t.name,t.size,n,r);const e=new DataView(o3(n,r,t.size));return[t.get(e,Ic(t.config)),r+t.size]}})}function o3(t,n,r){const e=t.byteOffset+(n??0),u=r??t.byteLength;return t.buffer.slice(e,e+u)}var s3=(t={})=>r3({config:t,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(n,r,e)=>n.setBigUint64(0,BigInt(r),e),size:8}),a3=(t={})=>i3({config:t,get:(n,r)=>n.getBigUint64(0,r),name:"u64",size:8}),u3=(t={})=>Qv(s3(t),a3(t));class c3 extends TypeError{constructor(n,r){let e;const{message:u,explanation:a,...d}=n,{path:g}=n,l=g.length===0?u:`At path: ${g.join(".")} -- ${u}`;super(a??l),a!=null&&(this.cause=l),Object.assign(this,d),this.name=this.constructor.name,this.failures=()=>e??(e=[n,...r()])}}function f3(t){return Ni(t)&&typeof t[Symbol.iterator]=="function"}function Ni(t){return typeof t=="object"&&t!=null}function Lo(t){return Ni(t)&&!Array.isArray(t)}function Vn(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function l3(t){const{done:n,value:r}=t.next();return n?void 0:r}function d3(t,n,r,e){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:u,branch:a}=n,{type:d}=r,{refinement:g,message:l=`Expected a value of type \`${d}\`${g?` with refinement \`${g}\``:""}, but received: \`${Vn(e)}\``}=t;return{value:e,type:d,refinement:g,key:u[u.length-1],path:u,branch:a,...t,message:l}}function*Oc(t,n,r,e){f3(t)||(t=[t]);for(const u of t){const a=d3(u,n,r,e);a&&(yield a)}}function*zs(t,n,r={}){const{path:e=[],branch:u=[t],coerce:a=!1,mask:d=!1}=r,g={path:e,branch:u,mask:d};a&&(t=n.coercer(t,g));let l="valid";for(const _ of n.validator(t,g))_.explanation=r.message,l="not_valid",yield[_,void 0];for(let[_,T,C]of n.entries(t,g)){const N=zs(T,C,{path:_===void 0?e:[...e,_],branch:_===void 0?u:[...u,T],coerce:a,mask:d,message:r.message});for(const x of N)x[0]?(l=x[0].refinement!=null?"not_refined":"not_valid",yield[x[0],void 0]):a&&(T=x[1],_===void 0?t=T:t instanceof Map?t.set(_,T):t instanceof Set?t.add(T):Ni(t)&&(T!==void 0||_ in t)&&(t[_]=T))}if(l!=="not_valid")for(const _ of n.refiner(t,g))_.explanation=r.message,l="not_refined",yield[_,void 0];l==="valid"&&(yield[void 0,t])}let qn=class{constructor(n){const{type:r,schema:e,validator:u,refiner:a,coercer:d=l=>l,entries:g=function*(){}}=n;this.type=r,this.schema=e,this.entries=g,this.coercer=d,u?this.validator=(l,_)=>{const T=u(l,_);return Oc(T,_,this,l)}:this.validator=()=>[],a?this.refiner=(l,_)=>{const T=a(l,_);return Oc(T,_,this,l)}:this.refiner=()=>[]}assert(n,r){return h3(n,this,r)}create(n,r){return xi(n,this,r)}is(n){return Tc(n,this)}mask(n,r){return p3(n,this,r)}validate(n,r={}){return Ci(n,this,r)}};function h3(t,n,r){const e=Ci(t,n,{message:r});if(e[0])throw e[0]}function xi(t,n,r){const e=Ci(t,n,{coerce:!0,message:r});if(e[0])throw e[0];return e[1]}function p3(t,n,r){const e=Ci(t,n,{coerce:!0,mask:!0,message:r});if(e[0])throw e[0];return e[1]}function Tc(t,n){return!Ci(t,n)[0]}function Ci(t,n,r={}){const e=zs(t,n,r),u=l3(e);return u[0]?[new c3(u[0],function*(){for(const d of e)d[0]&&(yield d[0])}),void 0]:[void 0,u[1]]}function Fr(t,n){return new qn({type:t,schema:null,validator:n})}function v3(){return Fr("any",()=>!0)}function ie(t){return new qn({type:"array",schema:t,*entries(n){if(t&&Array.isArray(n))for(const[r,e]of n.entries())yield[r,e,t]},coercer(n){return Array.isArray(n)?n.slice():n},validator(n){return Array.isArray(n)||`Expected an array value, but received: ${Vn(n)}`}})}function Jn(){return Fr("boolean",t=>typeof t=="boolean")}function Ks(t){return Fr("instance",n=>n instanceof t||`Expected a \`${t.name}\` instance, but received: ${Vn(n)}`)}function Ye(t){const n=Vn(t),r=typeof t;return new qn({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(e){return e===t||`Expected the literal \`${n}\`, but received: ${Vn(e)}`}})}function m3(){return Fr("never",()=>!1)}function oe(t){return new qn({...t,validator:(n,r)=>n===null||t.validator(n,r),refiner:(n,r)=>n===null||t.refiner(n,r)})}function It(){return Fr("number",t=>typeof t=="number"&&!isNaN(t)||`Expected a number, but received: ${Vn(t)}`)}function fe(t){return new qn({...t,validator:(n,r)=>n===void 0||t.validator(n,r),refiner:(n,r)=>n===void 0||t.refiner(n,r)})}function Nc(t,n){return new qn({type:"record",schema:null,*entries(r){if(Ni(r))for(const e in r){const u=r[e];yield[e,e,t],yield[e,u,n]}},validator(r){return Lo(r)||`Expected an object, but received: ${Vn(r)}`},coercer(r){return Lo(r)?{...r}:r}})}function Jt(){return Fr("string",t=>typeof t=="string"||`Expected a string, but received: ${Vn(t)}`)}function Zs(t){const n=m3();return new qn({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const e=Math.max(t.length,r.length);for(let u=0;u<e;u++)yield[u,r[u],t[u]||n]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${Vn(r)}`},coercer(r){return Array.isArray(r)?r.slice():r}})}function Ft(t){const n=Object.keys(t);return new qn({type:"type",schema:t,*entries(r){if(Ni(r))for(const e of n)yield[e,r[e],t[e]]},validator(r){return Lo(r)||`Expected an object, but received: ${Vn(r)}`},coercer(r){return Lo(r)?{...r}:r}})}function On(t){const n=t.map(r=>r.type).join(" | ");return new qn({type:"union",schema:null,coercer(r,e){for(const u of t){const[a,d]=u.validate(r,{coerce:!0,mask:e.mask});if(!a)return d}return r},validator(r,e){const u=[];for(const a of t){const[...d]=zs(r,a,e),[g]=d;if(g[0])for(const[l]of d)l&&u.push(l);else return[]}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${Vn(r)}`,...u]}})}function oi(){return Fr("unknown",()=>!0)}function Li(t,n,r){return new qn({...t,coercer:(e,u)=>Tc(e,n)?t.coercer(r(e,u),u):t.coercer(e,u)})}var Bo,g3=new Uint8Array(16);function xc(){if(!Bo&&(Bo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Bo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bo(g3)}const y3=/^(?:[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 Mo(t){return typeof t=="string"&&y3.test(t)}for(var mn=[],Xs=0;Xs<256;++Xs)mn.push((Xs+256).toString(16).substr(1));function ko(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(mn[t[n+0]]+mn[t[n+1]]+mn[t[n+2]]+mn[t[n+3]]+"-"+mn[t[n+4]]+mn[t[n+5]]+"-"+mn[t[n+6]]+mn[t[n+7]]+"-"+mn[t[n+8]]+mn[t[n+9]]+"-"+mn[t[n+10]]+mn[t[n+11]]+mn[t[n+12]]+mn[t[n+13]]+mn[t[n+14]]+mn[t[n+15]]).toLowerCase();if(!Mo(r))throw TypeError("Stringified UUID is invalid");return r}var Cc,$s,qs=0,Js=0;function w3(t,n,r){var e=n&&r||0,u=n||new Array(16);t=t||{};var a=t.node||Cc,d=t.clockseq!==void 0?t.clockseq:$s;if(a==null||d==null){var g=t.random||(t.rng||xc)();a==null&&(a=Cc=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),d==null&&(d=$s=(g[6]<<8|g[7])&16383)}var l=t.msecs!==void 0?t.msecs:Date.now(),_=t.nsecs!==void 0?t.nsecs:Js+1,T=l-qs+(_-Js)/1e4;if(T<0&&t.clockseq===void 0&&(d=d+1&16383),(T<0||l>qs)&&t.nsecs===void 0&&(_=0),_>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");qs=l,Js=_,$s=d,l+=122192928e5;var C=((l&268435455)*1e4+_)%4294967296;u[e++]=C>>>24&255,u[e++]=C>>>16&255,u[e++]=C>>>8&255,u[e++]=C&255;var N=l/4294967296*1e4&268435455;u[e++]=N>>>8&255,u[e++]=N&255,u[e++]=N>>>24&15|16,u[e++]=N>>>16&255,u[e++]=d>>>8|128,u[e++]=d&255;for(var x=0;x<6;++x)u[e+x]=a[x];return n||ko(u)}function Lc(t){if(!Mo(t))throw TypeError("Invalid UUID");var n,r=new Uint8Array(16);return r[0]=(n=parseInt(t.slice(0,8),16))>>>24,r[1]=n>>>16&255,r[2]=n>>>8&255,r[3]=n&255,r[4]=(n=parseInt(t.slice(9,13),16))>>>8,r[5]=n&255,r[6]=(n=parseInt(t.slice(14,18),16))>>>8,r[7]=n&255,r[8]=(n=parseInt(t.slice(19,23),16))>>>8,r[9]=n&255,r[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=n/4294967296&255,r[12]=n>>>24&255,r[13]=n>>>16&255,r[14]=n>>>8&255,r[15]=n&255,r}function E3(t){t=unescape(encodeURIComponent(t));for(var n=[],r=0;r<t.length;++r)n.push(t.charCodeAt(r));return n}var _3="6ba7b810-9dad-11d1-80b4-00c04fd430c8",b3="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Bc(t,n,r){function e(u,a,d,g){if(typeof u=="string"&&(u=E3(u)),typeof a=="string"&&(a=Lc(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+u.length);if(l.set(a),l.set(u,a.length),l=r(l),l[6]=l[6]&15|n,l[8]=l[8]&63|128,d){g=g||0;for(var _=0;_<16;++_)d[g+_]=l[_];return d}return ko(l)}try{e.name=t}catch{}return e.DNS=_3,e.URL=b3,e}function R3(t){if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=new Uint8Array(n.length);for(var r=0;r<n.length;++r)t[r]=n.charCodeAt(r)}return A3(S3(I3(t),t.length*8))}function A3(t){for(var n=[],r=t.length*32,e="0123456789abcdef",u=0;u<r;u+=8){var a=t[u>>5]>>>u%32&255,d=parseInt(e.charAt(a>>>4&15)+e.charAt(a&15),16);n.push(d)}return n}function Mc(t){return(t+64>>>9<<4)+14+1}function S3(t,n){t[n>>5]|=128<<n%32,t[Mc(n)-1]=n;for(var r=1732584193,e=-271733879,u=-1732584194,a=271733878,d=0;d<t.length;d+=16){var g=r,l=e,_=u,T=a;r=wn(r,e,u,a,t[d],7,-680876936),a=wn(a,r,e,u,t[d+1],12,-389564586),u=wn(u,a,r,e,t[d+2],17,606105819),e=wn(e,u,a,r,t[d+3],22,-1044525330),r=wn(r,e,u,a,t[d+4],7,-176418897),a=wn(a,r,e,u,t[d+5],12,1200080426),u=wn(u,a,r,e,t[d+6],17,-1473231341),e=wn(e,u,a,r,t[d+7],22,-45705983),r=wn(r,e,u,a,t[d+8],7,1770035416),a=wn(a,r,e,u,t[d+9],12,-1958414417),u=wn(u,a,r,e,t[d+10],17,-42063),e=wn(e,u,a,r,t[d+11],22,-1990404162),r=wn(r,e,u,a,t[d+12],7,1804603682),a=wn(a,r,e,u,t[d+13],12,-40341101),u=wn(u,a,r,e,t[d+14],17,-1502002290),e=wn(e,u,a,r,t[d+15],22,1236535329),r=En(r,e,u,a,t[d+1],5,-165796510),a=En(a,r,e,u,t[d+6],9,-1069501632),u=En(u,a,r,e,t[d+11],14,643717713),e=En(e,u,a,r,t[d],20,-373897302),r=En(r,e,u,a,t[d+5],5,-701558691),a=En(a,r,e,u,t[d+10],9,38016083),u=En(u,a,r,e,t[d+15],14,-660478335),e=En(e,u,a,r,t[d+4],20,-405537848),r=En(r,e,u,a,t[d+9],5,568446438),a=En(a,r,e,u,t[d+14],9,-1019803690),u=En(u,a,r,e,t[d+3],14,-187363961),e=En(e,u,a,r,t[d+8],20,1163531501),r=En(r,e,u,a,t[d+13],5,-1444681467),a=En(a,r,e,u,t[d+2],9,-51403784),u=En(u,a,r,e,t[d+7],14,1735328473),e=En(e,u,a,r,t[d+12],20,-1926607734),r=_n(r,e,u,a,t[d+5],4,-378558),a=_n(a,r,e,u,t[d+8],11,-2022574463),u=_n(u,a,r,e,t[d+11],16,1839030562),e=_n(e,u,a,r,t[d+14],23,-35309556),r=_n(r,e,u,a,t[d+1],4,-1530992060),a=_n(a,r,e,u,t[d+4],11,1272893353),u=_n(u,a,r,e,t[d+7],16,-155497632),e=_n(e,u,a,r,t[d+10],23,-1094730640),r=_n(r,e,u,a,t[d+13],4,681279174),a=_n(a,r,e,u,t[d],11,-358537222),u=_n(u,a,r,e,t[d+3],16,-722521979),e=_n(e,u,a,r,t[d+6],23,76029189),r=_n(r,e,u,a,t[d+9],4,-640364487),a=_n(a,r,e,u,t[d+12],11,-421815835),u=_n(u,a,r,e,t[d+15],16,530742520),e=_n(e,u,a,r,t[d+2],23,-995338651),r=bn(r,e,u,a,t[d],6,-198630844),a=bn(a,r,e,u,t[d+7],10,1126891415),u=bn(u,a,r,e,t[d+14],15,-1416354905),e=bn(e,u,a,r,t[d+5],21,-57434055),r=bn(r,e,u,a,t[d+12],6,1700485571),a=bn(a,r,e,u,t[d+3],10,-1894986606),u=bn(u,a,r,e,t[d+10],15,-1051523),e=bn(e,u,a,r,t[d+1],21,-2054922799),r=bn(r,e,u,a,t[d+8],6,1873313359),a=bn(a,r,e,u,t[d+15],10,-30611744),u=bn(u,a,r,e,t[d+6],15,-1560198380),e=bn(e,u,a,r,t[d+13],21,1309151649),r=bn(r,e,u,a,t[d+4],6,-145523070),a=bn(a,r,e,u,t[d+11],10,-1120210379),u=bn(u,a,r,e,t[d+2],15,718787259),e=bn(e,u,a,r,t[d+9],21,-343485551),r=Er(r,g),e=Er(e,l),u=Er(u,_),a=Er(a,T)}return[r,e,u,a]}function I3(t){if(t.length===0)return[];for(var n=t.length*8,r=new Uint32Array(Mc(n)),e=0;e<n;e+=8)r[e>>5]|=(t[e/8]&255)<<e%32;return r}function Er(t,n){var r=(t&65535)+(n&65535),e=(t>>16)+(n>>16)+(r>>16);return e<<16|r&65535}function O3(t,n){return t<<n|t>>>32-n}function Do(t,n,r,e,u,a){return Er(O3(Er(Er(n,t),Er(e,a)),u),r)}function wn(t,n,r,e,u,a,d){return Do(n&r|~n&e,t,n,u,a,d)}function En(t,n,r,e,u,a,d){return Do(n&e|r&~e,t,n,u,a,d)}function _n(t,n,r,e,u,a,d){return Do(n^r^e,t,n,u,a,d)}function bn(t,n,r,e,u,a,d){return Do(r^(n|~e),t,n,u,a,d)}var T3=Bc("v3",48,R3);function N3(t,n,r){t=t||{};var e=t.random||(t.rng||xc)();if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,n){r=r||0;for(var u=0;u<16;++u)n[r+u]=e[u];return n}return ko(e)}function x3(t,n,r,e){switch(t){case 0:return n&r^~n&e;case 1:return n^r^e;case 2:return n&r^n&e^r&e;case 3:return n^r^e}}function Qs(t,n){return t<<n|t>>>32-n}function C3(t){var n=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var e=unescape(encodeURIComponent(t));t=[];for(var u=0;u<e.length;++u)t.push(e.charCodeAt(u))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var a=t.length/4+2,d=Math.ceil(a/16),g=new Array(d),l=0;l<d;++l){for(var _=new Uint32Array(16),T=0;T<16;++T)_[T]=t[l*64+T*4]<<24|t[l*64+T*4+1]<<16|t[l*64+T*4+2]<<8|t[l*64+T*4+3];g[l]=_}g[d-1][14]=(t.length-1)*8/Math.pow(2,32),g[d-1][14]=Math.floor(g[d-1][14]),g[d-1][15]=(t.length-1)*8&4294967295;for(var C=0;C<d;++C){for(var N=new Uint32Array(80),x=0;x<16;++x)N[x]=g[C][x];for(var M=16;M<80;++M)N[M]=Qs(N[M-3]^N[M-8]^N[M-14]^N[M-16],1);for(var U=r[0],Y=r[1],W=r[2],J=r[3],Z=r[4],et=0;et<80;++et){var ht=Math.floor(et/20),ut=Qs(U,5)+x3(ht,Y,W,J)+Z+n[ht]+N[et]>>>0;Z=J,J=W,W=Qs(Y,30)>>>0,Y=U,U=ut}r[0]=r[0]+U>>>0,r[1]=r[1]+Y>>>0,r[2]=r[2]+W>>>0,r[3]=r[3]+J>>>0,r[4]=r[4]+Z>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var L3=Bc("v5",80,C3);const B3="00000000-0000-0000-0000-000000000000";function M3(t){if(!Mo(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}const kc=_s(Object.freeze(Object.defineProperty({__proto__:null,NIL:B3,parse:Lc,stringify:ko,v1:w3,v3:T3,v4:N3,v5:L3,validate:Mo,version:M3},Symbol.toStringTag,{value:"Module"})));var ta,Dc;function k3(){if(Dc)return ta;Dc=1;const t=kc.v4;return ta=function(r,e,u,a){if(typeof r!="string")throw new TypeError(r+" must be a string");a=a||{};const d=typeof a.version=="number"?a.version:2;if(d!==1&&d!==2)throw new TypeError(d+" must be 1 or 2");const g={method:r};if(d===2&&(g.jsonrpc="2.0"),e){if(typeof e!="object"&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");g.params=e}if(typeof u>"u"){const l=typeof a.generator=="function"?a.generator:function(){return t()};g.id=l(g,a)}else d===2&&u===null?a.notificationIdNull&&(g.id=null):g.id=u;return g},ta}var ea,Uc;function D3(){if(Uc)return ea;Uc=1;const t=kc.v4,n=k3(),r=function(e,u){if(!(this instanceof r))return new r(e,u);u||(u={}),this.options={reviver:typeof u.reviver<"u"?u.reviver:null,replacer:typeof u.replacer<"u"?u.replacer:null,generator:typeof u.generator<"u"?u.generator:function(){return t()},version:typeof u.version<"u"?u.version:2,notificationIdNull:typeof u.notificationIdNull=="boolean"?u.notificationIdNull:!1},this.callServer=e};return ea=r,r.prototype.request=function(e,u,a,d){const g=this;let l=null;const _=Array.isArray(e)&&typeof u=="function";if(this.options.version===1&&_)throw new TypeError("JSON-RPC 1.0 does not support batching");if(_||!_&&e&&typeof e=="object"&&typeof u=="function")d=u,l=e;else{typeof a=="function"&&(d=a,a=void 0);const N=typeof d=="function";try{l=n(e,u,a,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(x){if(N)return d(x);throw x}if(!N)return l}let C;try{C=JSON.stringify(l,this.options.replacer)}catch(N){return d(N)}return this.callServer(C,function(N,x){g._parseResponse(N,x,d)}),l},r.prototype._parseResponse=function(e,u,a){if(e){a(e);return}if(!u)return a();let d;try{d=JSON.parse(u,this.options.reviver)}catch(g){return a(g)}if(a.length===3)if(Array.isArray(d)){const g=function(_){return typeof _.error<"u"},l=function(_){return!g(_)};return a(null,d.filter(g),d.filter(l))}else return a(null,d.error,d.result);a(null,d)},ea}D3();var na={exports:{}},Pc;function U3(){return Pc||(Pc=1,(function(t){var n=Object.prototype.hasOwnProperty,r="~";function e(){}Object.create&&(e.prototype=Object.create(null),new e().__proto__||(r=!1));function u(l,_,T){this.fn=l,this.context=_,this.once=T||!1}function a(l,_,T,C,N){if(typeof T!="function")throw new TypeError("The listener must be a function");var x=new u(T,C||l,N),M=r?r+_:_;return l._events[M]?l._events[M].fn?l._events[M]=[l._events[M],x]:l._events[M].push(x):(l._events[M]=x,l._eventsCount++),l}function d(l,_){--l._eventsCount===0?l._events=new e:delete l._events[_]}function g(){this._events=new e,this._eventsCount=0}g.prototype.eventNames=function(){var _=[],T,C;if(this._eventsCount===0)return _;for(C in T=this._events)n.call(T,C)&&_.push(r?C.slice(1):C);return Object.getOwnPropertySymbols?_.concat(Object.getOwnPropertySymbols(T)):_},g.prototype.listeners=function(_){var T=r?r+_:_,C=this._events[T];if(!C)return[];if(C.fn)return[C.fn];for(var N=0,x=C.length,M=new Array(x);N<x;N++)M[N]=C[N].fn;return M},g.prototype.listenerCount=function(_){var T=r?r+_:_,C=this._events[T];return C?C.fn?1:C.length:0},g.prototype.emit=function(_,T,C,N,x,M){var U=r?r+_:_;if(!this._events[U])return!1;var Y=this._events[U],W=arguments.length,J,Z;if(Y.fn){switch(Y.once&&this.removeListener(_,Y.fn,void 0,!0),W){case 1:return Y.fn.call(Y.context),!0;case 2:return Y.fn.call(Y.context,T),!0;case 3:return Y.fn.call(Y.context,T,C),!0;case 4:return Y.fn.call(Y.context,T,C,N),!0;case 5:return Y.fn.call(Y.context,T,C,N,x),!0;case 6:return Y.fn.call(Y.context,T,C,N,x,M),!0}for(Z=1,J=new Array(W-1);Z<W;Z++)J[Z-1]=arguments[Z];Y.fn.apply(Y.context,J)}else{var et=Y.length,ht;for(Z=0;Z<et;Z++)switch(Y[Z].once&&this.removeListener(_,Y[Z].fn,void 0,!0),W){case 1:Y[Z].fn.call(Y[Z].context);break;case 2:Y[Z].fn.call(Y[Z].context,T);break;case 3:Y[Z].fn.call(Y[Z].context,T,C);break;case 4:Y[Z].fn.call(Y[Z].context,T,C,N);break;default:if(!J)for(ht=1,J=new Array(W-1);ht<W;ht++)J[ht-1]=arguments[ht];Y[Z].fn.apply(Y[Z].context,J)}}return!0},g.prototype.on=function(_,T,C){return a(this,_,T,C,!1)},g.prototype.once=function(_,T,C){return a(this,_,T,C,!0)},g.prototype.removeListener=function(_,T,C,N){var x=r?r+_:_;if(!this._events[x])return this;if(!T)return d(this,x),this;var M=this._events[x];if(M.fn)M.fn===T&&(!N||M.once)&&(!C||M.context===C)&&d(this,x);else{for(var U=0,Y=[],W=M.length;U<W;U++)(M[U].fn!==T||N&&!M[U].once||C&&M[U].context!==C)&&Y.push(M[U]);Y.length?this._events[x]=Y.length===1?Y[0]:Y:d(this,x)}return this},g.prototype.removeAllListeners=function(_){var T;return _?(T=r?r+_:_,this._events[T]&&d(this,T)):(this._events=new e,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prefixed=r,g.EventEmitter=g,t.exports=g})(na)),na.exports}U3();class Fc extends Su{constructor(n,r){super(),this.finished=!1,this.destroyed=!1,bu(n);const e=Is(r);if(this.iHash=n.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 u=this.blockLen,a=new Uint8Array(u);a.set(e.length>u?n.create().update(e).digest():e);for(let d=0;d<a.length;d++)a[d]^=54;this.iHash.update(a),this.oHash=n.create();for(let d=0;d<a.length;d++)a[d]^=106;this.oHash.update(a),Jr(a)}update(n){return mo(this),this.iHash.update(n),this}digestInto(n){mo(this),Lr(n,this.outputLen),this.finished=!0,this.iHash.digestInto(n),this.oHash.update(n),this.oHash.digestInto(n),this.destroy()}digest(){const n=new Uint8Array(this.oHash.outputLen);return this.digestInto(n),n}_cloneInto(n){n||(n=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:e,finished:u,destroyed:a,blockLen:d,outputLen:g}=this;return n=n,n.finished=u,n.destroyed=a,n.blockLen=d,n.outputLen=g,n.oHash=r._cloneInto(n.oHash),n.iHash=e._cloneInto(n.iHash),n}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Hc=(t,n,r)=>new Fc(t,n).update(r).digest();Hc.create=(t,n)=>new Fc(t,n);const Vc=(t,n)=>(t+(t>=0?n:-n)/Gc)/n;function P3(t,n,r){const[[e,u],[a,d]]=n,g=Vc(d*t,r),l=Vc(-u*t,r);let _=t-g*e-l*a,T=-g*u-l*d;const C=_<ur,N=T<ur;C&&(_=-_),N&&(T=-T);const x=Ii(Math.ceil(Du(r)/2))+si;if(_<ur||_>=x||T<ur||T>=x)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:C,k1:_,k2neg:N,k2:T}}function ra(t){if(!["compact","recovered","der"].includes(t))throw new Error('Signature format must be "compact", "recovered", or "der"');return t}function ia(t,n){const r={};for(let e of Object.keys(n))r[e]=t[e]===void 0?n[e]:t[e];return Mr(r.lowS,"lowS"),Mr(r.prehash,"prehash"),r.format!==void 0&&ra(r.format),r}class F3 extends Error{constructor(n=""){super(n)}}const ar={Err:F3,_tlv:{encode:(t,n)=>{const{Err:r}=ar;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length&1)throw new r("tlv.encode: unpadded data");const e=n.length/2,u=_o(e);if(u.length/2&128)throw new r("tlv.encode: long form length too big");const a=e>127?_o(u.length/2|128):"";return _o(t)+a+u+n},decode(t,n){const{Err:r}=ar;let e=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[e++]!==t)throw new r("tlv.decode: wrong tlv");const u=n[e++],a=!!(u&128);let d=0;if(!a)d=u;else{const l=u&127;if(!l)throw new r("tlv.decode(long): indefinite length not supported");if(l>4)throw new r("tlv.decode(long): byte length is too big");const _=n.subarray(e,e+l);if(_.length!==l)throw new r("tlv.decode: length bytes not complete");if(_[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const T of _)d=d<<8|T;if(e+=l,d<128)throw new r("tlv.decode(long): not minimal encoding")}const g=n.subarray(e,e+d);if(g.length!==d)throw new r("tlv.decode: wrong value length");return{v:g,l:n.subarray(e+d)}}},_int:{encode(t){const{Err:n}=ar;if(t<ur)throw new n("integer: negative integers are not allowed");let r=_o(t);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=ar;if(t[0]&128)throw new n("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return bo(t)}},toSig(t){const{Err:n,_int:r,_tlv:e}=ar,u=Ke("signature",t),{v:a,l:d}=e.decode(48,u);if(d.length)throw new n("invalid signature: left bytes after parsing");const{v:g,l}=e.decode(2,a),{v:_,l:T}=e.decode(2,l);if(T.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(g),s:r.decode(_)}},hexFromSig(t){const{_tlv:n,_int:r}=ar,e=n.encode(2,r.encode(t.r)),u=n.encode(2,r.encode(t.s)),a=e+u;return n.encode(48,a)}},ur=BigInt(0),si=BigInt(1),Gc=BigInt(2),Uo=BigInt(3),H3=BigInt(4);function ai(t,n){const{BYTES:r}=t;let e;if(typeof n=="bigint")e=n;else{let u=Ke("private key",n);try{e=t.fromBytes(u)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof n}`)}}if(!t.isValidNot0(e))throw new Error("invalid private key: out of range [1..N-1]");return e}function V3(t,n={}){const r=rc("weierstrass",t,n),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:d,n:g}=a;Oi(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:l}=n;if(l&&(!e.is0(a.a)||typeof l.beta!="bigint"||!Array.isArray(l.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const _=Yc(e,u);function T(){if(!e.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function C(wt,P,f){const{x:S,y:D}=P.toAffine(),z=e.toBytes(S);if(Mr(f,"isCompressed"),f){T();const q=!e.isOdd(D);return Xn(jc(q),z)}else return Xn(Uint8Array.of(4),z,e.toBytes(D))}function N(wt){Hn(wt,void 0,"Point");const{publicKey:P,publicKeyUncompressed:f}=_,S=wt.length,D=wt[0],z=wt.subarray(1);if(S===P&&(D===2||D===3)){const q=e.fromBytes(z);if(!e.isValid(q))throw new Error("bad point: is not on curve, wrong x");const nt=U(q);let ft;try{ft=e.sqrt(nt)}catch(b){const j=b instanceof Error?": "+b.message:"";throw new Error("bad point: is not on curve, sqrt error"+j)}T();const K=e.isOdd(ft);return(D&1)===1!==K&&(ft=e.neg(ft)),{x:q,y:ft}}else if(S===f&&D===4){const q=e.BYTES,nt=e.fromBytes(z.subarray(0,q)),ft=e.fromBytes(z.subarray(q,q*2));if(!Y(nt,ft))throw new Error("bad point: is not on curve");return{x:nt,y:ft}}else throw new Error(`bad point: got length ${S}, expected compressed=${P} or uncompressed=${f}`)}const x=n.toBytes||C,M=n.fromBytes||N;function U(wt){const P=e.sqr(wt),f=e.mul(P,wt);return e.add(e.add(f,e.mul(wt,a.a)),a.b)}function Y(wt,P){const f=e.sqr(P),S=U(wt);return e.eql(f,S)}if(!Y(a.Gx,a.Gy))throw new Error("bad curve params: generator point");const W=e.mul(e.pow(a.a,Uo),H3),J=e.mul(e.sqr(a.b),BigInt(27));if(e.is0(e.add(W,J)))throw new Error("bad curve params: a or b");function Z(wt,P,f=!1){if(!e.isValid(P)||f&&e.is0(P))throw new Error(`bad point coordinate ${wt}`);return P}function et(wt){if(!(wt instanceof st))throw new Error("ProjectivePoint expected")}function ht(wt){if(!l||!l.basises)throw new Error("no endo");return P3(wt,l.basises,u.ORDER)}const ut=Ro((wt,P)=>{const{X:f,Y:S,Z:D}=wt;if(e.eql(D,e.ONE))return{x:f,y:S};const z=wt.is0();P==null&&(P=z?e.ONE:e.inv(D));const q=e.mul(f,P),nt=e.mul(S,P),ft=e.mul(D,P);if(z)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ft,e.ONE))throw new Error("invZ was invalid");return{x:q,y:nt}}),At=Ro(wt=>{if(wt.is0()){if(n.allowInfinityPoint&&!e.is0(wt.Y))return;throw new Error("bad point: ZERO")}const{x:P,y:f}=wt.toAffine();if(!e.isValid(P)||!e.isValid(f))throw new Error("bad point: x or y not field elements");if(!Y(P,f))throw new Error("bad point: equation left != right");if(!wt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function Rt(wt,P,f,S,D){return f=new st(e.mul(f.X,wt),f.Y,f.Z),P=Ao(S,P),f=Ao(D,f),P.add(f)}class st{constructor(P,f,S){this.X=Z("x",P),this.Y=Z("y",f,!0),this.Z=Z("z",S),Object.freeze(this)}static CURVE(){return a}static fromAffine(P){const{x:f,y:S}=P||{};if(!P||!e.isValid(f)||!e.isValid(S))throw new Error("invalid affine point");if(P instanceof st)throw new Error("projective point not allowed");return e.is0(f)&&e.is0(S)?st.ZERO:new st(f,S,e.ONE)}static fromBytes(P){const f=st.fromAffine(M(Hn(P,void 0,"point")));return f.assertValidity(),f}static fromHex(P){return st.fromBytes(Ke("pointHex",P))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(P=8,f=!0){return gt.createCache(this,P),f||this.multiply(Uo),this}assertValidity(){At(this)}hasEvenY(){const{y:P}=this.toAffine();if(!e.isOdd)throw new Error("Field doesn't support isOdd");return!e.isOdd(P)}equals(P){et(P);const{X:f,Y:S,Z:D}=this,{X:z,Y:q,Z:nt}=P,ft=e.eql(e.mul(f,nt),e.mul(z,D)),K=e.eql(e.mul(S,nt),e.mul(q,D));return ft&&K}negate(){return new st(this.X,e.neg(this.Y),this.Z)}double(){const{a:P,b:f}=a,S=e.mul(f,Uo),{X:D,Y:z,Z:q}=this;let nt=e.ZERO,ft=e.ZERO,K=e.ZERO,h=e.mul(D,D),b=e.mul(z,z),j=e.mul(q,q),X=e.mul(D,z);return X=e.add(X,X),K=e.mul(D,q),K=e.add(K,K),nt=e.mul(P,K),ft=e.mul(S,j),ft=e.add(nt,ft),nt=e.sub(b,ft),ft=e.add(b,ft),ft=e.mul(nt,ft),nt=e.mul(X,nt),K=e.mul(S,K),j=e.mul(P,j),X=e.sub(h,j),X=e.mul(P,X),X=e.add(X,K),K=e.add(h,h),h=e.add(K,h),h=e.add(h,j),h=e.mul(h,X),ft=e.add(ft,h),j=e.mul(z,q),j=e.add(j,j),h=e.mul(j,X),nt=e.sub(nt,h),K=e.mul(j,b),K=e.add(K,K),K=e.add(K,K),new st(nt,ft,K)}add(P){et(P);const{X:f,Y:S,Z:D}=this,{X:z,Y:q,Z:nt}=P;let ft=e.ZERO,K=e.ZERO,h=e.ZERO;const b=a.a,j=e.mul(a.b,Uo);let X=e.mul(f,z),pt=e.mul(S,q),St=e.mul(D,nt),Ht=e.add(f,S),Zt=e.add(z,q);Ht=e.mul(Ht,Zt),Zt=e.add(X,pt),Ht=e.sub(Ht,Zt),Zt=e.add(f,D);let de=e.add(z,nt);return Zt=e.mul(Zt,de),de=e.add(X,St),Zt=e.sub(Zt,de),de=e.add(S,D),ft=e.add(q,nt),de=e.mul(de,ft),ft=e.add(pt,St),de=e.sub(de,ft),h=e.mul(b,Zt),ft=e.mul(j,St),h=e.add(ft,h),ft=e.sub(pt,h),h=e.add(pt,h),K=e.mul(ft,h),pt=e.add(X,X),pt=e.add(pt,X),St=e.mul(b,St),Zt=e.mul(j,Zt),pt=e.add(pt,St),St=e.sub(X,St),St=e.mul(b,St),Zt=e.add(Zt,St),X=e.mul(pt,Zt),K=e.add(K,X),X=e.mul(de,Zt),ft=e.mul(Ht,ft),ft=e.sub(ft,X),X=e.mul(Ht,pt),h=e.mul(de,h),h=e.add(h,X),new st(ft,K,h)}subtract(P){return this.add(P.negate())}is0(){return this.equals(st.ZERO)}multiply(P){const{endo:f}=n;if(!u.isValidNot0(P))throw new Error("invalid scalar: out of range");let S,D;const z=q=>gt.cached(this,q,nt=>Pr(st,nt));if(f){const{k1neg:q,k1:nt,k2neg:ft,k2:K}=ht(P),{p:h,f:b}=z(nt),{p:j,f:X}=z(K);D=b.add(X),S=Rt(f.beta,h,j,q,ft)}else{const{p:q,f:nt}=z(P);S=q,D=nt}return Pr(st,[S,D])[0]}multiplyUnsafe(P){const{endo:f}=n,S=this;if(!u.isValid(P))throw new Error("invalid scalar: out of range");if(P===ur||S.is0())return st.ZERO;if(P===si)return S;if(gt.hasCache(this))return this.multiply(P);if(f){const{k1neg:D,k1:z,k2neg:q,k2:nt}=ht(P),{p1:ft,p2:K}=c1(st,S,z,nt);return Rt(f.beta,ft,K,D,q)}else return gt.unsafe(S,P)}multiplyAndAddUnsafe(P,f,S){const D=this.multiplyUnsafe(f).add(P.multiplyUnsafe(S));return D.is0()?void 0:D}toAffine(P){return ut(this,P)}isTorsionFree(){const{isTorsionFree:P}=n;return d===si?!0:P?P(st,this):gt.unsafe(this,g).is0()}clearCofactor(){const{clearCofactor:P}=n;return d===si?this:P?P(st,this):this.multiplyUnsafe(d)}isSmallOrder(){return this.multiplyUnsafe(d).is0()}toBytes(P=!0){return Mr(P,"isCompressed"),this.assertValidity(),x(st,this,P)}toHex(P=!0){return Br(this.toBytes(P))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(P=!0){return this.toBytes(P)}_setWindowSize(P){this.precompute(P)}static normalizeZ(P){return Pr(st,P)}static msm(P,f){return ec(st,u,P,f)}static fromPrivateKey(P){return st.BASE.multiply(ai(u,P))}}st.BASE=new st(a.Gx,a.Gy,e.ONE),st.ZERO=new st(e.ZERO,e.ONE,e.ZERO),st.Fp=e,st.Fn=u;const ct=u.BITS,gt=new tc(st,n.endo?Math.ceil(ct/2):ct);return st.BASE.precompute(8),st}function jc(t){return Uint8Array.of(t?2:3)}function Yc(t,n){return{secretKey:n.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*n.BYTES}}function G3(t,n={}){const{Fn:r}=t,e=n.randomBytes||Os,u=Object.assign(Yc(t.Fp,r),{seed:Xu(r.ORDER)});function a(x){try{return!!ai(r,x)}catch{return!1}}function d(x,M){const{publicKey:U,publicKeyUncompressed:Y}=u;try{const W=x.length;return M===!0&&W!==U||M===!1&&W!==Y?!1:!!t.fromBytes(x)}catch{return!1}}function g(x=e(u.seed)){return s1(Hn(x,u.seed,"seed"),r.ORDER)}function l(x,M=!0){return t.BASE.multiply(ai(r,x)).toBytes(M)}function _(x){const M=g(x);return{secretKey:M,publicKey:l(M)}}function T(x){if(typeof x=="bigint")return!1;if(x instanceof t)return!0;const{secretKey:M,publicKey:U,publicKeyUncompressed:Y}=u;if(r.allowedLengths||M===U)return;const W=Ke("key",x).length;return W===U||W===Y}function C(x,M,U=!0){if(T(x)===!0)throw new Error("first arg must be private key");if(T(M)===!1)throw new Error("second arg must be public key");const Y=ai(r,x);return t.fromHex(M).multiply(Y).toBytes(U)}return Object.freeze({getPublicKey:l,getSharedSecret:C,keygen:_,Point:t,utils:{isValidSecretKey:a,isValidPublicKey:d,randomSecretKey:g,isValidPrivateKey:a,randomPrivateKey:g,normPrivateKeyToScalar:x=>ai(r,x),precompute(x=8,M=t.BASE){return M.precompute(x,!1)}},lengths:u})}function j3(t,n,r={}){bu(n),Oi(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const e=r.randomBytes||Os,u=r.hmac||((f,...S)=>Hc(n,f,Xn(...S))),{Fp:a,Fn:d}=t,{ORDER:g,BITS:l}=d,{keygen:_,getPublicKey:T,getSharedSecret:C,utils:N,lengths:x}=G3(t,r),M={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},U="compact";function Y(f){const S=g>>si;return f>S}function W(f,S){if(!d.isValidNot0(S))throw new Error(`invalid signature ${f}: out of range 1..Point.Fn.ORDER`);return S}function J(f,S){ra(S);const D=x.signature,z=S==="compact"?D:S==="recovered"?D+1:void 0;return Hn(f,z,`${S} signature`)}class Z{constructor(S,D,z){this.r=W("r",S),this.s=W("s",D),z!=null&&(this.recovery=z),Object.freeze(this)}static fromBytes(S,D=U){J(S,D);let z;if(D==="der"){const{r:K,s:h}=ar.toSig(Hn(S));return new Z(K,h)}D==="recovered"&&(z=S[0],D="compact",S=S.subarray(1));const q=d.BYTES,nt=S.subarray(0,q),ft=S.subarray(q,q*2);return new Z(d.fromBytes(nt),d.fromBytes(ft),z)}static fromHex(S,D){return this.fromBytes(go(S),D)}addRecoveryBit(S){return new Z(this.r,this.s,S)}recoverPublicKey(S){const D=a.ORDER,{r:z,s:q,recovery:nt}=this;if(nt==null||![0,1,2,3].includes(nt))throw new Error("recovery id invalid");if(g*Gc<D&&nt>1)throw new Error("recovery id is ambiguous for h>1 curve");const K=nt===2||nt===3?z+g:z;if(!a.isValid(K))throw new Error("recovery id 2 or 3 invalid");const h=a.toBytes(K),b=t.fromBytes(Xn(jc((nt&1)===0),h)),j=d.inv(K),X=ht(Ke("msgHash",S)),pt=d.create(-X*j),St=d.create(q*j),Ht=t.BASE.multiplyUnsafe(pt).add(b.multiplyUnsafe(St));if(Ht.is0())throw new Error("point at infinify");return Ht.assertValidity(),Ht}hasHighS(){return Y(this.s)}toBytes(S=U){if(ra(S),S==="der")return go(ar.hexFromSig(this));const D=d.toBytes(this.r),z=d.toBytes(this.s);if(S==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return Xn(Uint8Array.of(this.recovery),D,z)}return Xn(D,z)}toHex(S){return Br(this.toBytes(S))}assertValidity(){}static fromCompact(S){return Z.fromBytes(Ke("sig",S),"compact")}static fromDER(S){return Z.fromBytes(Ke("sig",S),"der")}normalizeS(){return this.hasHighS()?new Z(this.r,d.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Br(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Br(this.toBytes("compact"))}}const et=r.bits2int||function(S){if(S.length>8192)throw new Error("input is too large");const D=bo(S),z=S.length*8-l;return z>0?D>>BigInt(z):D},ht=r.bits2int_modN||function(S){return d.create(et(S))},ut=Ii(l);function At(f){return Ls("num < 2^"+l,f,ur,ut),d.toBytes(f)}function Rt(f,S){return Hn(f,void 0,"message"),S?Hn(n(f),void 0,"prehashed message"):f}function st(f,S,D){if(["recovered","canonical"].some(pt=>pt in D))throw new Error("sign() legacy options not supported");const{lowS:z,prehash:q,extraEntropy:nt}=ia(D,M);f=Rt(f,q);const ft=ht(f),K=ai(d,S),h=[At(K),At(ft)];if(nt!=null&&nt!==!1){const pt=nt===!0?e(x.secretKey):nt;h.push(Ke("extraEntropy",pt))}const b=Xn(...h),j=ft;function X(pt){const St=et(pt);if(!d.isValidNot0(St))return;const Ht=d.inv(St),Zt=t.BASE.multiply(St).toAffine(),de=d.create(Zt.x);if(de===ur)return;const ye=d.create(Ht*d.create(j+de*K));if(ye===ur)return;let ge=(Zt.x===de?0:2)|Number(Zt.y&si),Oe=ye;return z&&Y(ye)&&(Oe=d.neg(ye),ge^=1),new Z(de,Oe,ge)}return{seed:b,k2sig:X}}function ct(f,S,D={}){f=Ke("message",f);const{seed:z,k2sig:q}=st(f,S,D);return $d(n.outputLen,d.BYTES,u)(z,q)}function gt(f){let S;const D=typeof f=="string"||Ai(f),z=!D&&f!==null&&typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint";if(!D&&!z)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(z)S=new Z(f.r,f.s);else if(D){try{S=Z.fromBytes(Ke("sig",f),"der")}catch(q){if(!(q instanceof ar.Err))throw q}if(!S)try{S=Z.fromBytes(Ke("sig",f),"compact")}catch{return!1}}return S||!1}function wt(f,S,D,z={}){const{lowS:q,prehash:nt,format:ft}=ia(z,M);if(D=Ke("publicKey",D),S=Rt(Ke("message",S),nt),"strict"in z)throw new Error("options.strict was renamed to lowS");const K=ft===void 0?gt(f):Z.fromBytes(Ke("sig",f),ft);if(K===!1)return!1;try{const h=t.fromBytes(D);if(q&&K.hasHighS())return!1;const{r:b,s:j}=K,X=ht(S),pt=d.inv(j),St=d.create(X*pt),Ht=d.create(b*pt),Zt=t.BASE.multiplyUnsafe(St).add(h.multiplyUnsafe(Ht));return Zt.is0()?!1:d.create(Zt.x)===b}catch{return!1}}function P(f,S,D={}){const{prehash:z}=ia(D,M);return S=Rt(S,z),Z.fromBytes(f,"recovered").recoverPublicKey(S).toBytes()}return Object.freeze({keygen:_,getPublicKey:T,getSharedSecret:C,utils:N,lengths:x,Point:t,sign:ct,verify:wt,recoverPublicKey:P,Signature:Z,hash:n})}function Y3(t){const n={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp;let e=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(d=>Math.ceil(d/2)))):void 0;const u=Dr(n.n,{BITS:t.nBitLength,allowedLengths:e,modFromBytes:t.wrapPrivateKey}),a={Fp:r,Fn:u,allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes};return{CURVE:n,curveOpts:a}}function W3(t){const{CURVE:n,curveOpts:r}=Y3(t),e={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:n,curveOpts:r,hash:t.hash,ecdsaOpts:e}}function z3(t,n){const r=n.Point;return Object.assign({},n,{ProjectivePoint:r,CURVE:Object.assign({},t,Ku(r.Fn.ORDER,r.Fn.BITS))})}function K3(t){const{CURVE:n,curveOpts:r,hash:e,ecdsaOpts:u}=W3(t),a=V3(n,r),d=j3(a,e,u);return z3(t,d)}function Z3(t,n){const r=e=>K3({...t,hash:e});return{...r(n),create:r}}const oa={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},X3={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Wc=BigInt(2);function $3(t){const n=oa.p,r=BigInt(3),e=BigInt(6),u=BigInt(11),a=BigInt(22),d=BigInt(23),g=BigInt(44),l=BigInt(88),_=t*t*t%n,T=_*_*t%n,C=Ze(T,r,n)*T%n,N=Ze(C,r,n)*T%n,x=Ze(N,Wc,n)*_%n,M=Ze(x,u,n)*x%n,U=Ze(M,a,n)*M%n,Y=Ze(U,g,n)*U%n,W=Ze(Y,l,n)*Y%n,J=Ze(W,g,n)*U%n,Z=Ze(J,r,n)*T%n,et=Ze(Z,d,n)*M%n,ht=Ze(et,e,n)*_%n,ut=Ze(ht,Wc,n);if(!sa.eql(sa.sqr(ut),t))throw new Error("Cannot find square root");return ut}const sa=Dr(oa.p,{sqrt:$3}),q3=Z3({...oa,Fp:sa,lowS:!0,endo:X3},Lu);Ti.utils.randomPrivateKey,Ti.getPublicKey;function zc(t){try{return Ti.ExtendedPoint.fromHex(t),!0}catch{return!1}}const Kc=(t,n)=>Ti.sign(t,n.slice(0,32)),J3=Ti.verify,aa=t=>Ae.Buffer.isBuffer(t)?t:t instanceof Uint8Array?Ae.Buffer.from(t.buffer,t.byteOffset,t.byteLength):Ae.Buffer.from(t);class Zc{constructor(n){Object.assign(this,n)}encode(){return Ae.Buffer.from(Ws.serialize(Bi,this))}static decode(n){return Ws.deserialize(Bi,this,n)}static decodeUnchecked(n){return Ws.deserializeUnchecked(Bi,this,n)}}const Bi=new Map;var Xc;const $c=32,cr=32;function Q3(t){return t._bn!==void 0}let qc=1;class me extends Zc{constructor(n){if(super({}),this._bn=void 0,Q3(n))this._bn=n._bn;else{if(typeof n=="string"){const r=In.decode(n);if(r.length!=cr)throw new Error("Invalid public key input");this._bn=new cc(r)}else this._bn=new cc(n);if(this._bn.byteLength()>cr)throw new Error("Invalid public key input")}}static unique(){const n=new me(qc);return qc+=1,new me(n.toBuffer())}equals(n){return this._bn.eq(n._bn)}toBase58(){return In.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const n=this.toBuffer();return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}toBuffer(){const n=this._bn.toArrayLike(Ae.Buffer);if(n.length===cr)return n;const r=Ae.Buffer.alloc(32);return n.copy(r,32-n.length),r}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(n,r,e){const u=Ae.Buffer.concat([n.toBuffer(),Ae.Buffer.from(r),e.toBuffer()]),a=pc(u);return new me(a)}static createProgramAddressSync(n,r){let e=Ae.Buffer.alloc(0);n.forEach(function(a){if(a.length>$c)throw new TypeError("Max seed length exceeded");e=Ae.Buffer.concat([e,aa(a)])}),e=Ae.Buffer.concat([e,r.toBuffer(),Ae.Buffer.from("ProgramDerivedAddress")]);const u=pc(e);if(zc(u))throw new Error("Invalid seeds, address must fall off the curve");return new me(u)}static async createProgramAddress(n,r){return this.createProgramAddressSync(n,r)}static findProgramAddressSync(n,r){let e=255,u;for(;e!=0;){try{const a=n.concat(Ae.Buffer.from([e]));u=this.createProgramAddressSync(a,r)}catch(a){if(a instanceof TypeError)throw a;e--;continue}return[u,e]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(n,r){return this.findProgramAddressSync(n,r)}static isOnCurve(n){const r=new me(n);return zc(r.toBytes())}}Xc=me,me.default=new Xc("11111111111111111111111111111111"),Bi.set(me,{kind:"struct",fields:[["_bn","u256"]]}),new me("BPFLoader1111111111111111111111111111111111");const Hr=1232,Po=127,Mi=64;class ki{constructor(n,r){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=n,this.accountKeysFromLookups=r}keySegments(){const n=[this.staticAccountKeys];return this.accountKeysFromLookups&&(n.push(this.accountKeysFromLookups.writable),n.push(this.accountKeysFromLookups.readonly)),n}get(n){for(const r of this.keySegments()){if(n<r.length)return r[n];n-=r.length}}get length(){return this.keySegments().flat().length}compileInstructions(n){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const e=new Map;this.keySegments().flat().forEach((a,d)=>{e.set(a.toBase58(),d)});const u=a=>{const d=e.get(a.toBase58());if(d===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return d};return n.map(a=>({programIdIndex:u(a.programId),accountKeyIndexes:a.keys.map(d=>u(d.pubkey)),data:a.data}))}}const Se=(t="publicKey")=>dt.blob(32,t),tm=(t="signature")=>dt.blob(64,t),ui=(t="string")=>{const n=dt.struct([dt.u32("length"),dt.u32("lengthPadding"),dt.blob(dt.offset(dt.u32(),-8),"chars")],t),r=n.decode.bind(n),e=n.encode.bind(n),u=n;return u.decode=(a,d)=>r(a,d).chars.toString(),u.encode=(a,d,g)=>{const l={chars:Ae.Buffer.from(a,"utf8")};return e(l,d,g)},u.alloc=a=>dt.u32().span+dt.u32().span+Ae.Buffer.from(a,"utf8").length,u},em=(t="authorized")=>dt.struct([Se("staker"),Se("withdrawer")],t),nm=(t="lockup")=>dt.struct([dt.ns64("unixTimestamp"),dt.ns64("epoch"),Se("custodian")],t),rm=(t="voteInit")=>dt.struct([Se("nodePubkey"),Se("authorizedVoter"),Se("authorizedWithdrawer"),dt.u8("commission")],t),im=(t="voteAuthorizeWithSeedArgs")=>dt.struct([dt.u32("voteAuthorizationType"),Se("currentAuthorityDerivedKeyOwnerPubkey"),ui("currentAuthorityDerivedKeySeed"),Se("newAuthorized")],t);function Bn(t){let n=0,r=0;for(;;){let e=t.shift();if(n|=(e&127)<<r*7,r+=1,(e&128)===0)break}return n}function Mn(t,n){let r=n;for(;;){let e=r&127;if(r>>=7,r==0){t.push(e);break}else e|=128,t.push(e)}}function cn(t,n){if(!t)throw new Error(n||"Assertion failed")}class Fo{constructor(n,r){this.payer=void 0,this.keyMetaMap=void 0,this.payer=n,this.keyMetaMap=r}static compile(n,r){const e=new Map,u=d=>{const g=d.toBase58();let l=e.get(g);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},e.set(g,l)),l},a=u(r);a.isSigner=!0,a.isWritable=!0;for(const d of n){u(d.programId).isInvoked=!0;for(const g of d.keys){const l=u(g.pubkey);l.isSigner||=g.isSigner,l.isWritable||=g.isWritable}}return new Fo(r,e)}getMessageComponents(){const n=[...this.keyMetaMap.entries()];cn(n.length<=256,"Max static account keys length exceeded");const r=n.filter(([,l])=>l.isSigner&&l.isWritable),e=n.filter(([,l])=>l.isSigner&&!l.isWritable),u=n.filter(([,l])=>!l.isSigner&&l.isWritable),a=n.filter(([,l])=>!l.isSigner&&!l.isWritable),d={numRequiredSignatures:r.length+e.length,numReadonlySignedAccounts:e.length,numReadonlyUnsignedAccounts:a.length};{cn(r.length>0,"Expected at least one writable signer key");const[l]=r[0];cn(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const g=[...r.map(([l])=>new me(l)),...e.map(([l])=>new me(l)),...u.map(([l])=>new me(l)),...a.map(([l])=>new me(l))];return[d,g]}extractTableLookup(n){const[r,e]=this.drainKeysFoundInLookupTable(n.state.addresses,d=>!d.isSigner&&!d.isInvoked&&d.isWritable),[u,a]=this.drainKeysFoundInLookupTable(n.state.addresses,d=>!d.isSigner&&!d.isInvoked&&!d.isWritable);if(!(r.length===0&&u.length===0))return[{accountKey:n.key,writableIndexes:r,readonlyIndexes:u},{writable:e,readonly:a}]}drainKeysFoundInLookupTable(n,r){const e=new Array,u=new Array;for(const[a,d]of this.keyMetaMap.entries())if(r(d)){const g=new me(a),l=n.findIndex(_=>_.equals(g));l>=0&&(cn(l<256,"Max lookup table index exceeded"),e.push(l),u.push(g),this.keyMetaMap.delete(a))}return[e,u]}}const Jc="Reached end of buffer unexpectedly";function fr(t){if(t.length===0)throw new Error(Jc);return t.shift()}function kn(t,...n){const[r]=n;if(n.length===2?r+(n[1]??0)>t.length:r>=t.length)throw new Error(Jc);return t.splice(...n)}class Vr{constructor(n){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=n.header,this.accountKeys=n.accountKeys.map(r=>new me(r)),this.recentBlockhash=n.recentBlockhash,this.instructions=n.instructions,this.instructions.forEach(r=>this.indexToProgramIds.set(r.programIdIndex,this.accountKeys[r.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(n=>({programIdIndex:n.programIdIndex,accountKeyIndexes:n.accounts,data:In.decode(n.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new ki(this.staticAccountKeys)}static compile(n){const r=Fo.compile(n.instructions,n.payerKey),[e,u]=r.getMessageComponents(),d=new ki(u).compileInstructions(n.instructions).map(g=>({programIdIndex:g.programIdIndex,accounts:g.accountKeyIndexes,data:In.encode(g.data)}));return new Vr({header:e,accountKeys:u,recentBlockhash:n.recentBlockhash,instructions:d})}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures;if(n>=this.header.numRequiredSignatures){const e=n-r,a=this.accountKeys.length-r-this.header.numReadonlyUnsignedAccounts;return e<a}else{const e=r-this.header.numReadonlySignedAccounts;return n<e}}isProgramId(n){return this.indexToProgramIds.has(n)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((n,r)=>!this.isProgramId(r))}serialize(){const n=this.accountKeys.length;let r=[];Mn(r,n);const e=this.instructions.map(C=>{const{accounts:N,programIdIndex:x}=C,M=Array.from(In.decode(C.data));let U=[];Mn(U,N.length);let Y=[];return Mn(Y,M.length),{programIdIndex:x,keyIndicesCount:Ae.Buffer.from(U),keyIndices:N,dataLength:Ae.Buffer.from(Y),data:M}});let u=[];Mn(u,e.length);let a=Ae.Buffer.alloc(Hr);Ae.Buffer.from(u).copy(a);let d=u.length;e.forEach(C=>{const x=dt.struct([dt.u8("programIdIndex"),dt.blob(C.keyIndicesCount.length,"keyIndicesCount"),dt.seq(dt.u8("keyIndex"),C.keyIndices.length,"keyIndices"),dt.blob(C.dataLength.length,"dataLength"),dt.seq(dt.u8("userdatum"),C.data.length,"data")]).encode(C,a,d);d+=x}),a=a.slice(0,d);const g=dt.struct([dt.blob(1,"numRequiredSignatures"),dt.blob(1,"numReadonlySignedAccounts"),dt.blob(1,"numReadonlyUnsignedAccounts"),dt.blob(r.length,"keyCount"),dt.seq(Se("key"),n,"keys"),Se("recentBlockhash")]),l={numRequiredSignatures:Ae.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:Ae.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:Ae.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:Ae.Buffer.from(r),keys:this.accountKeys.map(C=>aa(C.toBytes())),recentBlockhash:In.decode(this.recentBlockhash)};let _=Ae.Buffer.alloc(2048);const T=g.encode(l,_);return a.copy(_,T),_.slice(0,T+a.length)}static from(n){let r=[...n];const e=fr(r);if(e!==(e&Po))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const u=fr(r),a=fr(r),d=Bn(r);let g=[];for(let N=0;N<d;N++){const x=kn(r,0,cr);g.push(new me(Ae.Buffer.from(x)))}const l=kn(r,0,cr),_=Bn(r);let T=[];for(let N=0;N<_;N++){const x=fr(r),M=Bn(r),U=kn(r,0,M),Y=Bn(r),W=kn(r,0,Y),J=In.encode(Ae.Buffer.from(W));T.push({programIdIndex:x,accounts:U,data:J})}const C={header:{numRequiredSignatures:e,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:a},recentBlockhash:In.encode(Ae.Buffer.from(l)),accountKeys:g,instructions:T};return new Vr(C)}}class Di{constructor(n){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=n.header,this.staticAccountKeys=n.staticAccountKeys,this.recentBlockhash=n.recentBlockhash,this.compiledInstructions=n.compiledInstructions,this.addressTableLookups=n.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let n=0;for(const r of this.addressTableLookups)n+=r.readonlyIndexes.length+r.writableIndexes.length;return n}getAccountKeys(n){let r;if(n&&"accountKeysFromLookups"in n&&n.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=n.accountKeysFromLookups.writable.length+n.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");r=n.accountKeysFromLookups}else if(n&&"addressLookupTableAccounts"in n&&n.addressLookupTableAccounts)r=this.resolveAddressTableLookups(n.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new ki(this.staticAccountKeys,r)}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures,e=this.staticAccountKeys.length;if(n>=e){const u=n-e,a=this.addressTableLookups.reduce((d,g)=>d+g.writableIndexes.length,0);return u<a}else if(n>=this.header.numRequiredSignatures){const u=n-r,d=e-r-this.header.numReadonlyUnsignedAccounts;return u<d}else{const u=r-this.header.numReadonlySignedAccounts;return n<u}}resolveAddressTableLookups(n){const r={writable:[],readonly:[]};for(const e of this.addressTableLookups){const u=n.find(a=>a.key.equals(e.accountKey));if(!u)throw new Error(`Failed to find address lookup table account for table key ${e.accountKey.toBase58()}`);for(const a of e.writableIndexes)if(a<u.state.addresses.length)r.writable.push(u.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${e.accountKey.toBase58()}`);for(const a of e.readonlyIndexes)if(a<u.state.addresses.length)r.readonly.push(u.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${e.accountKey.toBase58()}`)}return r}static compile(n){const r=Fo.compile(n.instructions,n.payerKey),e=new Array,u={writable:new Array,readonly:new Array},a=n.addressLookupTableAccounts||[];for(const T of a){const C=r.extractTableLookup(T);if(C!==void 0){const[N,{writable:x,readonly:M}]=C;e.push(N),u.writable.push(...x),u.readonly.push(...M)}}const[d,g]=r.getMessageComponents(),_=new ki(g,u).compileInstructions(n.instructions);return new Di({header:d,staticAccountKeys:g,recentBlockhash:n.recentBlockhash,compiledInstructions:_,addressTableLookups:e})}serialize(){const n=Array();Mn(n,this.staticAccountKeys.length);const r=this.serializeInstructions(),e=Array();Mn(e,this.compiledInstructions.length);const u=this.serializeAddressTableLookups(),a=Array();Mn(a,this.addressTableLookups.length);const d=dt.struct([dt.u8("prefix"),dt.struct([dt.u8("numRequiredSignatures"),dt.u8("numReadonlySignedAccounts"),dt.u8("numReadonlyUnsignedAccounts")],"header"),dt.blob(n.length,"staticAccountKeysLength"),dt.seq(Se(),this.staticAccountKeys.length,"staticAccountKeys"),Se("recentBlockhash"),dt.blob(e.length,"instructionsLength"),dt.blob(r.length,"serializedInstructions"),dt.blob(a.length,"addressTableLookupsLength"),dt.blob(u.length,"serializedAddressTableLookups")]),g=new Uint8Array(Hr),_=d.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(n),staticAccountKeys:this.staticAccountKeys.map(T=>T.toBytes()),recentBlockhash:In.decode(this.recentBlockhash),instructionsLength:new Uint8Array(e),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:u},g);return g.slice(0,_)}serializeInstructions(){let n=0;const r=new Uint8Array(Hr);for(const e of this.compiledInstructions){const u=Array();Mn(u,e.accountKeyIndexes.length);const a=Array();Mn(a,e.data.length);const d=dt.struct([dt.u8("programIdIndex"),dt.blob(u.length,"encodedAccountKeyIndexesLength"),dt.seq(dt.u8(),e.accountKeyIndexes.length,"accountKeyIndexes"),dt.blob(a.length,"encodedDataLength"),dt.blob(e.data.length,"data")]);n+=d.encode({programIdIndex:e.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(u),accountKeyIndexes:e.accountKeyIndexes,encodedDataLength:new Uint8Array(a),data:e.data},r,n)}return r.slice(0,n)}serializeAddressTableLookups(){let n=0;const r=new Uint8Array(Hr);for(const e of this.addressTableLookups){const u=Array();Mn(u,e.writableIndexes.length);const a=Array();Mn(a,e.readonlyIndexes.length);const d=dt.struct([Se("accountKey"),dt.blob(u.length,"encodedWritableIndexesLength"),dt.seq(dt.u8(),e.writableIndexes.length,"writableIndexes"),dt.blob(a.length,"encodedReadonlyIndexesLength"),dt.seq(dt.u8(),e.readonlyIndexes.length,"readonlyIndexes")]);n+=d.encode({accountKey:e.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(u),writableIndexes:e.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(a),readonlyIndexes:e.readonlyIndexes},r,n)}return r.slice(0,n)}static deserialize(n){let r=[...n];const e=fr(r),u=e&Po;cn(e!==u,"Expected versioned message but received legacy message");const a=u;cn(a===0,`Expected versioned message with version 0 but found version ${a}`);const d={numRequiredSignatures:fr(r),numReadonlySignedAccounts:fr(r),numReadonlyUnsignedAccounts:fr(r)},g=[],l=Bn(r);for(let M=0;M<l;M++)g.push(new me(kn(r,0,cr)));const _=In.encode(kn(r,0,cr)),T=Bn(r),C=[];for(let M=0;M<T;M++){const U=fr(r),Y=Bn(r),W=kn(r,0,Y),J=Bn(r),Z=new Uint8Array(kn(r,0,J));C.push({programIdIndex:U,accountKeyIndexes:W,data:Z})}const N=Bn(r),x=[];for(let M=0;M<N;M++){const U=new me(kn(r,0,cr)),Y=Bn(r),W=kn(r,0,Y),J=Bn(r),Z=kn(r,0,J);x.push({accountKey:U,writableIndexes:W,readonlyIndexes:Z})}return new Di({header:d,staticAccountKeys:g,recentBlockhash:_,compiledInstructions:C,addressTableLookups:x})}}const ua={deserializeMessageVersion(t){const n=t[0],r=n&Po;return r===n?"legacy":r},deserialize:t=>{const n=ua.deserializeMessageVersion(t);if(n==="legacy")return Vr.from(t);if(n===0)return Di.deserialize(t);throw new Error(`Transaction message version ${n} deserialization is not supported`)}},om=Ae.Buffer.alloc(Mi).fill(0);class ca{constructor(n){this.keys=void 0,this.programId=void 0,this.data=Ae.Buffer.alloc(0),this.programId=n.programId,this.keys=n.keys,n.data&&(this.data=n.data)}toJSON(){return{keys:this.keys.map(({pubkey:n,isSigner:r,isWritable:e})=>({pubkey:n.toJSON(),isSigner:r,isWritable:e})),programId:this.programId.toJSON(),data:[...this.data]}}}class Ho{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(n){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,!!n)if(n.feePayer&&(this.feePayer=n.feePayer),n.signatures&&(this.signatures=n.signatures),Object.prototype.hasOwnProperty.call(n,"nonceInfo")){const{minContextSlot:r,nonceInfo:e}=n;this.minNonceContextSlot=r,this.nonceInfo=e}else if(Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")){const{blockhash:r,lastValidBlockHeight:e}=n;this.recentBlockhash=r,this.lastValidBlockHeight=e}else{const{recentBlockhash:r,nonceInfo:e}=n;e&&(this.nonceInfo=e),this.recentBlockhash=r}}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(n=>n.toJSON()),signers:this.signatures.map(({publicKey:n})=>n.toJSON())}}add(...n){if(n.length===0)throw new Error("No instructions");return n.forEach(r=>{"instructions"in r?this.instructions=this.instructions.concat(r.instructions):"data"in r&&"programId"in r&&"keys"in r?this.instructions.push(r):this.instructions.push(new ca(r))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let n,r;if(this.nonceInfo?(n=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?r=[this.nonceInfo.nonceInstruction,...this.instructions]:r=this.instructions):(n=this.recentBlockhash,r=this.instructions),!n)throw new Error("Transaction recentBlockhash required");r.length<1&&console.warn("No instructions provided");let e;if(this.feePayer)e=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)e=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let U=0;U<r.length;U++)if(r[U].programId===void 0)throw new Error(`Transaction instruction index ${U} has undefined program id`);const u=[],a=[];r.forEach(U=>{U.keys.forEach(W=>{a.push({...W})});const Y=U.programId.toString();u.includes(Y)||u.push(Y)}),u.forEach(U=>{a.push({pubkey:new me(U),isSigner:!1,isWritable:!1})});const d=[];a.forEach(U=>{const Y=U.pubkey.toString(),W=d.findIndex(J=>J.pubkey.toString()===Y);W>-1?(d[W].isWritable=d[W].isWritable||U.isWritable,d[W].isSigner=d[W].isSigner||U.isSigner):d.push(U)}),d.sort(function(U,Y){if(U.isSigner!==Y.isSigner)return U.isSigner?-1:1;if(U.isWritable!==Y.isWritable)return U.isWritable?-1:1;const W={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return U.pubkey.toBase58().localeCompare(Y.pubkey.toBase58(),"en",W)});const g=d.findIndex(U=>U.pubkey.equals(e));if(g>-1){const[U]=d.splice(g,1);U.isSigner=!0,U.isWritable=!0,d.unshift(U)}else d.unshift({pubkey:e,isSigner:!0,isWritable:!0});for(const U of this.signatures){const Y=d.findIndex(W=>W.pubkey.equals(U.publicKey));if(Y>-1)d[Y].isSigner||(d[Y].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: ${U.publicKey.toString()}`)}let l=0,_=0,T=0;const C=[],N=[];d.forEach(({pubkey:U,isSigner:Y,isWritable:W})=>{Y?(C.push(U.toString()),l+=1,W||(_+=1)):(N.push(U.toString()),W||(T+=1))});const x=C.concat(N),M=r.map(U=>{const{data:Y,programId:W}=U;return{programIdIndex:x.indexOf(W.toString()),accounts:U.keys.map(J=>x.indexOf(J.pubkey.toString())),data:In.encode(Y)}});return M.forEach(U=>{cn(U.programIdIndex>=0),U.accounts.forEach(Y=>cn(Y>=0))}),new Vr({header:{numRequiredSignatures:l,numReadonlySignedAccounts:_,numReadonlyUnsignedAccounts:T},accountKeys:x,recentBlockhash:n,instructions:M})}_compile(){const n=this.compileMessage(),r=n.accountKeys.slice(0,n.header.numRequiredSignatures);return this.signatures.length===r.length&&this.signatures.every((u,a)=>r[a].equals(u.publicKey))||(this.signatures=r.map(e=>({signature:null,publicKey:e}))),n}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(n){return(await n.getFeeForMessage(this.compileMessage())).value}setSigners(...n){if(n.length===0)throw new Error("No signers");const r=new Set;this.signatures=n.filter(e=>{const u=e.toString();return r.has(u)?!1:(r.add(u),!0)}).map(e=>({signature:null,publicKey:e}))}sign(...n){if(n.length===0)throw new Error("No signers");const r=new Set,e=[];for(const a of n){const d=a.publicKey.toString();r.has(d)||(r.add(d),e.push(a))}this.signatures=e.map(a=>({signature:null,publicKey:a.publicKey}));const u=this._compile();this._partialSign(u,...e)}partialSign(...n){if(n.length===0)throw new Error("No signers");const r=new Set,e=[];for(const a of n){const d=a.publicKey.toString();r.has(d)||(r.add(d),e.push(a))}const u=this._compile();this._partialSign(u,...e)}_partialSign(n,...r){const e=n.serialize();r.forEach(u=>{const a=Kc(e,u.secretKey);this._addSignature(u.publicKey,aa(a))})}addSignature(n,r){this._compile(),this._addSignature(n,r)}_addSignature(n,r){cn(r.length===64);const e=this.signatures.findIndex(u=>n.equals(u.publicKey));if(e<0)throw new Error(`unknown signer: ${n.toString()}`);this.signatures[e].signature=Ae.Buffer.from(r)}verifySignatures(n=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),n)}_getMessageSignednessErrors(n,r){const e={};for(const{signature:u,publicKey:a}of this.signatures)u===null?r&&(e.missing||=[]).push(a):J3(u,n,a.toBytes())||(e.invalid||=[]).push(a);return e.invalid||e.missing?e:void 0}serialize(n){const{requireAllSignatures:r,verifySignatures:e}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},n),u=this.serializeMessage();if(e){const a=this._getMessageSignednessErrors(u,r);if(a){let d="Signature verification failed.";throw a.invalid&&(d+=`
|
|
6
|
-
Invalid signature for public key${a.invalid.length===1?"":"(s)"} [\`${a.invalid.map(g=>g.toBase58()).join("`, `")}\`].`),a.missing&&(
|
|
7
|
-
Missing signature for public key${a.missing.length===1?"":"(s)"} [\`${a.missing.map(g=>g.toBase58()).join("`, `")}\`].`),new Error(d)}}return this._serialize(u)}_serialize(n){const{signatures:r}=this,e=[];Mn(e,r.length);const u=e.length+r.length*64+n.length,a=Ae.Buffer.alloc(u);return cn(r.length<256),Ae.Buffer.from(e).copy(a,0),r.forEach(({signature:d},g)=>{d!==null&&(cn(d.length===64,"signature has invalid length"),Ae.Buffer.from(d).copy(a,e.length+g*64))}),n.copy(a,e.length+r.length*64),cn(a.length<=Hr,`Transaction too large: ${a.length} > ${Hr}`),a}get keys(){return cn(this.instructions.length===1),this.instructions[0].keys.map(n=>n.pubkey)}get programId(){return cn(this.instructions.length===1),this.instructions[0].programId}get data(){return cn(this.instructions.length===1),this.instructions[0].data}static from(n){let r=[...n];const e=Bn(r);let u=[];for(let a=0;a<e;a++){const d=kn(r,0,Mi);u.push(In.encode(Ae.Buffer.from(d)))}return Ho.populate(Vr.from(r),u)}static populate(n,r=[]){const e=new Ho;return e.recentBlockhash=n.recentBlockhash,n.header.numRequiredSignatures>0&&(e.feePayer=n.accountKeys[0]),r.forEach((u,a)=>{const d={signature:u==In.encode(om)?null:In.decode(u),publicKey:n.accountKeys[a]};e.signatures.push(d)}),n.instructions.forEach(u=>{const a=u.accounts.map(d=>{const g=n.accountKeys[d];return{pubkey:g,isSigner:e.signatures.some(l=>l.publicKey.toString()===g.toString())||n.isAccountSigner(d),isWritable:n.isAccountWritable(d)}});e.instructions.push(new ca({keys:a,programId:n.accountKeys[u.programIdIndex],data:In.decode(u.data)}))}),e._message=n,e._json=e.toJSON(),e}}class fa{get version(){return this.message.version}constructor(n,r){if(this.signatures=void 0,this.message=void 0,r!==void 0)cn(r.length===n.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=r;else{const e=[];for(let u=0;u<n.header.numRequiredSignatures;u++)e.push(new Uint8Array(Mi));this.signatures=e}this.message=n}serialize(){const n=this.message.serialize(),r=Array();Mn(r,this.signatures.length);const e=dt.struct([dt.blob(r.length,"encodedSignaturesLength"),dt.seq(tm(),this.signatures.length,"signatures"),dt.blob(n.length,"serializedMessage")]),u=new Uint8Array(2048),a=e.encode({encodedSignaturesLength:new Uint8Array(r),signatures:this.signatures,serializedMessage:n},u);return u.slice(0,a)}static deserialize(n){let r=[...n];const e=[],u=Bn(r);for(let d=0;d<u;d++)e.push(new Uint8Array(kn(r,0,Mi)));const a=ua.deserialize(new Uint8Array(r));return new fa(a,e)}sign(n){const r=this.message.serialize(),e=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const u of n){const a=e.findIndex(d=>d.equals(u.publicKey));cn(a>=0,`Cannot sign with non signer key ${u.publicKey.toBase58()}`),this.signatures[a]=Kc(r,u.secretKey)}}addSignature(n,r){cn(r.byteLength===64,"Signature must be 64 bytes long");const u=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(a=>a.equals(n));cn(u>=0,`Can not add signature; \`${n.toBase58()}\` is not required to sign this transaction`),this.signatures[u]=r}}new me("SysvarC1ock11111111111111111111111111111111"),new me("SysvarEpochSchedu1e111111111111111111111111"),new me("Sysvar1nstructions1111111111111111111111111"),new me("SysvarRecentB1ockHashes11111111111111111111"),new me("SysvarRent111111111111111111111111111111111"),new me("SysvarRewards111111111111111111111111111111"),new me("SysvarS1otHashes111111111111111111111111111"),new me("SysvarS1otHistory11111111111111111111111111"),new me("SysvarStakeHistory1111111111111111111111111");const Qc=dt.nu64("lamportsPerSignature");dt.struct([dt.u32("version"),dt.u32("state"),Se("authorizedPubkey"),Se("nonce"),dt.struct([Qc],"feeCalculator")]).span;function ci(t){const n=dt.blob(8,t),r=n.decode.bind(n),e=n.encode.bind(n),u=n,a=u3();return u.decode=(d,g)=>{const l=r(d,g);return a.decode(l)},u.encode=(d,g,l)=>{const _=a.encode(d);return e(_,g,l)},u}Object.freeze({Create:{index:0,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports"),dt.ns64("space"),Se("programId")])},Assign:{index:1,layout:dt.struct([dt.u32("instruction"),Se("programId")])},Transfer:{index:2,layout:dt.struct([dt.u32("instruction"),ci("lamports")])},CreateWithSeed:{index:3,layout:dt.struct([dt.u32("instruction"),Se("base"),ui("seed"),dt.ns64("lamports"),dt.ns64("space"),Se("programId")])},AdvanceNonceAccount:{index:4,layout:dt.struct([dt.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:dt.struct([dt.u32("instruction"),Se("authorized")])},AuthorizeNonceAccount:{index:7,layout:dt.struct([dt.u32("instruction"),Se("authorized")])},Allocate:{index:8,layout:dt.struct([dt.u32("instruction"),dt.ns64("space")])},AllocateWithSeed:{index:9,layout:dt.struct([dt.u32("instruction"),Se("base"),ui("seed"),dt.ns64("space"),Se("programId")])},AssignWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),Se("base"),ui("seed"),Se("programId")])},TransferWithSeed:{index:11,layout:dt.struct([dt.u32("instruction"),ci("lamports"),ui("seed"),Se("programId")])},UpgradeNonceAccount:{index:12,layout:dt.struct([dt.u32("instruction")])}}),new me("11111111111111111111111111111111"),new me("BPFLoader2111111111111111111111111111111111"),dt.struct([dt.u32("typeIndex"),ci("deactivationSlot"),dt.nu64("lastExtendedSlot"),dt.u8("lastExtendedStartIndex"),dt.u8(),dt.seq(Se(),dt.offset(dt.u8(),-1),"authority")]);const Xe=Li(Ks(me),Jt(),t=>new me(t)),tf=Zs([Jt(),Ye("base64")]),la=Li(Ks(Ae.Buffer),tf,t=>Ae.Buffer.from(t[0],"base64"));function ef(t){return On([Ft({jsonrpc:Ye("2.0"),id:Jt(),result:t}),Ft({jsonrpc:Ye("2.0"),id:Jt(),error:Ft({code:oi(),message:Jt(),data:fe(v3())})})])}const sm=ef(oi());function Fe(t){return Li(ef(t),sm,n=>"error"in n?n:{...n,result:xi(n.result,t)})}function Gn(t){return Fe(Ft({context:Ft({slot:It()}),value:t}))}function Vo(t){return Ft({context:Ft({slot:It()}),value:t})}const am=Ft({foundation:It(),foundationTerm:It(),initial:It(),taper:It(),terminal:It()});Fe(ie(oe(Ft({epoch:It(),effectiveSlot:It(),amount:It(),postBalance:It(),commission:fe(oe(It()))}))));const um=ie(Ft({slot:It(),prioritizationFee:It()})),cm=Ft({total:It(),validator:It(),foundation:It(),epoch:It()}),fm=Ft({epoch:It(),slotIndex:It(),slotsInEpoch:It(),absoluteSlot:It(),blockHeight:fe(It()),transactionCount:fe(It())}),lm=Ft({slotsPerEpoch:It(),leaderScheduleSlotOffset:It(),warmup:Jn(),firstNormalEpoch:It(),firstNormalSlot:It()}),dm=Nc(Jt(),ie(It())),Gr=oe(On([Ft({}),Jt()])),hm=Ft({err:Gr}),pm=Ye("receivedSignature");Ft({"solana-core":Jt(),"feature-set":fe(It())});const vm=Ft({program:Jt(),programId:Xe,parsed:oi()}),mm=Ft({programId:Xe,accounts:ie(Xe),data:Jt()});Gn(Ft({err:oe(On([Ft({}),Jt()])),logs:oe(ie(Jt())),accounts:fe(oe(ie(oe(Ft({executable:Jn(),owner:Jt(),lamports:It(),data:ie(Jt()),rentEpoch:fe(It())}))))),unitsConsumed:fe(It()),returnData:fe(oe(Ft({programId:Jt(),data:Zs([Jt(),Ye("base64")])}))),innerInstructions:fe(oe(ie(Ft({index:It(),instructions:ie(On([vm,mm]))}))))})),Gn(Ft({byIdentity:Nc(Jt(),ie(It())),range:Ft({firstSlot:It(),lastSlot:It()})})),Fe(am),Fe(cm),Fe(um),Fe(fm),Fe(lm),Fe(dm),Fe(It()),Gn(Ft({total:It(),circulating:It(),nonCirculating:It(),nonCirculatingAccounts:ie(Xe)}));const gm=Ft({amount:Jt(),uiAmount:oe(It()),decimals:It(),uiAmountString:fe(Jt())});Gn(ie(Ft({address:Xe,amount:Jt(),uiAmount:oe(It()),decimals:It(),uiAmountString:fe(Jt())}))),Gn(ie(Ft({pubkey:Xe,account:Ft({executable:Jn(),owner:Xe,lamports:It(),data:la,rentEpoch:It()})})));const da=Ft({program:Jt(),parsed:oi(),space:It()});Gn(ie(Ft({pubkey:Xe,account:Ft({executable:Jn(),owner:Xe,lamports:It(),data:da,rentEpoch:It()})}))),Gn(ie(Ft({lamports:It(),address:Xe})));const ha=Ft({executable:Jn(),owner:Xe,lamports:It(),data:la,rentEpoch:It()});Ft({pubkey:Xe,account:ha});const ym=Li(On([Ks(Ae.Buffer),da]),On([tf,da]),t=>Array.isArray(t)?xi(t,la):t),wm=Ft({executable:Jn(),owner:Xe,lamports:It(),data:ym,rentEpoch:It()});Ft({pubkey:Xe,account:wm}),Ft({state:On([Ye("active"),Ye("inactive"),Ye("activating"),Ye("deactivating")]),active:It(),inactive:It()}),Fe(ie(Ft({signature:Jt(),slot:It(),err:Gr,memo:oe(Jt()),blockTime:fe(oe(It()))}))),Fe(ie(Ft({signature:Jt(),slot:It(),err:Gr,memo:oe(Jt()),blockTime:fe(oe(It()))}))),Ft({subscription:It(),result:Vo(ha)});const Em=Ft({pubkey:Xe,account:ha});Ft({subscription:It(),result:Vo(Em)});const _m=Ft({parent:It(),slot:It(),root:It()});Ft({subscription:It(),result:_m});const bm=On([Ft({type:On([Ye("firstShredReceived"),Ye("completed"),Ye("optimisticConfirmation"),Ye("root")]),slot:It(),timestamp:It()}),Ft({type:Ye("createdBank"),parent:It(),slot:It(),timestamp:It()}),Ft({type:Ye("frozen"),slot:It(),timestamp:It(),stats:Ft({numTransactionEntries:It(),numSuccessfulTransactions:It(),numFailedTransactions:It(),maxTransactionsPerEntry:It()})}),Ft({type:Ye("dead"),slot:It(),timestamp:It(),err:Jt()})]);Ft({subscription:It(),result:bm}),Ft({subscription:It(),result:Vo(On([hm,pm]))}),Ft({subscription:It(),result:It()}),Ft({pubkey:Jt(),gossip:oe(Jt()),tpu:oe(Jt()),rpc:oe(Jt()),version:oe(Jt())});const nf=Ft({votePubkey:Jt(),nodePubkey:Jt(),activatedStake:It(),epochVoteAccount:Jn(),epochCredits:ie(Zs([It(),It(),It()])),commission:It(),lastVote:It(),rootSlot:oe(It())});Fe(Ft({current:ie(nf),delinquent:ie(nf)}));const Rm=On([Ye("processed"),Ye("confirmed"),Ye("finalized")]),Am=Ft({slot:It(),confirmations:oe(It()),err:Gr,confirmationStatus:fe(Rm)});Gn(ie(oe(Am))),Fe(It());const rf=Ft({accountKey:Xe,writableIndexes:ie(It()),readonlyIndexes:ie(It())}),pa=Ft({signatures:ie(Jt()),message:Ft({accountKeys:ie(Jt()),header:Ft({numRequiredSignatures:It(),numReadonlySignedAccounts:It(),numReadonlyUnsignedAccounts:It()}),instructions:ie(Ft({accounts:ie(It()),data:Jt(),programIdIndex:It()})),recentBlockhash:Jt(),addressTableLookups:fe(ie(rf))})}),of=Ft({pubkey:Xe,signer:Jn(),writable:Jn(),source:fe(On([Ye("transaction"),Ye("lookupTable")]))}),sf=Ft({accountKeys:ie(of),signatures:ie(Jt())}),af=Ft({parsed:oi(),program:Jt(),programId:Xe}),uf=Ft({accounts:ie(Xe),data:Jt(),programId:Xe}),Sm=On([uf,af]),Im=On([Ft({parsed:oi(),program:Jt(),programId:Jt()}),Ft({accounts:ie(Jt()),data:Jt(),programId:Jt()})]),cf=Li(Sm,Im,t=>"accounts"in t?xi(t,uf):xi(t,af)),ff=Ft({signatures:ie(Jt()),message:Ft({accountKeys:ie(of),instructions:ie(cf),recentBlockhash:Jt(),addressTableLookups:fe(oe(ie(rf)))})}),Go=Ft({accountIndex:It(),mint:Jt(),owner:fe(Jt()),programId:fe(Jt()),uiTokenAmount:gm}),lf=Ft({writable:ie(Xe),readonly:ie(Xe)}),jo=Ft({err:Gr,fee:It(),innerInstructions:fe(oe(ie(Ft({index:It(),instructions:ie(Ft({accounts:ie(It()),data:Jt(),programIdIndex:It()}))})))),preBalances:ie(It()),postBalances:ie(It()),logMessages:fe(oe(ie(Jt()))),preTokenBalances:fe(oe(ie(Go))),postTokenBalances:fe(oe(ie(Go))),loadedAddresses:fe(lf),computeUnitsConsumed:fe(It()),costUnits:fe(It())}),va=Ft({err:Gr,fee:It(),innerInstructions:fe(oe(ie(Ft({index:It(),instructions:ie(cf)})))),preBalances:ie(It()),postBalances:ie(It()),logMessages:fe(oe(ie(Jt()))),preTokenBalances:fe(oe(ie(Go))),postTokenBalances:fe(oe(ie(Go))),loadedAddresses:fe(lf),computeUnitsConsumed:fe(It()),costUnits:fe(It())}),fi=On([Ye(0),Ye("legacy")]),jr=Ft({pubkey:Jt(),lamports:It(),postBalance:oe(It()),rewardType:oe(Jt()),commission:fe(oe(It()))});Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),transactions:ie(Ft({transaction:pa,meta:oe(jo),version:fe(fi)})),rewards:fe(ie(jr)),blockTime:oe(It()),blockHeight:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),rewards:fe(ie(jr)),blockTime:oe(It()),blockHeight:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),transactions:ie(Ft({transaction:sf,meta:oe(jo),version:fe(fi)})),rewards:fe(ie(jr)),blockTime:oe(It()),blockHeight:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),transactions:ie(Ft({transaction:ff,meta:oe(va),version:fe(fi)})),rewards:fe(ie(jr)),blockTime:oe(It()),blockHeight:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),transactions:ie(Ft({transaction:sf,meta:oe(va),version:fe(fi)})),rewards:fe(ie(jr)),blockTime:oe(It()),blockHeight:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),rewards:fe(ie(jr)),blockTime:oe(It()),blockHeight:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),transactions:ie(Ft({transaction:pa,meta:oe(jo)})),rewards:fe(ie(jr)),blockTime:oe(It())}))),Fe(oe(Ft({blockhash:Jt(),previousBlockhash:Jt(),parentSlot:It(),signatures:ie(Jt()),blockTime:oe(It())}))),Fe(oe(Ft({slot:It(),meta:oe(jo),blockTime:fe(oe(It())),transaction:pa,version:fe(fi)}))),Fe(oe(Ft({slot:It(),transaction:ff,meta:oe(va),blockTime:fe(oe(It())),version:fe(fi)}))),Gn(Ft({blockhash:Jt(),lastValidBlockHeight:It()})),Gn(Jn());const Om=Ft({slot:It(),numTransactions:It(),numSlots:It(),samplePeriodSecs:It()});Fe(ie(Om)),Gn(oe(Ft({feeCalculator:Ft({lamportsPerSignature:It()})}))),Fe(Jt()),Fe(Jt());const Tm=Ft({err:Gr,logs:ie(Jt()),signature:Jt()});Ft({result:Vo(Tm),subscription:It()}),Object.freeze({CreateLookupTable:{index:0,layout:dt.struct([dt.u32("instruction"),ci("recentSlot"),dt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:dt.struct([dt.u32("instruction")])},ExtendLookupTable:{index:2,layout:dt.struct([dt.u32("instruction"),ci(),dt.seq(Se(),dt.offset(dt.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:dt.struct([dt.u32("instruction")])},CloseLookupTable:{index:4,layout:dt.struct([dt.u32("instruction")])}}),new me("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:dt.struct([dt.u8("instruction"),dt.u32("units"),dt.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:dt.struct([dt.u8("instruction"),dt.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:dt.struct([dt.u8("instruction"),dt.u32("units")])},SetComputeUnitPrice:{index:3,layout:dt.struct([dt.u8("instruction"),ci("microLamports")])}}),new me("ComputeBudget111111111111111111111111111111"),dt.struct([dt.u8("numSignatures"),dt.u8("padding"),dt.u16("signatureOffset"),dt.u16("signatureInstructionIndex"),dt.u16("publicKeyOffset"),dt.u16("publicKeyInstructionIndex"),dt.u16("messageDataOffset"),dt.u16("messageDataSize"),dt.u16("messageInstructionIndex")]),new me("Ed25519SigVerify111111111111111111111111111"),q3.utils.isValidPrivateKey,dt.struct([dt.u8("numSignatures"),dt.u16("signatureOffset"),dt.u8("signatureInstructionIndex"),dt.u16("ethAddressOffset"),dt.u8("ethAddressInstructionIndex"),dt.u16("messageDataOffset"),dt.u16("messageDataSize"),dt.u8("messageInstructionIndex"),dt.blob(20,"ethAddress"),dt.blob(64,"signature"),dt.u8("recoveryId")]),new me("KeccakSecp256k11111111111111111111111111111");var df;new me("StakeConfig11111111111111111111111111111111");class ma{constructor(n,r,e){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=n,this.epoch=r,this.custodian=e}}df=ma,ma.default=new df(0,0,me.default),Object.freeze({Initialize:{index:0,layout:dt.struct([dt.u32("instruction"),em(),nm()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Se("newAuthorized"),dt.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:dt.struct([dt.u32("instruction")])},Split:{index:3,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},Withdraw:{index:4,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},Deactivate:{index:5,layout:dt.struct([dt.u32("instruction")])},Merge:{index:7,layout:dt.struct([dt.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:dt.struct([dt.u32("instruction"),Se("newAuthorized"),dt.u32("stakeAuthorizationType"),ui("authoritySeed"),Se("authorityOwner")])}}),new me("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:dt.struct([dt.u32("instruction"),rm()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Se("newAuthorized"),dt.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:dt.struct([dt.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),im()])}}),new me("Vote111111111111111111111111111111111111111"),new me("Va1idator1nfo111111111111111111111111111111"),Ft({name:Jt(),website:fe(Jt()),details:fe(Jt()),iconUrl:fe(Jt()),keybaseUsername:fe(Jt())}),new me("Vote111111111111111111111111111111111111111"),dt.struct([Se("nodePubkey"),Se("authorizedWithdrawer"),dt.u8("commission"),dt.nu64(),dt.seq(dt.struct([dt.nu64("slot"),dt.u32("confirmationCount")]),dt.offset(dt.u32(),-8),"votes"),dt.u8("rootSlotValid"),dt.nu64("rootSlot"),dt.nu64(),dt.seq(dt.struct([dt.nu64("epoch"),Se("authorizedVoter")]),dt.offset(dt.u32(),-8),"authorizedVoters"),dt.struct([dt.seq(dt.struct([Se("authorizedPubkey"),dt.nu64("epochOfLastAuthorizedSwitch"),dt.nu64("targetEpoch")]),32,"buf"),dt.nu64("idx"),dt.u8("isEmpty")],"priorVoters"),dt.nu64(),dt.seq(dt.struct([dt.nu64("epoch"),dt.nu64("credits"),dt.nu64("prevCredits")]),dt.offset(dt.u32(),-8),"epochCredits"),dt.struct([dt.nu64("slot"),dt.nu64("timestamp")],"lastTimestamp")]);const Nm=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:Qc,Lockup:ma,MAX_SEED_LENGTH:$c,Message:Vr,MessageAccountKeys:ki,MessageV0:Di,PACKET_DATA_SIZE:Hr,PUBLIC_KEY_LENGTH:cr,PublicKey:me,SIGNATURE_LENGTH_IN_BYTES:Mi,SOLANA_SCHEMA:Bi,Struct:Zc,Transaction:Ho,TransactionInstruction:ca,VERSION_PREFIX_MASK:Po,VersionedMessage:ua,VersionedTransaction:fa},Symbol.toStringTag,{value:"Module"}));function xm(t){if(t.length>=255)throw new TypeError("Alphabet too long");const n=new Uint8Array(256);for(let _=0;_<n.length;_++)n[_]=255;for(let _=0;_<t.length;_++){const T=t.charAt(_),C=T.charCodeAt(0);if(n[C]!==255)throw new TypeError(T+" is ambiguous");n[C]=_}const r=t.length,e=t.charAt(0),u=Math.log(r)/Math.log(256),a=Math.log(256)/Math.log(r);function d(_){if(_ instanceof Uint8Array||(ArrayBuffer.isView(_)?_=new Uint8Array(_.buffer,_.byteOffset,_.byteLength):Array.isArray(_)&&(_=Uint8Array.from(_))),!(_ instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(_.length===0)return"";let T=0,C=0,N=0;const x=_.length;for(;N!==x&&_[N]===0;)N++,T++;const M=(x-N)*a+1>>>0,U=new Uint8Array(M);for(;N!==x;){let J=_[N],Z=0;for(let et=M-1;(J!==0||Z<C)&&et!==-1;et--,Z++)J+=256*U[et]>>>0,U[et]=J%r>>>0,J=J/r>>>0;if(J!==0)throw new Error("Non-zero carry");C=Z,N++}let Y=M-C;for(;Y!==M&&U[Y]===0;)Y++;let W=e.repeat(T);for(;Y<M;++Y)W+=t.charAt(U[Y]);return W}function g(_){if(typeof _!="string")throw new TypeError("Expected String");if(_.length===0)return new Uint8Array;let T=0,C=0,N=0;for(;_[T]===e;)C++,T++;const x=(_.length-T)*u+1>>>0,M=new Uint8Array(x);for(;T<_.length;){const J=_.charCodeAt(T);if(J>255)return;let Z=n[J];if(Z===255)return;let et=0;for(let ht=x-1;(Z!==0||et<N)&&ht!==-1;ht--,et++)Z+=r*M[ht]>>>0,M[ht]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");N=et,T++}let U=x-N;for(;U!==x&&M[U]===0;)U++;const Y=new Uint8Array(C+(x-U));let W=C;for(;U!==x;)Y[W++]=M[U++];return Y}function l(_){const T=g(_);if(T)return T;throw new Error("Non-base"+r+" character")}return{encode:d,decodeUnsafe:g,decode:l}}var Cm="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Lm=xm(Cm),Yo=Nm,_r=Lm;var ga={exports:{}},hf;function Bm(){return hf||(hf=1,(function(t){var n=(function(){var r=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function d(l,_){if(!a[l]){a[l]={};for(var T=0;T<l.length;T++)a[l][l.charAt(T)]=T}return a[l][_]}var g={compressToBase64:function(l){if(l==null)return"";var _=g._compress(l,6,function(T){return e.charAt(T)});switch(_.length%4){default:case 0:return _;case 1:return _+"===";case 2:return _+"==";case 3:return _+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:g._decompress(l.length,32,function(_){return d(e,l.charAt(_))})},compressToUTF16:function(l){return l==null?"":g._compress(l,15,function(_){return r(_+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:g._decompress(l.length,16384,function(_){return l.charCodeAt(_)-32})},compressToUint8Array:function(l){for(var _=g.compress(l),T=new Uint8Array(_.length*2),C=0,N=_.length;C<N;C++){var x=_.charCodeAt(C);T[C*2]=x>>>8,T[C*2+1]=x%256}return T},decompressFromUint8Array:function(l){if(l==null)return g.decompress(l);for(var _=new Array(l.length/2),T=0,C=_.length;T<C;T++)_[T]=l[T*2]*256+l[T*2+1];var N=[];return _.forEach(function(x){N.push(r(x))}),g.decompress(N.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":g._compress(l,6,function(_){return u.charAt(_)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),g._decompress(l.length,32,function(_){return d(u,l.charAt(_))}))},compress:function(l){return g._compress(l,16,function(_){return r(_)})},_compress:function(l,_,T){if(l==null)return"";var C,N,x={},M={},U="",Y="",W="",J=2,Z=3,et=2,ht=[],ut=0,At=0,Rt;for(Rt=0;Rt<l.length;Rt+=1)if(U=l.charAt(Rt),Object.prototype.hasOwnProperty.call(x,U)||(x[U]=Z++,M[U]=!0),Y=W+U,Object.prototype.hasOwnProperty.call(x,Y))W=Y;else{if(Object.prototype.hasOwnProperty.call(M,W)){if(W.charCodeAt(0)<256){for(C=0;C<et;C++)ut=ut<<1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++;for(N=W.charCodeAt(0),C=0;C<8;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1}else{for(N=1,C=0;C<et;C++)ut=ut<<1|N,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=0;for(N=W.charCodeAt(0),C=0;C<16;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1}J--,J==0&&(J=Math.pow(2,et),et++),delete M[W]}else for(N=x[W],C=0;C<et;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1;J--,J==0&&(J=Math.pow(2,et),et++),x[Y]=Z++,W=String(U)}if(W!==""){if(Object.prototype.hasOwnProperty.call(M,W)){if(W.charCodeAt(0)<256){for(C=0;C<et;C++)ut=ut<<1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++;for(N=W.charCodeAt(0),C=0;C<8;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1}else{for(N=1,C=0;C<et;C++)ut=ut<<1|N,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=0;for(N=W.charCodeAt(0),C=0;C<16;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1}J--,J==0&&(J=Math.pow(2,et),et++),delete M[W]}else for(N=x[W],C=0;C<et;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1;J--,J==0&&(J=Math.pow(2,et),et++)}for(N=2,C=0;C<et;C++)ut=ut<<1|N&1,At==_-1?(At=0,ht.push(T(ut)),ut=0):At++,N=N>>1;for(;;)if(ut=ut<<1,At==_-1){ht.push(T(ut));break}else At++;return ht.join("")},decompress:function(l){return l==null?"":l==""?null:g._decompress(l.length,32768,function(_){return l.charCodeAt(_)})},_decompress:function(l,_,T){var C=[],N=4,x=4,M=3,U="",Y=[],W,J,Z,et,ht,ut,At,Rt={val:T(0),position:_,index:1};for(W=0;W<3;W+=1)C[W]=W;for(Z=0,ht=Math.pow(2,2),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=T(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;switch(Z){case 0:for(Z=0,ht=Math.pow(2,8),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=T(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;At=r(Z);break;case 1:for(Z=0,ht=Math.pow(2,16),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=T(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;At=r(Z);break;case 2:return""}for(C[3]=At,J=At,Y.push(At);;){if(Rt.index>l)return"";for(Z=0,ht=Math.pow(2,M),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=T(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;switch(At=Z){case 0:for(Z=0,ht=Math.pow(2,8),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=T(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;C[x++]=r(Z),At=x-1,N--;break;case 1:for(Z=0,ht=Math.pow(2,16),ut=1;ut!=ht;)et=Rt.val&Rt.position,Rt.position>>=1,Rt.position==0&&(Rt.position=_,Rt.val=T(Rt.index++)),Z|=(et>0?1:0)*ut,ut<<=1;C[x++]=r(Z),At=x-1,N--;break;case 2:return Y.join("")}if(N==0&&(N=Math.pow(2,M),M++),C[At])U=C[At];else if(At===x)U=J+J.charAt(0);else return null;Y.push(U),C[x++]=J+U.charAt(0),N--,J=U,N==0&&(N=Math.pow(2,M),M++)}}};return g})();t!=null?t.exports=n:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return n})})(ga)),ga.exports}var Mm=Bm();const Rn=Es(Mm);var ya=(t=>(t.USD="USD",t.AED="AED",t.AFN="AFN",t.ALL="ALL",t.AMD="AMD",t.ANG="ANG",t.AOA="AOA",t.ARS="ARS",t.AUD="AUD",t.AWG="AWG",t.AZN="AZN",t.BAM="BAM",t.BBD="BBD",t.BDT="BDT",t.BGN="BGN",t.BHD="BHD",t.BIF="BIF",t.BMD="BMD",t.BND="BND",t.BOB="BOB",t.BRL="BRL",t.BSD="BSD",t.BTN="BTN",t.BWP="BWP",t.BYN="BYN",t.BZD="BZD",t.CAD="CAD",t.CHF="CHF",t.CLF="CLF",t.CLP="CLP",t.CNY="CNY",t.COP="COP",t.CRC="CRC",t.CUP="CUP",t.CVE="CVE",t.CZK="CZK",t.DJF="DJF",t.DKK="DKK",t.DOP="DOP",t.DZD="DZD",t.EGP="EGP",t.ETB="ETB",t.EUR="EUR",t.FJD="FJD",t.GBP="GBP",t.GEL="GEL",t.GHS="GHS",t.GMD="GMD",t.GNF="GNF",t.GTQ="GTQ",t.GYD="GYD",t.HKD="HKD",t.HNL="HNL",t.HTG="HTG",t.HUF="HUF",t.IDR="IDR",t.ILS="ILS",t.INR="INR",t.IQD="IQD",t.IRR="IRR",t.ISK="ISK",t.JMD="JMD",t.JOD="JOD",t.JPY="JPY",t.KES="KES",t.KGS="KGS",t.KHR="KHR",t.KMF="KMF",t.KRW="KRW",t.KWD="KWD",t.KYD="KYD",t.KZT="KZT",t.LAK="LAK",t.LBP="LBP",t.LKR="LKR",t.LRD="LRD",t.LSL="LSL",t.LYD="LYD",t.MAD="MAD",t.MDL="MDL",t.MGA="MGA",t.MKD="MKD",t.MMK="MMK",t.MNT="MNT",t.MOP="MOP",t.MRU="MRU",t.MUR="MUR",t.MWK="MWK",t.MVR="MVR",t.MXN="MXN",t.MYR="MYR",t.MZN="MZN",t.NAD="NAD",t.NGN="NGN",t.NIO="NIO",t.NOK="NOK",t.NPR="NPR",t.NZD="NZD",t.OMR="OMR",t.PAB="PAB",t.PEN="PEN",t.PGK="PGK",t.PHP="PHP",t.PKR="PKR",t.PLN="PLN",t.PYG="PYG",t.QAR="QAR",t.RON="RON",t.RSD="RSD",t.RWF="RWF",t.SAR="SAR",t.SCR="SCR",t.SDG="SDG",t.SEK="SEK",t.SGD="SGD",t.SLE="SLE",t.SLL="SLL",t.SOS="SOS",t.SRD="SRD",t.STN="STN",t.SVC="SVC",t.SYP="SYP",t.SZL="SZL",t.THB="THB",t.TJS="TJS",t.TMT="TMT",t.TND="TND",t.TOP="TOP",t.TRY="TRY",t.TTD="TTD",t.TWD="TWD",t.TZS="TZS",t.UAH="UAH",t.UGX="UGX",t.UYU="UYU",t.UZS="UZS",t.VND="VND",t.VUV="VUV",t.WST="WST",t.XAF="XAF",t.XCD="XCD",t.XOF="XOF",t.XPF="XPF",t.YER="YER",t.ZAR="ZAR",t.ZMW="ZMW",t.ZWL="ZWL",t.CDF="CDF",t.ERN="ERN",t.FKP="FKP",t.KPW="KPW",t.RUB="RUB",t.SBD="SBD",t.SHP="SHP",t.SSP="SSP",t.VES="VES",t))(ya||{});const km={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"},pf={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function Dm(t){return t in pf}const vf={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function Um(t){return t in vf}const Pm=new Set(["CLF"]),Fm=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),Hm=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function Vm(t){return Pm.has(t)?4:Fm.has(t)?3:Hm.has(t)?0:2}function Gm(t,n){return t.currency===n}function jm(t){return{base:t.to,rate:1/t.rate,to:t.base}}var Ym={269:function(t,n,r){r.r(n),r.d(n,{ERROR_API_KEY_EXPIRED:function(){return ws},ERROR_API_KEY_INVALID:function(){return ys},ERROR_API_KEY_MISSING:function(){return gs},ERROR_BAD_REQUEST_FORMAT:function(){return gd},ERROR_BAD_RESPONSE_FORMAT:function(){return $a},ERROR_CLIENT_TIMEOUT:function(){return Ka},ERROR_CSP_BLOCK:function(){return qa},ERROR_FORBIDDEN_ENDPOINT:function(){return B0},ERROR_FORBIDDEN_HEADER:function(){return bd},ERROR_FORBIDDEN_ORIGIN:function(){return _d},ERROR_GENERAL_SERVER_FAILURE:function(){return yd},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return L0},ERROR_INTEGRATION_FAILURE:function(){return M0},ERROR_INVALID_ENDPOINT:function(){return Ja},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return P0},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return U0},ERROR_NETWORK_ABORT:function(){return Xa},ERROR_NETWORK_CONNECTION:function(){return Za},ERROR_NETWORK_RESTRICTED:function(){return D0},ERROR_RATE_LIMIT:function(){return Ed},ERROR_SERVER_TIMEOUT:function(){return wd},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return x0},ERROR_TOKEN_EXPIRED:function(){return dy},ERROR_TOKEN_INVALID:function(){return ly},ERROR_TOKEN_MISSING:function(){return fy},ERROR_UNSUPPORTED_VERSION:function(){return C0},ERROR_WRONG_REGION:function(){return N0},default:function(){return hy},defaultEndpoint:function(){return us},defaultTlsEndpoint:function(){return cs},load:function(){return hl},makeBotdModule:function(){return Q8},makeConsoleDebugModule:function(){return uy},makeIdentificationModule:function(){return oy},makeLatencyReportModule:function(){return ay},makeRemoteDebugModule:function(){return cy},makeValidationModule:function(){return sy}});var e=r(635);function u(i,s){return new Promise((function(o){return setTimeout(o,i,s)}))}function a(i){return!!i&&typeof i.then=="function"}function d(i,s){try{var o=i();a(o)?o.then((function(c){return s(!0,c)}),(function(c){return s(!1,c)})):s(!0,o)}catch(c){s(!1,c)}}function g(i,s,o){return o===void 0&&(o=16),(0,e.sH)(this,void 0,void 0,(function(){var c,p,y,w;return(0,e.YH)(this,(function(E){switch(E.label){case 0:c=Array(i.length),p=Date.now(),y=0,E.label=1;case 1:return y<i.length?(c[y]=s(i[y],y),(w=Date.now())>=p+o?(p=w,[4,new Promise((function(v){var I=new MessageChannel;I.port1.onmessage=function(){return v()},I.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:E.sent(),E.label=3;case 3:return++y,[3,1];case 4:return[2,c]}}))}))}function l(i){return i.then(void 0,(function(){})),i}function _(i){return parseInt(i)}function T(i){return parseFloat(i)}function C(i,s){return typeof i=="number"&&isNaN(i)?s:i}function N(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function x(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,y=65535&i[1],w=s[0]>>>16,E=65535&s[0],v=s[1]>>>16,I=0,B=0,L=0,$=0;L+=($+=y+(65535&s[1]))>>>16,$&=65535,B+=(L+=p+v)>>>16,L&=65535,I+=(B+=c+E)>>>16,B&=65535,I+=o+w,I&=65535,i[0]=I<<16|B,i[1]=L<<16|$}function M(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,y=65535&i[1],w=s[0]>>>16,E=65535&s[0],v=s[1]>>>16,I=65535&s[1],B=0,L=0,$=0,Q=0;$+=(Q+=y*I)>>>16,Q&=65535,L+=($+=p*I)>>>16,$&=65535,L+=($+=y*v)>>>16,$&=65535,B+=(L+=c*I)>>>16,L&=65535,B+=(L+=p*v)>>>16,L&=65535,B+=(L+=y*E)>>>16,L&=65535,B+=o*I+c*v+p*E+y*w,B&=65535,i[0]=B<<16|L,i[1]=$<<16|Q}function U(i,s){var o=i[0];(s%=64)==32?(i[0]=i[1],i[1]=o):s<32?(i[0]=o<<s|i[1]>>>32-s,i[1]=i[1]<<s|o>>>32-s):(s-=32,i[0]=i[1]<<s|o>>>32-s,i[1]=o<<s|i[1]>>>32-s)}function Y(i,s){(s%=64)!=0&&(s<32?(i[0]=i[1]>>>32-s,i[1]=i[1]<<s):(i[0]=i[1]<<s-32,i[1]=0))}function W(i,s){i[0]^=s[0],i[1]^=s[1]}var J=[4283543511,3981806797],Z=[3301882366,444984403];function et(i){var s=[0,i[0]>>>1];W(i,s),M(i,J),s[1]=i[0]>>>1,W(i,s),M(i,Z),s[1]=i[0]>>>1,W(i,s)}var ht=[2277735313,289559509],ut=[1291169091,658871167],At=[0,5],Rt=[0,1390208809],st=[0,944331445];function ct(i){return typeof i!="function"}function gt(i,s,o,c){var p=Object.keys(i).filter((function(w){return!(function(E,v){for(var I=0,B=E.length;I<B;++I)if(E[I]===v)return!0;return!1})(o,w)})),y=l(g(p,(function(w){return(function(E,v){var I=l(new Promise((function(B){var L=Date.now();d(E.bind(null,v),(function(){for(var $=[],Q=0;Q<arguments.length;Q++)$[Q]=arguments[Q];var tt=Date.now()-L;if(!$[0])return B((function(){return{error:$[1],duration:tt}}));var rt=$[1];if(ct(rt))return B((function(){return{value:rt,duration:tt}}));B((function(){return new Promise((function(at){var mt=Date.now();d(rt,(function(){for(var bt=[],vt=0;vt<arguments.length;vt++)bt[vt]=arguments[vt];var _t=tt+Date.now()-mt;if(!bt[0])return at({error:bt[1],duration:_t});at({value:bt[1],duration:_t})}))}))}))}))})));return function(){return I.then((function(B){return B()}))}})(i[w],s)}),c));return function(){return(0,e.sH)(this,void 0,void 0,(function(){var w,E,v,I;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return[4,y];case 1:return[4,g(B.sent(),(function(L){return l(L())}),c)];case 2:return w=B.sent(),[4,Promise.all(w)];case 3:for(E=B.sent(),v={},I=0;I<p.length;++I)v[p[I]]=E[I];return[2,v]}}))}))}}function wt(i,s){var o=function(c){return ct(c)?s(c):function(){var p=c();return a(p)?p.then(s):s(p)}};return function(c){var p=i(c);return a(p)?p.then(o):o(p)}}function P(){var i=window,s=navigator;return N(["MSCSSMatrix"in i,"msSetImmediate"in i,"msIndexedDB"in i,"msMaxTouchPoints"in s,"msPointerEnabled"in s])>=4}function f(){var i=window,s=navigator;return N(["msWriteProfilerMark"in i,"MSStream"in i,"msLaunchUri"in s,"msSaveBlob"in s])>=3&&!P()}function S(){var i=window,s=navigator;return N(["webkitPersistentStorage"in s,"webkitTemporaryStorage"in s,(s.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in i,"BatteryManager"in i,"webkitMediaStream"in i,"webkitSpeechGrammar"in i])>=5}function D(){var i=window;return N(["ApplePayError"in i,"CSSPrimitiveValue"in i,"Counter"in i,navigator.vendor.indexOf("Apple")===0,"RGBColor"in i,"WebKitMediaKeys"in i])>=4}function z(){var i=window,s=i.HTMLElement,o=i.Document;return N(["safari"in i,!("ongestureend"in i),!("TouchEvent"in i),!("orientation"in i),s&&!("autocapitalize"in s.prototype),o&&"pointerLockElement"in o.prototype])>=4}function q(){var i,s,o=window;return N(["buildID"in navigator,"MozAppearance"in((s=(i=document.documentElement)===null||i===void 0?void 0:i.style)!==null&&s!==void 0?s:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4}function nt(){var i=document;return i.fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||null}function ft(){var i=S(),s=q(),o=window,c=navigator,p="connection";return i?N([!("SharedWorker"in o),c[p]&&"ontypechange"in c[p],!("sinkId"in new Audio)])>=2:!!s&&N(["onorientationchange"in o,"orientation"in o,/android/i.test(c.appVersion)])>=2}function K(){var i=navigator,s=window,o=Audio.prototype,c=s.visualViewport;return N(["srLatency"in o,"srChannelCount"in o,"devicePosture"in i,c&&"segments"in c,"getTextInformation"in Image.prototype])>=3}function h(){var i=window,s=i.OfflineAudioContext||i.webkitOfflineAudioContext;if(!s)return-2;if(D()&&!z()&&!(function(){var I=window;return N(["DOMRectList"in I,"RTCPeerConnectionIceEvent"in I,"SVGGeometryElement"in I,"ontransitioncancel"in I])>=3})())return-1;var o=new s(1,5e3,44100),c=o.createOscillator();c.type="triangle",c.frequency.value=1e4;var p=o.createDynamicsCompressor();p.threshold.value=-50,p.knee.value=40,p.ratio.value=12,p.attack.value=0,p.release.value=.25,c.connect(p),p.connect(o.destination),c.start(0);var y=(function(I){var B=function(){};return[new Promise((function(L,$){var Q=!1,tt=0,rt=0;I.oncomplete=function(bt){return L(bt.renderedBuffer)};var at=function(){setTimeout((function(){return $(b("timeout"))}),Math.min(500,rt+5e3-Date.now()))},mt=function(){try{var bt=I.startRendering();switch(a(bt)&&l(bt),I.state){case"running":rt=Date.now(),Q&&at();break;case"suspended":document.hidden||tt++,Q&&tt>=3?$(b("suspended")):setTimeout(mt,500)}}catch(vt){$(vt)}};mt(),B=function(){Q||(Q=!0,rt>0&&at())}})),B]})(o),w=y[0],E=y[1],v=l(w.then((function(I){return(function(B){for(var L=0,$=0;$<B.length;++$)L+=Math.abs(B[$]);return L})(I.getChannelData(0).subarray(4500))}),(function(I){if(I.name==="timeout"||I.name==="suspended")return-3;throw I})));return function(){return E(),v}}function b(i){var s=new Error(i);return s.name=i,s}function j(i,s,o){var c,p,y;return o===void 0&&(o=50),(0,e.sH)(this,void 0,void 0,(function(){var w,E;return(0,e.YH)(this,(function(v){switch(v.label){case 0:w=document,v.label=1;case 1:return w.body?[3,3]:[4,u(o)];case 2:return v.sent(),[3,1];case 3:E=w.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise((function(I,B){var L=!1,$=function(){L=!0,I()};E.onload=$,E.onerror=function(rt){L=!0,B(rt)};var Q=E.style;Q.setProperty("display","block","important"),Q.position="absolute",Q.top="0",Q.left="0",Q.visibility="hidden",s&&"srcdoc"in E?E.srcdoc=s:E.src="about:blank",w.body.appendChild(E);var tt=function(){var rt,at;L||(((at=(rt=E.contentWindow)===null||rt===void 0?void 0:rt.document)===null||at===void 0?void 0:at.readyState)==="complete"?$():setTimeout(tt,10))};tt()}))];case 5:v.sent(),v.label=6;case 6:return!((p=(c=E.contentWindow)===null||c===void 0?void 0:c.document)===null||p===void 0)&&p.body?[3,8]:[4,u(o)];case 7:return v.sent(),[3,6];case 8:return[4,i(E,E.contentWindow)];case 9:return[2,v.sent()];case 10:return(y=E.parentNode)===null||y===void 0||y.removeChild(E),[7];case 11:return[2]}}))}))}function X(i){for(var s=(function(I){for(var B,L,$="Unexpected syntax '".concat(I,"'"),Q=/^\s*([a-z-]*)(.*)$/i.exec(I),tt=Q[1]||void 0,rt={},at=/([.:#][\w-]+|\[.+?\])/gi,mt=function(Vt,Gt){rt[Vt]=rt[Vt]||[],rt[Vt].push(Gt)};;){var bt=at.exec(Q[2]);if(!bt)break;var vt=bt[0];switch(vt[0]){case".":mt("class",vt.slice(1));break;case"#":mt("id",vt.slice(1));break;case"[":var _t=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(vt);if(!_t)throw new Error($);mt(_t[1],(L=(B=_t[4])!==null&&B!==void 0?B:_t[5])!==null&&L!==void 0?L:"");break;default:throw new Error($)}}return[tt,rt]})(i),o=s[0],c=s[1],p=document.createElement(o??"div"),y=0,w=Object.keys(c);y<w.length;y++){var E=w[y],v=c[E].join(" ");E==="style"?pt(p.style,v):p.setAttribute(E,v)}return p}function pt(i,s){for(var o=0,c=s.split(";");o<c.length;o++){var p=c[o],y=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(p);if(y){var w=y[1],E=y[2],v=y[4];i.setProperty(w,E,v||"")}}}var St=["monospace","sans-serif","serif"],Ht=["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 Zt(i){var s,o,c,p=!1,y=(function(){var v=document.createElement("canvas");return v.width=1,v.height=1,[v,v.getContext("2d")]})(),w=y[0],E=y[1];return(function(v,I){return!(!I||!v.toDataURL)})(w,E)?(p=(function(v){return v.rect(0,0,10,10),v.rect(2,2,6,6),!v.isPointInPath(5,5,"evenodd")})(E),s=(function(v,I){(function(L,$){L.width=240,L.height=60,$.textBaseline="alphabetic",$.fillStyle="#f60",$.fillRect(100,1,62,20),$.fillStyle="#069",$.font='11pt "Times New Roman"';var Q="Cwm fjordbank gly ".concat("😃");$.fillText(Q,2,15),$.fillStyle="rgba(102, 204, 0, 0.2)",$.font="18pt Arial",$.fillText(Q,4,45)})(v,I);var B=de(v);return B!==de(v)?["unstable","unstable"]:((function(L,$){L.width=122,L.height=110,$.globalCompositeOperation="multiply";for(var Q=0,tt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Q<tt.length;Q++){var rt=tt[Q],at=rt[0],mt=rt[1],bt=rt[2];$.fillStyle=at,$.beginPath(),$.arc(mt,bt,40,0,2*Math.PI,!0),$.closePath(),$.fill()}$.fillStyle="#f9c",$.arc(60,60,60,0,2*Math.PI,!0),$.arc(60,60,20,0,2*Math.PI,!0),$.fill("evenodd")})(v,I),[de(v),B])})(w,E),o=s[0],c=s[1]):o=c="unsupported",{winding:p,geometry:o,text:c}}function de(i){return i.toDataURL()}function ye(){var i=screen,s=function(c){return C(_(c),null)},o=[s(i.width),s(i.height)];return o.sort().reverse(),o}var ge,Oe;function _e(){var i=this;return(function(){if(Oe===void 0){var s=function(){var o=be();Ve(o)?Oe=setTimeout(s,2500):(ge=o,Oe=void 0)};s()}})(),function(){return(0,e.sH)(i,void 0,void 0,(function(){var s;return(0,e.YH)(this,(function(o){switch(o.label){case 0:return Ve(s=be())?ge?[2,(0,e.fX)([],ge,!0)]:nt()?[4,(c=document,(c.exitFullscreen||c.msExitFullscreen||c.mozCancelFullScreen||c.webkitExitFullscreen).call(c))]:[3,2]:[3,2];case 1:o.sent(),s=be(),o.label=2;case 2:return Ve(s)||(ge=s),[2,s]}var c}))}))}}function be(){var i=screen;return[C(T(i.availTop),null),C(T(i.width)-T(i.availWidth)-C(T(i.availLeft),0),null),C(T(i.height)-T(i.availHeight)-C(T(i.availTop),0),null),C(T(i.availLeft),null)]}function Ve(i){for(var s=0;s<4;++s)if(i[s])return!1;return!0}function $t(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w,E,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:for(o=document,c=o.createElement("div"),p=new Array(i.length),y={},m(c),v=0;v<i.length;++v)(w=X(i[v])).tagName==="DIALOG"&&w.show(),m(E=o.createElement("div")),E.appendChild(w),c.appendChild(E),p[v]=w;I.label=1;case 1:return o.body?[3,3]:[4,u(50)];case 2:return I.sent(),[3,1];case 3:o.body.appendChild(c);try{for(v=0;v<i.length;++v)p[v].offsetParent||(y[i[v]]=!0)}finally{(s=c.parentNode)===null||s===void 0||s.removeChild(c)}return[2,y]}}))}))}function m(i){i.style.setProperty("visibility","hidden","important"),i.style.setProperty("display","block","important")}function k(i){return matchMedia("(inverted-colors: ".concat(i,")")).matches}function H(i){return matchMedia("(forced-colors: ".concat(i,")")).matches}function lt(i){return matchMedia("(prefers-contrast: ".concat(i,")")).matches}function yt(i){return matchMedia("(prefers-reduced-motion: ".concat(i,")")).matches}function Et(i){return matchMedia("(prefers-reduced-transparency: ".concat(i,")")).matches}function Ct(i){return matchMedia("(dynamic-range: ".concat(i,")")).matches}var Wt=Math,ee=function(){return 0},F={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]),O=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"],G="WEBGL_debug_renderer_info";function ot(i){if(i.webgl)return i.webgl.context;var s,o=document.createElement("canvas");o.addEventListener("webglCreateContextError",(function(){return s=void 0}));for(var c=0,p=["webgl","experimental-webgl"];c<p.length;c++){var y=p[c];try{s=o.getContext(y)}catch{}if(s)break}return i.webgl={context:s},s}function Lt(i,s,o){var c=i.getShaderPrecisionFormat(i[s],i[o]);return c?[c.rangeMin,c.rangeMax,c.precision]:[]}function Bt(i){return Object.keys(i.__proto__).filter(Dt)}function Dt(i){return typeof i=="string"&&!i.match(/[^A-Z0-9_x]/)}function kt(){return q()}function it(i){return typeof i.getParameter=="function"}var zt=function(){var i=this;return j((function(s,o){var c=o.document;return(0,e.sH)(i,void 0,void 0,(function(){var p,y,w,E,v,I,B,L,$,Q,tt;return(0,e.YH)(this,(function(rt){for((p=c.body).style.fontSize="48px",(y=c.createElement("div")).style.setProperty("visibility","hidden","important"),w={},E={},v=function(at){var mt=c.createElement("span"),bt=mt.style;return bt.position="absolute",bt.top="0",bt.left="0",bt.fontFamily=at,mt.textContent="mmMwWLliI0O&1",y.appendChild(mt),mt},I=function(at,mt){return v("'".concat(at,"',").concat(mt))},B=function(){for(var at={},mt=function(_t){at[_t]=St.map((function(Vt){return I(_t,Vt)}))},bt=0,vt=Ht;bt<vt.length;bt++)mt(vt[bt]);return at},L=function(at){return St.some((function(mt,bt){return at[bt].offsetWidth!==w[mt]||at[bt].offsetHeight!==E[mt]}))},$=St.map(v),Q=B(),p.appendChild(y),tt=0;tt<St.length;tt++)w[St[tt]]=$[tt].offsetWidth,E[St[tt]]=$[tt].offsetHeight;return[2,Ht.filter((function(at){return L(Q[at])}))]}))}))}))},pe=function(i){var s=(i===void 0?{}:i).debug;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w;return(0,e.YH)(this,(function(E){switch(E.label){case 0:return D()||ft()?(v=atob,o={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',v("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",v("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",v("LnNwb25zb3JpdA=="),".ylamainos",v("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",v("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",v("LmhlYWRlci1ibG9ja2VkLWFk"),v("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",v("I2FkXzMwMFgyNTA="),v("I2Jhbm5lcmZsb2F0MjI="),v("I2NhbXBhaWduLWJhbm5lcg=="),v("I0FkLUNvbnRlbnQ=")],adGuardChinese:[v("LlppX2FkX2FfSA=="),v("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",v("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),v("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",v("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",v("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",v("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),v("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),v("LmFkZ29vZ2xl"),v("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[v("YW1wLWF1dG8tYWRz"),v("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",v("I2FkX2ludmlld19hcmVh")],adGuardRussian:[v("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),v("LnJlY2xhbWE="),'div[id^="smi2adblock"]',v("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[v("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),v("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",v("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),v("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),v("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",v("I3Jla2xhbWk="),v("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),v("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),v("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[v("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",v("LndpZGdldF9wb19hZHNfd2lkZ2V0"),v("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",v("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[v("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),v("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",v("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",v("I3Jla2xhbW5pLWJveA=="),v("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",v("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[v("I2FkdmVydGVudGll"),v("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",v("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",v("LnNwb25zb3JsaW5rZ3J1ZW4="),v("I3dlcmJ1bmdza3k="),v("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),v("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[v("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",v("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[v("LnJla2xhbW9zX3RhcnBhcw=="),v("LnJla2xhbW9zX251b3JvZG9z"),v("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),v("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),v("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[v("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:[v("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),v("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",v("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[v("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),v("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),v("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",v("LmFkX19tYWlu"),v("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[v("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[v("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),v("I2xpdmVyZUFkV3JhcHBlcg=="),v("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),v("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[v("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",v("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),v("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),v("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[v("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),v("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),v("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",v("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),v("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),v("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),v("ZGl2I3NrYXBpZWNfYWQ=")],ro:[v("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),v("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[v("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),v("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),v("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",v("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),v("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",v("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},c=Object.keys(o),[4,$t((w=[]).concat.apply(w,c.map((function(I){return o[I]}))))]):[2,void 0];case 1:return p=E.sent(),s&&(function(I,B){for(var L="DOM blockers debug:\n```",$=0,Q=Object.keys(I);$<Q.length;$++){var tt=Q[$];L+=`
|
|
8
|
-
`.concat(
|
|
9
|
-
`.concat(B[mt]?"🚫":"➡️"," ").concat(mt)}}console.log("".concat(L,"\n```"))})(o,p),(y=c.filter((function(I){var B=o[I];return N(B.map((function(L){return p[L]})))>.6*B.length}))).sort(),[2,y]}var v}))}))},ne=function(){return i===void 0&&(i=4e3),j((function(s,o){var c=o.document,p=c.body,y=p.style;y.width="".concat(i,"px"),y.webkitTextSizeAdjust=y.textSizeAdjust="none",S()?p.style.zoom="".concat(1/o.devicePixelRatio):D()&&(p.style.zoom="reset");var w=c.createElement("div");return w.textContent=(0,e.fX)([],Array(i/20|0),!0).map((function(){return"word"})).join(" "),p.appendChild(w),(function(E,v){for(var I={},B={},L=0,$=Object.keys(F);L<$.length;L++){var Q=$[L],tt=F[Q],rt=tt[0],at=rt===void 0?{}:rt,mt=tt[1],bt=mt===void 0?"mmMwWLliI0fiflO&1":mt,vt=E.createElement("span");vt.textContent=bt,vt.style.whiteSpace="nowrap";for(var _t=0,Vt=Object.keys(at);_t<Vt.length;_t++){var Gt=Vt[_t],Kt=at[Gt];Kt!==void 0&&(vt.style[Gt]=Kt)}I[Q]=vt,v.append(E.createElement("br"),vt)}for(var Nt=0,Pt=Object.keys(F);Nt<Pt.length;Nt++)B[Q=Pt[Nt]]=I[Q].getBoundingClientRect().width;return B})(c,p)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var i},se=function(){return navigator.oscpu},he=function(){var i,s=navigator,o=[],c=s.language||s.userLanguage||s.browserLanguage||s.systemLanguage;if(c!==void 0&&o.push([c]),Array.isArray(s.languages))S()&&N([!("MediaSettingsRange"in(i=window)),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3||o.push(s.languages);else if(typeof s.languages=="string"){var p=s.languages;p&&o.push(p.split(","))}return o},le=function(){return window.screen.colorDepth},ue=function(){return C(T(navigator.deviceMemory),void 0)},We=function(){return C(_(navigator.hardwareConcurrency),void 0)},we=function(){var i,s=(i=window.Intl)===null||i===void 0?void 0:i.DateTimeFormat;if(s){var o=new s().resolvedOptions().timeZone;if(o)return o}var c,p=(c=new Date().getFullYear(),-Math.max(T(new Date(c,0,1).getTimezoneOffset()),T(new Date(c,6,1).getTimezoneOffset())));return"UTC".concat(p>=0?"+":"").concat(p)},Re=function(){try{return!!window.sessionStorage}catch{return!0}},an=function(){try{return!!window.localStorage}catch{return!0}},Be=function(){return!!window.openDatabase},Ue=function(){return navigator.cpuClass},lr=function(){var i=navigator.platform;return i==="MacIntel"&&D()&&!z()?(function(){if(navigator.platform==="iPad")return!0;var s=screen,o=s.width/s.height;return N(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,o>.65&&o<1.53])>=2})()?"iPad":"iPhone":i},Ge=function(){var i=navigator.plugins;if(i){for(var s=[],o=0;o<i.length;++o){var c=i[o];if(c){for(var p=[],y=0;y<c.length;++y){var w=c[y];p.push({type:w.type,suffixes:w.suffixes})}s.push({name:c.name,description:c.description,mimeTypes:p})}}return s}},He=function(){var i,s=navigator,o=0;s.maxTouchPoints!==void 0?o=_(s.maxTouchPoints):s.msMaxTouchPoints!==void 0&&(o=s.msMaxTouchPoints);try{document.createEvent("TouchEvent"),i=!0}catch{i=!1}return{maxTouchPoints:o,touchEvent:i,touchStart:"ontouchstart"in window}},Yr=function(){return navigator.vendor||""},$e=function(){for(var i=[],s=0,o=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];s<o.length;s++){var c=o[s],p=window[c];p&&typeof p=="object"&&i.push(c)}return i.sort()},qe=function(){var i=document;try{i.cookie="cookietest=1; SameSite=Strict;";var s=i.cookie.indexOf("cookietest=")!==-1;return i.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",s}catch{return!1}},ts=function(){for(var i=0,s=["rec2020","p3","srgb"];i<s.length;i++){var o=s[i];if(matchMedia("(color-gamut: ".concat(o,")")).matches)return o}},Je=function(){return!!k("inverted")||!k("none")&&void 0},Qe=function(){return!!H("active")||!H("none")&&void 0},es=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var i=0;i<=100;++i)if(matchMedia("(max-monochrome: ".concat(i,")")).matches)return i;throw new Error("Too high value")}},tn=function(){return lt("no-preference")?0:lt("high")||lt("more")?1:lt("low")||lt("less")?-1:lt("forced")?10:void 0},en=function(){return!!yt("reduce")||!yt("no-preference")&&void 0},Gi=function(){return!!Et("reduce")||!Et("no-preference")&&void 0},ji=function(){return!!Ct("high")||!Ct("standard")&&void 0},Yi=function(){var i,s=Wt.acos||ee,o=Wt.acosh||ee,c=Wt.asin||ee,p=Wt.asinh||ee,y=Wt.atanh||ee,w=Wt.atan||ee,E=Wt.sin||ee,v=Wt.sinh||ee,I=Wt.cos||ee,B=Wt.cosh||ee,L=Wt.tan||ee,$=Wt.tanh||ee,Q=Wt.exp||ee,tt=Wt.expm1||ee,rt=Wt.log1p||ee;return{acos:s(.12312423423423424),acosh:o(1e308),acoshPf:(i=1e154,Wt.log(i+Wt.sqrt(i*i-1))),asin:c(.12312423423423424),asinh:p(1),asinhPf:Wt.log(1+Wt.sqrt(2)),atanh:y(.5),atanhPf:Wt.log(3)/2,atan:w(.5),sin:E(-1e300),sinh:v(1),sinhPf:Wt.exp(1)-1/Wt.exp(1)/2,cos:I(10.000000000123),cosh:B(1),coshPf:(Wt.exp(1)+1/Wt.exp(1))/2,tan:L(-1e300),tanh:$(1),tanhPf:(Wt.exp(2)-1)/(Wt.exp(2)+1),exp:Q(1),expm1:tt(1),expm1Pf:Wt.exp(1)-1,log1p:rt(10),log1pPf:Wt.log(11),powPI:Wt.pow(Wt.PI,-100)}},Wi=function(){return navigator.pdfViewerEnabled},zi=function(){var i=new Float32Array(1),s=new Uint8Array(i.buffer);return i[0]=1/0,i[0]=i[0]-i[0],s[3]},Ki=function(){var i,s=document.createElement("a"),o=(i=s.attributionSourceId)!==null&&i!==void 0?i:s.attributionsourceid;return o===void 0?void 0:String(o)},Zi=function(){if(!ft()&&!D())return-2;if(!window.AudioContext)return-1;var i=new AudioContext().baseLatency;return i==null?-1:isFinite(i)?i:-3},Xi=function(){if(!window.Intl)return-1;var i=window.Intl.DateTimeFormat;if(!i)return-2;var s=i().resolvedOptions().locale;return s||s===""?s:-3},$i=function(i){var s,o,c,p,y,w,E=ot(i.cache);if(!E)return-1;if(!it(E))return-2;var v=kt()?null:E.getExtension(G);return{version:((s=E.getParameter(E.VERSION))===null||s===void 0?void 0:s.toString())||"",vendor:((o=E.getParameter(E.VENDOR))===null||o===void 0?void 0:o.toString())||"",vendorUnmasked:v?(c=E.getParameter(v.UNMASKED_VENDOR_WEBGL))===null||c===void 0?void 0:c.toString():"",renderer:((p=E.getParameter(E.RENDERER))===null||p===void 0?void 0:p.toString())||"",rendererUnmasked:v?(y=E.getParameter(v.UNMASKED_RENDERER_WEBGL))===null||y===void 0?void 0:y.toString():"",shadingLanguageVersion:((w=E.getParameter(E.SHADING_LANGUAGE_VERSION))===null||w===void 0?void 0:w.toString())||""}},qi=function(i){var s=ot(i.cache);if(!s)return-1;if(!it(s))return-2;var o=s.getSupportedExtensions(),c=s.getContextAttributes(),p=[],y=[],w=[],E=[],v=[];if(c)for(var I=0,B=Object.keys(c);I<B.length;I++){var L=B[I];y.push("".concat(L,"=").concat(c[L]))}for(var $=0,Q=Bt(s);$<Q.length;$++){var tt=s[Vt=Q[$]];w.push("".concat(Vt,"=").concat(tt).concat(R.has(tt)?"=".concat(s.getParameter(tt)):""))}if(o)for(var rt=0,at=o;rt<at.length;rt++){var mt=at[rt];if(!(mt===G&&kt()||mt==="WEBGL_polygon_mode"&&(S()||D()))){var bt=s.getExtension(mt);if(bt)for(var vt=0,_t=Bt(bt);vt<_t.length;vt++){var Vt;tt=bt[Vt=_t[vt]],E.push("".concat(Vt,"=").concat(tt).concat(O.has(tt)?"=".concat(s.getParameter(tt)):""))}else p.push(mt)}}for(var Gt=0,Kt=A;Gt<Kt.length;Gt++)for(var Nt=Kt[Gt],Pt=0,Xt=V;Pt<Xt.length;Pt++){var te=Xt[Pt],re=Lt(s,Nt,te);v.push("".concat(Nt,".").concat(te,"=").concat(re.join(",")))}return E.sort(),w.sort(),{contextAttributes:y,parameters:w,shaderPrecisions:v,extensions:o,extensionParameters:E,unsupportedExtensions:p}},dn=function(i,s){var o=(function($){for(var Q=new Uint8Array($.length),tt=0;tt<$.length;tt++){var rt=$.charCodeAt(tt);if(rt>127)return new TextEncoder().encode($);Q[tt]=rt}return Q})(i);s=s||0;var c,p=[0,o.length],y=p[1]%16,w=p[1]-y,E=[0,s],v=[0,s],I=[0,0],B=[0,0];for(c=0;c<w;c+=16)I[0]=o[c+4]|o[c+5]<<8|o[c+6]<<16|o[c+7]<<24,I[1]=o[c]|o[c+1]<<8|o[c+2]<<16|o[c+3]<<24,B[0]=o[c+12]|o[c+13]<<8|o[c+14]<<16|o[c+15]<<24,B[1]=o[c+8]|o[c+9]<<8|o[c+10]<<16|o[c+11]<<24,M(I,ht),U(I,31),M(I,ut),W(E,I),U(E,27),x(E,v),M(E,At),x(E,Rt),M(B,ut),U(B,33),M(B,ht),W(v,B),U(v,31),x(v,E),M(v,At),x(v,st);I[0]=0,I[1]=0,B[0]=0,B[1]=0;var L=[0,0];switch(y){case 15:L[1]=o[c+14],Y(L,48),W(B,L);case 14:L[1]=o[c+13],Y(L,40),W(B,L);case 13:L[1]=o[c+12],Y(L,32),W(B,L);case 12:L[1]=o[c+11],Y(L,24),W(B,L);case 11:L[1]=o[c+10],Y(L,16),W(B,L);case 10:L[1]=o[c+9],Y(L,8),W(B,L);case 9:L[1]=o[c+8],W(B,L),M(B,ut),U(B,33),M(B,ht),W(v,B);case 8:L[1]=o[c+7],Y(L,56),W(I,L);case 7:L[1]=o[c+6],Y(L,48),W(I,L);case 6:L[1]=o[c+5],Y(L,40),W(I,L);case 5:L[1]=o[c+4],Y(L,32),W(I,L);case 4:L[1]=o[c+3],Y(L,24),W(I,L);case 3:L[1]=o[c+2],Y(L,16),W(I,L);case 2:L[1]=o[c+1],Y(L,8),W(I,L);case 1:L[1]=o[c],W(I,L),M(I,ht),U(I,31),M(I,ut),W(E,I)}return W(E,p),W(v,p),x(E,v),x(v,E),et(E),et(v),x(E,v),x(v,E),("00000000"+(E[0]>>>0).toString(16)).slice(-8)+("00000000"+(E[1]>>>0).toString(16)).slice(-8)+("00000000"+(v[0]>>>0).toString(16)).slice(-8)+("00000000"+(v[1]>>>0).toString(16)).slice(-8)},Ji="phantomjs",Qi="selenium",to="headless_chrome",Me=(function(i){function s(o,c){var p=i.call(this,c)||this;return p.state=o,p.name="BotdError",Object.setPrototypeOf(p,s.prototype),p}return(0,e.C6)(s,i),s})(Error);function eo(i,s){return i.indexOf(s)!==-1}function Dn(i,s){return i.indexOf(s)!==-1}function vi(i){return Object.getOwnPropertyNames(i)}function mi(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];for(var c=function(E){if(typeof E=="string"){if(eo(i,E))return{value:!0}}else if((function(v,I){if("find"in v)return v.find(I);for(var B=0;B<v.length;B++)if(I(v[B]))return v[B]})(i,(function(v){return E.test(v)}))!=null)return{value:!0}},p=0,y=s;p<y.length;p++){var w=c(y[p]);if(typeof w=="object")return w.value}return!1}function no(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function Da(){var i,s,o=window,c=navigator;return no(["webkitPersistentStorage"in c,"webkitTemporaryStorage"in c,c.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in o,"BatteryManager"in o,"webkitMediaStream"in o,"webkitSpeechGrammar"in o])>=5?"chromium":no(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,c.vendor.indexOf("Apple")===0,"getStorageUpdates"in c,"WebKitMediaKeys"in o])>=4?"webkit":no(["buildID"in navigator,"MozAppearance"in((s=(i=document.documentElement)===null||i===void 0?void 0:i.style)!==null&&s!==void 0?s:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4?"gecko":"unknown"}var Cn={android:function(){var i=Da(),s=i==="chromium",o=i==="gecko";if(!s&&!o)return!1;var c=window;return no(["onorientationchange"in c,"orientation"in c,s&&!("SharedWorker"in c),o&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var i,s=(i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase();return Dn(s,"edg/")?"edge":Dn(s,"trident")||Dn(s,"msie")?"internet_explorer":Dn(s,"wechat")?"wechat":Dn(s,"firefox")?"firefox":Dn(s,"opera")||Dn(s,"opr")?"opera":Dn(s,"chrome")?"chrome":Dn(s,"safari")?"safari":"unknown"},browserEngineKind:Da,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var i=navigator.appVersion;if(i==null)throw new Me(-1,"navigator.appVersion is undefined");return i},rtt:function(){if(navigator.connection===void 0)throw new Me(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new Me(-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 Me(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new Me(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new Me(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new Me(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(i){if(i instanceof Error&&i.stack!=null)return i.stack.toString()}throw new Me(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var i=navigator.productSub;if(i===void 0)throw new Me(-1,"navigator.productSub is undefined");return i},windowExternal:function(){if(window.external===void 0)throw new Me(-1,"window.external is undefined");var i=window.external;if(typeof i.toString!="function")throw new Me(-2,"window.external.toString is not a function");return i.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new Me(-1,"navigator.mimeTypes is undefined");for(var i=navigator.mimeTypes,s=Object.getPrototypeOf(i)===MimeTypeArray.prototype,o=0;o<i.length;o++)s&&(s=Object.getPrototypeOf(i[o])===MimeType.prototype);return s},evalLength:function(){return eval.toString().length},webGL:function(){var i=document.createElement("canvas");if(typeof i.getContext!="function")throw new Me(-2,"HTMLCanvasElement.getContext is not a function");var s=i.getContext("webgl");if(s===null)throw new Me(-4,"WebGLRenderingContext is null");if(typeof s.getParameter!="function")throw new Me(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:s.getParameter(s.VENDOR),renderer:s.getParameter(s.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new Me(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var i,s=navigator,o=[],c=s.language||s.userLanguage||s.browserLanguage||s.systemLanguage;if(c!==void 0&&o.push([c]),Array.isArray(s.languages))Da()==="chromium"&&no([!("MediaSettingsRange"in(i=window)),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3||o.push(s.languages);else if(typeof s.languages=="string"){var p=s.languages;p&&o.push(p.split(","))}return o},notificationPermissions:function(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s;return(0,e.YH)(this,(function(o){switch(o.label){case 0:if(window.Notification===void 0)throw new Me(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new Me(-1,"navigator.permissions is undefined");if(typeof(i=navigator.permissions).query!="function")throw new Me(-2,"navigator.permissions.query is not a function");o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.query({name:"notifications"})];case 2:return s=o.sent(),[2,window.Notification.permission==="denied"&&s.state==="prompt"];case 3:throw o.sent(),new Me(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}}))}))},documentElementKeys:function(){if(document.documentElement===void 0)throw new Me(-1,"document.documentElement is undefined");var i=document.documentElement;if(typeof i.getAttributeNames!="function")throw new Me(-2,"document.documentElement.getAttributeNames is not a function");return i.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new Me(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var i=window.process,s="window.process is";if(i===void 0)throw new Me(-1,"".concat(s," undefined"));if(i&&typeof i!="object")throw new Me(-3,"".concat(s," not an object"));return i},distinctiveProps:function(){var i,s,o=((i={}).awesomium={window:["awesomium"]},i.cef={window:["RunPerfTest"]},i.cefsharp={window:["CefSharp"]},i.coachjs={window:["emit"]},i.fminer={window:["fmget_targets"]},i.geb={window:["geb"]},i.nightmarejs={window:["__nightmare","nightmare"]},i.phantomas={window:["__phantomas"]},i[Ji]={window:["callPhantom","_phantom"]},i.rhino={window:["spawn"]},i[Qi]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},i.webdriverio={window:["wdioElectron"]},i.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"]},i[to]={window:["domAutomation","domAutomationController"]},i),c={},p=vi(window),y=[];for(s in window.document!==void 0&&(y=vi(window.document)),o){var w=o[s];if(w!==void 0){var E=w.window!==void 0&&mi.apply(void 0,(0,e.fX)([p],w.window,!1)),v=!(w.document===void 0||!y.length)&&mi.apply(void 0,(0,e.fX)([y],w.document,!1));c[s]=E||v}}return c}};function ro(i,s){return new Promise((function(o){return Ua(o,i,s)}))}function Ua(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=Date.now()+s,y=0,w=function(){y=setTimeout((function(){Date.now()<p?w():i.apply(void 0,o)}),p-Date.now())};return w(),function(){return clearTimeout(y)}}function ns(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=document,y="visibilitychange",w=function(){return p.hidden?I():v()},E=(function(B,L,$){for(var Q=[],tt=3;tt<arguments.length;tt++)Q[tt-3]=arguments[tt];var rt,at=!1,mt=B,bt=0,vt=function(){at||rt||(bt=Date.now(),rt=Ua((function(){at=!0,$.apply(void 0,Q)}),mt))};return L&&vt(),{start:vt,stop:function(){!at&&rt&&(rt(),rt=void 0,mt-=Date.now()-bt)}}})(s,!p.hidden,(function(){p.removeEventListener(y,w),i.apply(void 0,o)})),v=E.start,I=E.stop;return p.addEventListener(y,w),function(){p.removeEventListener(y,w),I()}}function Un(i,s){return new Promise((function(o){return ns(o,i,s)}))}function Qf(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,i()];case 1:return[2,c.sent()];case 2:return o=c.sent(),console.error(o),[2,s];case 3:return[2]}}))}))}function Pa(i,s){return new Promise((function(o,c){var p=!1;s?.then((function(){return p=!0}),(function(){return p=!0})),(typeof i=="function"?Pa(Promise.resolve(),s).then(i):i).then((function(y){p||o(y)}),(function(y){p||c(y)}))}))}function io(i){return i.then(void 0,(function(){})),i}function jn(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:try{o=s().then((function(E){return c=[!0,E]}),(function(E){return c=[!1,E]}))}catch(E){c=[!1,E]}return y=i.then((function(E){return p=[!0,E]}),(function(E){return p=[!1,E]})),[4,Promise.race([o,y])];case 1:return w.sent(),[2,function(){if(c){if(c[0])return c[1];throw c[1]}if(p){if(p[0])return p[1];throw p[1]}throw new Error("96375")}]}}))}))}function t0(){var i,s,o=new Promise((function(c,p){i=c,s=p}));return o.resolve=i,o.reject=s,o}function rs(i){return i instanceof Error||i!==null&&typeof i=="object"&&"name"in i}function e0(i,s){var o=0;return function(){return Math.random()*Math.min(s,i*Math.pow(2,o++))}}function Wr(i){return i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}function Qg(i,s){return Object.prototype.hasOwnProperty.call(i,s)}function gi(i,s,o,c){return i.addEventListener(s,o,c),function(){return i.removeEventListener(s,o,c)}}var Fa,Ha="0123456789abcdef";function n0(i,s){if(s.length==0||s.length>i.length)return-1;for(var o=0;o<i.length;o++){for(var c=0,p=0;p<s.length;p++){if(i[o+p]!==s[p]){c=0;break}c++}if(c==s.length)return o}return-1}function Ar(i){for(var s=new Uint8Array(i.length),o=0;o<i.length;o++){var c=i.charCodeAt(o);if(c>127)return new TextEncoder().encode(i);s[o]=c}return s}function is(i){if(typeof TextDecoder=="function"){var s=new TextDecoder().decode(i);if(s)return s}var o=Wr(i);return decodeURIComponent(escape(String.fromCharCode.apply(null,o)))}function yi(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function r0(i,s){return(i-s+256)%256}function Qn(i){var s=Wr(i);return btoa(String.fromCharCode.apply(null,s))}function os(i){for(var s=atob(i),o=s.length,c=new Uint8Array(o),p=0;p<o;p++)c[p]=s.charCodeAt(p);return c}function tr(i){return i0(Ar(i))}function i0(i){var s=Wr(i);Fa=Fa||(function(){for(var p,y=new Uint32Array(256),w=0;w<256;w++){p=w;for(var E=0;E<8;E++)p=1&p?3988292384^p>>>1:p>>>1;y[w]=p}return y})();for(var o=-1,c=0;c<s.length;c++)o=o>>>8^Fa[255&(o^s[c])];return~o>>>0}function o0(i){return i===void 0?void 0:"".concat(i)}function t4(i,s){if(i!==void 0){if(!Array.isArray(i))throw new TypeError("Expected ".concat(s," to be an array, a ").concat((function(o){return typeof o=="object"?o?Object.prototype.toString.call(o):"null":typeof o})(i)," is given"));return i.map(String)}}function e4(i){for(var s=new Uint8Array(i.length/2),o=0;o<i.length;o+=2)s[o/2]=parseInt(i[o]+i[o+1],16);return s}function ss(i){if(i instanceof Array)return i.map(ss);if(i&&typeof i=="object"){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o];s[p]=ss(i[p])}return s}return i}function n4(i,s){for(var o=[],c=Object.getOwnPropertyNames(i),p=0;p<c.length;p++){var y=c[p],w=tr(y);s.has(w)&&o.push({i:p,n:y})}return{l:c.length,p:o}}var Va=new Uint32Array(2);function as(){return crypto?(crypto.getRandomValues(Va),(1048576*Va[0]+(1048575&Va[1]))/4503599627370496):Math.random()}function s0(i,s,o){o===void 0&&(o=as);for(var c="",p=0;p<i;p++)c+=s.charAt(o()*s.length);return c}function oo(i){return s0(i,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function a0(){return[8,4,4,4,12].map((function(i){return s0(i,Ha)})).join("-")}var u0=new Uint8Array(1);function r4(){return crypto.getRandomValues(u0),u0[0]}function c0(){return new TypeError("Can't pick from nothing")}function i4(i,s){return Math.floor(as()*(s-i+1))+i}function f0(i){return o4(i)?(function(s){if(s.length===0)throw c0();return s[Math.floor(as()*s.length)]})(i):(function(s){for(var o=as(),c=0,p=0,y=0,w=s;y<w.length;y++)c+=L=w[y][1];for(var E=0,v=s;E<v.length;E++){var I=v[E],B=I[0],L=I[1];if(o>=p/c&&o<(p+L)/c)return B;p+=L}throw c0()})(Object.entries(i))}var o4=Array.isArray,Ga="3.11.11",us={default:"endpoint"},l0={default:"tEndpoint"},cs={default:"tlsEndpoint"};function d0(i){return i?{query:!0,fragment:!0}:void 0}var h0="_vid";function p0(i){switch(i){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 v0(){return{len:0,arr:new Uint8Array(128)}}function er(i,s){g0(i,i.len+1),i.arr[i.len++]=s}function fs(i,s){g0(i,i.len+s.length),i.arr.set(s,i.len),i.len+=s.length}function m0(i){return i.arr.subarray(0,i.len)}function g0(i,s){if(i.arr.length<s){var o=new Uint8Array(Math.max(2*i.arr.length,s));o.set(i.arr),i.arr=o}}function y0(i){var s=v0(),o=new WeakSet,c=function(p){if(typeof p=="string"){var y=p.replace(g4,(function(at){return"\\"+(T0[at]||"u"+at.charCodeAt(0).toString(16).padStart(4,"0"))}));return er(s,so),fs(s,Ar(y)),void er(s,so)}if(typeof p=="number"||p===!0||p===!1)return(Number.isNaN(p)||p===1/0||p===-1/0)&&(p=null),void fs(s,Ar(String(p)));if(typeof p=="object"&&p){if(o.has(p))throw new TypeError("Recursive input");o.add(p);var w=p.toJSON;if(typeof w=="function")return void c(w.call(p));if(p instanceof Number||p instanceof String)return void c(p.valueOf());var E=!0,v=function(){E?E=!1:er(s,ja)};if(Array.isArray(p)){er(s,b0);for(var I=0,B=p;I<B.length;I++){var L=B[I];v(),c(L)}er(s,R0)}else{er(s,A0);for(var $=0,Q=Object.entries(p);$<Q.length;$++){var tt=Q[$],rt=tt[0];s4(L=tt[1])||(v(),c(rt),er(s,E0),c(L))}er(s,S0)}o.delete(p)}else fs(s,za)};return c(i),m0(s)}function ls(i){var s=v0(),o=Wr(i),c=0,p=function(){return I(),o[c]===so?y():w0(o[c])?w():B(za)?(c+=za.length,null):B(I0)?(c+=I0.length,!0):B(O0)?(c+=O0.length,!1):o[c]===b0?E():o[c]===A0?v():L()},y=function(){for(s.len=0;c++,o[c]!==so;){if(o[c]===l4){if(c++,o[c]===Wa){var Q=parseInt(is(o.subarray(c+1,c+5)),16);fs(s,Ar(String.fromCharCode(Q))),c+=4;continue}var tt=m4[o[c]];if(tt){er(s,tt);continue}return L()}if(o[c]===void 0)return L();er(s,o[c])}return c++,is(m0(s))},w=function(){for(var Q=c;o[c]===v4||o[c]===Ya||o[c]===d4||o[c]===h4||w0(o[c]);)c++;return Number(is(o.subarray(Q,c)))},E=function(){var Q=[];for(c++;;){if(I(),o[c]===R0){c++;break}if(Q.length){if(o[c]!==ja)return L();c++}Q.push(p())}return Q},v=function(){var Q={},tt=!0;for(c++;;){if(I(),o[c]===S0){c++;break}if(!tt){if(o[c]!==ja)return L();c++,I()}if(o[c]!==so)return L();var rt=y();if(I(),o[c]!==E0)return L();c++,Object.defineProperty(Q,rt,{value:p(),configurable:!0,enumerable:!0,writable:!0}),tt=!1}return Q},I=function(){for(;o[c]===a4||o[c]===f4||o[c]===c4||o[c]===u4;)c++},B=function(Q){for(var tt=0;tt<Q.length;tt++)if(o[c+tt]!==Q[tt])return!1;return!0},L=function(){throw new SyntaxError("Unexpected ".concat(c<o.length?"byte ".concat(c):"end"))},$=p();return I(),o[c]!==void 0&&L(),$}function s4(i){return i===void 0||typeof i=="function"||typeof i=="symbol"}function w0(i){return i>=_0&&i<_0+10||i===p4}var so=34,ja=44,E0=58,a4=32,u4=9,c4=13,f4=10,l4=92,_0=48,Ya=101,Wa=117,d4=69,h4=43,p4=45,v4=46,b0=91,R0=93,A0=123,S0=125,za=new Uint8Array([110,Wa,108,108]),I0=new Uint8Array([116,114,Wa,Ya]),O0=new Uint8Array([102,97,108,115,Ya]),T0={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},m4=(function(){for(var i=new Uint8Array(128),s=0,o=Object.entries(T0);s<o.length;s++){var c=o[s],p=c[0];i[c[1].charCodeAt(0)]=p.charCodeAt(0)}return i})(),g4=/[\x00-\x1F"\\]/g,Ka="Client timeout",Za="Network connection error",Xa="Network request aborted",$a="Response cannot be parsed",qa="Blocked by CSP",Ja="The endpoint parameter is not a valid URL";function zr(i,s,o){return o===void 0&&(o="..."),i.length<=s?i:"".concat(i.slice(0,Math.max(0,s-o.length))).concat(o)}function Yn(i){for(var s="",o=0;o<i.length;++o)if(o>0){var c=i[o].toLowerCase();c!==i[o]?s+=" ".concat(c):s+=i[o]}else s+=i[o].toUpperCase();return s}var N0=Yn("WrongRegion"),x0=Yn("SubscriptionNotActive"),C0=Yn("UnsupportedVersion"),L0=Yn("InstallationMethodRestricted"),B0=Yn("HostnameRestricted"),M0=Yn("IntegrationFailed"),k0=Yn("VisitorNotFound"),D0=Yn("NetworkRestricted"),U0=Yn("InvalidProxyIntegrationSecret"),P0=Yn("InvalidProxyIntegrationHeaders");function y4(i){var s;try{s=ls(i.body)}catch{}return(0,e.Cl)((0,e.Cl)({},i),{bodyData:s})}function w4(i,s,o,c){var p=c.bodyData;return p===void 0?Y0(c):(function(y){return y instanceof Object&&y.v==="2"&&y.products instanceof Object})(p)?(function(y,w,E,v){var I,B=y.notifications,L=y.requestId,$=y.sealedResult,Q=y.error,tt=y.products,rt=(function(Gt){for(var Kt=[],Nt=0,Pt=Object.keys(Gt);Nt<Pt.length;Nt++){var Xt=Gt[Pt[Nt]];Xt&&Kt.push(Xt)}return Kt})(tt);j0(B);for(var at=0,mt=rt;at<mt.length;at++)j0(mt[at].notifications);if(Q)return F0(Q,L,$,E);for(var bt=0,vt=rt;bt<vt.length;bt++){var _t=vt[bt].error;if(_t)return F0(_t,L,$,E)}(function(Gt,Kt,Nt){for(var Pt,Xt=0,te=Kt;Xt<te.length;Xt++){var re=te[Xt];(Pt=re.onResponse)===null||Pt===void 0||Pt.call(re,Gt,Nt)}})(y,w,v);var Vt=(I=tt.identification)===null||I===void 0?void 0:I.data;return{result:Vt?(0,e.Cl)((0,e.Cl)({requestId:L},$===void 0?{}:{sealedResult:$}),Vt.result):H0(L,$,E)}})(p,i,s,o):Y0(c)}function F0(i,s,o,c){switch(i.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return V0(s,o,!0,c);case"NotAvailableWithoutUA":return V0(s,o,void 0,c);default:return{error:G0(E4(i),s,i),stop:i.code==="VisitorNotFound"}}}function E4(i){var s,o=i.code,c=i.message;return o===void 0?c:(s=(function(p){switch(p){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"}})(o))!==null&&s!==void 0?s:Yn(o)}function H0(i,s,o){var c={requestId:i,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(s!==void 0&&(c.sealedResult=s),!o)return c;var p="n/a";return(0,e.Cl)((0,e.Cl)({},c),{incognito:!1,browserName:p,browserVersion:p,device:p,ip:p,os:p,osVersion:p,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}})}function V0(i,s,o,c){return{result:(0,e.Cl)((0,e.Cl)({},H0(i,s,c)),{bot:(0,e.Cl)({probability:1},o===void 0?void 0:{safe:o})})}}function G0(i,s,o){var c=new Error(i);return s!==void 0&&(c.requestId=s),o!==void 0&&(c.raw=o),c}function j0(i){i?.forEach(_4)}function _4(i){var s=i.level,o=i.message;s==="error"?console.error(o):s==="warning"?console.warn(o):console.log(o)}function Y0(i){return{error:G0($a,void 0,{httpStatusCode:i.status,bodyBase64:Qn(i.body)})}}var W0="[Fingerprint Pro]";function b4(i){return i===void 0&&(i=W0),function(s){var o=console.log;switch(s.e){case 2:case 5:case 8:case 11:case 14:case 20:o=console.error;break;case 13:var c=s.result;Object.keys(c).some((function(y){return"error"in c[y]}))&&(o=console.warn);break;case 17:var p=s.error;o=s.stage===0&&rs(p)&&p.message===k0?console.log:console.error}o.apply(console,(function(y,w){var E=w.e,v=w.stage,I=(0,e.Tt)(w,["e","stage"]),B=[y,new Date().toISOString().slice(11),p0(E)];if(v!==void 0)switch(v){case 0:B.push("(fast)");break;case 1:B.push("(final)");break;default:I.stage=v}return B.push(I),B})(i,s))}}function R4(i){i===void 0&&(i="".concat(W0," "));var s={};return function(o){switch(o.e){case 15:s[o.getCallId]=o.body;break;case 18:console.log("".concat(i,"Visitor id request"),s[o.getCallId]);break;case 19:console.log("".concat(i,"Visitor id response"),o.body);break;case 16:case 17:delete s[o.getCallId]}}}var z0="__fpjs_pvid";function K0(){var i=window,s=i[z0];return i[z0]=typeof s=="string"?s:oo(10)}function A4(){var i=window;try{return i.self!==i.top}catch{return!0}}function Qa(){return!document.hidden}var Z0="stripped",tu=["path","query","fragment"];function ds(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c=this;return(0,e.YH)(this,(function(p){switch(p.label){case 0:return X0(s)?[2,i]:(o=hs(i),[4,Promise.all(tu.map((function(y){return(0,e.sH)(c,void 0,void 0,(function(){var w,E,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return w=o[y],s[y]&&w?(E=o,v=y,[4,S4(y==="query"?(B=w,B.split("&").sort().join("&")):w)]):[3,2];case 1:E[v]=I.sent(),I.label=2;case 2:return[2]}var B}))}))})))]);case 1:return p.sent(),[2,ps(o)]}}))}))}function X0(i){return!(i&&tu.some((function(s){return i[s]})))}function hs(i){var s,o,c=i.split("#"),p=c[0],y=c.slice(1),w=p.split("?"),E=w[0],v=w.slice(1),I=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(E);return I?(s=(I[1]||"")+(I[4]||""),o=I[5]||""):(s="",o=E),{origin:s,path:o,query:v.length?v.join("?"):null,fragment:y.length?y.join("#"):null}}function ps(i){var s=i.origin,o=i.path,c=i.query,p=i.fragment;return s+o+(c===null?"":"?".concat(c))+(p===null?"":"#".concat(p))}function S4(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return i===""?[2,""]:(o=(s=window.crypto)===null||s===void 0?void 0:s.subtle)!=null&&o.digest?[4,o.digest("SHA-256",Ar(i))]:[2,Z0];case 1:return[2,Qn(c.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}}))}))}function I4(i,s){var o=hs(i),c=o.origin+o.path;return c&&!c.endsWith("/")&&(c+="/"),c+=s,o.origin="",o.path=c,ps(o)}function eu(i,s){for(var o=hs(i),c=o.query,p=0,y=Object.entries(s);p<y.length;p++)for(var w=y[p],E=w[0],v=w[1],I=0,B=Array.isArray(v)?v:[v];I<B.length;I++){var L=B[I];c="".concat(c?"".concat(c,"&"):"").concat(E,"=").concat(O4(L))}return o.query=c,ps(o)}function O4(i){return i.split("/").map(encodeURIComponent).join("/")}function T4(i){return function(s){var o=[],c=new Map,p=window.setInterval((function(){var w=o.shift();if(w){var E=w[0],v=w[1],I=io(i(v));c.set(E,I)}}),1);function y(){window.clearInterval(p)}return s.then(y,y),[o,c,s]}}function $0(i){var s,o,c=Math.random();return s=c,o=i,i.container[0].push([s,o]),(function(p,y,w){var E;function v(){window.clearInterval(E)}var I=p[1],B=p[2],L=new Promise((function($,Q){E=window.setInterval((function(){var tt=I.get(y);if(tt)return I.delete(y),tt.then($,Q)}),1)}));return L.then(v,v),w?.then(v,v),B.then(v,v),L})(i.container,c,i.abort)}var q0=T4(N4);function N4(i){return(function(s,o,c,p){var y,w=document,E="securitypolicyviolation",v=function(B){var L=new URL(s,location.href),$=B.blockedURI;$!==L.href&&$!==L.protocol.slice(0,-1)&&$!==L.origin||(y=B,I())};w.addEventListener(E,v);var I=function(){return w.removeEventListener(E,v)};return p?.then(I,I),Promise.resolve().then(o).then((function(B){return I(),B}),(function(B){return new Promise((function(L){var $=new MessageChannel;$.port1.onmessage=function(){return L()},$.port2.postMessage(null)})).then((function(){if(I(),y)return(function(){throw J0()})();throw B}))}))})(i.url,(function(){return o=(s=i).url,c=s.method,p=c===void 0?"get":c,y=s.body,w=s.headers,E=s.withCredentials,v=E!==void 0&&E,I=s.timeout,B=s.responseFormat,L=s.abort,new Promise((function($,Q){if((function(bt){if(URL.prototype)try{return new URL(bt,location.href),!1}catch(vt){if(vt instanceof Error&&vt.name==="TypeError")return!0;throw vt}})(o))throw ao("InvalidURLError","Invalid URL");var tt=new XMLHttpRequest;try{tt.open(p,o,!0)}catch(bt){throw bt instanceof Error&&/violate.+content security policy/i.test(bt.message)?J0():bt}if(tt.withCredentials=v,tt.timeout=I===void 0?0:Math.max(I,1),B==="binary"&&(tt.responseType="arraybuffer"),w)for(var rt=0,at=Object.keys(w);rt<at.length;rt++){var mt=at[rt];tt.setRequestHeader(mt,w[mt])}tt.onload=function(){return $((function(bt){return{body:bt.response,status:bt.status,statusText:bt.statusText,getHeader:function(vt){return(function(_t,Vt){var Gt,Kt=new RegExp("^".concat((Gt=Vt,Gt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(_t);return Kt?Kt[1]:void 0})(bt.getAllResponseHeaders(),vt)}}})(tt))},tt.ontimeout=function(){return Q(ao("TimeoutError","The request timed out"))},tt.onabort=function(){return Q(ao("AbortError","The request is aborted"))},tt.onerror=function(){return Q(ao("TypeError",navigator.onLine?"Connection error":"Network offline"))},tt.send((function(bt){var vt=function(){try{return new Blob([]),!1}catch{return!0}};if(bt instanceof ArrayBuffer){if(!vt())return new Uint8Array(bt)}else if(bt?.buffer instanceof ArrayBuffer&&vt())return bt.buffer;return bt})(y)),L?.catch((function(){})).then((function(){tt.onabort=null,tt.abort()}))}));var s,o,c,p,y,w,E,v,I,B,L}),0,i.abort)}function ao(i,s){var o=new Error(s);return o.name=i,o}function J0(){return ao("CSPError","The request is blocked by the CSP")}function dr(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];i&&Qf((function(){var p=s.apply(void 0,o);p!==void 0&&i(p)}))}function uo(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w;return(0,e.YH)(this,(function(E){switch(E.label){case 0:dr(i,s),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,p()];case 2:return y=E.sent(),[3,4];case 3:throw w=E.sent(),dr(i,c,w),w;case 4:return dr(i,o,y),[2,y]}}))}))}function x4(i){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o],y=i[p];if("value"in y){y.value;var w=(0,e.Tt)(y,["value"]);s[p]=w}else s[p]=y}return s}function Q0(i){return typeof i.getCallId=="string"}function C4(i){if(typeof i!="object"||!i)return i;var s=i.modules;return s instanceof Array?(0,e.Cl)((0,e.Cl)({},i),{modules:s.map((function(o){if(typeof o!="object"||!o)return o;var c=o.key;return typeof c=="string"?{key:c}:o}))}):i}function L4(){var i=window,s=navigator;return yi(["maxTouchPoints"in s,"mediaCapabilities"in s,"PointerEvent"in i,"visualViewport"in i,"onafterprint"in i])>=4}function B4(){var i=window;return yi(["mediaSession"in navigator,"BigInt64Array"in i,"FormDataEvent"in i,"ImageBitmap"in i,"WebGL2RenderingContext"in i,"onclose"in i])>=4}function M4(){var i=window;return yi(["fromAsync"in Array,"OffscreenCanvas"in i,"CompressionStream"in i,"isWellFormed"in String.prototype])>=3}function k4(){var i,s=window;return yi(["Iterator"in s,s.Error&&"isError"in s.Error,s.Atomics&&"pause"in s.Atomics,((i=s.Document)===null||i===void 0?void 0:i.prototype)&&"fragmentDirective"in s.Document.prototype,s.CSSRule&&!("UNKNOWN_RULE"in s.CSSRule),!("SVGDocument"in s)])>=4}function tl(){var i=window;return yi([!("PushManager"in i),!("AudioBuffer"in i),!("RTCPeerConnection"in i),!("geolocation"in navigator),!("ServiceWorker"in i)])>=3}function D4(){var i=window;return yi(["ClipboardItem"in i,"PerformanceEventTiming"in i,"RTCSctpTransport"in i])>=2}var U4=(function(){function i(s){var o=this;this.onReportReady=s,this.isStopped=!1,this.pageStartTimestamp=(function(){var tt,rt,at=performance;if(at.timeOrigin){var mt=(rt=(tt=at.getEntriesByType)===null||tt===void 0?void 0:tt.call(at,"navigation"))===null||rt===void 0?void 0:rt[0];if(mt)return at.timeOrigin+(mt.responseStart||mt.unloadEventEnd)}return at.timing.domLoading||at.timing.responseStart||at.timing.unloadEventEnd})(),this.events={};for(var c=window,p=document,y=[[p,"readystatechange",function(){return o.handleDocumentReadyStateChange()}],[p,"visibilitychange",function(){return o.handleVisibilityChange()}],[p,"pageshow",function(){return o.handlePageTransition(!0)}],[p,"pagehide",function(){return o.handlePageTransition(!1)}],[c,"unload",function(){return o.handlePageUnload()}]],w=0,E=y;w<E.length;w++){var v=E[w],I=v[0],B=v[1],L=v[2];I.addEventListener(B,L)}var $=(function(tt){var rt=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((function(at){return gi(document,at,tt,void 0)}));return function(){for(var at=0,mt=rt;at<mt.length;at++)(0,mt[at])()}})((function(){return o.handleFullscreenChange()})),Q=(function(tt){var rt=window,at=navigator.connection;if(at)return gi(at,"change",tt);var mt=gi(rt,"online",tt),bt=gi(rt,"offline",tt);return function(){mt(),bt()}})((function(){return o.handleNetworkConnectionChange()}));this.stop=function(){o.isStopped=!0;for(var tt=0,rt=y;tt<rt.length;tt++){var at=rt[tt],mt=at[0],bt=at[1],vt=at[2];mt.removeEventListener(bt,vt)}$(),Q()}}return i.prototype.addEvent=function(s){var o;if(!this.isStopped){var c={time:new Date,type:"agentEvent",event:s};if(s.e===0){var p=s.options;this.urlHashing=(o=p?.urlHashing)!==null&&o!==void 0?o:d0(p?.stripUrlParams),c.documentReadyState=document.readyState,c.isPageVisible=Qa(),c.isFullscreen=el(),c.network=nl()}switch(this.storeAgentEvent(c),s.e){case 2:this.submitReport(s.agentId,void 0);break;case 4:case 5:this.submitReport(s.agentId,s.getCallId)}}},i.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},i.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:Qa()})},i.prototype.handlePageTransition=function(s){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:s})},i.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:el()})},i.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:nl()})},i.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var s=0,o=Object.keys(this.events);s<o.length;s++){var c=o[s],p=this.events[c];if(Object.keys(p.getCalls).length===0)this.submitReport(c,void 0);else for(var y=0,w=Object.keys(p.getCalls);y<w.length;y++){var E=w[y];P4(p.getCalls[E])||this.submitReport(c,E)}}this.stop()},i.prototype.storeAgentEvent=function(s){var o=s.event,c=o.agentId;if(this.events[c]||(this.events[c]={commonEvents:[],getCalls:{}}),Q0(o)){var p=o.getCallId;this.events[c].getCalls[p]||(this.events[c].getCalls[p]=[]),this.events[c].getCalls[p].push(s)}else this.events[c].commonEvents.push(s)},i.prototype.storeEnvironmentEvent=function(s){for(var o=0,c=Object.keys(this.events);o<c.length;o++){var p=c[o];this.events[p].commonEvents.push(s)}},i.prototype.submitReport=function(s,o){var c=(function(y,w,E){var v=[];return y[w]&&(v.push.apply(v,y[w].commonEvents),E!==void 0&&v.push.apply(v,y[w].getCalls[E]||[])),v.sort((function(I,B){return I.time.getTime()-B.time.getTime()})),v})(this.events,s,o),p=(function(y,w,E){for(var v,I,B,L,$,Q,tt,rt,at,mt=(function(Nt){for(var Pt={},Xt=0,te=Nt;Xt<te.length;Xt++){var re=te[Xt];re.type==="agentEvent"&&(Pt[re.event.e]=re)}return Pt})(y),bt="null",vt=0,_t=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];vt<_t.length;vt++){var Vt=_t[vt],Gt=Vt[0],Kt=Vt[1];if(mt[Gt]){bt=Kt;break}}return{time:((v=y[y.length-1])===null||v===void 0?void 0:v.time)||new Date,pageUrl:location.href,pageStartTime:new Date(w),isInIframe:A4(),agentVersion:(I=mt[0])===null||I===void 0?void 0:I.event.version,userAgent:navigator.userAgent,pageViewId:K0(),agentId:(B=mt[0])===null||B===void 0?void 0:B.event.agentId,getCallId:(L=mt[3])===null||L===void 0?void 0:L.event.getCallId,requestId:(Q=($=mt[4])===null||$===void 0?void 0:$.event.result.requestId)!==null&&Q!==void 0?Q:(rt=(tt=mt[5])===null||tt===void 0?void 0:tt.event.error)===null||rt===void 0?void 0:rt.requestId,visitorId:(at=mt[4])===null||at===void 0?void 0:at.event.result.visitorId,identificationState:bt,events:y,urlHashing:E}})(c,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(p)}catch(y){console.error(y)}},i})();function P4(i){return i.some((function(s){return s.type==="agentEvent"&&(s.event.e===4||s.event.e===5)}))}function el(){return!!nt()}function nl(){var i=navigator.connection;return{online:navigator.onLine,downlink:i?.downlink,downlinkMax:i?.downlinkMax,effectiveType:i?.effectiveType,roundTrip:i?.rtt,saveData:i?.saveData,type:i?.type}}function F4(i){var s=this,o=i.clientId,c=i.token,p=i.endpoint,y=p===void 0?"https://api.rollbar.com/api/1/item/":p,w=new U4((function(E){return(0,e.sH)(s,void 0,void 0,(function(){var v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return v=(function(B,L,$){return{access_token:$,data:H4(B,L,void 0)}})(E,o,c),[4,j4(y,v)];case 1:return I.sent(),[2]}}))}))}));return w.addEvent.bind(w)}function H4(i,s,o){var c;o===void 0&&(o=a0());var p=V4[i.identificationState],y=p.level,w=p.message,E=(function(v,I){if(X0(I))return v;for(var B=hs(v),L=0,$=tu;L<$.length;L++){var Q=$[L];I[Q]&&B[Q]&&(B[Q]=Z0)}return ps(B)})(i.pageUrl,i.urlHashing);return{environment:s,level:y,timestamp:Math.round(i.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:o,notifier:{name:"Fingerprint Pro monitoring",version:Ga},request:{url:E,query_string:((c=/\?.*$/.exec(E))!==null&&c!==void 0?c:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:i.userAgent,code_version:i.agentVersion}},person:i.visitorId===void 0?void 0:{id:"visitorId:".concat(i.visitorId)},body:{telemetry:(0,e.fX)([{level:"debug",source:"client",timestamp_ms:i.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],i.events.map(G4),!0),message:{body:w}},custom:{isInIframe:i.isInIframe,pageViewId:i.pageViewId,agentId:i.agentId,getCallId:i.getCallId,requestId:i.requestId,identificationState:i.identificationState}}}var V4={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 G4(i){var s={type:"manual",level:"debug",source:"client",timestamp_ms:i.time.getTime()};switch(i.type){case"documentReadyState":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:'Document ready state becomes "'.concat(i.state,'"')}});case"pageVisibilityToggle":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Page becomes ".concat(i.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:i.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Programmatic fullscreen ".concat(i.isFullscreen?"on":"off")}});case"networkChange":return(0,e.Cl)((0,e.Cl)({},s),{body:(0,e.Cl)((0,e.Cl)({},i.network),{message:"Network connection changes"})});case"pageUnload":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Page is about to unload (terminate)"}})}var o=i.event,c=function(I,B){B===void 0&&(B="info");var L=I;L.e,L.agentId,L.getCallId;for(var $=(0,e.Tt)(L,["e","agentId","getCallId"]),Q=(0,e.Cl)((0,e.Cl)({},s),{level:B,body:(0,e.Cl)({message:p0(o.e)},$)}),tt=0,rt=["documentReadyState","isPageVisible","isFullscreen","network"];tt<rt.length;tt++){var at=rt[tt];i[at]!==void 0&&(Q.body[at]=i[at])}return Q};switch(o.e){case 0:o.version;var p=o.options,y=(0,e.Tt)(o,["version","options"]);return c((0,e.Cl)((0,e.Cl)({},y),{options:C4(p)}));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return c(o);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return c(o,"error");case 7:var w=o.result;return c((0,e.Cl)((0,e.Cl)({},o),{result:(0,e.Cl)((0,e.Cl)({},w),{v:"v"in w?w.v&&zr(w.v,1e3):void 0})}));case 10:return c((0,e.Cl)((0,e.Cl)({},o),{body:zr(o.body,1e3)}));case 13:var E=c((0,e.Cl)((0,e.Cl)({},o),{result:x4(o.result)}));return E.body.message+=" (the values are omitted)",E;case 19:var v=o.body;return v instanceof ArrayBuffer&&(v="(base64) ".concat(v.byteLength>1800?"".concat(Qn(new Uint8Array(v,0,1800)),"..."):Qn(v))),c((0,e.Cl)((0,e.Cl)({},o),{body:v}))}}function j4(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c;return(0,e.YH)(this,(function(p){switch(p.label){case 0:o=(function(y){return JSON.stringify(y,(function(w,E){if(E instanceof Error){var v=(function(I,B){var L;return B===void 0&&(B=!1),(0,e.Cl)({name:I.name,message:I.message,stack:B?(L=I.stack)===null||L===void 0?void 0:L.split(`
|
|
10
|
-
`):I.stack},I)})(
|
|
11
|
-
`))[0],ce=te[1],(Ee=Y4.exec(ce)||W4.exec(re))?Ee[1]:void 0);if(Ce)return Ce}return null})();return(Nt={}).u=Pt?zr(Pt,1e3):null,Nt})(),_t.uh=(function(Nt){var Pt;if(Nt)return(Pt={}).p=Nt.path?1:void 0,Pt.q=Nt.query?1:void 0,Pt.f=Nt.fragment?1:void 0,Pt})(rt),_t.gt=1,_t.ab=at,_t.hu=mt?0:bt?1:void 0,_t.ri=bt,_t),(function(Nt){for(var Pt={},Xt=0,te=Object.keys(Nt);Xt<te.length;Xt++){var re=te[Xt],ce=Nt[re];if(ce){var Ee="error"in ce?ol(ce.error):ce.value;Pt[re]=Ee}}return Pt})(c)),[4,Promise.all(s.map((function(Nt){var Pt=Nt.toRequest;return(0,e.sH)(Vt,void 0,void 0,(function(){var Xt,te,re;return(0,e.YH)(this,(function(ce){switch(ce.label){case 0:return Pt?(te=(Xt=Object).assign,re=[vt],[4,Pt(Q,rt)]):[3,2];case 1:te.apply(Xt,re.concat([ce.sent()])),ce.label=2;case 2:return[2]}}))}))})))];case 1:return Gt.sent(),[2,vt]}var Kt}))}))}function al(i,s,o,c,p){p===void 0&&(p=r4);var y=p()%(o+1),w=Wr(i),E=1+s.length+1+y+c+w.length,v=new ArrayBuffer(E),I=new Uint8Array(v),B=0,L=p();I[B++]=L;for(var $=0,Q=s;$<Q.length;$++){var tt=Q[$];I[B++]=L+tt}I[B++]=L+y;for(var rt=0;rt<y;++rt)I[B++]=p();var at=new Uint8Array(c);for(rt=0;rt<c;++rt)at[rt]=p(),I[B++]=at[rt];for(rt=0;rt<w.length;++rt)I[B++]=w[rt]^at[rt%c];return v}function nu(i,s,o){var c=function(){throw new Error("Invalid data")},p=Wr(i);p.length<s.length+2&&c();for(var y=0;y<s.length;++y)r0(p[1+y],p[0])!==s[y]&&c();var w=1+s.length,E=r0(p[w],p[0]);p.length<w+1+E+o&&c();var v=w+1+E,I=v+o,B=new ArrayBuffer(p.length-I),L=new Uint8Array(B);for(y=0;y<L.length;++y)L[y]=p[I+y]^p[v+y%o];return B}function Z4(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return ul()?(s=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),o=s[0],c=s[1],[4,X4(i,c)]):[2,[!1,i]];case 1:return p=w.sent(),y=o?p:(function(E){return new Uint8Array(E.buffer,E.byteOffset+2,E.byteLength-6)})(p),[2,[!0,y]]}}))}))}function ul(){return typeof CompressionStream<"u"}function X4(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w,E,v,I,B,L,$;return(0,e.YH)(this,(function(Q){switch(Q.label){case 0:(o=s.writable.getWriter()).write(i),o.close(),c=s.readable.getReader(),p=[],y=0,Q.label=1;case 1:return[4,c.read()];case 2:if(w=Q.sent(),E=w.value,w.done)return[3,4];p.push(E),y+=E.byteLength,Q.label=3;case 3:return[3,1];case 4:if(p.length===1)return[2,p[0]];for(v=new Uint8Array(y),I=0,B=0,L=p;B<L.length;B++)$=L[B],v.set($,I),I+=$.byteLength;return[2,v]}}))}))}var cl=[3,13],$4=[3,14];function q4(i,s){return al(i,s?$4:cl,3,9)}function J4(i){var s=i.body,o=(0,e.Tt)(i,["body"]);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,y,w,E,v,I;return(0,e.YH)(this,(function(B){switch(B.label){case 0:return fl(s)?[4,Z4(s)]:[3,2];case 1:return w=B.sent(),[3,3];case 2:w=[!1,s],B.label=3;case 3:return p=(c=w)[0],y=c[1],[4,$0((0,e.Cl)((0,e.Cl)({},o),{body:q4(y,p),responseFormat:"binary"}))];case 4:E=B.sent(),v=E.body,I=!1;try{v=nu(v,cl,9),I=!0}catch{}return[2,(0,e.Cl)((0,e.Cl)({},E),{body:v,wasSecret:I})]}}))}))}function fl(i){return i.byteLength>1024&&ul()}function ll(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,E,v,I=this;return(0,e.YH)(this,(function(B){switch(B.label){case 0:if(i.length===0)throw new TypeError("The list of endpoints is empty");return y=i.map((function(L){return(function($,Q){var tt=Q.apiKey,rt=Q.integrations,at=rt===void 0?[]:rt;return eu($,{ci:il(),q:tt,ii:at})})(L,s)})),[4,K4(s)];case 1:return w=B.sent(),E=y0(w),v=s.fast?0:1,[4,uo(p,(function(){return{e:15,stage:v,body:w,isCompressed:fl(E)}}),(function(L){return{e:16,stage:v,result:L}}),(function(L){return{e:17,stage:v,error:L}}),(function(){return(0,e.sH)(I,void 0,void 0,(function(){return(0,e.YH)(this,(function(L){switch(L.label){case 0:return[4,rl(y,Q4.bind(null,E,p,v,o),w4.bind(null,s.modules,!!s.extendedResult,s.storageKey),1/0,c)];case 1:return[2,t5(L.sent())]}}))}))}))];case 2:return[2,B.sent()]}}))}))}function Q4(i,s,o,c,p,y,w){var E=this;return uo(s,(function(){return{e:18,stage:o,tryNumber:y,url:p}}),(function(v){var I=v.status,B=v.getHeader,L=v.body,$=v.bodyData,Q=v.wasSecret;return{e:19,stage:o,tryNumber:y,status:I,retryAfter:B("retry-after"),body:$??L,wasSecret:Q}}),(function(v){return{e:20,stage:o,tryNumber:y,error:v}}),(function(){return(0,e.sH)(E,void 0,void 0,(function(){return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,J4({url:p,method:"post",headers:{"Content-Type":"text/plain"},body:i,withCredentials:!0,abort:w,container:c})];case 1:return[2,y4(v.sent())]}}))}))}))}function t5(i){var s=i.result,o=i.failedAttempts,c=i.aborted;if(s)return s;var p=o[0];if(!p)throw c&&!c.resolve?c.error:new Error("aborted");var y=p.level,w=p.error;if(y===0&&w instanceof Error){switch(w.name){case"CSPError":throw new Error(qa);case"InvalidURLError":throw new Error(Ja);case"AbortError":throw new Error(Xa)}throw new Error(Za)}throw w}function e5(i,s,o){var c,p=this,y=(0,e.Cl)((0,e.Cl)({},o),{cache:{}}),w=(function($){for(var Q={},tt={},rt={},at=0,mt=$;at<mt.length;at++){var bt=mt[at].sources;bt&&(Object.assign(Q,bt.stage1),Object.assign(tt,bt.stage2),Object.assign(rt,bt.stage3))}var vt=tt;return Object.assign(vt,rt),[Q,vt]})(i),E=w[0],v=w[1],I=s?1e5:50,B=gt(E,y,[],I),L=io((c=8,c===void 0&&(c=50),(function($,Q){Q===void 0&&(Q=1/0);var tt=window.requestIdleCallback;return tt?new Promise((function(rt){return tt.call(window,(function(){return rt()}),{timeout:Q})})):u(Math.min($,Q))})(c,2*c)).then((function(){return gt(v,y,[],I)})));return function(){return(0,e.sH)(p,void 0,void 0,(function(){var $,Q,tt,rt;return(0,e.YH)(this,(function(at){switch(at.label){case 0:return[4,Promise.all([B(),L.then((function(mt){return mt()}))])];case 1:return $=at.sent(),Q=$[0],tt=$[1],rt=tt,Object.assign(rt,Q),[2,rt]}}))}))}}function Sr(i,s){for(var o=i;o;){for(var c=Object.getOwnPropertyNames(o),p=0;p<c.length;p++){var y=c[p];if(tr(y)==s)return y}o=Object.getPrototypeOf(o)}return""}function qt(i,s){var o=i[Sr(i,s)];return typeof o=="function"?o.bind(i):o}function Tn(i,s){var o;return function(c){return o||(o=(function(p,y){return ls(nu(new Uint32Array(p),[],y))})(i,s)),ss(o[c])}}function co(i,s,o){var c;return function(p){return c===null?c:(c||(c=(function(y,w,E){var v=Ar(w());try{return ls((function(I,B,L){for(var $=Wr(I),Q=new ArrayBuffer($.length-L),tt=new Uint8Array(Q),rt=0;rt<$.length;++rt)tt[rt]=$[rt]^B[rt%B.length];return Q})(new Uint32Array(y),v,E))}catch(I){if(rs(I)&&I.name==="SyntaxError")return null;throw I}})(i,s,o)),ss(c&&c[p]))}}var Kr=Tn([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),n5=[202,206];function r5(i){for(var s={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(rt,at){return rt(at)},kpZRq:function(rt,at,mt){return rt(at,mt)},UoPyk:function(rt,at){return rt(at)},UpGPH:function(rt,at,mt){return rt(at,mt)},ZuRYV:function(rt,at){return rt-at},VnFXf:function(rt,at,mt,bt){return rt(at,mt,bt)},fDQiC:function(rt,at){return rt(at)},eKHGy:function(rt,at){return rt<at},AkgUE:function(rt,at){return rt/at},iBJKB:function(rt,at,mt){return rt(at,mt)},lIinn:function(rt,at){return rt+at}},o=s.uAVXy.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.FInQd(Qn,v);continue;case"1":return s.kpZRq(I4,i,E);case"2":var y=s.kpZRq(o5,s.UoPyk(Ar,B),n5);continue;case"3":var w=s.UpGPH(parseInt,$[s.ZuRYV($.length,1)],16);continue;case"4":var E=s.kpZRq(i5,L,v);continue;case"5":var v=new Uint8Array(16);continue;case"6":var I=s.VnFXf(dl,v[w],8,22);continue;case"7":var B=p.slice(0,Math.min(s.ZuRYV(p.length,2),I));continue;case"8":var L="".concat(B).concat(Q).replace(new RegExp(s.fDQiC(Kr,1),"g"),"-").replace(new RegExp(s.fDQiC(Kr,2),"g"),"_");continue;case"9":var $=s.UoPyk(dn,i);continue;case"10":var Q=s.FInQd(Qn,s.FInQd(s5,s.FInQd(i0,y))).slice(0,2);continue;case"11":for(var tt=0;s.eKHGy(tt,$.length);tt+=2)v[s.AkgUE(tt,2)]=s.iBJKB(parseInt,"".concat($[tt]).concat($[s.lIinn(tt,1)]),16);continue}break}}function i5(i,s){for(var o={goMxK:"2|4|1|0|3",lnlOq:function(v,I){return v<I},RltcK:function(v,I,B,L){return v(I,B,L)},cVMXe:function(v,I){return v&I},SclSa:function(v,I){return v+I}},c=o.goMxK.split("|"),p=0;;){switch(c[p++]){case"0":for(;o.lnlOq(w,i.length);)E=o.RltcK(dl,s[o.cVMXe(w,15)],4,7),y+=i.slice(w,o.SclSa(w,E)),y+="/",w+=E;continue;case"1":var y="";continue;case"2":var w=0;continue;case"3":return y.slice(0,-1);case"4":var E=0;continue}break}}function dl(i,s,o){return(function(c,p){return c+p})(s,Math.floor((function(c,p){return c*p})((function(c){return c/256})(i),(function(c){return c+1})((function(c,p){return c-p})(o,s)))))}function o5(i,s){for(var o={toGYz:"0|3|4|1|2",OGfKZ:function(v,I){return v+I},ENgdo:function(v,I){return v<I},oVWhZ:function(v,I){return v+I}},c=o.toGYz.split("|"),p=0;;){switch(c[p++]){case"0":var y=o.OGfKZ(i.length,s.length);continue;case"1":for(var w=0;o.ENgdo(w,s.length);w++)E[o.oVWhZ(w,i.length)]=s[w];continue;case"2":return E;case"3":var E=new Uint8Array(y);continue;case"4":for(w=0;o.ENgdo(w,i.length);w++)E[w]=i[w];continue}break}}function s5(i){var s=function(o,c){return o>>c};return new Uint8Array([s(i,24),s(i,16),(function(o){return o>>8})(i),i])}function ru(i,s){return!!i&&(function(o,c){return o===c})((function(o,c){return o(c,3814588639)})(qt,i),(function(o,c){return o(c,3814588639)})(qt,s))}function a5(i){var s=function(c,p){return c(p)},o=(function(c){return c(3)})(Kr);return(function(c,p){return c!==p})(i,s(Kr,4))&&(o="".concat(i,".").concat(o)),s(Kr,5).concat(o,"/")}function u5(i){var s=(function(o){return o(6)})(Kr)[i];return"".concat(s,(function(o){return o(7)})(Kr))}var c5=(function(){var i;return(i={}).noop=["a","b"],i})();function f5(i,s,o,c,p,y,w,E,v,I,B,L,$){var Q=this,tt={modules:i,apiKey:c,integrations:E,imi:v,storageKey:w,ab:B,urlHashing:I},rt=function(_t,Vt,Gt){return(0,e.sH)(Q,void 0,void 0,(function(){var Kt,Nt,Pt;return(0,e.YH)(this,(function(Xt){switch(Xt.label){case 0:return L?[4,mt()]:[2,void 0];case 1:Kt=Xt.sent(),Nt=!1,Vt.catch((function(){return Nt=!0})),Xt.label=2;case 2:return Xt.trys.push([2,4,,5]),[4,ll(p,(0,e.Cl)((0,e.Cl)({},tt),{tls:Kt,fast:!0}),_t,Vt,Gt)];case 3:return[2,Xt.sent()];case 4:if(Pt=Xt.sent(),Nt)throw Pt;return rs(Pt)&&Pt.message===k0||console.warn(Pt),[2,void 0];case 5:return[2]}}))}))},at=function(_t,Vt,Gt){var Kt=_t.timeout,Nt=Kt===void 0?1e4:Kt,Pt=_t.tag,Xt=_t.linkedId,te=_t.disableTls,re=_t.extendedResult,ce=_t.exposeComponents,Ee=_t.environment,ve=_t.products,Ie=io(Promise.all([vt(Gt),bt(Nt,te,Gt)]));return function(Ce,Le){return(0,e.sH)(Q,void 0,void 0,(function(){var Ne,nn,Sn;return(0,e.YH)(this,(function(pn){switch(pn.label){case 0:return[4,Promise.race([Le,Ie])];case 1:return Ne=pn.sent(),nn=Ne[0],Sn=Ne[1],[4,ll(p,(0,e.Cl)((0,e.Cl)({},tt),{components:nn,customComponent:Ee,tag:Pt,tls:Sn,linkedId:o0(Xt),extendedResult:re,exposeComponents:ce,algorithm:y,products:t4(ve,"products"),requestId:Ce}),Vt,Le,Gt)];case 2:return[2,pn.sent()]}}))}))}},mt=function(){return o?.(0,50,!1,void 0)},bt=function(_t,Vt,Gt){return o?.(.1*_t,.4*_t,Vt,Gt)},vt=function(_t){return(0,e.sH)(Q,void 0,void 0,(function(){var Vt,Gt;return(0,e.YH)(this,(function(Kt){switch(Kt.label){case 0:return Kt.trys.push([0,2,,3]),[4,s()];case 1:return Vt=Kt.sent(),dr(_t,(function(){return{e:13,result:Vt}})),[2,Vt];case 2:throw Gt=Kt.sent(),dr(_t,(function(){return{e:14,error:Gt}})),Gt;case 3:return[2]}}))}))};return{get:function(_t){_t===void 0&&(_t={});var Vt=$&&(function(Gt,Kt){return function(Nt){return Gt((0,e.Cl)((0,e.Cl)({},Nt),{getCallId:Kt}))}})($,oo(8));return uo(Vt,(function(){return{e:3,options:_t}}),(function(Gt){return{e:4,result:Gt}}),(function(Gt){return{e:5,error:Gt}}),(function(){return Gt=function(Kt){return(function(Nt,Pt,Xt){return(0,e.sH)(Q,void 0,void 0,(function(){var te,re,ce,Ee,ve,Ie,Ce;return(0,e.YH)(this,(function(Le){switch(Le.label){case 0:te=t0(),Le.label=1;case 1:return Le.trys.push([1,,7,8]),re=q0(te),ce=Un((Ce=Nt.timeout)!==null&&Ce!==void 0?Ce:1e4).then((function(){return Promise.reject(new Error(Ka))})),Ee=at(Nt,re,Pt),[4,rt(re,ce,Pt)];case 2:return(ve=Le.sent())?(Xt(ve),[4,Ee(ve.requestId,ce)]):[3,4];case 3:return Le.sent(),[3,6];case 4:return Ie=Xt,[4,Ee(void 0,ce)];case 5:Ie.apply(void 0,[Le.sent()]),Le.label=6;case 6:return[3,8];case 7:return te.resolve(),[7];case 8:return[2]}}))}))})(_t,Vt,Kt)},new Promise((function(Kt,Nt){Gt(Kt).then((function(){return Nt(new Error("Action didn't call `resolve` or `reject`"))}),Nt)}));var Gt}))}}}var hl=function(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return p=(0,e.fX)([(w=/{(.*?)}/.exec(location.hash),!!w&&tr(w[1])===3025844545&&R4())],(i?.modules||[]).map((function(E){return E.addEvent})),!0),y=p.filter((function(E){return!!E})),s=y.length?function(){for(var E=[],v=0;v<arguments.length;v++)E[v]=arguments[v];for(var I=function($){Qf((function(){return $.apply(void 0,E)}))},B=0,L=y;B<L.length;B++)I(L[B])}:void 0,o=s&&(function(E,v){return function(I){return E((0,e.Cl)((0,e.Cl)({},I),{agentId:v}))}})(s,oo(8)),[4,uo(o,(function(){return{e:0,version:Ga,options:i}}),(function(E){return{e:1,ab:E[1]}}),(function(E){return{e:2,error:E}}),(function(){var E,v,I=i.token,B=i.apiKey,L=B===void 0?I:B,$=i.region,Q=$===void 0?"us":$,tt=i.tlsEndpoint,rt=tt===void 0?cs:tt,at=i.disableTls,mt=i.storageKey,bt=mt===void 0?h0:mt,vt=i.endpoint,_t=vt===void 0?us:vt,Vt=i.te,Gt=Vt===void 0?l0:Vt,Kt=i.integrationInfo,Nt=Kt===void 0?[]:Kt,Pt=i.algorithm,Xt=i.imi,te=Xt===void 0?((E={}).m="s",E):Xt,re=i.stripUrlParams,ce=i.urlHashing,Ee=ce===void 0?d0(re):ce,ve=i.modules,Ie=i.abTests,Ce=Ie===void 0?{}:Ie,Le=i.externalABSelections,Ne=Le===void 0?{}:Le,nn=i.optimizeRepeatedVisits,Sn=nn!==void 0&&nn,pn=i.aggressiveOptimization,Fn=pn!==void 0&&pn;if(!L||typeof L!="string")throw new Error("API key required");var Wn,zn,Tr,Xr,nr,fn,Mt,Tt,xt,Qt=(function(Te,ke,ze){for(var gn=(0,e.Cl)({},ze),Nr=0,ho=Object.entries(Te);Nr<ho.length;Nr++){var _i=ho[Nr],bi=_i[0],po=_i[1],Nn=ke[bi];if(Nn)try{gn[bi]=f0(Nn);continue}catch(Kn){console.error(Kn)}gn[bi]=f0(po)}return gn})((function(Te){for(var ke=(0,e.Cl)({},c5),ze=0,gn=Te;ze<gn.length;ze++){var Nr=gn[ze];Object.assign(ke,Nr.ab)}return ke})(ve),Ce,Ne),ae=(Wn=_t,zn=Q,Tr=function(Te,ke,ze){return Te(ke,ze)},Xr=function(Te,ke){return Te(ke)},nr=function(Te,ke){return Te(ke)},(Array.isArray(Wn)?Wn:[Wn]).map((function(Te){return Tr(ru,Te,us)?Xr(a5,zn):nr(String,Te)}))),un=(v=(function(Te){for(var ke=0,ze=Te;ke<ze.length;ke++){var gn=ze[ke];if(gn.tls)return gn.tls}})(ve))===null||v===void 0?void 0:v(rt,ae,L,at,void 0,o);return dr(o,(function(){return{e:12}})),[f5(ve,e5(ve,Fn,{urlHashing:Ee,ab:Qt,te:(Mt=Q,Tt=function(Te,ke){return Te(ke)},xt=function(Te,ke){return Te(ke)},ru(fn=Gt,l0)?Tt(u5,Mt):xt(String,fn))}),un,L,ae,o0(Pt),bt,Nt,te,Ee,Qt,Sn,o),Qt]}))];case 1:return[2,c.sent()[0]]}var p,y,w}))}))},l5=rn(zt),d5=hn(pe,-1),h5=rn(ne),p5=wt(h,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),v5=wt(_e,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),pl=hn(se,-1),vl=rn(he),m5=hn(le,-1),ml=hn(ue,-1),gl=wt(ye,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),yl=hn(We,-1),g5=rn(we),y5=rn(Re),w5=rn(an),E5=rn(Be),_5=hn(Ue,-1),wl=hn(lr,-1),b5=hn(Ge,-1),R5=wt((function(){return Zt()}),(function(i){var s=i.geometry,o=i.text,c=s==="unsupported"?-1:s==="unstable"?-2:0;return{s:c,v:(0,e.Cl)((0,e.Cl)({},i),{geometry:c===0?dn(s):"",text:c===0?dn(o):""})}})),El=rn(He),_l=rn(Yr),A5=rn($e),S5=rn(qe),I5=hn(ts,-1),O5=hn(Je,-1),T5=hn(Qe,-1),N5=hn(es,-1),x5=hn(tn,-1),C5=hn(en,-1),L5=hn(Gi,-1),B5=hn(ji,-1),M5=wt(Yi,(function(i){return{s:0,v:dn(Object.keys(i).map((function(s){return"".concat(s,"=").concat(i[s])})).join(","))}})),k5=hn(Wi,-1),D5=rn(zi),U5=hn(Ki,-1),P5=wt(Zi,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),bl=sl($i),Rl=wt(qi,(function(i){var s;if(typeof i=="number")return{s:i,v:null};var o=["32926","32928"],c=i.parameters.map((function(y){var w=y.split("=",3),E=w[0],v=w[1];return w[2]!==void 0||o.includes(v)?"".concat(E,"(").concat(v,")=null"):"".concat(E,"=").concat(v)})),p=i.extensionParameters.map((function(y){var w=y.split("=",3),E=w[0],v=w[1],I=w[2];return I!==void 0&&v!=="34047"?"".concat(E,"(").concat(v,")=").concat(I):"".concat(E,"=").concat(v)}));return{s:0,v:{contextAttributes:dn(i.contextAttributes.join("&")),parameters:dn(c.join("&")),parameters2:dn(i.parameters.join("&")),shaderPrecisions:dn(i.shaderPrecisions.join("&")),extensions:dn(((s=i.extensions)===null||s===void 0?void 0:s.join(","))||""),extensionParameters:dn(p.join(",")),extensionParameters2:dn(i.extensionParameters.join("&")),unsupportedExtensions:i.unsupportedExtensions}}})),F5=sl(Xi),H5=Ln(Cn.userAgent),V5=Ln(Cn.appVersion),G5=Ln(Cn.rtt),j5=Ln(Cn.notificationPermissions),Y5=Ln(Cn.pluginsLength),W5=Ln(Cn.errorTrace),z5=Ln(Cn.productSub),K5=Ln(Cn.documentElementKeys),Z5=Ln(Cn.windowExternal),X5=Ln(Cn.mimeTypesConsistent),$5=Ln(Cn.functionBind),q5=Ln(Cn.process),J5=Ln(Cn.windowSize),Q5=Ln(Cn.distinctiveProps),Al=rn(P),Sl=rn(f),Il=rn(S),Ol=rn(D),Tl=rn(z),Nl=rn(q),xl=rn(ft),Cl=rn(tl),t6=rn(K);function e6(){var i=window;if(!S())return wi(!1);try{if([66,114,97,118,101].map((function(w){return String.fromCharCode(w)})).join("")in i)return wi(!0);var s=document.createElement("canvas");s.width=4,s.height=4,s.style.display="inline";var o=s.toDataURL();if(o==="")return wi(!0);var c=os(o.split(",")[1]),p=n0(c,[73,68,65,84,24]);if(p===-1)return wi(!1);var y=n0(c,[73,69,78,68]);return wi(y!==-1&&c.slice(p+5,y).reduce((function(w,E){return w+E}),0)!==1321)}catch{return wi(!1)}}function wi(i){return{s:0,v:i}}function Ll(){return Bl("dark")?{s:0,v:!0}:Bl("light")?{s:0,v:!1}:{s:-1,v:null}}function Bl(i){return matchMedia("(prefers-color-scheme: ".concat(i,")")).matches}function Ml(){var i=Date.now();return{s:0,v:[kl(i),kl(i-6e4*new Date().getTimezoneOffset())]}}function kl(i){var s=Number(i);return isNaN(s)?-1:s}function n6(){var i=window.performance;if(!i?.now)return{s:-1,v:null};for(var s=1,o=1,c=i.now(),p=c,y=0;y<5e4;y++)if((c=p)<(p=i.now())){var w=p-c;w>s?w<o&&(o=w):w<s&&(o=s,s=w)}return{s:0,v:[s,o]}}var r6=Tn([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function i6(){var i,s,o=function(y,w){return y===w},c=function(y,w,E){return y(w,E)},p=o(s=(function(y){return y===null})(i=window[(function(y){return y(0)})(r6)])||o(i,void 0)?void 0:c(qt,i,3933025333),null)||(function(y){return y===void 0})(s)?void 0:c(qt,s,3098533860);return(function(y){return y===null})(p)||o(p,void 0)?{s:-1,v:null}:{s:0,v:p}}function o6(i){var s=ot(i.cache);return s?((function(o){o.clearColor(0,0,1,1);var c=o.createProgram();if(c){w(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);}"),w(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),o.linkProgram(c),o.useProgram(c),o.enableVertexAttribArray(0);var p=o.getUniformLocation(c,"t"),y=o.createBuffer();o.bindBuffer(34962,y),o.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),o.vertexAttribPointer(0,2,5126,!1,0,0),o.clear(16384),o.uniform1f(p,3.65),o.drawArrays(4,0,3)}function w(E,v){var I=o.createShader(35633-E);c&&I&&(o.shaderSource(I,v),o.compileShader(I),o.attachShader(c,I))}})(s),{s:0,v:dn(s.canvas.toDataURL())}):{s:-1,v:null}}function s6(i){return Dl(i,u6)}function a6(i){return Dl(i,c6)}function Dl(i,s){var o=i.cache;return(0,e.sH)(this,void 0,void 0,(function(){var c,p;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return typeof((c=window.speechSynthesis)==null?void 0:c.getVoices)!="function"?[2,{s:-1,v:null}]:(o.tts||(o.tts=(function(w){return(0,e.sH)(this,void 0,void 0,(function(){var E,v,I;return(0,e.YH)(this,(function(B){switch(B.label){case 0:if(E=function(){return w.getVoices()},(function(L){return!L.addEventListener||q()&&tl()})(w))return[2,{v:E()}];v={v:null},B.label=1;case 1:return B.trys.push([1,,3,4]),[4,new Promise((function(L,$){var Q,tt=function(){var rt=E();rt.length?(v.v=rt,Q?.(),Q=Ua(L,50)):Q||(Q=ns(L,600))};I=gi(w,"voiceschanged",(function(){try{tt()}catch(rt){$(rt)}})),tt()}))];case 2:return B.sent(),[3,4];case 3:return I&&ns(I,1e4),[7];case 4:return[2,v]}}))}))})(c)),[4,o.tts]);case 1:return p=y.sent(),[2,function(){return p.v?s(p.v):{s:-2,v:null}}]}}))}))}function u6(i){var s=function(c){return c.replace(/([,\\])/g,"\\$1")},o=i.map((function(c){return[s(c.voiceURI),s(c.name),s(c.lang),c.localService?"1":"0",c.default?"1":"0"].join(",")})).sort();return{s:i.length?0:1,v:dn(JSON.stringify(o))}}function c6(i){var s=i.some((function(o){return tr(o.name.slice(0,6))===1655763047}));return{s:i.length?0:1,v:s}}var f6=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function l6(){var i;return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p=this;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return(s=navigator.userAgentData)&&typeof s=="object"?(o={},c=[],typeof s.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(f6.map((function(w){return(0,e.sH)(p,void 0,void 0,(function(){var E,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,s.getHighEntropyValues([w])];case 1:return(E=I.sent()[w])!==void 0&&(o[w]=typeof E=="string"?E:JSON.stringify(E)),[3,3];case 2:if(!((v=I.sent())instanceof Error&&v.name==="NotAllowedError"))throw v;return c.push(w),[3,3];case 3:return[2]}}))}))})))]):[2,{s:-1,v:null}];case 1:y.sent(),y.label=2;case 2:return[2,{s:0,v:{b:s.brands.map((function(w){return{b:w.brand,v:w.version}})),m:s.mobile,p:(i=s.platform)!==null&&i!==void 0?i:null,h:o,nah:c}}]}}))}))}function Ul(i){var s=i.urlHashing;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return o=(function(){for(var w,E,v=[],I=window;;)try{var B=(w=I.location)===null||w===void 0?void 0:w.href,L=(E=I.document)===null||E===void 0?void 0:E.referrer;if(B===void 0||L===void 0)return{s:1,v};v.push({l:B,f:L});var $=I.parent;if(!$||$===I)return{s:0,v};I=$}catch(Q){if(h6(Q))return{s:1,v};throw Q}})(),c=[(0,e.Cl)({},o)],p={},[4,d6(o.v,s)];case 1:return[2,e.Cl.apply(void 0,c.concat([(p.v=y.sent(),p)]))]}}))}))}function d6(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o=this;return(0,e.YH)(this,(function(c){return[2,Promise.all(i.map((function(p){return(0,e.sH)(o,void 0,void 0,(function(){var y,w,E;return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Promise.all([ds(p.l,s),ds(p.f,s)])];case 1:return y=v.sent(),w=y[0],E=y[1],[2,{l:w,f:E}]}}))}))})))]}))}))}function h6(i){if(!i||typeof i!="object")return!1;var s=i;return!(!P()&&!f()||s.name!=="Error"&&s.name!=="TypeError"||s.message!=="Permission denied")||s.name==="SecurityError"}function p6(){return(function(i){var s=i.location,o=i.origin,c=s.origin,p=s.ancestorOrigins,y=null;if(p){y=new Array(p.length);for(var w=0;w<p.length;++w)y[w]=p[w]}return{s:0,v:{w:o??null,l:c??null,a:y}}})(window)}function Pl(){return{s:0,v:eval.toString().length}}function Fl(){var i=navigator.webdriver;return i===null?{s:-1,v:null}:i===void 0?{s:-2,v:null}:{s:0,v:i}}function v6(){var i=function(o,c,p){return o(c,p)},s=this;return i(jn,Un(250,{s:-2,v:null}),(function(){var o,c,p=function(y,w,E){return i(y,w,E)};return o=e.sH,c=function(){var y,w=function(E,v,I){return i(E,v,I)};return(function(E,v,I){return E(v,I)})(e.YH,this,(function(E){switch(E.label){case 0:return!((function(v,I){return(function(B,L){return B===L})(v,I)})(y=p(qt,navigator,1417288500),null)||(function(v){return(function(I){return I===void 0})(v)})(y))&&p(qt,y,3686698663)?[4,p(qt,y,3686698663)().then((function(){return{s:0,v:""}}),(function(v){return{s:0,v:w(qt,v,3065852031)}}))]:[2,{s:-1,v:null}];case 1:return[2,E.sent()]}}))},o(s,void 0,void 0,c)}))}function iu(){var i;return ou([Sr(i=new Image().style,2882756133),Sr(i,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 m6(){var i;return ou([Sr(i=new Image().style,2487676862),Sr(i,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 g6(){return i=navigator,s=document.createElement("frameset"),o=qt(i,704082790),ou([Sr(s,3017323393),Hl(i,859837811,"QjslADtOBipACA")||Hl(o,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 i,s,o}function Hl(i,s,o){var c=Sr(i,s);if(!c)return"";for(var p=os(o),y=Array(p.length),w=0;w<p.length;w++)y[w]=p[w]^c.charCodeAt(w%c.length);return String.fromCharCode.apply(null,y)}function ou(i,s){for(var o=i.join(""),c=o.split(""),p=Array(o.length),y=0;y<p.length;++y)p[y]=c.splice(s[y%s.length],1);return p.join("")}var je=co([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],iu,1);function Vl(){if(!(function(s){return s in window})((i=je,i(1))))return!1;var i;try{return new window[(function(s){return s(1)})(je)],!0}catch(s){if((function(o){return o instanceof Error})(s)&&(function(o,c){return o===c})(s.name,(function(o){return o(2)})(je)))return!1;throw s}}function y6(i){return s=e.sH,o=function(){var c,p,y,w,E=function(v,I){return(function(B,L){return B(L)})(v,I)};return(function(v,I,B){return v(I,B)})(e.YH,this,(function(v){var I=function(B,L){return E(B,L)};switch(v.label){case 0:return c=E(su,i),p=c[0],y=c[1],w=c[2],(function(B){return(function(L){return L!==0})(B)})(y)?[2,{n:p,l:y}]:[4,new Promise((function(B){var L=function($,Q){return I($,Q)};w[I(je,3)]((function($){L(B,{n:p,l:$[L(je,4)]})}),(function(){L(B,{n:p,l:-1})}))}))];case 1:return[2,v.sent()]}}))},s(this,void 0,void 0,o);var s,o}function su(i){for(var s={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(B,L,$){return B(L,$)},JsRES:function(B,L){return B(L)},WmCxs:function(B,L){return B(L)},kyiGc:function(B,L){return B===L},xozCJ:function(B,L){return B(L)},oRPyT:function(B,L){return B(L)},Unnxw:function(B,L){return B instanceof L},ZXJxt:function(B,L){return B===L},hAXYn:function(B,L){return B(L)},rrdYU:function(B,L){return B!==L},IPLsn:function(B,L){return B===L},qpBPk:function(B,L){return B(L)},tTnsV:function(B,L){return B===L},UBZPU:function(B,L){return B(L)},ijSLc:function(B,L){return B(L)},azIFr:function(B,L){return B(L)},axwYs:function(B,L){return B(L)},eKSOZ:function(B,L){return B===L}},o=s.WceTb.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.YXrDm(Sr,new window[s.JsRES(je,5)]("")[s.WmCxs(je,6)](""),3626513111);continue;case"1":if(s.kyiGc(typeof I[s.WmCxs(je,16)],s.xozCJ(je,17)))return[y,-4,null];continue;case"2":try{v[s.oRPyT(je,11)][s.JsRES(je,12)](E)}catch(B){if(s.Unnxw(B,Error)&&s.ZXJxt(B.name,s.hAXYn(je,2))&&s.rrdYU(s.IPLsn(w=B[s.qpBPk(je,13)],null)||s.tTnsV(w,void 0)?void 0:w.indexOf(s.UBZPU(je,14)),-1))return[y,-3,null];throw B}continue;case"3":var y=i.split("/").slice(-1)[0];continue;case"4":return[y,0,I[s.ijSLc(je,16)][0]];case"5":var w;continue;case"6":var E=new window[s.WmCxs(je,9)]([],i,s.oRPyT(je,10));continue;case"7":var v=new window[s.qpBPk(je,1)];continue;case"8":I[s.azIFr(je,15)]=v[s.qpBPk(je,15)];continue;case"9":var I=document[s.oRPyT(je,7)](p);continue;case"10":I[s.JsRES(je,8)]=s.axwYs(je,3);continue;case"11":if(s.eKSOZ(I[s.qpBPk(je,16)].length,0))return[y,-2,null];continue}break}}var Ir=Tn([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function w6(){var i,s,o=function(E){return E()},c=function(E,v,I){return E(v,I)},p=function(E,v,I){return E(v,I)},y=function(E,v,I){return E(v,I)},w=function(E,v,I){return E(v,I)};return i=e.sH,s=function(){var E,v=this;return(0,e.YH)(this,(function(I){var B=function(tt,rt,at){return(function(mt,bt,vt){return mt(bt,vt)})(tt,rt,at)},L=function(tt){return o(tt)},$=function(tt,rt,at,mt,bt){return(function(vt,_t,Vt,Gt,Kt){return vt(_t,Vt,Gt,Kt)})(tt,rt,at,mt,bt)},Q=function(tt,rt){return(function(at,mt){return at(mt)})(tt,rt)};switch(I.label){case 0:return(E=je(0))?[3,2]:[4,c(jn,c(Un,350,{s:-3,v:null}),(function(){var tt=function(at){return L(at)},rt=function(at,mt){return(function(bt,vt){return(function(_t,Vt){return _t(Vt)})(bt,vt)})(at,mt)};return $(e.sH,v,void 0,void 0,(function(){var at;return B(e.YH,this,(function(mt){switch(mt.label){case 0:return at={s:-3},[4,Promise.all([tt(Gl)])];case 1:return[2,(at[rt(Ir,0)]=mt.sent(),at)]}}))}))}))];case 1:case 3:case 5:return[2,I.sent()];case 2:return o(Vl)?[3,4]:[4,p(jn,y(Un,350,{s:-1,v:null}),(function(){var tt=function(at,mt){return(function(bt,vt){return(function(_t,Vt){return _t(Vt)})(bt,vt)})(at,mt)},rt=function(at,mt){return Q(at,mt)};return $(e.sH,v,void 0,void 0,(function(){var at;return(function(mt,bt,vt){return B(mt,bt,vt)})(e.YH,this,(function(mt){switch(mt.label){case 0:return at={s:-1},[4,Promise.all([tt(Gl,E[0])])];case 1:return[2,(at[rt(Ir,0)]=mt.sent(),at)]}}))}))}))];case 4:return[4,y(jn,w(Un,350,{s:-2,v:null}),(function(){var tt=function(rt,at){return Q(rt,at)};return $(e.sH,v,void 0,void 0,(function(){var rt;return(function(at,mt,bt){return B(at,mt,bt)})(e.YH,this,(function(at){switch(at.label){case 0:return rt={s:0},[4,Promise.all(E.map(y6))];case 1:return[2,(rt[tt(Ir,0)]=at.sent(),rt)]}}))}))}))]}}))},i(this,void 0,void 0,s)}function Gl(i){var s,o,c=function(v,I){return v(I)},p=function(v,I){return v(I)},y=function(v,I,B){return v(I,B)},w=function(v,I){return v===I},E=function(v,I){return v===I};return i===void 0&&(i=p(Ir,1)),(function(v,I,B,L,$){return v(I,void 0,void 0,$)})(e.sH,this,0,0,(function(){var v,I,B;return y(e.YH,this,(function(L){v=i.split("/").slice(-1)[0];try{return I=new window[c(Ir,2)]([],i),B=new window[c(Ir,3)](p(Ir,4).concat(y(qt,I,4081332993)||"").concat(v,c(Ir,5)).concat(y(qt,I,3034174415))),(function($){return $===""})(w(s=y(qt,B,3518522040),null)||(function($){return $===void 0})(s)?void 0:s.substring(1))?[2,{n:v,l:-2}]:[2,{n:v,l:p(tr,E(o=y(qt,B,3518522040),null)||w(o,void 0)?void 0:o.substring(1))}]}catch{return[2,{n:v,l:-1}]}return[2]}))}))}var E6=Tn([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function _6(){var i=function(o,c){return o===c},s=(function(o){return o(navigator,3087401394)})(qt);return i(s,void 0)||i(s,null)?{s:-1,v:null}:{s:0,v:s}}function b6(){for(var i={pCQFw:"0|5|1|3|6|4|2",QPheb:function(B,L){return B(L)},cvtRQ:function(B,L){return B<L},obwRn:function(B,L,$){return B(L,$)},zLaAT:function(B,L,$,Q){return B(L,$,Q)},BBhKA:function(B,L){return B===L},dlsEs:function(B,L,$){return B(L,$)}},s=i.pCQFw.split("|"),o=0;;){switch(s[o++]){case"0":var c=window[i.QPheb(E6,0)];continue;case"1":var p=[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 y=[[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 w=0,E=y;i.cvtRQ(w,E.length);w++){var v=E[w];I<<=1,I|=i.obwRn(qt,c,1108488788)(Uint8Array.of.apply(Uint8Array,i.zLaAT(e.fX,i.zLaAT(e.fX,[],p,!1),v,!1)))?1:0}continue;case"5":if(!(!(i.BBhKA(c,null)||i.BBhKA(c,void 0))&&i.dlsEs(qt,c,1108488788)))return{s:-1,v:null};continue;case"6":var I=0;continue}break}}function R6(){for(var i={tzfkk:"3|4|0|2|1|5",hnlPn:function(I,B){return I-B},YETaQ:function(I,B){return I*B},zzipR:function(I,B){return I>=B},QPpiL:function(I,B){return I===B},YposS:function(I,B){return I%B},FPDfz:function(I,B){return I|B}},s=i.tzfkk.split("|"),o=0;;){switch(s[o++]){case"0":var c=4096;continue;case"1":for(var p=i.hnlPn(i.YETaQ(v,c),1);i.zzipR(p,0);--p)if(i.QPpiL(i.YposS(p,c),0)){var y=Math.random();E.push(i.FPDfz(i.YETaQ(i.hnlPn(w,y),Math.pow(2,31)),0)),w=y}continue;case"2":var w=Math.random();continue;case"3":var E=[];continue;case"4":var v=6;continue;case"5":return{s:0,v:E}}break}}function jl(){var i=window.devicePixelRatio;return i==null?{s:-1,v:null}:{s:0,v:i}}function A6(){for(var i=navigator,s=["webkitPersistentStorage","connectionSpeed","xr","hid"],o=[],c=0,p=Object.getOwnPropertyNames(Object.getPrototypeOf(i));c<p.length;c++){var y=p[c];if(!s.includes(y)){var w=i[y];typeof w=="function"&&w.name!==void 0&&o.push(w.name)}}return{s:0,v:o}}function S6(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function I6(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function O6(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};var i=new window.SharedArrayBuffer(1);return i.byteLength===void 0?{s:-1,v:null}:{s:0,v:i.byteLength}}function T6(){if(typeof window.matchMedia!="function")return{s:-2,v:null};var i=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return i.matches===void 0?{s:-1,v:null}:{s:0,v:i.matches}}function N6(){try{throw"a"}catch(i){try{return i.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function x6(){return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(i){return[2,j((function(s,o){var c=o.document.createElement("div");return c.style.border=".5px dotted transparent",o.document.body.appendChild(c),{s:0,v:c.offsetHeight}}))]}))}))}function C6(){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 L6(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function B6(){if(navigator.plugins===void 0)return{s:-1,v:null};for(var i=navigator.plugins,s=Object.getPrototypeOf(i)===PluginArray.prototype,o=0;o<i.length;o++)s&&(s=Object.getPrototypeOf(i[o])===Plugin.prototype);return{s:0,v:s}}function M6(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function k6(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function Yl(){var i=navigator.language;return i?{s:0,v:i}:{s:-1,v:null}}function Wl(){var i=navigator.languages;return i?{s:0,v:i}:{s:-1,v:null}}function D6(){var i,s,o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return i=e.sH,s=function(){var p,y,w,E;return(function(v,I,B){return v(I,B)})(e.YH,this,(function(v){switch(v.label){case 0:return p=navigator,y=o(qt,p,1417288500),(w=o(qt,p,2706846255))||!((function(I){return I===null})(y)||(function(I){return I===void 0})(y))&&o(qt,y,3538568711)?w?[4,Promise.race([o(ro,250,void 0),new Promise((function(I){(function(B,L){return o(B,L,1291883197)})(qt,w)((function(B,L){return(function($,Q){return(function(tt,rt){return tt(rt)})($,Q)})(I,L)}))}))])]:[3,2]:[2,{s:-1,v:null}];case 1:if((function(I){return I!==void 0})(E=v.sent()))return[2,{s:0,v:E}];v.label=2;case 2:return!((function(I){return I===null})(y)||(function(I){return I===void 0})(y))&&c(qt,y,3538568711)?[4,Promise.race([o(ro,250,void 0),c(qt,y,3538568711)().then((function(I){return(function(B,L){return o(B,L,1813778413)})(qt,I)}))])]:[3,4];case 3:if((function(I){return I!==void 0})(E=v.sent()))return[2,{s:1,v:E}];v.label=4;case 4:return[2,{s:-2,v:null}]}}))},i(this,void 0,void 0,s)}var U6=Tn([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function P6(){var i=function(s,o){return s===o};return(0,e.sH)(this,void 0,void 0,(function(){var s,o=function(y){return(function(w){return w()})(y)},c=function(y,w,E){return(function(v,I,B){return v(I,B)})(y,w,E)},p=function(y){return(function(w){return w()})(y)};return(function(y,w,E){return y(w,E)})(e.YH,this,(function(y){switch(y.label){case 0:return o(S)&&o(D4)?[2,{s:-3,v:null}]:[4,Promise.race([c(ro,100,null),p(F6)])];case 1:return(function(w){return i(w,null)})(s=y.sent())?[2,{s:-2,v:null}]:(function(w){return i(w,void 0)})(s)?[2,{s:-1,v:null}]:[2,{s:0,v:s}]}}))}))}function F6(){var i=function(o,c){return o(c)},s=function(o,c,p,y,w){return o(c,p,y,w)};return s(e.sH,this,void 0,void 0,(function(){var o,c=function(p,y){return i(p,y)};return(function(p,y,w){return p(y,w)})(e.YH,this,(function(p){return(o=window[(function(y,w){return i(y,w)})(U6,0)])?[2,new Promise((function(y){(function(w,E,v,I,B){s(w,E,v,I,B)})(o,0,1,(function(){return(function(w){return c(w,!0)})(y)}),(function(){return(function(w){return c(w,!1)})(y)}))}))]:[2,void 0]}))}))}function H6(){return j((function(i,s){var o=s.screen,c=function(p){var y=parseInt(p);return typeof y=="number"&&isNaN(y)?-1:y};return{s:0,v:{w:c(o.width),h:c(o.height)}}}))}var Zr=Tn([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 V6(){try{return(function(s,o){return s(o)})(zl,!!window[i=Zr,i(0)])}catch{return(function(o){return o(!0)})(zl)}var i}function zl(i){return{s:0,v:i}}function G6(){var i=function(c){return c()},s=function(c,p,y){return c(p,y)},o=this;return s(jn,Un(250,{s:-3,v:null}),(function(){return c=e.sH,p=function(){var y=function(w){return i(w)};return s(e.YH,this,(function(w){return y(D)||(function(E){return i(E)})(q)?[2,y(j6)]:[2,{s:-1,v:null}]}))},c(o,void 0,void 0,p);var c,p}))}function j6(){var i,s,o=function(c,p){return c(p)};return i=e.sH,s=function(){var c,p,y={BQeod:function(w,E){return o(w,E)},iOflQ:function(w,E,v){return(function(I,B,L){return I(B,L)})(w,E,v)},uZYOC:function(w,E){return o(w,E)},DssqK:function(w){return(function(E){return E()})(w)},FbFdf:function(w,E){return(function(v,I){return v(I)})(w,E)},TWEdd:function(w,E){return(function(v,I){return v instanceof I})(w,E)},NPofR:function(w,E){return(function(v,I){return v===I})(w,E)},saNhW:"4|2|0|3|1",ywkCU:function(w,E){return(function(v,I){return v(I)})(w,E)},tYhgW:function(w,E,v){return(function(I,B,L){return I(B,L)})(w,E,v)}};return(function(w,E,v){return w(E,v)})(e.YH,this,(function(w){for(var E=y.saNhW.split("|"),v=0;;){switch(E[v++]){case"0":if(!c)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise((function(B,L){try{var $=y.iOflQ(qt,c,2758837156)(p,1);$[y.BQeod(Zr,1)]=function(){(function(Q){y.BQeod(Q,{s:-5,v:null})})(B)},$[y.uZYOC(Zr,2)]=function(Q){var tt=I.Qxjcv(qt,I.Qxjcv(qt,Q,1181691900),325763347);try{return I.Qxjcv(qt,I.ehgXq(qt,tt,138212912)("-",I.zaFXk(Zr,3)),2928708052)(new window[I.zaFXk(Zr,4)]),void I.zaFXk(B,{s:0,v:""})}catch(rt){if(I.pOfaM(rt,Error))return void I.zaFXk(B,{s:0,v:I.ehgXq(qt,rt,3065852031)});I.zaFXk(L,rt)}finally{I.tUivq(qt,tt,318865860)(),I.tUivq(qt,c,3885781331)(p)}}}catch(Q){if(!y.DssqK(D))return void y.FbFdf(B,{s:-5,v:null});if(y.TWEdd(Q,Error)&&y.NPofR(Q.name,y.FbFdf(Zr,5)))return void y.uZYOC(B,{s:-4,v:null});y.FbFdf(L,Q)}}))];case"2":c=window[y.FbFdf(Zr,0)];continue;case"3":p="".concat(y.ywkCU(oo,16));continue;case"4":var I={Qxjcv:function(B,L,$){return y.tYhgW(B,L,$)},ehgXq:function(B,L,$){return y.iOflQ(B,L,$)},zaFXk:function(B,L){return y.BQeod(B,L)},pOfaM:function(B,L){return y.TWEdd(B,L)},tUivq:function(B,L,$){return y.tYhgW(B,L,$)}};continue}break}}))},i(this,void 0,void 0,s)}var Kl=Tn([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function Y6(){var i=function(p,y,w){return p(y,w)},s="test";if(!D()||(function(p){return p()})(L4))return{s:-1,v:null};var o=window[(function(p){return p(0)})(Kl)],c=window[(function(p){return p(1)})(Kl)];try{(function(p){p(null,null,null,null)})(o)}catch{return{s:0,v:!0}}try{return i(qt,c,2330630162)(s,"1"),i(qt,c,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function W6(){var i=Object.getOwnPropertyDescriptor(document,"createElement");return i?{s:0,v:!("writeable"in i)}:{s:-1,v:null}}function z6(){return{s:0,v:!!navigator.onLine}}var xe=Tn([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 K6(i){return(function(s,o){return s(o,2660613247)})(qt,i)||(i[(function(s){return s(0)})(xe)]={})}var Z6=[[xe(1),function(i){return Xl(!1,i)}],[xe(2),function(){return Xl(!0)}],[xe(3),function(){return i=fo,s=xe(4),i(s);var i,s}],[xe(5),function(){var i=function(s,o){return s(o)};return i(fo,i(xe,6))}],[xe(7),function(){var i=function(s,o){return s(o)};return i(fo,i(xe,8))}],[xe(9),function(){var i=function(s,o){return s(o)};return i(fo,i(xe,10))}]];function X6(){var i=function(o,c){return o(c)},s=function(o,c){return o in c};return((function(o){return o in window})(i(xe,11))||(function(o){return o in window})(i(xe,12))||s((function(o){return o(13)})(xe),window))&&s((function(o){return o(14)})(xe),navigator)}function $6(){var i,s=function(o,c){return o(c)};return!(function(o){return o()})(S)||!(function(o){return o in document})(s(xe,15))||((function(o){return o===null})(i=document[s(xe,15)])||(function(o){return o===void 0})(i)?void 0:(function(o,c){return o(c,2256349940)})(qt,i)().includes(s(xe,16)))}function q6(){return(function(i){return i in navigator})(xe(17))&&(function(i,s){return i in s})((function(i){return i(18)})(xe),(function(i){return i(navigator,2900309608)})(qt))}function J6(i,s,o){var c,p=function(w,E){return w!==E},y=function(w,E){return w!==E};return(function(w){return w===void 0})(s)&&(s={}),p(o,null)&&p(o,void 0)||(o=[(function(w){return w()})($l)]),y(c=s[i],null)&&y(c,void 0)?c:s[i]=(function(w){return w(navigator,3994889901)})(qt)(i,o)}function fo(i,s,o){var c=function(p,y,w,E){return p(y,w,E)};return(function(p,y,w,E,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,y,w;return(function(E,v,I){return E(v,I)})(e.YH,this,(function(E){switch(E.label){case 0:p=0,y=i,E.label=1;case 1:if(!(function(v,I){return v<I})(p,y.length))return[3,6];w=y[p],E.label=2;case 2:return E.trys.push([2,4,,5]),[4,c(J6,w,s,o)];case 3:return[2,!!E.sent()];case 4:return E.sent(),[3,5];case 5:return p++,[3,1];case 6:return[2,!1]}}))}))}var Zl=xe(19);function Q6(){var i=function(E,v){return E(v)},s=function(E,v){return E(v)},o=function(E,v){return E(v)},c=function(E,v,I){return E(v,I)},p=function(E,v){return E in v},y=function(E,v){return E(v)},w=function(E){return E()};return(0,e.sH)(this,void 0,void 0,(function(){var E,v,I;return c(e.YH,this,(function(B){switch(B.label){case 0:return(function(L){return L()})(q)||(function(L){return L()})(ft)?[2,!1]:(E=!1,(function(L){return L()})(q6)?(v={type:i(xe,20),audio:s(xe,21),video:o(xe,22),keySystemConfiguration:{keySystem:Zl,video:o(xe,23)}},[4,c(qt,c(qt,navigator,2900309608),3516168465)(v)]):[3,2]);case 1:I=B.sent(),E=(function(L,$,Q){return L($,Q)})(Qg,I,(function(L){return L(24)})(xe))&&I[(function(L){return L(24)})(xe)],B.label=2;case 2:return[2,E&&!p(y(xe,25),navigator)||!w(S)]}}))}))}function t8(i){for(var s={HkMtb:"3|2|0|4|1",pPhzD:function(y,w,E){return y(w,E)},EAQNq:function(y,w){return y(w)},cWdUy:function(y,w){return y(w)},NbRpv:function(y){return y()},dFENT:function(y,w){return y===w},npgEB:function(y,w){return y(w)}},o=s.HkMtb.split("|"),c=0;;){switch(o[c++]){case"0":s.pPhzD(qt,p,621177879)&&(s.pPhzD(qt,p,621177879)[0][s.EAQNq(xe,26)]=s.cWdUy(xe,27));continue;case"1":return p;case"2":var p=s.NbRpv($l);continue;case"3":s.dFENT(i,void 0)&&(i=!1);continue;case"4":i&&(p[s.cWdUy(xe,28)]=s.npgEB(xe,29));continue}break}}function Xl(i,s){return i===void 0&&(i=!1),o=e.sH,c=function(){var p,y=function(E){return(function(v){return v()})(E)},w=function(E,v,I,B){return(function(L,$,Q,tt){return L($,Q,tt)})(E,v,I,B)};return(function(E,v,I){return E(v,I)})(e.YH,this,(function(E){switch(E.label){case 0:return[4,y(Q6)];case 1:return E.sent()?(p=(function(v,I){return(function(B,L){return B(L)})(v,I)})(t8,i),[4,w(fo,[Zl],s,[p])]):[2,!1];case 2:return[2,E.sent()]}}))},o(this,void 0,void 0,c);var o,c}function $l(){return xe(30)}function e8(i){var s=function(y,w,E){return y(w,E)},o=function(y,w,E,v,I){return y(w,E,v,I)},c=function(y,w,E){return y(w,E)},p=c(qt,i,1095199719);return o(e.sH,this,void 0,void 0,(function(){var y,w=function(Q,tt){return(function(rt,at){return rt(at)})(Q,tt)},E=function(Q,tt,rt){return s(Q,tt,rt)},v=function(Q,tt,rt,at,mt){return o(Q,tt,rt,at,mt)},I=function(Q){return(function(tt){return tt()})(Q)},B=function(Q,tt,rt){return s(Q,tt,rt)},L=function(Q,tt,rt){return s(Q,tt,rt)},$=this;return c(e.YH,this,(function(Q){return I(X6)&&I($6)?I(ft)?[2,function(){return{s:-3,v:null}}]:(y=w(K6,p),[2,B(jn,L(Un,250,{s:-2,v:null}),(function(){var tt=function(bt,vt){return(function(_t,Vt){return(function(Gt,Kt){return Gt<Kt})(_t,Vt)})(bt,vt)},rt=function(bt,vt){return w(bt,vt)},at=function(bt,vt,_t){return E(bt,vt,_t)},mt=function(bt,vt,_t,Vt,Gt){return v(bt,vt,_t,Vt,Gt)};return v(e.sH,$,void 0,void 0,(function(){var bt,vt,_t,Vt,Gt,Kt,Nt,Pt=function(te,re){return rt(te,re)},Xt=this;return at(e.YH,this,(function(te){switch(te.label){case 0:return[4,Promise.all(Z6.map((function(re){var ce=function(Ee,ve){return Pt(Ee,ve)};return(function(Ee,ve,Ie,Ce,Le){return mt(Ee,ve,void 0,void 0,Le)})(e.sH,Xt,0,0,(function(){var Ee,ve,Ie;return(function(Ce,Le,Ne){return(function(nn,Sn,pn){return at(nn,Sn,pn)})(Ce,Le,Ne)})(e.YH,this,(function(Ce){switch(Ce.label){case 0:return Ee=re[0],ve=re[1],Ie=[Ee],[4,ce(ve,y)];case 1:return[2,Ie.concat([Ce.sent()])]}}))}))})))];case 1:for(bt=te.sent(),vt={},_t=0,Vt=bt;tt(_t,Vt.length);_t++)Gt=Vt[_t],Kt=Gt[0],Nt=Gt[1],vt[Kt]=Nt;return[2,{s:0,v:vt}]}}))}))}))]):[2,function(){return{s:-1,v:null}}]}))}))}var n8=Tn([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 r8(){for(var i,s,o={},c=0,p=n8(0);c<p.length;c++)for(var y=p[c],w=y[0],E=0,v=y[1];E<v.length;E++){var I=v[E],B=(s=(i=Object.getOwnPropertyDescriptor(window[w],I))===null||i===void 0?void 0:i.get)===null||s===void 0?void 0:s.toString();B!==void 0&&(o["".concat(w,".").concat(I)]=B)}return{s:0,v:o}}var ql=4191585516,i8=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,ql]);function o8(){for(var i=[],s=Object.getOwnPropertyNames(window),o=0;o<s.length;o++){var c=s[o],p=tr(c);if(i8.has(p)&&i.push(c),p===ql){var y=s[o+1]||"";i.push(y)}}return{s:0,v:i}}function s8(){return j((function(i,s){var o={},c=s.document.createElement("div");s.document.body.appendChild(c);for(var p,y={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"},w=0,E=Object.keys(y);w<E.length;w++){var v=E[w];o[y[v]]=(p=v,c.style.color=p,s.getComputedStyle(c).color)}return{s:0,v:o}}))}function a8(){return j((function(i,s){var o=s.navigator.webdriver;return o===null?{s:-1,v:null}:o===void 0?{s:-2,v:null}:{s:0,v:o}}))}function u8(){return(function(i){var s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"hardwareConcurrency");if(!s||!s.get)return{s:-1,v:null};var o=window.Function,c=window.Object,p=!1;try{p=delete window.Function&&delete window.Object}catch{p=!1}if(!p)return y(),{s:-2,v:null};try{return s.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{y()}function y(){try{window.Function=o,window.Object=c}catch{}}})(navigator)}function Jl(i,s){for(var o={},c=i.getBoundingClientRect(),p=0,y=["x","y","left","right","bottom","height","top","width"];p<y.length;p++){var w=y[p];w in c&&(o[w]=c[w])}var E=s.getComputedStyle(i,null).getPropertyValue("font-family");return o.font=E,o}function c8(){for(var i="",s=128512;s<=128591;s++){var o=String.fromCodePoint(s);i+=o}return j((function(c,p){var y=p.document.createElement("span");return y.style.whiteSpace="nowrap",y.innerHTML=i,p.document.body.append(y),{s:0,v:Jl(y,p)}}))}function f8(){var i="<mrow><munderover><mmultiscripts><mo>∏</mo>";function s(w,E,v,I,B){return"<mmultiscripts><mi>".concat(w,"</mi><mi>").concat(E,"</mi><mi>").concat(v,"</mi>")+"<mprescripts></mprescripts><mi>".concat(I,"</mi><mi>").concat(B,"</mi></mmultiscripts>")}for(var o=0,c=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];o<c.length;o++){var p=c[o],y=s.apply(void 0,p);i+=y}return i+="</munderover></mrow>",j((function(w,E){var v=E.document.createElement("math");return v.style.whiteSpace="nowrap",v.innerHTML=i,E.document.body.append(v),{s:0,v:Jl(v,E)}}))}var l8=Tn([1024705730,641842159,2578743392,3876471597,2070139803],6);function d8(){var i=qt(navigator,2698072953);return i?{s:0,v:(function(s,o){return s(o)})(h8,i)}:{s:-1,v:null}}function h8(i){var s=function(E,v){return E<v},o=function(E,v,I){return E(v,I)},c=function(E,v,I){return E(v,I)},p=(function(E){return E(Object,1110892003)})(qt)(i,(function(E){return E(0)})(l8));if(p&&(function(E,v){return E(v,2813370411)})(qt,p))return!0;for(var y=0;s(y,i.length);y++){var w=o(qt,Object,1110892003)(i,y);if(w&&(c(qt,w,2813370411)||o(qt,w,1651707638)))return!0}return!1}var Pe=co([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],iu,0);function p8(){for(var i={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(w,E){return w!==E},arEiG:function(w,E){return w(E)},FEyAC:function(w,E){return w|E},cUIUX:function(w,E){return w&E},vaJLl:function(w,E){return w&E},osTKi:function(w,E){return w(E)},vuPdB:function(w,E){return w+E},euenK:function(w,E){return w(E)}},s=i.YQAxx.split("|"),o=0;;){switch(s[o++]){case"0":var c={nkHEv:i.NxnUc,yPbQz:function(w,E){return i.dRZXE(w,E)},cIFeZ:function(w,E){return i.arEiG(w,E)},kGvFR:function(w,E){return i.FEyAC(w,E)},eFyAy:function(w,E){return i.cUIUX(w,E)},WLFtS:function(w,E){return i.vaJLl(w,E)},uzqnn:function(w,E){return i.osTKi(w,E)},rqcBN:function(w,E){return i.vuPdB(w,E)}};continue;case"1":Object.defineProperty(p,i.osTKi(Pe,2),{value:y});continue;case"2":var p=i.euenK(os,i.arEiG(Pe,0));continue;case"3":return p;case"4":var y=function(w){for(var E=c.nkHEv.split("|"),v=0;;){switch(E[v++]){case"0":var I=this[L];continue;case"1":var B;continue;case"2":var L=c.yPbQz(B=this[c.cIFeZ(Pe,1)],null)&&c.yPbQz(B,void 0)?B:0;continue;case"3":this[L]=c.kGvFR(c.eFyAy(I,~w),c.WLFtS(~I,w));continue;case"4":this[c.uzqnn(Pe,1)]=c.rqcBN(L,1);continue;case"5":return I}break}};continue}break}}function v8(i){var s,o,c,p=function(E,v){return E(v)},y=function(E,v){return E===v},w=function(E,v){return E(v)};return o=e.sH,c=function(){var E,v,I,B,L,$,Q=function(vt,_t){return p(vt,_t)},tt=function(vt,_t){return w(vt,_t)},rt=function(vt,_t,Vt,Gt,Kt){return(function(Nt,Pt,Xt,te,re){return Nt(Pt,Xt,te,re)})(vt,_t,Vt,Gt,Kt)},at=function(vt,_t){return p(vt,_t)},mt=function(vt,_t){return p(vt,_t)},bt=this;return(function(vt,_t,Vt){return vt(_t,Vt)})(e.YH,this,(function(vt){switch(vt.label){case 0:return E=window[p(Pe,3)],(v=y(s=E[p(Pe,4)],null)||y(s,void 0)?void 0:s.bind(E))?(I=w(Pe,5),B=p(Pe,6),L={},[4,Promise.all(I.map((function(_t){var Vt=function(te,re,ce){return(function(Ee,ve,Ie){return(function(Ce,Le,Ne){return Ce(Le,Ne)})(Ee,ve,Ie)})(te,re,ce)},Gt=function(te,re){return Q(te,re)},Kt=function(te,re){return tt(te,re)},Nt=function(te,re){return(function(ce,Ee){return(function(ve,Ie){return ve<Ie})(ce,Ee)})(te,re)},Pt=function(te,re,ce,Ee,ve){return rt(te,re,ce,Ee,ve)},Xt=function(te,re){return mt(te,re)};return rt(e.sH,bt,void 0,void 0,(function(){var te,re,ce,Ee,ve,Ie,Ce,Le;return(function(Ne,nn,Sn){return(function(pn,Fn,Wn){return pn(Fn,Wn)})(Ne,nn,Sn)})(e.YH,this,(function(Ne){switch(Ne.label){case 0:return Ne.trys.push([0,9,,10]),[4,Vt(v,_t,B)];case 1:return[4,Ne.sent()[Gt(Pe,7)]()];case 2:te=Ne.sent(),re=te[Kt(Pe,8)](),ce=[92,189,203],Ee=0,Ne.label=3;case 3:if(!Nt(Ee,3))return[3,8];Ne.label=4;case 4:return Ne.trys.push([4,6,,7]),ve=L,Ie=Kt(tr,_t),[4,Pt(m8,te,re,i,ce)];case 5:return ve[Ie]=Ne.sent(),[2];case 6:if((function(nn,Sn){return at(nn,Sn)})(w8,Ce=Ne.sent()))return ce=Xt(g8,i),[3,7];throw Xt(y8,ce),Ce;case 7:return Ee++,[3,3];case 8:return[3,10];case 9:return Le=Ne.sent(),$=Le,[3,10];case 10:return[2]}}))}))})))]):[2,null];case 1:if(vt.sent(),$&&y(Object.keys(L).length,0))throw $;return[2,L]}}))},o(this,void 0,void 0,c)}function m8(i,s,o,c){var p=function(I,B){return I(B)},y=function(I,B){return I(B)},w=function(I,B){return I(B)},E=function(I,B){return I(B)},v=function(I,B){return I(B)};return new Promise((function(I,B){s[E(Pe,9)]=function(L){return p(I,{i:y(is,c),t:p(tr,L[y(Pe,10)]),s:s[y(Pe,11)],e:s[w(Pe,12)],p:E(Qn,L[v(Pe,13)])})},i[E(Pe,14)](o),s[(function(L){return L(15)})(Pe)]((function(L){return L(16)})(Pe),c).catch(B)}))}function g8(i){for(var s={UtaFw:"4|0|1|2|3",ulOIn:function(I,B){return I-B},pxHuO:function(I,B){return I>=B},pGlZB:function(I,B){return I(B)},ooLWC:function(I,B){return I+B},buezi:function(I,B){return I<<B},btVnF:function(I,B){return I%B},wSoGJ:function(I,B){return I*B},lowup:function(I,B){return I%B},hsYMn:function(I,B){return I*B}},o=s.UtaFw.split("|"),c=0;;){switch(o[c++]){case"0":var p=v.length;continue;case"1":var y=137;continue;case"2":for(var w=s.ulOIn(i.length,1);s.pxHuO(w,0);w--){var E=i[s.pGlZB(Pe,2)](s.ooLWC(s.buezi(w,8),y));v[s.btVnF(w,p)]^=s.ooLWC(E,s.wSoGJ(v[s.btVnF(s.ooLWC(w,1),p)],17)),y=E}continue;case"3":return s.pGlZB(Ar,s.pGlZB(Qn,v).slice(0,3));case"4":var v=new Uint8Array([s.lowup(Date.now(),1024),s.hsYMn(Math.random(),65536)]);continue}break}}function y8(i){for(var s=function(E,v){return E<v},o=function(E,v){return E+v},c=function(E,v){return E%v},p=function(E,v){return E-v},y=0;s(y,i.length);y++){var w=65;i[y]=o(w,c(i[y],p(122,w)))}}function w8(i){return(function(s,o){return s(o)})(rs,i)&&(function(s,o){return s===o})("".concat(i),(function(s){return s(17)})(Pe))}function E8(){var i=function(s,o){return s(o)};return(function(s,o,c,p,y){return s(o,void 0,void 0,y)})(e.sH,this,0,0,(function(){var s,o,c,p=function(Q,tt){return i(Q,tt)},y=function(Q){return(function(tt){return tt()})(Q)},w=function(Q,tt){return(function(rt,at){return rt in at})(Q,tt)},E=function(Q,tt){return(function(rt,at){return rt(at)})(Q,tt)},v=function(Q,tt,rt,at){return(function(mt,bt,vt,_t){return mt(bt,vt,_t)})(Q,tt,rt,at)},I=function(Q,tt){return i(Q,tt)},B=function(Q,tt,rt,at){return(function(mt,bt,vt,_t){return mt(bt,vt,_t)})(Q,tt,rt,at)},L=function(Q,tt){return(function(rt,at){return rt(at)})(Q,tt)},$=function(Q,tt){return(function(rt,at){return rt&&at})(Q,tt)};return(function(Q,tt,rt){return Q(tt,rt)})(e.YH,this,(function(Q){switch(Q.label){case 0:return y(M4)?[2,!w(p(Pe,19),window[E(Pe,20)][p(Pe,21)])]:y(B4)?[4,Promise.all([v(Ql,I(Pe,22),(function(){return!0}),(function(){return!1})),B(Ql,L(Pe,23),(function(){return!1}),(function(tt){return(function(rt){return(function(at,mt){return at instanceof mt})(rt,Error)})(tt)&&(function(rt,at){return(function(mt,bt){return mt===bt})(rt,at)})(tt.name,p(Pe,24))}))])]:[3,2];case 1:return s=Q.sent(),o=s[0],c=s[1],[2,$(o,c)];case 2:return[2,!1]}}))}))}function Ql(i,s,o){var c=function(p,y){return p(y)};return new Promise((function(p){var y=function(I,B){return c(I,B)},w=c(su,i),E=w[1],v=w[2];if((function(I){return I!==0})(E))return(function(I){return I(!1)})(p);v[c(Pe,25)]((function(){return(function(I,B){return(function(L,$){return L($)})(I,B)})(p,(function(I){return(function(B){return B()})(I)})(s))}),(function(I){return y(p,y(o,I))}))}))}var _8=Tn([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 b8(){var i=function(s,o,c){return s(o,c)};return i(jn,i(Un,2e3,{s:-2,v:null}),R8)}function R8(){var i,s=function(B){return B()},o=function(B,L){return B(L)},c=function(B,L){return B(L)},p=function(B,L){return B<L},y=function(B,L){return B===L},w=function(B,L,$){return B(L,$)},E=function(B,L,$){return B(L,$)},v=function(B,L){return B(L)},I=function(B,L){return B(L)};return(function(B,L,$,Q,tt){return B(L,void 0,void 0,tt)})(e.sH,this,0,0,(function(){var B,L,$,Q,tt,rt,at,mt,bt,vt,_t,Vt,Gt;return E(e.YH,this,(function(Kt){switch(Kt.label){case 0:B=window,L=s(p8),$=o(_8,0),Kt.label=1;case 1:for(Kt.trys.push([1,2,,5]),Q="".concat(c(au,L[0])).concat(c(au,L[1])).concat(o(au,L[2])),tt=$[Q],rt=Object.values(tt),at={},mt=0,bt=(Gt=Object.keys(B)).slice.apply(Gt,rt);p(mt,bt.length);mt++)vt=bt[mt],_t=y(i=w(qt,Object,1110892003)(B,vt),null)||y(i,void 0)?void 0:E(qt,i,494360628),at[o(tr,vt)]={i:!0,t:null,s:vt.slice(-3),e:12,p:v(String,_t).slice(0,50)};return[2,{s:-3,v:at}];case 2:return Kt.sent(),[4,s(E8)];case 3:return Kt.sent()?[2,{s:-4,v:null}]:[4,I(v8,L)];case 4:return(Vt=Kt.sent())?[2,{s:0,v:Vt}]:[2,{s:-1,v:null}];case 5:return[2]}}))}))}function au(i){return"".concat(Ha[(function(s){return s>>4})(i)]).concat(Ha[(function(s){return s%16})(i)])}var on=Tn([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 td(i){var s=function(c,p,y){return c(p,y)},o=qt(i,928136154);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,y=function(I){return(function(B){return B()})(I)},w=function(I,B){return(function(L,$){return L===$})(I,B)},E=function(I,B,L){return s(I,B,L)},v=function(I,B,L){return(function($,Q,tt){return $(Q,tt)})(I,B,L)};return s(e.YH,this,(function(I){switch(I.label){case 0:return c=y(a0),[4,E(jn,v(Un,300,-4),A8.bind(null,c,o))];case 1:return p=I.sent(),[2,function(){var B=(function(L){return y(L)})(p);return(function(L){return w(L,0)})(B)||(function(L){return w(L,-4)})(B)?{s:B,v:{u:c,e:[],s:[]}}:{s:B,v:null}}]}}))}))}function A8(i,s){var o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return(function(p,y,w,E,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,y,w,E,v,I,B,L,$=function(mt,bt,vt){return o(mt,bt,vt)},Q=function(mt,bt,vt){return c(mt,bt,vt)},tt=function(mt,bt){return(function(vt,_t){return vt!==_t})(mt,bt)},rt=function(mt,bt,vt){return c(mt,bt,vt)},at=function(mt,bt,vt){return(function(_t,Vt,Gt){return _t(Vt,Gt)})(mt,bt,vt)};return(function(mt,bt,vt){return mt(bt,vt)})(e.YH,this,(function(mt){switch(mt.label){case 0:if(p=$(S8,i,s),y=$(O8,p,!0),w=Q(qt,y,453955339),E=Q(qt,y,1801730948),tt(w,0))return[2,w];v=$(C8,E,s),mt.label=1;case 1:return mt.trys.push([1,,4,5]),[4,rt(qt,v,142982734)()];case 2:return I=mt.sent(),B=Q(qt,I,453955339),L=Q(qt,I,1801730948),tt(B,0)?[2,B]:[4,at(qt,E,76151562)(L)];case 3:return mt.sent(),[2,0];case 4:return(function(bt,vt){return o(bt,vt,107910612)})(qt,v)(),[7];case 5:return[2]}}))}))}function S8(i,s){for(var o={AvCwh:"2|1|5|0|3|4",sALZI:function(E,v){return E(v)}},c=o.AvCwh.split("|"),p=0;;){switch(c[p++]){case"0":var y={};continue;case"1":w[o.sALZI(on,1)]=o.sALZI(I8,s);continue;case"2":var w=o.sALZI(on,0);continue;case"3":y[o.sALZI(on,3)]=[w];continue;case"4":return y;case"5":w[o.sALZI(on,2)]=i;continue}break}}function I8(i){var s=function(o,c){return o(c)};return s(on,4).concat((function(o,c,p){return o(c,p)})(eu,i,s(on,5)))}var ed=on(6);function O8(i,s){for(var o={xqmnO:"4|3|0|2|1",SaOtC:function(E,v){return E instanceof v},xPGBK:function(E,v){return E===v},DCAVD:function(E,v){return E(v)},fgKXx:function(E,v){return E(v)}},c=o.xqmnO.split("|"),p=0;;){switch(c[p++]){case"0":var y;continue;case"1":return{s:0,v:y};case"2":try{y=new w(i)}catch(E){if(o.SaOtC(E,Error)){if(o.xPGBK(E.name,ed))return{s:-6,v:null};if(o.DCAVD(N8,E))return{s:-9,v:null}}throw E}continue;case"3":if(!w)return{s:-3,v:null};continue;case"4":var w=s?window[o.fgKXx(on,7)]||window[o.DCAVD(on,8)]:window[o.DCAVD(on,7)];continue}break}}function T8(i,s){var o,c=function(p,y){return p===y};try{return c(o=(function(p,y){return p(y,34843658)})(qt,i),null)||c(o,void 0)||o.call(i,s||Math.random().toString()),0}catch(p){if((function(y){return y instanceof Error})(p)&&c(p.name,ed))return-7;throw p}}function N8(i){return(function(s,o){return s===o})(i.name,(function(s){return s(9)})(on))&&(function(s,o){return s(o,3632233996)})(qt,new RegExp((function(s){return s(10)})(on)))((function(s,o){return s(o,3065852031)})(qt,i))}function lo(i){try{qt(i,318865860)()}catch{}}function x8(i,s){var o=function(c,p,y){return c(p,y)};return(function(c,p,y,w,E){return c(p,void 0,void 0,E)})(e.sH,this,0,0,(function(){var c,p;return(function(y,w,E){return y(w,E)})(e.YH,this,(function(y){switch(y.label){case 0:try{c=(function(w,E,v){return o(w,E,v)})(qt,i,882066760)(s)}catch(w){if(!(function(E,v){return(function(I,B){return I instanceof B})(E,v)})(w,Error)||!(function(E,v,I){return o(E,v,I)})(qt,new RegExp((function(E){return(function(v){return v(11)})(E)})(on),"i"),3632233996)((function(E,v,I){return o(E,v,I)})(qt,w,3065852031)))throw w;c=new Promise((function(E,v){(function(I,B){return(function(L,$,Q){return o(L,$,Q)})(I,B,882066760)})(qt,i)(E,v,s)}))}return[4,c];case 1:return(function(w){return(function(E,v){return E===v})(w,void 0)})(p=y.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:p}]}}))}))}function C8(i,s){var o,c,p=function(Nt,Pt){return Nt(Pt)},y=function(Nt,Pt){return Nt===Pt},w=function(Nt,Pt,Xt){return Nt(Pt,Xt)},E=function(Nt,Pt){return Nt(Pt)},v=function(Nt,Pt){return Nt!==Pt},I=function(Nt,Pt){return Nt in Pt},B=function(Nt,Pt){return Nt in Pt},L=function(Nt){return Nt()},$=function(Nt,Pt){return Nt(Pt)},Q=function(Nt,Pt,Xt){return Nt(Pt,Xt)},tt=function(Nt,Pt,Xt){return Nt(Pt,Xt)},rt=function(Nt,Pt,Xt,te,re){return Nt(Pt,Xt,te,re)},at=this;function mt(Nt,Pt){return p(bt,Nt)&&y(w(qt,Nt,3920415024),400)&&w(qt,Nt,4101391790).includes(Pt)}function bt(Nt){return y(typeof Nt,E(on,12))&&v(Nt,null)&&I(p(on,13),Nt)&&B(E(on,14),Nt)}var vt=null,_t=!1;function Vt(){var Nt=function(Xt,te){return(function(re,ce){return re!==ce})(Xt,te)},Pt=function(Xt,te){return E(Xt,te)};return rt(e.sH,this,void 0,void 0,(function(){var Xt,te,re,ce;return(function(Ee,ve,Ie){return tt(Ee,ve,Ie)})(e.YH,this,(function(Ee){switch(Ee.label){case 0:return Xt=(function(ve,Ie){return $(ve,Ie)})(T8,i),Nt(Xt,0)?[2,{s:Xt,v:null}]:[4,Pt(x8,i)];case 1:return te=Ee.sent(),re=(function(ve,Ie){return Q(ve,Ie,453955339)})(qt,te),ce=(function(ve,Ie){return(function(Ce,Le,Ne){return Ce(Le,Ne)})(ve,Ie,1801730948)})(qt,te),Nt(re,0)?[2,{s:re,v:null}]:[2,{s:0,v:ce}]}}))}))}s&&tt(qt,i,123626528)(on(15),(function(Nt){w(mt,Nt,s)&&(vt?(L(vt),vt=null,$(lo,i)):_t=!0)}));var Gt,Kt=((o={})[Gt=on,Gt(17)]=function(){return(function(Nt,Pt){return Nt(Pt)})(lo,i)},o[(function(Nt){return Nt(18)})(on)]=function(){var Nt=function(Xt){return L(Xt)},Pt=function(Xt,te,re){return(function(ce,Ee,ve){return ce(Ee,ve)})(Xt,te,re)};return rt(e.sH,at,void 0,void 0,(function(){var Xt;return Pt(e.YH,this,(function(te){switch(te.label){case 0:return[4,Nt(Vt)];case 1:return Xt=te.sent(),(function(re){return v(re,0)})(Pt(qt,Xt,453955339))&&(function(re,ce){p(re,ce)})(lo,i),[2,Xt]}}))}))},o);return s?Q(qt,Object,1914874273)(Kt,((c={})[(function(Nt){return Nt(19)})(on)]=function(){y((function(Nt,Pt){return Nt(Pt,4184312542)})(qt,i),p(on,16))||(_t?(function(Nt,Pt){Nt(Pt)})(lo,i):vt=(function(Nt,Pt,Xt,te){return Nt(Pt,5e3,te)})(ns,lo,0,i))},c)):Kt}var Pn=co([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],m6,2);function L8(){var i=function(w,E){return w(E)},s=function(w,E){return w(E)},o=function(w,E,v){return w(E,v)},c=function(w,E){return w<E},p=function(w,E,v){return w(E,v)},y=function(w,E,v){return w(E,v)};return(function(w,E,v,I,B){return w(E,void 0,void 0,B)})(e.sH,this,0,0,(function(){var w,E,v,I,B,L,$,Q;return o(e.YH,this,(function(tt){switch(tt.label){case 0:return(function(rt){return rt()})(k4)?[2,[-1,NaN]]:(w=new Uint8Array([0]),E=i(Pn,0),[4,navigator[i(Pn,1)](s(Pn,2),E)]);case 1:return[4,tt.sent()[s(Pn,3)]()];case 2:return v=tt.sent(),[4,o(nd,v,w)];case 3:if(I=tt.sent(),!(B=c(I,10)))return[3,5];for(L=o(i4,10,2500),$=(function(rt){return rt-1})((function(rt,at){return rt-at})(L,I)),Q=0;c(Q,$);Q++)p(M8,v,w);return[4,y(nd,v,w)];case 4:I=tt.sent(),tt.label=5;case 5:return[2,[B?1:0,I]]}}))}))}function B8(){return(function(s,o){return s==o})(typeof navigator[i=Pn,i(1)],(function(s){return s(4)})(Pn));var i}function nd(i,s){var o=function(c,p){return c(p)};return(function(c,p,y,w,E){return c(p,void 0,void 0,E)})(e.sH,this,0,0,(function(){var c,p=function(v,I){return o(v,I)},y=function(v,I){return o(v,I)},w=function(v,I){return o(v,I)},E=function(v,I){return o(v,I)};return(function(v,I,B){return v(I,B)})(e.YH,this,(function(v){switch(v.label){case 0:return[4,(c=i[p(Pn,5)]())[p(Pn,6)](y(Pn,7),s)];case 1:return v.sent(),[2,w(Number,c[E(Pn,8)])]}}))}))}function M8(i,s){var o=function(p,y){return p(y)},c=i[o(Pn,5)]();o(io,c[o(Pn,6)]((function(p){return p(7)})(Pn),s))}function k8(){var i=function(s,o,c){return s(o,c)};return(function(s,o,c,p,y){return s(o,void 0,void 0,y)})(e.sH,this,0,0,(function(){var s=function(w){return(function(E){return E()})(w)},o=function(w,E,v){return i(w,E,v)},c=function(w,E,v){return i(w,E,v)},p=function(w,E,v){return i(w,E,v)},y=this;return(0,e.YH)(this,(function(w){var E=function(I){return s(I)},v=function(I,B){return(function(L,$){return(function(Q,tt){return Q===tt})(L,$)})(I,B)};return s(B8)?[2,c(jn,p(Un,500,{s:-2,v:null}),(function(){var I=function($){return E($)},B=function($,Q){return v($,Q)},L=function($,Q,tt){return(function(rt,at,mt){return o(rt,at,mt)})($,Q,tt)};return(function($,Q,tt,rt,at){return(function(mt,bt,vt,_t,Vt){return(function(Gt,Kt,Nt,Pt,Xt){return Gt(Kt,Nt,Pt,Xt)})(mt,bt,vt,_t,Vt)})($,Q,void 0,void 0,at)})(e.sH,y,0,0,(function(){var $,Q=function(tt){return I(tt)};return L(e.YH,this,(function(tt){switch(tt.label){case 0:return[4,Q(L8)];case 1:return(function(rt){return B(rt,-1)})(($=tt.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:$}]}}))}))}))]:[2,function(){return{s:-1,v:null}}]}))}))}var vs=co([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],iu,2);function rd(){return vs(0)}function D8(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s,o;return(function(c,p,y){return c(p,y)})(e.YH,this,(function(c){var p=function(y,w){return(function(E,v){return E(v)})(y,w)};switch(c.label){case 0:return i=(function(y){return y()})(rd),[4,Promise.all(i.map(U8))];case 1:return s=c.sent(),o={},i.forEach((function(y,w){var E=p(tr,y).toString(16);o[E]=s[w]})),[2,o]}}))}))}function U8(i){var s=function(o,c){return o(c)};return new Promise((function(o){var c=s(vs,1).concat(i,s(vs,2));try{var p=(function(E,v){return E(v)})(su,c),y=p[1],w=p[2];if((function(E){return E!==0})(y))return void(function(E,v){E(v)})(o,y);w[(function(E){return E(3)})(vs)]((function(){return s(o,0)}),(function(){return(function(E){return s(E,-1)})(o)}))}catch{s(o,-2)}}))}var P8=Tn([4291220175,857170018,1001396817,1198736693],6);function id(){var i=function(s,o,c){return s(o,c)};return(0,e.sH)(this,void 0,void 0,(function(){var s=function(v){return(function(I){return I()})(v)},o=function(v,I){return(function(B,L){return B(L)})(v,I)},c=function(v,I,B){return(function(L,$,Q){return L($,Q)})(v,I,B)},p=function(v,I,B,L,$){return(function(Q,tt,rt,at,mt){return Q(tt,rt,at,mt)})(v,I,B,L,$)},y=function(v,I,B){return(function(L,$,Q){return L($,Q)})(v,I,B)},w=function(v,I,B){return i(v,I,B)},E=this;return i(e.YH,this,(function(v){var I=function(tt){return s(tt)},B=function(tt){return s(tt)},L=function(tt,rt){return o(tt,rt)},$=function(tt,rt,at){return c(tt,rt,at)},Q=function(tt,rt,at,mt,bt){return p(tt,rt,at,mt,bt)};switch(v.label){case 0:return[4,y(jn,w(Un,500,{s:-2,v:null}),(function(){var tt=function(at){return B(at)},rt=function(at,mt){return L(at,mt)};return Q(e.sH,E,void 0,void 0,(function(){var at;return(function(mt,bt,vt){return $(mt,bt,vt)})(e.YH,this,(function(mt){switch(mt.label){case 0:return(function(bt){return I(bt)})(rd)?(function(bt){return I(bt)})(Vl)?(at={s:0},[4,tt(D8)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(at[rt(P8,0)]=mt.sent(),at)]}}))}))}))];case 1:return[2,v.sent()]}}))}))}function F8(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function od(){return{s:0,v:!!window.isSecureContext}}var jt=co([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],g6,0);function H8(){var i=function(s,o){return s(o)};return i(jt,0)&&navigator[i(jt,0)]}function V8(){var i=function(s,o){return s(o)};return document[i(jt,1)](i(jt,2))[i(jt,3)](i(jt,4))}function G8(i,s){return o=e.sH,c=function(){var p,y,w,E,v=function(B,L){return(function($,Q){return $(Q)})(B,L)},I=function(B,L,$,Q){return(function(tt,rt,at,mt){return tt(rt,at,mt)})(B,L,$,Q)};return(function(B,L,$){return B(L,$)})(e.YH,this,(function(B){switch(B.label){case 0:return p=Array.from((function(L){return(function($){return $===null})(L)})(i)||(function(L){return(function($){return $===void 0})(L)})(i)?void 0:i[v(jt,5)].values()),[4,Promise.all([I(j8,i,p,s),v(W8,i)])];case 1:return y=B.sent(),w=y[0],E=y[1],[2,[w,E,p]]}}))},o(this,void 0,void 0,c);var o,c}var Ei=16;function j8(i,s,o){var c=function(vt,_t){return vt(_t)},p=function(vt,_t){return vt*_t},y=function(vt,_t){return vt(_t)},w=function(vt,_t){return vt(_t)},E=function(vt,_t){return vt+_t},v=function(vt,_t){return vt(_t)},I=function(vt,_t){return vt(_t)},B=function(vt,_t){return vt(_t)},L=function(vt,_t){return vt(_t)},$=function(vt,_t){return vt(_t)},Q=function(vt,_t){return vt(_t)},tt=function(vt,_t){return vt(_t)},rt=function(vt,_t){return vt(_t)},at=function(vt,_t){return vt(_t)},mt=function(vt,_t){return vt+_t},bt=function(vt,_t){return vt+_t};return(function(vt,_t,Vt,Gt,Kt){return vt(_t,void 0,void 0,Kt)})(e.sH,this,0,0,(function(){var vt,_t,Vt,Gt,Kt,Nt,Pt,Xt,te,re,ce,Ee,ve,Ie,Ce,Le,Ne,nn,Sn,pn,Fn,Wn,zn,Tr,Xr,nr,fn,Mt={LIcVF:"1|3|2|0|4",CVGyL:function(Tt,xt){return c(Tt,xt)},NQGua:function(Tt,xt){return p(Tt,xt)},IxGbO:function(Tt,xt){return y(Tt,xt)},qQoQh:function(Tt,xt){return c(Tt,xt)},eRsOG:function(Tt,xt){return(function(Qt,ae){return Qt%ae})(Tt,xt)},sTGJP:function(Tt,xt){return w(Tt,xt)},bLKEM:function(Tt,xt){return(function(Qt,ae){return Qt/ae})(Tt,xt)},BfmPO:function(Tt,xt){return(function(Qt,ae){return Qt/ae})(Tt,xt)},qiUeQ:function(Tt,xt){return(function(Qt,ae){return Qt/ae})(Tt,xt)},QCXCI:function(Tt,xt){return(function(Qt,ae){return Qt*ae})(Tt,xt)},YuwoT:function(Tt,xt){return E(Tt,xt)},NzoFK:function(Tt,xt){return w(Tt,xt)},nStre:function(Tt,xt){return v(Tt,xt)},cgngL:function(Tt,xt){return I(Tt,xt)},lnSsO:function(Tt,xt){return B(Tt,xt)},LWtIu:function(Tt,xt){return I(Tt,xt)},rnbTq:function(Tt,xt){return B(Tt,xt)},vXgTw:function(Tt,xt){return(function(Qt,ae){return Qt|ae})(Tt,xt)},SGWhR:function(Tt,xt){return w(Tt,xt)},tJskz:function(Tt,xt){return v(Tt,xt)},WwBMK:function(Tt,xt){return w(Tt,xt)},XvGWM:function(Tt,xt){return I(Tt,xt)},Czazt:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},TcuLX:function(Tt,xt){return L(Tt,xt)},qmLme:function(Tt,xt){return $(Tt,xt)},DHpBv:function(Tt,xt){return c(Tt,xt)},GXSjU:function(Tt,xt){return I(Tt,xt)},lZchU:function(Tt,xt){return(function(Qt,ae){return Qt|ae})(Tt,xt)},kdFZM:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},fjLlD:function(Tt,xt){return Q(Tt,xt)},NZEUH:function(Tt,xt){return B(Tt,xt)},rMQcE:function(Tt,xt){return $(Tt,xt)},cmdDW:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},fMGTS:function(Tt,xt){return v(Tt,xt)},Megnu:function(Tt,xt){return tt(Tt,xt)},dwDBV:function(Tt,xt){return(function(Qt,ae){return Qt<ae})(Tt,xt)},UStju:"16|13|12|14|1|11|3|2|15|6|5|0|7|8|4|10|9",yPtzU:function(Tt,xt){return(function(Qt,ae){return Qt===ae})(Tt,xt)},hIuvn:function(Tt,xt){return tt(Tt,xt)},LUaAI:function(Tt,xt){return rt(Tt,xt)},KBsRE:function(Tt,xt){return c(Tt,xt)},eiLib:function(Tt,xt){return p(Tt,xt)},gsIFj:function(Tt,xt){return L(Tt,xt)},ymkbA:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},RTTay:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},SXGAR:function(Tt,xt){return at(Tt,xt)},rLyth:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},lnNJb:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},HtEmG:function(Tt,xt){return p(Tt,xt)},kEERD:function(Tt,xt){return(function(Qt,ae){return Qt+ae})(Tt,xt)},lEDdr:function(Tt,xt){return mt(Tt,xt)},VfkAG:function(Tt,xt){return E(Tt,xt)},FQVYm:function(Tt,xt){return rt(Tt,xt)},rjquO:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},zCjNE:function(Tt,xt){return at(Tt,xt)},HfSqy:function(Tt,xt){return Q(Tt,xt)},xEOfR:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)},CsGxJ:function(Tt,xt){return w(Tt,xt)},CPukW:function(Tt,xt){return y(Tt,xt)},uiTcO:function(Tt,xt){return(function(Qt,ae){return Qt*ae})(Tt,xt)},gvEcj:function(Tt,xt){return bt(Tt,xt)},qonBa:function(Tt,xt){return bt(Tt,xt)},SQuSM:function(Tt,xt){return(function(Qt,ae){return Qt+ae})(Tt,xt)},qLjkZ:function(Tt,xt){return(function(Qt,ae){return Qt*ae})(Tt,xt)},XMYnt:function(Tt,xt){return mt(Tt,xt)},YtxIQ:function(Tt,xt){return(function(Qt,ae){return Qt(ae)})(Tt,xt)}};return(function(Tt,xt,Qt){return Tt(xt,Qt)})(e.YH,this,(function(Tt){switch(Tt.label){case 0:return[4,i[Mt.sTGJP(jt,6)]({requiredFeatures:s})];case 1:for(vt=Tt.sent(),_t=Math.PI,Vt=[[0,1,0,Mt.bLKEM(_t,7)],[1,0,0,Mt.bLKEM(_t,8)],[0,1,1,Mt.BfmPO(_t,4)],[1,2,1,Mt.qiUeQ(_t,8)]],Gt=Vt.length,Kt=new Uint8Array(Mt.QCXCI(Gt,Mt.YuwoT(Mt.YuwoT(16,Ei),8))),Nt=navigator[Mt.IxGbO(jt,0)][Mt.NzoFK(jt,7)](),o[Mt.nStre(jt,8)]({device:vt,format:Nt}),Pt=vt[Mt.cgngL(jt,9)](Mt.IxGbO(jt,10)),Xt=vt[Mt.CVGyL(jt,11)]({label:Mt.IxGbO(jt,12),layout:Mt.cgngL(jt,13),vertex:{module:Pt},fragment:{module:Pt,targets:[{format:Nt}]},primitive:Mt.lnSsO(jt,14)}),te=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],re=new Uint8Array(Mt.cgngL(Array,Mt.NQGua(7,9)).fill(void 0).map((function(ae,un){return te[(function(Te){return Mt.eRsOG(Te,3)})(un)]})).flat()),ce=vt[Mt.CVGyL(jt,15)]({label:Mt.LWtIu(jt,16),size:[7,9],format:Mt.rnbTq(jt,17),usage:Mt.vXgTw(window[Mt.SGWhR(jt,18)][Mt.IxGbO(jt,19)],window[Mt.tJskz(jt,18)][Mt.WwBMK(jt,20)])}),vt[Mt.LWtIu(jt,21)][Mt.XvGWM(jt,22)]({texture:ce},re,{bytesPerRow:Mt.NQGua(7,4)},{width:7,height:9}),Ee=vt[Mt.SGWhR(jt,23)](Mt.Czazt(jt,24)),ve=vt[Mt.XvGWM(jt,25)]({layout:Xt[Mt.TcuLX(jt,26)](0),entries:[{binding:0,resource:Ee},{binding:1,resource:ce[Mt.qmLme(jt,27)]()}]}),Ie=Vt.map((function(ae){for(var un=Mt.LIcVF.split("|"),Te=0;;){switch(un[Te++]){case"0":ke[Mt.CVGyL(jt,35)]();continue;case"1":var ke=vt[Mt.CVGyL(jt,28)]({label:Mt.CVGyL(jt,29),size:Mt.NQGua(4,Float32Array[Mt.IxGbO(jt,30)]),usage:window[Mt.IxGbO(jt,31)][Mt.CVGyL(jt,32)],mappedAtCreation:!0});continue;case"2":ze[Mt.CVGyL(jt,34)](ae);continue;case"3":var ze=new Float32Array(ke[Mt.IxGbO(jt,33)]());continue;case"4":return vt[Mt.CVGyL(jt,25)]({layout:Xt[Mt.qQoQh(jt,26)](1),entries:[{binding:0,resource:{buffer:ke}}]})}break}})),Ce=vt[Mt.DHpBv(jt,36)](Mt.Czazt(jt,37)),Le=vt[Mt.qQoQh(jt,28)]({size:Mt.QCXCI(Ce[Mt.GXSjU(jt,38)],8),usage:Mt.lZchU(window[Mt.kdFZM(jt,31)][Mt.tJskz(jt,39)],window[Mt.fjLlD(jt,31)][Mt.qmLme(jt,40)])}),Ne=vt[Mt.LWtIu(jt,28)]({size:Mt.NQGua(Le[Mt.NZEUH(jt,41)],Gt),usage:Mt.vXgTw(window[Mt.rMQcE(jt,31)][Mt.XvGWM(jt,20)],window[Mt.cmdDW(jt,31)][Mt.fMGTS(jt,42)])}),nn={label:Mt.Megnu(jt,43),colorAttachments:Mt.qmLme(jt,44),timestampWrites:{querySet:Ce,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},fn=0;Mt.dwDBV(fn,Ie.length);fn++)for(var xt=Mt.UStju.split("|"),Qt=0;;){switch(xt[Qt++]){case"0":Mt.yPtzU(Ne[Mt.hIuvn(jt,58)],Mt.LUaAI(jt,59))&&pn[Mt.KBsRE(jt,60)](Le,0,Ne,Mt.eiLib(fn,16),Le[Mt.qQoQh(jt,41)]);continue;case"1":Fn[Mt.gsIFj(jt,51)](Xt);continue;case"2":Wn=window[Mt.ymkbA(jt,53)][Mt.qQoQh(jt,54)]();continue;case"3":Fn[Mt.sTGJP(jt,52)](1,Sn);continue;case"4":Tr=Mt.RTTay(Y8,o[Mt.qmLme(jt,2)]);continue;case"5":pn[Mt.cmdDW(jt,57)](Ce,0,Ce[Mt.hIuvn(jt,38)],Le,0);continue;case"6":Fn[Mt.SXGAR(jt,56)]();continue;case"7":zn=pn[Mt.rLyth(jt,61)]();continue;case"8":vt[Mt.Megnu(jt,21)][Mt.RTTay(jt,62)]([zn]);continue;case"9":Kt[Mt.lnNJb(jt,34)](new Uint8Array(new Float64Array([Wn])[Mt.XvGWM(jt,63)]),Mt.HtEmG(fn,Mt.YuwoT(Mt.kEERD(16,Ei),8)));continue;case"10":Kt[Mt.cgngL(jt,34)](Tr,Mt.lEDdr(8,Mt.NQGua(fn,Mt.VfkAG(Mt.lEDdr(16,Ei),8))));continue;case"11":Fn[Mt.FQVYm(jt,52)](0,ve);continue;case"12":pn=vt[Mt.SGWhR(jt,48)](Mt.kdFZM(jt,49));continue;case"13":nn[Mt.rjquO(jt,45)][0][Mt.hIuvn(jt,46)]=o[Mt.CVGyL(jt,47)]()[Mt.zCjNE(jt,27)]();continue;case"14":Fn=pn[Mt.FQVYm(jt,50)](nn);continue;case"15":Fn[Mt.HfSqy(jt,55)](48);continue;case"16":Sn=Ie[fn];continue}break}return Mt.yPtzU(Ne[Mt.xEOfR(jt,58)],Mt.CsGxJ(jt,59))?[4,Ne[Mt.DHpBv(jt,64)](window[Mt.WwBMK(jt,65)][Mt.CPukW(jt,66)])]:[3,3];case 2:for(Tt.sent(),Xr=Ne[Mt.cmdDW(jt,33)](),nr=new Uint8Array(Xr),fn=0;Mt.dwDBV(fn,Gt);fn++)Kt[Mt.TcuLX(jt,34)](nr[Mt.sTGJP(jt,67)](Mt.NQGua(fn,Ei),Mt.uiTcO(Mt.gvEcj(fn,1),Ei)),Mt.qonBa(Mt.SQuSM(8,16),Mt.qLjkZ(fn,Mt.gvEcj(Mt.XMYnt(16,Ei),8))));Ne[Mt.YtxIQ(jt,35)](),Tt.label=3;case 3:return[2,Mt.GXSjU(Qn,Kt)]}}))}))}function Y8(i){var s=function(o,c){return o(c)};return s(e4,s(dn,i[s(jt,68)]()))}function W8(i){var s,o=function(p,y){return p!==y},c=function(p,y){return p(y)};return(function(p,y,w,E,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p;return(function(y,w,E){return y(w,E)})(e.YH,this,(function(y){switch(y.label){case 0:return o(s=i[c(jt,69)],null)&&o(s,void 0)?(p=s,[3,3]):[3,1];case 1:return[4,i[c(jt,70)]()];case 2:p=y.sent(),y.label=3;case 3:return[2,p]}}))}))}function sd(){var i=function(o,c,p){return o(c,p)},s=this;return i(jn,Un(1e3,{s:-2,v:null}),(function(){var o,c,p=function(v){return(function(I){return I()})(v)},y=function(v,I,B){return i(v,I,B)},w=function(v,I,B){return(function(L,$,Q){return L($,Q)})(v,I,B)},E=function(v,I,B){return(function(L,$,Q){return L($,Q)})(v,I,B)};return o=e.sH,c=function(){var v,I,B,L,$,Q,tt;return i(e.YH,this,(function(rt){switch(rt.label){case 0:return[4,p(z8)];case 1:return v=rt.sent(),(function(at,mt){return(function(bt,vt){return bt!==vt})(at,mt)})(y(qt,v,453955339),0)?[2,v]:(I=(function(at,mt){return i(at,mt,1801730948)})(qt,v),B=I[0],L=I[1],[4,w(G8,B,L)]);case 2:return $=rt.sent(),Q=$[0],tt=$[1],[2,{s:0,v:{s:$[2],f:Q,v:y(qt,tt,4112659446),a:E(qt,tt,1956208378)}}]}}))},o(s,void 0,void 0,c)}))}function z8(){var i,s,o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return i=e.sH,s=function(){var p,y,w,E,v=function(L,$,Q){return c(L,$,Q)},I=function(L){return(function($){return $()})(L)},B=function(L,$,Q){return c(L,$,Q)};return o(e.YH,this,(function(L){switch(L.label){case 0:if(!(p=(function($,Q){return o($,Q,3179935986)})(qt,navigator)))return[2,{s:-3,v:null}];y=null,L.label=1;case 1:return L.trys.push([1,3,,4]),[4,v(qt,p,1678473624)()];case 2:return y=L.sent(),[3,4];case 3:if((function($){return(function(Q,tt){return Q instanceof tt})($,Error)})(w=L.sent())&&I(q))return[2,{s:-3,v:B(qt,w,3065852031)}];throw w;case 4:return y?I(H8)?(E=(function($){return(function(Q){return Q()})($)})(V8))?[2,{s:0,v:[y,E]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}}))},i(this,void 0,void 0,s)}function K8(){var i;return{s:0,v:(i=performance.timeOrigin)!==null&&i!==void 0?i:Date.now()-performance.now()}}var Or=Tn([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function Z8(){var i,s,o=function(c){return c()};return i=e.sH,s=function(){var c,p=function(w){return o(w)},y=function(w,E){return(function(v,I){return v(I)})(w,E)};return(function(w,E,v){return w(E,v)})(e.YH,this,(function(w){switch(w.label){case 0:return p(S)||(function(E){return o(E)})(D)?(c={s:0},[4,p(X8)]):[3,2];case 1:return[2,(c[y(Or,0)]=w.sent(),c)];case 2:return[2,{s:-1,v:null}]}}))},i(this,void 0,void 0,s)}function X8(){var i={Blqbz:function(o,c){return o(c)},xZHoB:"2|1|3|0|4",dJhbP:function(o,c){return o(c)},SkSjD:function(o){return o()},KqpSs:function(o,c,p){return o(c,p)},hsbcg:function(o,c,p){return o(c,p)},QsyLE:function(o,c){return o(c)},BRhvx:function(o,c,p){return o(c,p)},FbvWI:function(o,c){return o(c)},iDelp:function(o,c){return o(c)}},s=new Promise((function(o){for(var c=i.xZHoB.split("|"),p=0;;){switch(c[p++]){case"0":window[i.Blqbz(Or,5)](window[i.dJhbP(Or,6)].debug,0,y);continue;case"1":var y;continue;case"2":var w={mXScH:function(E,v){return i.dJhbP(E,v)}};continue;case"3":i.SkSjD(S)?((y=new Error).name=" ",i.KqpSs(qt,Object,1973166116)(y,i.dJhbP(Or,1),{get:o.bind(null,!0)})):(y=i.hsbcg(qt,window[i.dJhbP(Or,2)],1297038992)(i.QsyLE(Or,3)),i.BRhvx(qt,Object,1973166116)(y,i.FbvWI(Or,4),{get:function(){w.mXScH(o,!0);var E=new Error;throw E.name="",E}}));continue;case"4":window[i.iDelp(Or,5)]((function(){i.Blqbz(o,!1)}));continue}break}}));return i.FbvWI(io,s)}var $8=new Set([2882888216,2306836488,1040191956,1447924955]);function q8(){return{s:0,v:n4(Navigator.prototype,$8)}}var ad=Tn([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function J8(){var i,s=(function(o,c){return o(c,3966979758)})(qt,new window[i=ad,i(0)](""));return(function(o,c){return o!==c})(typeof s,(function(o){return o(1)})(ad))?{s:-1,v:null}:{s:0,v:{isTrusted:s}}}var Q8=function(){return{key:"bd",sources:{stage1:(i={},i.s94=td,i),stage2:(s={},s.s106=j5,s.s154=e8,s.s158=a8,s.s160=a6,s.s97=id,s.s70=sd,s.s152=x6,s),stage3:(o={},o.s1=pl,o.s2=vl,o.s4=ml,o.s5=gl,o.s7=yl,o.s15=wl,o.s19=El,o.s27=_l,o.s74=bl,o.s75=Rl,o.s24=Pl,o.s44=Ll,o.s45=Ml,o.s57=jl,o.s59=Al,o.s60=Sl,o.s61=Il,o.s62=Ol,o.s63=Tl,o.s64=Nl,o.s65=xl,o.s68=Cl,o.s69=Ul,o.s72=Fl,o.s82=Yl,o.s83=Wl,o.s99=od,o.s101=H5,o.s103=V5,o.s104=G5,o.s117=Y5,o.s119=W5,o.s123=z5,o.s131=K5,o.s133=Z5,o.s136=X5,o.s148=$5,o.s149=q5,o.s150=J5,o.s157=Q5,o.s102=L6,o.s118=B6,o.s120=N6,o.s130=M6,o.s132=k6,o.s135=C6,o.s139=I6,o.s142=T6,o.s144=O6,o.s145=A6,o.s146=S6,o.s151=W6,o.s153=z6,o.s155=r8,o.s156=o8,o.s159=u8,o.s162=d8,o.s163=Z8,o.s165=J8,o.s166=q8,o)}};var i,s,o};function ty(i,s,o,c,p,y){var w=c?[]:(function(L,$,Q){return(function(tt,rt){for(var at=function(Xt,te){return Xt<te},mt=function(Xt,te,re){return Xt(te,re)},bt=function(Xt,te){return Xt(te)},vt=[],_t=0,Vt=Array.isArray(tt)?tt:[tt];at(_t,Vt.length);_t++){var Gt=Vt[_t];if(mt(ru,Gt,cs))for(var Kt=0,Nt=rt;at(Kt,Nt.length);Kt++){var Pt=Nt[Kt];vt.push(bt(r5,Pt))}else vt.push(bt(String,Gt))}return vt})(L,$).map((function(tt){return eu(tt,{q:Q})}))})(i,s,o);if(w.length===0)return function(){return Promise.resolve({s:-1,v:null})};dr(y,(function(){return{e:6}}));var E=t0(),v=q0(E),I=Date.now(),B=rl(w,ey.bind(null,5e3,y,v),ny,Math.max(10,w.length),p);return B.then((function(){return E.resolve()}),(function(){return E.resolve()})),function(L,$,Q,tt){return(0,e.sH)(this,void 0,void 0,(function(){var rt,at;return(0,e.YH)(this,(function(mt){switch(mt.label){case 0:if(Q)return[2,{s:-1,v:null}];mt.label=1;case 1:return mt.trys.push([1,3,,4]),[4,Promise.race([B,ry(I,L,$)])];case 2:return mt.sent(),rt=(function(bt){var vt=bt.result,_t=bt.failedAttempts;if(vt!==void 0)return vt;var Vt=_t[0];if(!Vt)return{s:-3,v:null};if(Vt.level===1)return Vt.error;var Gt=Vt.error,Kt=Vt.endpoint;if(Gt instanceof Error){var Nt=Gt.name,Pt=Gt.message;switch(Nt){case"AbortError":return{s:-2,v:Pt};case"TimeoutError":return{s:-3,v:Pt};case"CSPError":return{s:-6,v:Pt};case"InvalidURLError":return{s:-7,v:"Invalid URL: ".concat(zr(Kt,255))};case"TypeError":return{s:-4,v:Pt}}}return ol(Gt)})(B.current),dr(tt,(function(){return{e:7,result:rt}})),[2,rt];case 3:throw at=mt.sent(),dr(tt,(function(){return{e:8,error:at}})),at;case 4:return[2]}}))}))}}function ey(i,s,o,c,p,y){return uo(s,(function(){return{e:9,tryNumber:p,url:c,timeout:i}}),(function(w){var E=w.status,v=w.getHeader,I=w.body;return{e:10,tryNumber:p,status:E,retryAfter:v("retry-after"),body:I}}),(function(w){return{e:11,tryNumber:p,error:w}}),(function(){return $0({url:c,timeout:i,abort:y,container:o})}))}function ny(i){var s=i.status,o=i.body;return s===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(o)?{result:{s:0,v:o}}:{error:{s:-5,v:zr("".concat(s,": ").concat(o),255)}}}function ry(i,s,o){return Un(Math.min(Math.max(s,i+1e4-Date.now()),o))}function ud(i){for(var s="".concat(i,"="),o=0,c=document.cookie.split(";");o<c.length;o++){for(var p=c[o],y=0;p[y]===" "&&y<p.length;)++y;if(p.indexOf(s)===y)return p.slice(y+s.length)}}function cd(i,s,o,c){var p="".concat(i,"=").concat(s),y=new Date(Date.now()+24*o*60*60*1e3),w="expires=".concat(y.toUTCString()),E=c?"domain=".concat(c):"";document.cookie=[p,"path=/",w,E,"SameSite=Lax"].join("; ")}function fd(i){var s=location.hostname,o=q();(function(c,p){var y=c.length-(c.slice(-1)==="."?1:0);do if(y=y>0?c.lastIndexOf(".",y-1):-1,p(c.slice(y+1))===!0)return!0;while(y>=0);return!1})(s,(function(c){if(!o||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(c)||c===s)return i(c)}))||i()}function ld(i){return"".concat(i,"_t")}function uu(i){return"".concat(i,"_lr")}function dd(i){var s,o;try{return(o=(s=localStorage==null?void 0:localStorage.getItem)===null||s===void 0?void 0:s.call(localStorage,i))!==null&&o!==void 0?o:void 0}catch{}}function cu(i,s){var o;try{(o=localStorage==null?void 0:localStorage.setItem)===null||o===void 0||o.call(localStorage,i,s)}catch{}}function iy(i){var s=(function(p){return[ud(p),dd(p)]})(ld(i)),o=s[0],c=s[1];return o=hd(o),c=hd(c),o!==void 0&&c!==void 0?{s:0,v:o||c}:o!==void 0?{s:1,v:o}:c!==void 0?{s:2,v:c}:{s:-1,v:null}}function hd(i){return i&&i.length<=1e3?i:void 0}var oy=function(){return{key:"id",sources:{stage1:(i={},i.s94=td,i),stage2:(s={},s.s52=s6,s.s6=v5,s.s58=l6,s.s20=l5,s.s36=d5,s.s51=h5,s.s21=p5,s.s79=w6,s.s69=Ul,s.s23=P6,s.s29=D6,s.s84=H6,s.s85=G6,s.s89=v6,s.s17=R5,s.s87=s8,s.s92=f8,s.s93=c8,s.s95=k8,s.s97=id,s.s70=sd,s),stage3:(o={},o.s22=b6,o.s30=_6,o.s33=e6,o.s44=Ll,o.s45=Ml,o.s49=n6,o.s50=i6,o.s57=jl,o.s59=Al,o.s60=Sl,o.s61=Il,o.s62=Ol,o.s63=Tl,o.s64=Nl,o.s65=xl,o.s66=U5,o.s68=Cl,o.s71=p6,o.s24=Pl,o.s72=Fl,o.s1=pl,o.s2=vl,o.s3=m5,o.s4=ml,o.s5=gl,o.s7=yl,o.s9=g5,o.s10=y5,o.s11=w5,o.s12=V6,o.s13=E5,o.s14=_5,o.s15=wl,o.s16=b5,o.s19=El,o.s27=_l,o.s28=A5,o.s32=S5,o.s37=I5,o.s41=O5,o.s39=T5,o.s42=N5,o.s38=x5,o.s43=C5,o.s40=B5,o.s46=M5,o.s80=k5,o.s81=D5,o.s82=Yl,o.s83=Wl,o.s86=Y6,o.s91=L5,o.s96=P5,o.s98=F8,o.s99=od,o.s200=K8,o.s201=t6,o.s202=F5,o.s74=bl,o.s75=Rl,o.s76=o6,o)},tls:ty,toRequest:function(c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,E,v,I,B;return(0,e.YH)(this,(function(L){switch(L.label){case 0:return y=location.href,w=document.referrer,[4,Promise.all([y&&ds(y,p),w&&ds(w,p)])];case 1:return E=L.sent(),v=E[0],I=E[1],[2,(B={},B.url=v,B.cr=I||void 0,B.s55=iy(c),B.s48=R6(),B)]}}))}))},onResponse:function(c,p){var y,w,E;(function(v,I){var B=ld(v);I&&(function(L,$){(function(Q,tt){fd((function(rt){(function(at,mt){cd(at,"",-1,mt)})(Q,rt)})),fd((function(rt){return cd(Q,tt,365,rt),ud(Q)===tt}))})($,L),cu($,L)})(I,B)})(p,(E=(w=(y=c.products)===null||y===void 0?void 0:y.identification)===null||w===void 0?void 0:w.data)===null||E===void 0?void 0:E.visitorToken)}};var i,s,o},sy=function(){return{key:"si",sources:{stage2:(i={},i.s77=b8,i)}};var i},pd=[3,7];function fu(i){var s=dd(i);if(!s)return[];try{var o=s?JSON.parse(s):[];return Array.isArray(o)?o:[]}catch{return[]}}function vd(i){var s={};return new Set(i).forEach((function(o){var c=(function(y){if(!URL.prototype)return y;try{return new URL(y,window.location.origin).toString()}catch{return y}})(o),p=performance.getEntriesByName(c,"resource");s[o]=p})),s}function lu(i,s,o,c,p,y){for(var w,E=[],v=0,I=i;v<I.length;v++){var B=I[v],L=B.event;L.e!==o&&L.e!==c&&L.e!==p||L.stage===y&&((E[w=L.tryNumber]||(E[w]={}))[L.e]=B)}return E.map((function($){var Q,tt,rt,at,mt,bt,vt=(Q=$[o])===null||Q===void 0?void 0:Q.timestamp,_t=(rt=(tt=$[c])===null||tt===void 0?void 0:tt.timestamp)!==null&&rt!==void 0?rt:(at=$[p])===null||at===void 0?void 0:at.timestamp,Vt=(mt=$[o])===null||mt===void 0?void 0:mt.event.url,Gt=(bt=$[p])===null||bt===void 0?void 0:bt.event.error;return vt&&_t&&Vt?md(Vt,vt,_t,Gt,s[Vt]):null})).filter((function($){return!!$}))}function md(i,s,o,c,p){var y,w=(function(E,v,I){if(E){for(var B,L=E.length-1;L>=0;L--){var $=E[L];if($.startTime<v-1)break;$.responseEnd<=I+1&&(B=$)}return B}})(p,s,o);return(y={}).s=hr(w?.startTime)||Math.round(s),y.e=hr(w?.responseEnd)||Math.round(o),y.u=i||null,y.er=c?String(c):null,y.ds=hr(w?.domainLookupStart),y.de=hr(w?.domainLookupEnd),y.cs=hr(w?.connectStart),y.css=hr(w?.secureConnectionStart),y.ce=hr(w?.connectEnd),y.qs=hr(w?.requestStart),y.ss=hr(w?.responseStart),y}function hr(i){return typeof i=="number"?i===0?null:Math.round(i):null}function ms(i){var s,o=(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now();return Math.round(i.getTime()-o)}var ay=function(){var i=(function(){var o={},c=[],p=[],y=!1,w=gi(document,"visibilitychange",E);function E(){var I;p.push(((I={}).t=Math.round(performance.now()),I.s=Qa()?"v":"h",I))}function v(I,B){for(var L,$,Q,tt,rt,at,mt,bt,vt,_t,Vt,Gt,Kt=(function(Qt,ae,un){var Te=[];return Qt[ae]&&(Te.push.apply(Te,Qt[ae].commonEvents),un!==void 0&&Te.push.apply(Te,Qt[ae].getCalls[un]||[])),Te})(o,I,B),Nt={},Pt=0,Xt=Kt;Pt<Xt.length;Pt++){var te=Xt[Pt];Nt[te.event.e]=te}var re=($=Nt[4])!==null&&$!==void 0?$:Nt[5];if(Nt[0]&&Nt[1]&&Nt[3]&&Nt[12]&&re){var ce=Nt[0].event.options,Ee=ce.token,ve=ce.apiKey,Ie=ve===void 0?Ee:ve,Ce=ce.storageKey,Le=Ce===void 0?h0:Ce,Ne=ce.modules,nn=ce.ldi,Sn=ce.aggressiveOptimization,pn=Sn!==void 0&&Sn,Fn=ce.optimizeRepeatedVisits,Wn=Fn!==void 0&&Fn;if(Ie){var zn,Tr,Xr=Math.min(Nt[0].timestamp,ms((Q=nn?.attempts[0].startedAt)!==null&&Q!==void 0?Q:new Date("8524-04-28"))),nr=(tt=Nt[5])===null||tt===void 0?void 0:tt.event.error,fn=(rt=Nt[4])===null||rt===void 0?void 0:rt.event.result,Mt=(at=Nt[13])!==null&&at!==void 0?at:Nt[14],Tt=vd(c),xt=((L={}).v="1",L.dt=new Date().toISOString(),L.ci=il(),L.pi=K0(),L.ai=I,L.ri=oo(12),L.c=Ie,L.rid=(bt=(mt=fn?.requestId)!==null&&mt!==void 0?mt:nr?.requestId)!==null&&bt!==void 0?bt:null,L.er=(vt=nr?.message)!==null&&vt!==void 0?vt:null,L.mo=Ne.map((function(Qt){return Qt.key})).filter((function(Qt){return!!Qt})),L.sa=(zn=(_t=nn?.attempts)!==null&&_t!==void 0?_t:[],Tr=vd(zn.map((function(Qt){return Qt.url})).filter((function(Qt){return!!Qt}))),zn.map((function(Qt,ae){var un=zn.length>1&&ae<zn.length-1&&!("error"in Qt);return md(Qt.url,ms(Qt.startedAt),ms(Qt.finishedAt),un?"Unknown":Qt.error,Tr[Qt.url])}))),L.ls=Nt[0].timestamp,L.le=Nt[1].timestamp,L.ca=lu(Kt,Tt,9,10,11),L.ss=Nt[12].timestamp,L.se=(Vt=Mt?.timestamp)!==null&&Vt!==void 0?Vt:null,L.sd=(function(Qt){var ae,un=(ae=Qt[13])===null||ae===void 0?void 0:ae.event.result;if(!un)return{};var Te={};for(var ke in un)Te[ke]=Math.round(un[ke].duration);return Te})(Nt),L.gs=Nt[3].timestamp,L.ge=re.timestamp,L.fa=lu(Kt,Tt,18,19,20,0),L.ia=lu(Kt,Tt,18,19,20,1),L.vs=(function(Qt,ae,un,Te){for(var ke=(function(Nn,Kn){var xr,Cr;return(0,e.YH)(this,(function(pr){switch(pr.label){case 0:xr=0,Cr=0,pr.label=1;case 1:return xr<Nn.length&&Cr<Kn.length?(function(py,vy){return py.t<vy.t})(Nn[xr],Kn[Cr])?[4,Nn[xr]]:[3,3]:[3,6];case 2:return pr.sent(),xr++,[3,5];case 3:return[4,Kn[Cr]];case 4:pr.sent(),Cr++,pr.label=5;case 5:return[3,1];case 6:return xr<Nn.length?[4,Nn[xr]]:[3,9];case 7:pr.sent(),pr.label=8;case 8:return xr++,[3,6];case 9:return Cr<Kn.length?[4,Kn[Cr]]:[3,12];case 10:pr.sent(),pr.label=11;case 11:return Cr++,[3,9];case 12:return[2]}}))})(Qt.map((function(Nn){var Kn;return(Kn={}).t=ms(Nn.time),Kn.s=Nn.state==="visible"?"v":"h",Kn})),ae),ze=[],gn=void 0,Nr=function(){var Nn;ze.length===0&&gn!==void 0&&ze.push(((Nn={}).t=un,Nn.s=gn,Nn))};ze.length<100;){var ho=ke.next();if(ho.done)break;var _i=ho.value,bi=_i.t,po=_i.s;if(bi>Te)break;bi<un?gn=po:po!==gn&&(Nr(),ze.push(_i),gn=po)}return Nr(),ze})((Gt=nn?.visibilityStates)!==null&&Gt!==void 0?Gt:[],p,Xr,re.timestamp),L.ab=Nt[1].event.ab,L.ao=pn,L.or=Wn,L);(function(Qt,ae){(function(un,Te){var ke=uu(Te),ze=fu(ke)||[];ze.splice(0,ze.length-2);var gn=al(y0(un),pd,3,7);ze.push([un.ri,Qn(gn)]),cu(ke,JSON.stringify(ze))})(Qt,ae)})(xt,Le)}}}return E(),{addEvent:function(I){if(!y)switch((function(B){var L=B.event,$=L.agentId;if(o[$]||(o[$]={commonEvents:[],getCalls:{}}),Q0(L)){var Q=L.getCallId;o[$].getCalls[Q]||(o[$].getCalls[Q]=[]),o[$].getCalls[Q].push(B)}else o[$].commonEvents.push(B)})({timestamp:Math.round(performance.now()),event:I}),I.e){case 9:case 18:c.push(I.url);break;case 4:case 5:v(I.agentId,I.getCallId)}},destroy:function(){y=!0,w()}}})(),s=new Set;return{toRequest:function(o){var c,p=(function(y){var w=fu(uu(y))||[],E=[];return w.forEach((function(v){try{var I=ls(nu(os(v[1]),pd,7));E.push(I)}catch{}})),E})(o);return s=new Set(p.map((function(y){return y.ri}))),(c={}).lr=p,c},onResponse:function(o,c){(function(p,y){var w=uu(p);if(y.size!==0){var E=fu(w).filter((function(v){return!y.has(v[0])}));E.length!==0?cu(w,JSON.stringify(E)):(function(v){var I;try{(I=localStorage==null?void 0:localStorage.removeItem)===null||I===void 0||I.call(localStorage,v)}catch{}})(w)}})(c,s)},addEvent:i.addEvent,destroy:i.destroy}},uy=function(i){return{addEvent:b4(i)}},cy=function(i){return{addEvent:F4(i)}},gs="API key required",ys="API key not found",ws="API key expired",gd="Request cannot be parsed",yd="Request failed",wd="Request failed to process",Ed="Too many requests, rate limit exceeded",_d="Not available for this origin",bd="Not available with restricted header",fy=gs,ly=ys,dy=ws,hy={load:hl,defaultEndpoint:us,defaultTlsEndpoint:cs,ERROR_CLIENT_TIMEOUT:Ka,ERROR_NETWORK_CONNECTION:Za,ERROR_NETWORK_ABORT:Xa,ERROR_WRONG_REGION:N0,ERROR_SUBSCRIPTION_NOT_ACTIVE:x0,ERROR_API_KEY_MISSING:gs,ERROR_API_KEY_INVALID:ys,ERROR_API_KEY_EXPIRED:ws,ERROR_BAD_REQUEST_FORMAT:gd,ERROR_BAD_RESPONSE_FORMAT:$a,ERROR_GENERAL_SERVER_FAILURE:yd,ERROR_SERVER_TIMEOUT:wd,ERROR_RATE_LIMIT:Ed,ERROR_FORBIDDEN_ORIGIN:_d,ERROR_FORBIDDEN_HEADER:bd,ERROR_UNSUPPORTED_VERSION:C0,ERROR_INSTALLATION_METHOD_RESTRICTED:L0,ERROR_FORBIDDEN_ENDPOINT:B0,ERROR_CSP_BLOCK:qa,ERROR_INTEGRATION_FAILURE:M0,ERROR_INVALID_ENDPOINT:Ja,ERROR_NETWORK_RESTRICTED:D0,ERROR_INVALID_PROXY_INTEGRATION_SECRET:U0,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:P0,ERROR_TOKEN_MISSING:gs,ERROR_TOKEN_INVALID:ys,ERROR_TOKEN_EXPIRED:ws}},568:function(t,n,r){r.r(n),r.d(n,{componentsToDebugString:function(){return Et},default:function(){return R},getFullscreenElement:function(){return D},getScreenFrame:function(){return Ht},hashComponents:function(){return Ct},isAndroid:function(){return z},isChromium:function(){return wt},isDesktopSafari:function(){return f},isEdgeHTML:function(){return gt},isGecko:function(){return S},isTrident:function(){return ct},isWebKit:function(){return P},load:function(){return F},loadSources:function(){return Rt},murmurX64Hash128:function(){return O},prepareForSources:function(){return Wt},sources:function(){return lt},transformSource:function(){return st},withIframe:function(){return nt}});var e=r(635),u="3.4.2";function a(A,V){return new Promise((function(G){return setTimeout(G,A,V)}))}function d(A){return!!A&&typeof A.then=="function"}function g(A,V){try{var G=A();d(G)?G.then((function(ot){return V(!0,ot)}),(function(ot){return V(!1,ot)})):V(!0,G)}catch(ot){V(!1,ot)}}function l(A,V,G){return G===void 0&&(G=16),(0,e.sH)(this,void 0,void 0,(function(){var ot,Lt,Bt,Dt;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:ot=Array(A.length),Lt=Date.now(),Bt=0,kt.label=1;case 1:return Bt<A.length?(ot[Bt]=V(A[Bt],Bt),(Dt=Date.now())>=Lt+G?(Lt=Dt,[4,a(0)]):[3,3]):[3,4];case 2:kt.sent(),kt.label=3;case 3:return++Bt,[3,1];case 4:return[2,ot]}}))}))}function _(A){A.then(void 0,(function(){}))}function T(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 G=[0,0,0,0];return G[3]+=A[3]+V[3],G[2]+=G[3]>>>16,G[3]&=65535,G[2]+=A[2]+V[2],G[1]+=G[2]>>>16,G[2]&=65535,G[1]+=A[1]+V[1],G[0]+=G[1]>>>16,G[1]&=65535,G[0]+=A[0]+V[0],G[0]&=65535,[G[0]<<16|G[1],G[2]<<16|G[3]]}function C(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 G=[0,0,0,0];return G[3]+=A[3]*V[3],G[2]+=G[3]>>>16,G[3]&=65535,G[2]+=A[2]*V[3],G[1]+=G[2]>>>16,G[2]&=65535,G[2]+=A[3]*V[2],G[1]+=G[2]>>>16,G[2]&=65535,G[1]+=A[1]*V[3],G[0]+=G[1]>>>16,G[1]&=65535,G[1]+=A[2]*V[2],G[0]+=G[1]>>>16,G[1]&=65535,G[1]+=A[3]*V[1],G[0]+=G[1]>>>16,G[1]&=65535,G[0]+=A[0]*V[3]+A[1]*V[2]+A[2]*V[1]+A[3]*V[0],G[0]&=65535,[G[0]<<16|G[1],G[2]<<16|G[3]]}function N(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 x(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 M(A,V){return[A[0]^V[0],A[1]^V[1]]}function U(A){return A=M(A,[0,A[0]>>>1]),A=M(A=C(A,[4283543511,3981806797]),[0,A[0]>>>1]),M(A=C(A,[3301882366,444984403]),[0,A[0]>>>1])}function Y(A,V){V=V||0;var G,ot=(A=A||"").length%16,Lt=A.length-ot,Bt=[0,V],Dt=[0,V],kt=[0,0],it=[0,0],zt=[2277735313,289559509],pe=[1291169091,658871167];for(G=0;G<Lt;G+=16)kt=[255&A.charCodeAt(G+4)|(255&A.charCodeAt(G+5))<<8|(255&A.charCodeAt(G+6))<<16|(255&A.charCodeAt(G+7))<<24,255&A.charCodeAt(G)|(255&A.charCodeAt(G+1))<<8|(255&A.charCodeAt(G+2))<<16|(255&A.charCodeAt(G+3))<<24],it=[255&A.charCodeAt(G+12)|(255&A.charCodeAt(G+13))<<8|(255&A.charCodeAt(G+14))<<16|(255&A.charCodeAt(G+15))<<24,255&A.charCodeAt(G+8)|(255&A.charCodeAt(G+9))<<8|(255&A.charCodeAt(G+10))<<16|(255&A.charCodeAt(G+11))<<24],kt=N(kt=C(kt,zt),31),Bt=T(Bt=N(Bt=M(Bt,kt=C(kt,pe)),27),Dt),Bt=T(C(Bt,[0,5]),[0,1390208809]),it=N(it=C(it,pe),33),Dt=T(Dt=N(Dt=M(Dt,it=C(it,zt)),31),Bt),Dt=T(C(Dt,[0,5]),[0,944331445]);switch(kt=[0,0],it=[0,0],ot){case 15:it=M(it,x([0,A.charCodeAt(G+14)],48));case 14:it=M(it,x([0,A.charCodeAt(G+13)],40));case 13:it=M(it,x([0,A.charCodeAt(G+12)],32));case 12:it=M(it,x([0,A.charCodeAt(G+11)],24));case 11:it=M(it,x([0,A.charCodeAt(G+10)],16));case 10:it=M(it,x([0,A.charCodeAt(G+9)],8));case 9:it=C(it=M(it,[0,A.charCodeAt(G+8)]),pe),Dt=M(Dt,it=C(it=N(it,33),zt));case 8:kt=M(kt,x([0,A.charCodeAt(G+7)],56));case 7:kt=M(kt,x([0,A.charCodeAt(G+6)],48));case 6:kt=M(kt,x([0,A.charCodeAt(G+5)],40));case 5:kt=M(kt,x([0,A.charCodeAt(G+4)],32));case 4:kt=M(kt,x([0,A.charCodeAt(G+3)],24));case 3:kt=M(kt,x([0,A.charCodeAt(G+2)],16));case 2:kt=M(kt,x([0,A.charCodeAt(G+1)],8));case 1:kt=C(kt=M(kt,[0,A.charCodeAt(G)]),zt),Bt=M(Bt,kt=C(kt=N(kt,31),pe))}return Bt=T(Bt=M(Bt,[0,A.length]),Dt=M(Dt,[0,A.length])),Dt=T(Dt,Bt),Bt=T(Bt=U(Bt),Dt=U(Dt)),Dt=T(Dt,Bt),("00000000"+(Bt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Bt[1]>>>0).toString(16)).slice(-8)+("00000000"+(Dt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Dt[1]>>>0).toString(16)).slice(-8)}function W(A){return parseInt(A)}function J(A){return parseFloat(A)}function Z(A,V){return typeof A=="number"&&isNaN(A)?V:A}function et(A){return A.reduce((function(V,G){return V+(G?1:0)}),0)}function ht(A,V){if(V===void 0&&(V=1),Math.abs(V)>=1)return Math.round(A/V)*V;var G=1/V;return Math.round(A*G)/G}function ut(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function At(A){return typeof A!="function"}function Rt(A,V,G){var ot=Object.keys(A).filter((function(Bt){return!(function(Dt,kt){for(var it=0,zt=Dt.length;it<zt;++it)if(Dt[it]===kt)return!0;return!1})(G,Bt)})),Lt=l(ot,(function(Bt){return(function(Dt,kt){var it=new Promise((function(zt){var pe=Date.now();g(Dt.bind(null,kt),(function(){for(var ne=[],se=0;se<arguments.length;se++)ne[se]=arguments[se];var he=Date.now()-pe;if(!ne[0])return zt((function(){return{error:ut(ne[1]),duration:he}}));var le=ne[1];if(At(le))return zt((function(){return{value:le,duration:he}}));zt((function(){return new Promise((function(ue){var We=Date.now();g(le,(function(){for(var we=[],Re=0;Re<arguments.length;Re++)we[Re]=arguments[Re];var an=he+Date.now()-We;if(!we[0])return ue({error:ut(we[1]),duration:an});ue({value:we[1],duration:an})}))}))}))}))}));return _(it),function(){return it.then((function(zt){return zt()}))}})(A[Bt],V)}));return _(Lt),function(){return(0,e.sH)(this,void 0,void 0,(function(){var Bt,Dt,kt,it;return(0,e.YH)(this,(function(zt){switch(zt.label){case 0:return[4,Lt];case 1:return[4,l(zt.sent(),(function(pe){var ne=pe();return _(ne),ne}))];case 2:return Bt=zt.sent(),[4,Promise.all(Bt)];case 3:for(Dt=zt.sent(),kt={},it=0;it<ot.length;++it)kt[ot[it]]=Dt[it];return[2,kt]}}))}))}}function st(A,V){var G=function(ot){return At(ot)?V(ot):function(){var Lt=ot();return d(Lt)?Lt.then(V):V(Lt)}};return function(ot){var Lt=A(ot);return d(Lt)?Lt.then(G):G(Lt)}}function ct(){var A=window,V=navigator;return et(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in V,"msPointerEnabled"in V])>=4}function gt(){var A=window,V=navigator;return et(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in V,"msSaveBlob"in V])>=3&&!ct()}function wt(){var A=window,V=navigator;return et(["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 P(){var A=window,V=navigator;return et(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,V.vendor.indexOf("Apple")===0,"getStorageUpdates"in V,"WebKitMediaKeys"in A])>=4}function f(){var A=window;return et(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function S(){var A,V,G=window;return et(["buildID"in navigator,"MozAppearance"in((V=(A=document.documentElement)===null||A===void 0?void 0:A.style)!==null&&V!==void 0?V:{}),"onmozfullscreenchange"in G,"mozInnerScreenX"in G,"CSSMozDocumentRule"in G,"CanvasCaptureMediaStream"in G])>=4}function D(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function z(){var A=wt(),V=S();if(!A&&!V)return!1;var G=window;return et(["onorientationchange"in G,"orientation"in G,A&&!("SharedWorker"in G),V&&/android/i.test(navigator.appVersion)])>=2}function q(A){var V=new Error(A);return V.name=A,V}function nt(A,V,G){var ot,Lt,Bt;return G===void 0&&(G=50),(0,e.sH)(this,void 0,void 0,(function(){var Dt,kt;return(0,e.YH)(this,(function(it){switch(it.label){case 0:Dt=document,it.label=1;case 1:return Dt.body?[3,3]:[4,a(G)];case 2:return it.sent(),[3,1];case 3:kt=Dt.createElement("iframe"),it.label=4;case 4:return it.trys.push([4,,10,11]),[4,new Promise((function(zt,pe){var ne=!1,se=function(){ne=!0,zt()};kt.onload=se,kt.onerror=function(ue){ne=!0,pe(ue)};var he=kt.style;he.setProperty("display","block","important"),he.position="absolute",he.top="0",he.left="0",he.visibility="hidden",V&&"srcdoc"in kt?kt.srcdoc=V:kt.src="about:blank",Dt.body.appendChild(kt);var le=function(){var ue,We;ne||(((We=(ue=kt.contentWindow)===null||ue===void 0?void 0:ue.document)===null||We===void 0?void 0:We.readyState)==="complete"?se():setTimeout(le,10))};le()}))];case 5:it.sent(),it.label=6;case 6:return!((Lt=(ot=kt.contentWindow)===null||ot===void 0?void 0:ot.document)===null||Lt===void 0)&&Lt.body?[3,8]:[4,a(G)];case 7:return it.sent(),[3,6];case 8:return[4,A(kt,kt.contentWindow)];case 9:return[2,it.sent()];case 10:return(Bt=kt.parentNode)===null||Bt===void 0||Bt.removeChild(kt),[7];case 11:return[2]}}))}))}function ft(A){for(var V=(function(zt){for(var pe,ne,se="Unexpected syntax '".concat(zt,"'"),he=/^\s*([a-z-]*)(.*)$/i.exec(zt),le=he[1]||void 0,ue={},We=/([.:#][\w-]+|\[.+?\])/gi,we=function(Ue,lr){ue[Ue]=ue[Ue]||[],ue[Ue].push(lr)};;){var Re=We.exec(he[2]);if(!Re)break;var an=Re[0];switch(an[0]){case".":we("class",an.slice(1));break;case"#":we("id",an.slice(1));break;case"[":var Be=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(an);if(!Be)throw new Error(se);we(Be[1],(ne=(pe=Be[4])!==null&&pe!==void 0?pe:Be[5])!==null&&ne!==void 0?ne:"");break;default:throw new Error(se)}}return[le,ue]})(A),G=V[0],ot=V[1],Lt=document.createElement(G??"div"),Bt=0,Dt=Object.keys(ot);Bt<Dt.length;Bt++){var kt=Dt[Bt],it=ot[kt].join(" ");kt==="style"?K(Lt.style,it):Lt.setAttribute(kt,it)}return Lt}function K(A,V){for(var G=0,ot=V.split(";");G<ot.length;G++){var Lt=ot[G],Bt=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Lt);if(Bt){var Dt=Bt[1],kt=Bt[2],it=Bt[4];A.setProperty(Dt,kt,it||"")}}}var h=["monospace","sans-serif","serif"],b=["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 j(A){return A.toDataURL()}var X,pt,St=2500;function Ht(){var A=this;return(function(){if(pt===void 0){var V=function(){var G=Zt();de(G)?pt=setTimeout(V,St):(X=G,pt=void 0)};V()}})(),function(){return(0,e.sH)(A,void 0,void 0,(function(){var V;return(0,e.YH)(this,(function(G){switch(G.label){case 0:return de(V=Zt())?X?[2,(0,e.fX)([],X,!0)]:D()?[4,(ot=document,(ot.exitFullscreen||ot.msExitFullscreen||ot.mozCancelFullScreen||ot.webkitExitFullscreen).call(ot))]:[3,2]:[3,2];case 1:G.sent(),V=Zt(),G.label=2;case 2:return de(V)||(X=V),[2,V]}var ot}))}))}}function Zt(){var A=screen;return[Z(J(A.availTop),null),Z(J(A.width)-J(A.availWidth)-Z(J(A.availLeft),0),null),Z(J(A.height)-J(A.availHeight)-Z(J(A.availTop),0),null),Z(J(A.availLeft),null)]}function de(A){for(var V=0;V<4;++V)if(A[V])return!1;return!0}function ye(A){var V;return(0,e.sH)(this,void 0,void 0,(function(){var G,ot,Lt,Bt,Dt,kt,it;return(0,e.YH)(this,(function(zt){switch(zt.label){case 0:for(G=document,ot=G.createElement("div"),Lt=new Array(A.length),Bt={},ge(ot),it=0;it<A.length;++it)(Dt=ft(A[it])).tagName==="DIALOG"&&Dt.show(),ge(kt=G.createElement("div")),kt.appendChild(Dt),ot.appendChild(kt),Lt[it]=Dt;zt.label=1;case 1:return G.body?[3,3]:[4,a(50)];case 2:return zt.sent(),[3,1];case 3:G.body.appendChild(ot);try{for(it=0;it<A.length;++it)Lt[it].offsetParent||(Bt[A[it]]=!0)}finally{(V=ot.parentNode)===null||V===void 0||V.removeChild(ot)}return[2,Bt]}}))}))}function ge(A){A.style.setProperty("display","block","important")}function Oe(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function _e(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function be(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function Ve(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function $t(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var m=Math,k=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 nt((function(A,V){var G=V.document,ot=G.body;ot.style.fontSize="48px";var Lt=G.createElement("div"),Bt={},Dt={},kt=function(ne){var se=G.createElement("span"),he=se.style;return he.position="absolute",he.top="0",he.left="0",he.fontFamily=ne,se.textContent="mmMwWLliI0O&1",Lt.appendChild(se),se},it=h.map(kt),zt=(function(){for(var ne={},se=function(ue){ne[ue]=h.map((function(We){return(function(we,Re){return kt("'".concat(we,"',").concat(Re))})(ue,We)}))},he=0,le=b;he<le.length;he++)se(le[he]);return ne})();ot.appendChild(Lt);for(var pe=0;pe<h.length;pe++)Bt[h[pe]]=it[pe].offsetWidth,Dt[h[pe]]=it[pe].offsetHeight;return b.filter((function(ne){return se=zt[ne],h.some((function(he,le){return se[le].offsetWidth!==Bt[he]||se[le].offsetHeight!==Dt[he]}));var se}))}))},domBlockers:function(A){var V=(A===void 0?{}:A).debug;return(0,e.sH)(this,void 0,void 0,(function(){var G,ot,Lt,Bt,Dt;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return P()||z()?(it=atob,G={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',it("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",it("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",it("LnNwb25zb3JpdA=="),".ylamainos",it("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",it("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",it("LmhlYWRlci1ibG9ja2VkLWFk"),it("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",it("I2FkXzMwMFgyNTA="),it("I2Jhbm5lcmZsb2F0MjI="),it("I2NhbXBhaWduLWJhbm5lcg=="),it("I0FkLUNvbnRlbnQ=")],adGuardChinese:[it("LlppX2FkX2FfSA=="),it("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",it("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),it("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",it("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",it("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",it("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),it("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),it("LmFkZ29vZ2xl"),it("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[it("YW1wLWF1dG8tYWRz"),it("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",it("I2FkX2ludmlld19hcmVh")],adGuardRussian:[it("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),it("LnJlY2xhbWE="),'div[id^="smi2adblock"]',it("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[it("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),it("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",it("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),it("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),it("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",it("I3Jla2xhbWk="),it("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),it("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),it("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[it("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",it("LndpZGdldF9wb19hZHNfd2lkZ2V0"),it("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",it("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[it("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),it("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",it("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",it("I3Jla2xhbW5pLWJveA=="),it("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",it("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[it("I2FkdmVydGVudGll"),it("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",it("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",it("LnNwb25zb3JsaW5rZ3J1ZW4="),it("I3dlcmJ1bmdza3k="),it("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),it("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[it("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",it("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[it("LnJla2xhbW9zX3RhcnBhcw=="),it("LnJla2xhbW9zX251b3JvZG9z"),it("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),it("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),it("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[it("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:[it("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),it("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",it("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[it("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),it("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),it("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",it("LmFkX19tYWlu"),it("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[it("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[it("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),it("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[it("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),it("I2xpdmVyZUFkV3JhcHBlcg=="),it("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),it("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[it("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",it("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),it("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),it("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[it("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),it("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),it("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",it("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),it("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),it("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),it("ZGl2I3NrYXBpZWNfYWQ=")],ro:[it("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),it("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),it("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),it("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[it("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),it("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),it("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",it("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),it("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",it("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},ot=Object.keys(G),[4,ye((Dt=[]).concat.apply(Dt,ot.map((function(zt){return G[zt]}))))]):[2,void 0];case 1:return Lt=kt.sent(),V&&(function(zt,pe){for(var ne="DOM blockers debug:\n```",se=0,he=Object.keys(zt);se<he.length;se++){var le=he[se];ne+=`
|
|
12
|
-
`.concat(
|
|
13
|
-
`.concat(
|
|
14
|
-
`)},
|
|
5
|
+
For a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.`,[Wh]:"No signature verification implementation could be found.",[Zh]:"No key generation implementation could be found.",[$h]:"No signing implementation could be found.",[Xh]:"No key export implementation could be found.",[eh]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[bv]:"Transaction processing left an account with an outstanding borrowed reference",[uv]:"Account in use",[cv]:"Account loaded twice",[fv]:"Attempt to debit an account but found no record of a prior credit.",[xv]:"Transaction loads an address table account that doesn't exist",[pv]:"This transaction has already been processed",[vv]:"Blockhash not found",[gv]:"Loader call chain is too deep",[Rv]:"Transactions are currently disabled due to cluster maintenance",[Dv]:"Transaction contains a duplicate instruction ($index) that is not allowed",[dv]:"Insufficient funds for fee",[Pv]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[hv]:"This account may not be used to pay transaction fees",[yv]:"Transaction contains an invalid account reference",[Cv]:"Transaction loads an address table account with invalid data",[Mv]:"Transaction address table lookup uses an invalid index",[Lv]:"Transaction loads an address table account with an invalid owner",[Hv]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[_v]:"This program may not be used for executing instructions",[Bv]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Iv]:"Transaction loads a writable account that cannot be written",[Fv]:"Transaction exceeded max loaded accounts data size cap",[mv]:"Transaction requires a fee but has no signature present",[lv]:"Attempt to load a program that does not exist",[Gv]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[Vv]:"ResanitizationNeeded",[Ev]:"Transaction failed to sanitize accounts offsets correctly",[wv]:"Transaction did not pass signature verification",[Tv]:"Transaction locked too many accounts",[Yv]:"Sum of account balances before and after transaction do not match",[av]:"The transaction failed with the error `$errorName`",[Sv]:"Transaction version is unsupported",[Nv]:"Transaction would exceed account data limit within the block",[Uv]:"Transaction would exceed total account data limit",[Ov]:"Transaction would exceed max account limit within the block",[Av]:"Transaction would exceed max Block Cost Limit",[kv]:"Transaction would exceed max Vote Cost Limit",[Qp]:"Attempted to sign a transaction with an address that is not a signer for it",[Zp]:"Transaction is missing an address at index: $index.",[tv]:"Transaction has no expected signers therefore it cannot be encoded",[iv]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[Hp]:"Transaction does not have a blockhash lifetime",[Vp]:"Transaction is not a durable nonce transaction",[Yp]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[jp]:"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",[Kp]:"No fee payer set in CompiledTransaction",[zp]:"Could not find program address at index $index",[nv]:"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",[rv]:"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",[$p]:"Transaction is missing a fee payer.",[Xp]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[Jp]:"Transaction first instruction is not advance nonce account instruction.",[qp]:"Transaction with no instructions cannot be durable nonce transaction.",[Pp]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[Fp]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[ev]:"The transaction message expected the transaction to have $numRequiredSignatures signatures, got $signaturesLength.",[Wp]:"Transaction is missing signatures for addresses: $addresses.",[Gp]:"Transaction version must be in the range [0, 127]. `$actualVersion` given",[ov]:"This version of Kit does not support decoding transactions with version $unsupportedVersion. The current max supported version is 0.",[sv]:"The transaction has a durable nonce lifetime (with nonce `$nonce`), but the nonce account address is in a lookup table. The lifetime constraint cannot be constructed without fetching the lookup tables for the transaction."},ur="i",Jn="t";function Dg(t,n={}){const r=Ug[t];if(r.length===0)return"";let e;function u(f){if(e[Jn]===2){const g=r.slice(e[ur]+1,f);a.push(g in n?`${n[g]}`:`$${g}`)}else e[Jn]===1&&a.push(r.slice(e[ur],f))}const a=[];return r.split("").forEach((f,g)=>{if(g===0){e={[ur]:0,[Jn]:r[0]==="\\"?0:r[0]==="$"?2:1};return}let l;switch(e[Jn]){case 0:l={[ur]:g,[Jn]:1};break;case 1:f==="\\"?l={[ur]:g,[Jn]:0}:f==="$"&&(l={[ur]:g,[Jn]:2});break;case 2:f==="\\"?l={[ur]:g,[Jn]:0}:f==="$"?l={[ur]:g,[Jn]:2}:f.match(/\w/)||(l={[ur]:g,[Jn]:1});break}l&&(e!==l&&u(g),e=l)}),u(),a.join("")}function Pg(t,n={}){if(process.env.NODE_ENV!=="production")return Dg(t,n);{let r=`Solana error #${t}; Decode this error by running \`npx @solana/errors decode -- ${t}`;return Object.keys(n).length&&(r+=` '${kg(n)}'`),`${r}\``}}var ii=class extends Error{cause=this.cause;context;constructor(...[t,n]){let r,e;n&&Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([a,f])=>{a==="cause"?e={cause:f.value}:(r===void 0&&(r={__code:t}),Object.defineProperty(r,a,f))});const u=Pg(t,r);super(u,e),this.context=Object.freeze(r===void 0?{__code:t}:r),this.name="SolanaError"}};function Fg(t,n){return"fixedSize"in n?n.fixedSize:n.getSizeFromValue(t)}function Hg(t){return Object.freeze({...t,encode:n=>{const r=new Uint8Array(Fg(n,t));return t.write(n,r,0),r}})}function Vg(t){return Object.freeze({...t,decode:(n,r=0)=>t.read(n,r)[0]})}function oi(t){return"fixedSize"in t&&typeof t.fixedSize=="number"}function Gg(t,n){if(oi(t)!==oi(n))throw new ii(Ac);if(oi(t)&&oi(n)&&t.fixedSize!==n.fixedSize)throw new ii(Sc,{decoderFixedSize:n.fixedSize,encoderFixedSize:t.fixedSize});if(!oi(t)&&!oi(n)&&t.maxSize!==n.maxSize)throw new ii(Ic,{decoderMaxSize:n.maxSize,encoderMaxSize:t.maxSize});return{...n,...t,decode:n.decode,encode:t.encode,read:n.read,write:t.write}}function Yg(t,n,r=0){if(n.length-r<=0)throw new ii(Rc,{codecDescription:t})}function jg(t,n,r,e=0){const u=r.length-e;if(u<n)throw new ii(bc,{bytesLength:u,codecDescription:t,expected:n})}function zg(t,n,r){const e=t.byteOffset+(n??0),u=r??t.byteLength;let a;return typeof SharedArrayBuffer>"u"?a=t.buffer:t.buffer instanceof SharedArrayBuffer?(a=new ArrayBuffer(t.length),new Uint8Array(a).set(new Uint8Array(t))):a=t.buffer,(e===0||e===-t.byteLength)&&u===t.byteLength?a:a.slice(e,e+u)}function Kg(t,n,r,e){if(e<n||e>r)throw new ii(Oc,{codecDescription:t,max:r,min:n,value:e})}function Tc(t){return t?.endian!==1}function Wg(t){return Hg({fixedSize:t.size,write(n,r,e){t.range&&Kg(t.name,t.range[0],t.range[1],n);const u=new ArrayBuffer(t.size);return t.set(new DataView(u),n,Tc(t.config)),r.set(new Uint8Array(u),e),e+t.size}})}function Zg(t){return Vg({fixedSize:t.size,read(n,r=0){Yg(t.name,n,r),jg(t.name,t.size,n,r);const e=new DataView(zg(n,r,t.size));return[t.get(e,Tc(t.config)),r+t.size]}})}var $g=(t={})=>Wg({config:t,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(n,r,e)=>n.setBigUint64(0,BigInt(r),e),size:8}),Xg=(t={})=>Zg({config:t,get:(n,r)=>n.getBigUint64(0,r),name:"u64",size:8}),qg=(t={})=>Gg($g(t),Xg(t));class Jg extends TypeError{constructor(n,r){let e;const{message:u,explanation:a,...f}=n,{path:g}=n,l=g.length===0?u:`At path: ${g.join(".")} -- ${u}`;super(a??l),a!=null&&(this.cause=l),Object.assign(this,f),this.name=this.constructor.name,this.failures=()=>e??(e=[n,...r()])}}function Qg(t){return Ci(t)&&typeof t[Symbol.iterator]=="function"}function Ci(t){return typeof t=="object"&&t!=null}function Bo(t){return Ci(t)&&!Array.isArray(t)}function Gn(t){return typeof t=="symbol"?t.toString():typeof t=="string"?JSON.stringify(t):`${t}`}function tm(t){const{done:n,value:r}=t.next();return n?void 0:r}function em(t,n,r,e){if(t===!0)return;t===!1?t={}:typeof t=="string"&&(t={message:t});const{path:u,branch:a}=n,{type:f}=r,{refinement:g,message:l=`Expected a value of type \`${f}\`${g?` with refinement \`${g}\``:""}, but received: \`${Gn(e)}\``}=t;return{value:e,type:f,refinement:g,key:u[u.length-1],path:u,branch:a,...t,message:l}}function*xc(t,n,r,e){Qg(t)||(t=[t]);for(const u of t){const a=em(u,n,r,e);a&&(yield a)}}function*qs(t,n,r={}){const{path:e=[],branch:u=[t],coerce:a=!1,mask:f=!1}=r,g={path:e,branch:u,mask:f};a&&(t=n.coercer(t,g));let l="valid";for(const E of n.validator(t,g))E.explanation=r.message,l="not_valid",yield[E,void 0];for(let[E,T,L]of n.entries(t,g)){const N=qs(T,L,{path:E===void 0?e:[...e,E],branch:E===void 0?u:[...u,T],coerce:a,mask:f,message:r.message});for(const x of N)x[0]?(l=x[0].refinement!=null?"not_refined":"not_valid",yield[x[0],void 0]):a&&(T=x[1],E===void 0?t=T:t instanceof Map?t.set(E,T):t instanceof Set?t.add(T):Ci(t)&&(T!==void 0||E in t)&&(t[E]=T))}if(l!=="not_valid")for(const E of n.refiner(t,g))E.explanation=r.message,l="not_refined",yield[E,void 0];l==="valid"&&(yield[void 0,t])}let Qn=class{constructor(n){const{type:r,schema:e,validator:u,refiner:a,coercer:f=l=>l,entries:g=function*(){}}=n;this.type=r,this.schema=e,this.entries=g,this.coercer=f,u?this.validator=(l,E)=>{const T=u(l,E);return xc(T,E,this,l)}:this.validator=()=>[],a?this.refiner=(l,E)=>{const T=a(l,E);return xc(T,E,this,l)}:this.refiner=()=>[]}assert(n,r){return nm(n,this,r)}create(n,r){return Mi(n,this,r)}is(n){return Lc(n,this)}mask(n,r){return rm(n,this,r)}validate(n,r={}){return Bi(n,this,r)}};function nm(t,n,r){const e=Bi(t,n,{message:r});if(e[0])throw e[0]}function Mi(t,n,r){const e=Bi(t,n,{coerce:!0,message:r});if(e[0])throw e[0];return e[1]}function rm(t,n,r){const e=Bi(t,n,{coerce:!0,mask:!0,message:r});if(e[0])throw e[0];return e[1]}function Lc(t,n){return!Bi(t,n)[0]}function Bi(t,n,r={}){const e=qs(t,n,r),u=tm(e);return u[0]?[new Jg(u[0],function*(){for(const f of e)f[0]&&(yield f[0])}),void 0]:[void 0,u[1]]}function Hr(t,n){return new Qn({type:t,schema:null,validator:n})}function im(){return Hr("any",()=>!0)}function ie(t){return new Qn({type:"array",schema:t,*entries(n){if(t&&Array.isArray(n))for(const[r,e]of n.entries())yield[r,e,t]},coercer(n){return Array.isArray(n)?n.slice():n},validator(n){return Array.isArray(n)||`Expected an array value, but received: ${Gn(n)}`}})}function tr(){return Hr("boolean",t=>typeof t=="boolean")}function Js(t){return Hr("instance",n=>n instanceof t||`Expected a \`${t.name}\` instance, but received: ${Gn(n)}`)}function ze(t){const n=Gn(t),r=typeof t;return new Qn({type:"literal",schema:r==="string"||r==="number"||r==="boolean"?t:null,validator(e){return e===t||`Expected the literal \`${n}\`, but received: ${Gn(e)}`}})}function om(){return Hr("never",()=>!1)}function te(t){return new Qn({...t,validator:(n,r)=>n===null||t.validator(n,r),refiner:(n,r)=>n===null||t.refiner(n,r)})}function St(){return Hr("number",t=>typeof t=="number"&&!isNaN(t)||`Expected a number, but received: ${Gn(t)}`)}function ae(t){return new Qn({...t,validator:(n,r)=>n===void 0||t.validator(n,r),refiner:(n,r)=>n===void 0||t.refiner(n,r)})}function Cc(t,n){return new Qn({type:"record",schema:null,*entries(r){if(Ci(r))for(const e in r){const u=r[e];yield[e,e,t],yield[e,u,n]}},validator(r){return Bo(r)||`Expected an object, but received: ${Gn(r)}`},coercer(r){return Bo(r)?{...r}:r}})}function qt(){return Hr("string",t=>typeof t=="string"||`Expected a string, but received: ${Gn(t)}`)}function Qs(t){const n=om();return new Qn({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const e=Math.max(t.length,r.length);for(let u=0;u<e;u++)yield[u,r[u],t[u]||n]}},validator(r){return Array.isArray(r)||`Expected an array, but received: ${Gn(r)}`},coercer(r){return Array.isArray(r)?r.slice():r}})}function Ht(t){const n=Object.keys(t);return new Qn({type:"type",schema:t,*entries(r){if(Ci(r))for(const e of n)yield[e,r[e],t[e]]},validator(r){return Bo(r)||`Expected an object, but received: ${Gn(r)}`},coercer(r){return Bo(r)?{...r}:r}})}function Tn(t){const n=t.map(r=>r.type).join(" | ");return new Qn({type:"union",schema:null,coercer(r,e){for(const u of t){const[a,f]=u.validate(r,{coerce:!0,mask:e.mask});if(!a)return f}return r},validator(r,e){const u=[];for(const a of t){const[...f]=qs(r,a,e),[g]=f;if(g[0])for(const[l]of f)l&&u.push(l);else return[]}return[`Expected the value to satisfy a union of \`${n}\`, but received: ${Gn(r)}`,...u]}})}function si(){return Hr("unknown",()=>!0)}function ki(t,n,r){return new Qn({...t,coercer:(e,u)=>Lc(e,n)?t.coercer(r(e,u),u):t.coercer(e,u)})}var ko,sm=new Uint8Array(16);function Mc(){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(sm)}const am=/^(?:[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 Uo(t){return typeof t=="string"&&am.test(t)}for(var yn=[],ta=0;ta<256;++ta)yn.push((ta+256).toString(16).substr(1));function Do(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(yn[t[n+0]]+yn[t[n+1]]+yn[t[n+2]]+yn[t[n+3]]+"-"+yn[t[n+4]]+yn[t[n+5]]+"-"+yn[t[n+6]]+yn[t[n+7]]+"-"+yn[t[n+8]]+yn[t[n+9]]+"-"+yn[t[n+10]]+yn[t[n+11]]+yn[t[n+12]]+yn[t[n+13]]+yn[t[n+14]]+yn[t[n+15]]).toLowerCase();if(!Uo(r))throw TypeError("Stringified UUID is invalid");return r}var Bc,ea,na=0,ra=0;function um(t,n,r){var e=n&&r||0,u=n||new Array(16);t=t||{};var a=t.node||Bc,f=t.clockseq!==void 0?t.clockseq:ea;if(a==null||f==null){var g=t.random||(t.rng||Mc)();a==null&&(a=Bc=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),f==null&&(f=ea=(g[6]<<8|g[7])&16383)}var l=t.msecs!==void 0?t.msecs:Date.now(),E=t.nsecs!==void 0?t.nsecs:ra+1,T=l-na+(E-ra)/1e4;if(T<0&&t.clockseq===void 0&&(f=f+1&16383),(T<0||l>na)&&t.nsecs===void 0&&(E=0),E>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");na=l,ra=E,ea=f,l+=122192928e5;var L=((l&268435455)*1e4+E)%4294967296;u[e++]=L>>>24&255,u[e++]=L>>>16&255,u[e++]=L>>>8&255,u[e++]=L&255;var N=l/4294967296*1e4&268435455;u[e++]=N>>>8&255,u[e++]=N&255,u[e++]=N>>>24&15|16,u[e++]=N>>>16&255,u[e++]=f>>>8|128,u[e++]=f&255;for(var x=0;x<6;++x)u[e+x]=a[x];return n||Do(u)}function kc(t){if(!Uo(t))throw TypeError("Invalid UUID");var n,r=new Uint8Array(16);return r[0]=(n=parseInt(t.slice(0,8),16))>>>24,r[1]=n>>>16&255,r[2]=n>>>8&255,r[3]=n&255,r[4]=(n=parseInt(t.slice(9,13),16))>>>8,r[5]=n&255,r[6]=(n=parseInt(t.slice(14,18),16))>>>8,r[7]=n&255,r[8]=(n=parseInt(t.slice(19,23),16))>>>8,r[9]=n&255,r[10]=(n=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=n/4294967296&255,r[12]=n>>>24&255,r[13]=n>>>16&255,r[14]=n>>>8&255,r[15]=n&255,r}function cm(t){t=unescape(encodeURIComponent(t));for(var n=[],r=0;r<t.length;++r)n.push(t.charCodeAt(r));return n}var fm="6ba7b810-9dad-11d1-80b4-00c04fd430c8",lm="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Uc(t,n,r){function e(u,a,f,g){if(typeof u=="string"&&(u=cm(u)),typeof a=="string"&&(a=kc(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+u.length);if(l.set(a),l.set(u,a.length),l=r(l),l[6]=l[6]&15|n,l[8]=l[8]&63|128,f){g=g||0;for(var E=0;E<16;++E)f[g+E]=l[E];return f}return Do(l)}try{e.name=t}catch{}return e.DNS=fm,e.URL=lm,e}function dm(t){if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=new Uint8Array(n.length);for(var r=0;r<n.length;++r)t[r]=n.charCodeAt(r)}return hm(pm(vm(t),t.length*8))}function hm(t){for(var n=[],r=t.length*32,e="0123456789abcdef",u=0;u<r;u+=8){var a=t[u>>5]>>>u%32&255,f=parseInt(e.charAt(a>>>4&15)+e.charAt(a&15),16);n.push(f)}return n}function Dc(t){return(t+64>>>9<<4)+14+1}function pm(t,n){t[n>>5]|=128<<n%32,t[Dc(n)-1]=n;for(var r=1732584193,e=-271733879,u=-1732584194,a=271733878,f=0;f<t.length;f+=16){var g=r,l=e,E=u,T=a;r=Rn(r,e,u,a,t[f],7,-680876936),a=Rn(a,r,e,u,t[f+1],12,-389564586),u=Rn(u,a,r,e,t[f+2],17,606105819),e=Rn(e,u,a,r,t[f+3],22,-1044525330),r=Rn(r,e,u,a,t[f+4],7,-176418897),a=Rn(a,r,e,u,t[f+5],12,1200080426),u=Rn(u,a,r,e,t[f+6],17,-1473231341),e=Rn(e,u,a,r,t[f+7],22,-45705983),r=Rn(r,e,u,a,t[f+8],7,1770035416),a=Rn(a,r,e,u,t[f+9],12,-1958414417),u=Rn(u,a,r,e,t[f+10],17,-42063),e=Rn(e,u,a,r,t[f+11],22,-1990404162),r=Rn(r,e,u,a,t[f+12],7,1804603682),a=Rn(a,r,e,u,t[f+13],12,-40341101),u=Rn(u,a,r,e,t[f+14],17,-1502002290),e=Rn(e,u,a,r,t[f+15],22,1236535329),r=bn(r,e,u,a,t[f+1],5,-165796510),a=bn(a,r,e,u,t[f+6],9,-1069501632),u=bn(u,a,r,e,t[f+11],14,643717713),e=bn(e,u,a,r,t[f],20,-373897302),r=bn(r,e,u,a,t[f+5],5,-701558691),a=bn(a,r,e,u,t[f+10],9,38016083),u=bn(u,a,r,e,t[f+15],14,-660478335),e=bn(e,u,a,r,t[f+4],20,-405537848),r=bn(r,e,u,a,t[f+9],5,568446438),a=bn(a,r,e,u,t[f+14],9,-1019803690),u=bn(u,a,r,e,t[f+3],14,-187363961),e=bn(e,u,a,r,t[f+8],20,1163531501),r=bn(r,e,u,a,t[f+13],5,-1444681467),a=bn(a,r,e,u,t[f+2],9,-51403784),u=bn(u,a,r,e,t[f+7],14,1735328473),e=bn(e,u,a,r,t[f+12],20,-1926607734),r=An(r,e,u,a,t[f+5],4,-378558),a=An(a,r,e,u,t[f+8],11,-2022574463),u=An(u,a,r,e,t[f+11],16,1839030562),e=An(e,u,a,r,t[f+14],23,-35309556),r=An(r,e,u,a,t[f+1],4,-1530992060),a=An(a,r,e,u,t[f+4],11,1272893353),u=An(u,a,r,e,t[f+7],16,-155497632),e=An(e,u,a,r,t[f+10],23,-1094730640),r=An(r,e,u,a,t[f+13],4,681279174),a=An(a,r,e,u,t[f],11,-358537222),u=An(u,a,r,e,t[f+3],16,-722521979),e=An(e,u,a,r,t[f+6],23,76029189),r=An(r,e,u,a,t[f+9],4,-640364487),a=An(a,r,e,u,t[f+12],11,-421815835),u=An(u,a,r,e,t[f+15],16,530742520),e=An(e,u,a,r,t[f+2],23,-995338651),r=Sn(r,e,u,a,t[f],6,-198630844),a=Sn(a,r,e,u,t[f+7],10,1126891415),u=Sn(u,a,r,e,t[f+14],15,-1416354905),e=Sn(e,u,a,r,t[f+5],21,-57434055),r=Sn(r,e,u,a,t[f+12],6,1700485571),a=Sn(a,r,e,u,t[f+3],10,-1894986606),u=Sn(u,a,r,e,t[f+10],15,-1051523),e=Sn(e,u,a,r,t[f+1],21,-2054922799),r=Sn(r,e,u,a,t[f+8],6,1873313359),a=Sn(a,r,e,u,t[f+15],10,-30611744),u=Sn(u,a,r,e,t[f+6],15,-1560198380),e=Sn(e,u,a,r,t[f+13],21,1309151649),r=Sn(r,e,u,a,t[f+4],6,-145523070),a=Sn(a,r,e,u,t[f+11],10,-1120210379),u=Sn(u,a,r,e,t[f+2],15,718787259),e=Sn(e,u,a,r,t[f+9],21,-343485551),r=_r(r,g),e=_r(e,l),u=_r(u,E),a=_r(a,T)}return[r,e,u,a]}function vm(t){if(t.length===0)return[];for(var n=t.length*8,r=new Uint32Array(Dc(n)),e=0;e<n;e+=8)r[e>>5]|=(t[e/8]&255)<<e%32;return r}function _r(t,n){var r=(t&65535)+(n&65535),e=(t>>16)+(n>>16)+(r>>16);return e<<16|r&65535}function gm(t,n){return t<<n|t>>>32-n}function Po(t,n,r,e,u,a){return _r(gm(_r(_r(n,t),_r(e,a)),u),r)}function Rn(t,n,r,e,u,a,f){return Po(n&r|~n&e,t,n,u,a,f)}function bn(t,n,r,e,u,a,f){return Po(n&e|r&~e,t,n,u,a,f)}function An(t,n,r,e,u,a,f){return Po(n^r^e,t,n,u,a,f)}function Sn(t,n,r,e,u,a,f){return Po(r^(n|~e),t,n,u,a,f)}var mm=Uc("v3",48,dm);function ym(t,n,r){t=t||{};var e=t.random||(t.rng||Mc)();if(e[6]=e[6]&15|64,e[8]=e[8]&63|128,n){r=r||0;for(var u=0;u<16;++u)n[r+u]=e[u];return n}return Do(e)}function wm(t,n,r,e){switch(t){case 0:return n&r^~n&e;case 1:return n^r^e;case 2:return n&r^n&e^r&e;case 3:return n^r^e}}function ia(t,n){return t<<n|t>>>32-n}function _m(t){var n=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var e=unescape(encodeURIComponent(t));t=[];for(var u=0;u<e.length;++u)t.push(e.charCodeAt(u))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var a=t.length/4+2,f=Math.ceil(a/16),g=new Array(f),l=0;l<f;++l){for(var E=new Uint32Array(16),T=0;T<16;++T)E[T]=t[l*64+T*4]<<24|t[l*64+T*4+1]<<16|t[l*64+T*4+2]<<8|t[l*64+T*4+3];g[l]=E}g[f-1][14]=(t.length-1)*8/Math.pow(2,32),g[f-1][14]=Math.floor(g[f-1][14]),g[f-1][15]=(t.length-1)*8&4294967295;for(var L=0;L<f;++L){for(var N=new Uint32Array(80),x=0;x<16;++x)N[x]=g[L][x];for(var B=16;B<80;++B)N[B]=ia(N[B-3]^N[B-8]^N[B-14]^N[B-16],1);for(var D=r[0],j=r[1],z=r[2],J=r[3],Z=r[4],nt=0;nt<80;++nt){var ht=Math.floor(nt/20),ft=ia(D,5)+wm(ht,j,z,J)+Z+n[ht]+N[nt]>>>0;Z=J,J=z,z=ia(j,30)>>>0,j=D,D=ft}r[0]=r[0]+D>>>0,r[1]=r[1]+j>>>0,r[2]=r[2]+z>>>0,r[3]=r[3]+J>>>0,r[4]=r[4]+Z>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Em=Uc("v5",80,_m);const Rm="00000000-0000-0000-0000-000000000000";function bm(t){if(!Uo(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}const Pc=Is(Object.freeze(Object.defineProperty({__proto__:null,NIL:Rm,parse:kc,stringify:Do,v1:um,v3:mm,v4:ym,v5:Em,validate:Uo,version:bm},Symbol.toStringTag,{value:"Module"})));var oa,Fc;function Am(){if(Fc)return oa;Fc=1;const t=Pc.v4;return oa=function(r,e,u,a){if(typeof r!="string")throw new TypeError(r+" must be a string");a=a||{};const f=typeof a.version=="number"?a.version:2;if(f!==1&&f!==2)throw new TypeError(f+" must be 1 or 2");const g={method:r};if(f===2&&(g.jsonrpc="2.0"),e){if(typeof e!="object"&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");g.params=e}if(typeof u>"u"){const l=typeof a.generator=="function"?a.generator:function(){return t()};g.id=l(g,a)}else f===2&&u===null?a.notificationIdNull&&(g.id=null):g.id=u;return g},oa}var sa,Hc;function Sm(){if(Hc)return sa;Hc=1;const t=Pc.v4,n=Am(),r=function(e,u){if(!(this instanceof r))return new r(e,u);u||(u={}),this.options={reviver:typeof u.reviver<"u"?u.reviver:null,replacer:typeof u.replacer<"u"?u.replacer:null,generator:typeof u.generator<"u"?u.generator:function(){return t()},version:typeof u.version<"u"?u.version:2,notificationIdNull:typeof u.notificationIdNull=="boolean"?u.notificationIdNull:!1},this.callServer=e};return sa=r,r.prototype.request=function(e,u,a,f){const g=this;let l=null;const E=Array.isArray(e)&&typeof u=="function";if(this.options.version===1&&E)throw new TypeError("JSON-RPC 1.0 does not support batching");if(E||!E&&e&&typeof e=="object"&&typeof u=="function")f=u,l=e;else{typeof a=="function"&&(f=a,a=void 0);const N=typeof f=="function";try{l=n(e,u,a,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(x){if(N){f(x);return}throw x}if(!N)return l}let L;try{L=JSON.stringify(l,this.options.replacer)}catch(N){f(N);return}return this.callServer(L,function(N,x){g._parseResponse(N,x,f)}),l},r.prototype._parseResponse=function(e,u,a){if(e){a(e);return}if(!u){a();return}let f;try{f=JSON.parse(u,this.options.reviver)}catch(g){a(g);return}if(a.length===3)if(Array.isArray(f)){const g=function(E){return typeof E.error<"u"},l=function(E){return!g(E)};a(null,f.filter(g),f.filter(l));return}else{a(null,f.error,f.result);return}a(null,f)},sa}Sm();var aa={exports:{}},Vc;function Im(){return Vc||(Vc=1,(function(t){var n=Object.prototype.hasOwnProperty,r="~";function e(){}Object.create&&(e.prototype=Object.create(null),new e().__proto__||(r=!1));function u(l,E,T){this.fn=l,this.context=E,this.once=T||!1}function a(l,E,T,L,N){if(typeof T!="function")throw new TypeError("The listener must be a function");var x=new u(T,L||l,N),B=r?r+E:E;return l._events[B]?l._events[B].fn?l._events[B]=[l._events[B],x]:l._events[B].push(x):(l._events[B]=x,l._eventsCount++),l}function f(l,E){--l._eventsCount===0?l._events=new e:delete l._events[E]}function g(){this._events=new e,this._eventsCount=0}g.prototype.eventNames=function(){var E=[],T,L;if(this._eventsCount===0)return E;for(L in T=this._events)n.call(T,L)&&E.push(r?L.slice(1):L);return Object.getOwnPropertySymbols?E.concat(Object.getOwnPropertySymbols(T)):E},g.prototype.listeners=function(E){var T=r?r+E:E,L=this._events[T];if(!L)return[];if(L.fn)return[L.fn];for(var N=0,x=L.length,B=new Array(x);N<x;N++)B[N]=L[N].fn;return B},g.prototype.listenerCount=function(E){var T=r?r+E:E,L=this._events[T];return L?L.fn?1:L.length:0},g.prototype.emit=function(E,T,L,N,x,B){var D=r?r+E:E;if(!this._events[D])return!1;var j=this._events[D],z=arguments.length,J,Z;if(j.fn){switch(j.once&&this.removeListener(E,j.fn,void 0,!0),z){case 1:return j.fn.call(j.context),!0;case 2:return j.fn.call(j.context,T),!0;case 3:return j.fn.call(j.context,T,L),!0;case 4:return j.fn.call(j.context,T,L,N),!0;case 5:return j.fn.call(j.context,T,L,N,x),!0;case 6:return j.fn.call(j.context,T,L,N,x,B),!0}for(Z=1,J=new Array(z-1);Z<z;Z++)J[Z-1]=arguments[Z];j.fn.apply(j.context,J)}else{var nt=j.length,ht;for(Z=0;Z<nt;Z++)switch(j[Z].once&&this.removeListener(E,j[Z].fn,void 0,!0),z){case 1:j[Z].fn.call(j[Z].context);break;case 2:j[Z].fn.call(j[Z].context,T);break;case 3:j[Z].fn.call(j[Z].context,T,L);break;case 4:j[Z].fn.call(j[Z].context,T,L,N);break;default:if(!J)for(ht=1,J=new Array(z-1);ht<z;ht++)J[ht-1]=arguments[ht];j[Z].fn.apply(j[Z].context,J)}}return!0},g.prototype.on=function(E,T,L){return a(this,E,T,L,!1)},g.prototype.once=function(E,T,L){return a(this,E,T,L,!0)},g.prototype.removeListener=function(E,T,L,N){var x=r?r+E:E;if(!this._events[x])return this;if(!T)return f(this,x),this;var B=this._events[x];if(B.fn)B.fn===T&&(!N||B.once)&&(!L||B.context===L)&&f(this,x);else{for(var D=0,j=[],z=B.length;D<z;D++)(B[D].fn!==T||N&&!B[D].once||L&&B[D].context!==L)&&j.push(B[D]);j.length?this._events[x]=j.length===1?j[0]:j:f(this,x)}return this},g.prototype.removeAllListeners=function(E){var T;return E?(T=r?r+E:E,this._events[T]&&f(this,T)):(this._events=new e,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prefixed=r,g.EventEmitter=g,t.exports=g})(aa)),aa.exports}Im();class Gc extends Nu{constructor(n,r){super(),this.finished=!1,this.destroyed=!1,Su(n);const e=Ls(r);if(this.iHash=n.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 u=this.blockLen,a=new Uint8Array(u);a.set(e.length>u?n.create().update(e).digest():e);for(let f=0;f<a.length;f++)a[f]^=54;this.iHash.update(a),this.oHash=n.create();for(let f=0;f<a.length;f++)a[f]^=106;this.oHash.update(a),Qr(a)}update(n){return yo(this),this.iHash.update(n),this}digestInto(n){yo(this),Mr(n,this.outputLen),this.finished=!0,this.iHash.digestInto(n),this.oHash.update(n),this.oHash.digestInto(n),this.destroy()}digest(){const n=new Uint8Array(this.oHash.outputLen);return this.digestInto(n),n}_cloneInto(n){n||(n=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:e,finished:u,destroyed:a,blockLen:f,outputLen:g}=this;return n=n,n.finished=u,n.destroyed=a,n.blockLen=f,n.outputLen=g,n.oHash=r._cloneInto(n.oHash),n.iHash=e._cloneInto(n.iHash),n}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Yc=(t,n,r)=>new Gc(t,n).update(r).digest();Yc.create=(t,n)=>new Gc(t,n);const jc=(t,n)=>(t+(t>=0?n:-n)/zc)/n;function Om(t,n,r){const[[e,u],[a,f]]=n,g=jc(f*t,r),l=jc(-u*t,r);let E=t-g*e-l*a,T=-g*u-l*f;const L=E<fr,N=T<fr;L&&(E=-E),N&&(T=-T);const x=Ti(Math.ceil(Fu(r)/2))+ai;if(E<fr||E>=x||T<fr||T>=x)throw new Error("splitScalar (endomorphism): failed, k="+t);return{k1neg:L,k1:E,k2neg:N,k2:T}}function ua(t){if(!["compact","recovered","der"].includes(t))throw new Error('Signature format must be "compact", "recovered", or "der"');return t}function ca(t,n){const r={};for(let e of Object.keys(n))r[e]=t[e]===void 0?n[e]:t[e];return kr(r.lowS,"lowS"),kr(r.prehash,"prehash"),r.format!==void 0&&ua(r.format),r}class Nm extends Error{constructor(n=""){super(n)}}const cr={Err:Nm,_tlv:{encode:(t,n)=>{const{Err:r}=cr;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length&1)throw new r("tlv.encode: unpadded data");const e=n.length/2,u=bo(e);if(u.length/2&128)throw new r("tlv.encode: long form length too big");const a=e>127?bo(u.length/2|128):"";return bo(t)+a+u+n},decode(t,n){const{Err:r}=cr;let e=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[e++]!==t)throw new r("tlv.decode: wrong tlv");const u=n[e++],a=!!(u&128);let f=0;if(!a)f=u;else{const l=u&127;if(!l)throw new r("tlv.decode(long): indefinite length not supported");if(l>4)throw new r("tlv.decode(long): byte length is too big");const E=n.subarray(e,e+l);if(E.length!==l)throw new r("tlv.decode: length bytes not complete");if(E[0]===0)throw new r("tlv.decode(long): zero leftmost byte");for(const T of E)f=f<<8|T;if(e+=l,f<128)throw new r("tlv.decode(long): not minimal encoding")}const g=n.subarray(e,e+f);if(g.length!==f)throw new r("tlv.decode: wrong value length");return{v:g,l:n.subarray(e+f)}}},_int:{encode(t){const{Err:n}=cr;if(t<fr)throw new n("integer: negative integers are not allowed");let r=bo(t);if(Number.parseInt(r[0],16)&8&&(r="00"+r),r.length&1)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=cr;if(t[0]&128)throw new n("invalid signature integer: negative");if(t[0]===0&&!(t[1]&128))throw new n("invalid signature integer: unnecessary leading zero");return Ao(t)}},toSig(t){const{Err:n,_int:r,_tlv:e}=cr,u=Ze("signature",t),{v:a,l:f}=e.decode(48,u);if(f.length)throw new n("invalid signature: left bytes after parsing");const{v:g,l}=e.decode(2,a),{v:E,l:T}=e.decode(2,l);if(T.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(g),s:r.decode(E)}},hexFromSig(t){const{_tlv:n,_int:r}=cr,e=n.encode(2,r.encode(t.r)),u=n.encode(2,r.encode(t.s)),a=e+u;return n.encode(48,a)}},fr=BigInt(0),ai=BigInt(1),zc=BigInt(2),Fo=BigInt(3),Tm=BigInt(4);function ui(t,n){const{BYTES:r}=t;let e;if(typeof n=="bigint")e=n;else{let u=Ze("private key",n);try{e=t.fromBytes(u)}catch{throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof n}`)}}if(!t.isValidNot0(e))throw new Error("invalid private key: out of range [1..N-1]");return e}function xm(t,n={}){const r=sc("weierstrass",t,n),{Fp:e,Fn:u}=r;let a=r.CURVE;const{h:f,n:g}=a;xi(n,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:l}=n;if(l&&(!e.is0(a.a)||typeof l.beta!="bigint"||!Array.isArray(l.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const E=Wc(e,u);function T(){if(!e.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function L(wt,P,d){const{x:S,y:U}=P.toAffine(),K=e.toBytes(S);if(kr(d,"isCompressed"),d){T();const q=!e.isOdd(U);return qn(Kc(q),K)}else return qn(Uint8Array.of(4),K,e.toBytes(U))}function N(wt){Vn(wt,void 0,"Point");const{publicKey:P,publicKeyUncompressed:d}=E,S=wt.length,U=wt[0],K=wt.subarray(1);if(S===P&&(U===2||U===3)){const q=e.fromBytes(K);if(!e.isValid(q))throw new Error("bad point: is not on curve, wrong x");const rt=D(q);let ct;try{ct=e.sqrt(rt)}catch(R){const Y=R instanceof Error?": "+R.message:"";throw new Error("bad point: is not on curve, sqrt error"+Y)}T();const W=e.isOdd(ct);return(U&1)===1!==W&&(ct=e.neg(ct)),{x:q,y:ct}}else if(S===d&&U===4){const q=e.BYTES,rt=e.fromBytes(K.subarray(0,q)),ct=e.fromBytes(K.subarray(q,q*2));if(!j(rt,ct))throw new Error("bad point: is not on curve");return{x:rt,y:ct}}else throw new Error(`bad point: got length ${S}, expected compressed=${P} or uncompressed=${d}`)}const x=n.toBytes||L,B=n.fromBytes||N;function D(wt){const P=e.sqr(wt),d=e.mul(P,wt);return e.add(e.add(d,e.mul(wt,a.a)),a.b)}function j(wt,P){const d=e.sqr(P),S=D(wt);return e.eql(d,S)}if(!j(a.Gx,a.Gy))throw new Error("bad curve params: generator point");const z=e.mul(e.pow(a.a,Fo),Tm),J=e.mul(e.sqr(a.b),BigInt(27));if(e.is0(e.add(z,J)))throw new Error("bad curve params: a or b");function Z(wt,P,d=!1){if(!e.isValid(P)||d&&e.is0(P))throw new Error(`bad point coordinate ${wt}`);return P}function nt(wt){if(!(wt instanceof at))throw new Error("ProjectivePoint expected")}function ht(wt){if(!l||!l.basises)throw new Error("no endo");return Om(wt,l.basises,u.ORDER)}const ft=So((wt,P)=>{const{X:d,Y:S,Z:U}=wt;if(e.eql(U,e.ONE))return{x:d,y:S};const K=wt.is0();P==null&&(P=K?e.ONE:e.inv(U));const q=e.mul(d,P),rt=e.mul(S,P),ct=e.mul(U,P);if(K)return{x:e.ZERO,y:e.ZERO};if(!e.eql(ct,e.ONE))throw new Error("invZ was invalid");return{x:q,y:rt}}),At=So(wt=>{if(wt.is0()){if(n.allowInfinityPoint&&!e.is0(wt.Y))return;throw new Error("bad point: ZERO")}const{x:P,y:d}=wt.toAffine();if(!e.isValid(P)||!e.isValid(d))throw new Error("bad point: x or y not field elements");if(!j(P,d))throw new Error("bad point: equation left != right");if(!wt.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function bt(wt,P,d,S,U){return d=new at(e.mul(d.X,wt),d.Y,d.Z),P=Io(S,P),d=Io(U,d),P.add(d)}class at{constructor(P,d,S){this.X=Z("x",P),this.Y=Z("y",d,!0),this.Z=Z("z",S),Object.freeze(this)}static CURVE(){return a}static fromAffine(P){const{x:d,y:S}=P||{};if(!P||!e.isValid(d)||!e.isValid(S))throw new Error("invalid affine point");if(P instanceof at)throw new Error("projective point not allowed");return e.is0(d)&&e.is0(S)?at.ZERO:new at(d,S,e.ONE)}static fromBytes(P){const d=at.fromAffine(B(Vn(P,void 0,"point")));return d.assertValidity(),d}static fromHex(P){return at.fromBytes(Ze("pointHex",P))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(P=8,d=!0){return mt.createCache(this,P),d||this.multiply(Fo),this}assertValidity(){At(this)}hasEvenY(){const{y:P}=this.toAffine();if(!e.isOdd)throw new Error("Field doesn't support isOdd");return!e.isOdd(P)}equals(P){nt(P);const{X:d,Y:S,Z:U}=this,{X:K,Y:q,Z:rt}=P,ct=e.eql(e.mul(d,rt),e.mul(K,U)),W=e.eql(e.mul(S,rt),e.mul(q,U));return ct&&W}negate(){return new at(this.X,e.neg(this.Y),this.Z)}double(){const{a:P,b:d}=a,S=e.mul(d,Fo),{X:U,Y:K,Z:q}=this;let rt=e.ZERO,ct=e.ZERO,W=e.ZERO,h=e.mul(U,U),R=e.mul(K,K),Y=e.mul(q,q),$=e.mul(U,K);return $=e.add($,$),W=e.mul(U,q),W=e.add(W,W),rt=e.mul(P,W),ct=e.mul(S,Y),ct=e.add(rt,ct),rt=e.sub(R,ct),ct=e.add(R,ct),ct=e.mul(rt,ct),rt=e.mul($,rt),W=e.mul(S,W),Y=e.mul(P,Y),$=e.sub(h,Y),$=e.mul(P,$),$=e.add($,W),W=e.add(h,h),h=e.add(W,h),h=e.add(h,Y),h=e.mul(h,$),ct=e.add(ct,h),Y=e.mul(K,q),Y=e.add(Y,Y),h=e.mul(Y,$),rt=e.sub(rt,h),W=e.mul(Y,R),W=e.add(W,W),W=e.add(W,W),new at(rt,ct,W)}add(P){nt(P);const{X:d,Y:S,Z:U}=this,{X:K,Y:q,Z:rt}=P;let ct=e.ZERO,W=e.ZERO,h=e.ZERO;const R=a.a,Y=e.mul(a.b,Fo);let $=e.mul(d,K),pt=e.mul(S,q),It=e.mul(U,rt),Vt=e.add(d,S),Zt=e.add(K,q);Vt=e.mul(Vt,Zt),Zt=e.add($,pt),Vt=e.sub(Vt,Zt),Zt=e.add(d,U);let le=e.add(K,rt);return Zt=e.mul(Zt,le),le=e.add($,It),Zt=e.sub(Zt,le),le=e.add(S,U),ct=e.add(q,rt),le=e.mul(le,ct),ct=e.add(pt,It),le=e.sub(le,ct),h=e.mul(R,Zt),ct=e.mul(Y,It),h=e.add(ct,h),ct=e.sub(pt,h),h=e.add(pt,h),W=e.mul(ct,h),pt=e.add($,$),pt=e.add(pt,$),It=e.mul(R,It),Zt=e.mul(Y,Zt),pt=e.add(pt,It),It=e.sub($,It),It=e.mul(R,It),Zt=e.add(Zt,It),$=e.mul(pt,Zt),W=e.add(W,$),$=e.mul(le,Zt),ct=e.mul(Vt,ct),ct=e.sub(ct,$),$=e.mul(Vt,pt),h=e.mul(le,h),h=e.add(h,$),new at(ct,W,h)}subtract(P){return this.add(P.negate())}is0(){return this.equals(at.ZERO)}multiply(P){const{endo:d}=n;if(!u.isValidNot0(P))throw new Error("invalid scalar: out of range");let S,U;const K=q=>mt.cached(this,q,rt=>Fr(at,rt));if(d){const{k1neg:q,k1:rt,k2neg:ct,k2:W}=ht(P),{p:h,f:R}=K(rt),{p:Y,f:$}=K(W);U=R.add($),S=bt(d.beta,h,Y,q,ct)}else{const{p:q,f:rt}=K(P);S=q,U=rt}return Fr(at,[S,U])[0]}multiplyUnsafe(P){const{endo:d}=n,S=this;if(!u.isValid(P))throw new Error("invalid scalar: out of range");if(P===fr||S.is0())return at.ZERO;if(P===ai)return S;if(mt.hasCache(this))return this.multiply(P);if(d){const{k1neg:U,k1:K,k2neg:q,k2:rt}=ht(P),{p1:ct,p2:W}=g1(at,S,K,rt);return bt(d.beta,ct,W,U,q)}else return mt.unsafe(S,P)}multiplyAndAddUnsafe(P,d,S){const U=this.multiplyUnsafe(d).add(P.multiplyUnsafe(S));return U.is0()?void 0:U}toAffine(P){return ft(this,P)}isTorsionFree(){const{isTorsionFree:P}=n;return f===ai?!0:P?P(at,this):mt.unsafe(this,g).is0()}clearCofactor(){const{clearCofactor:P}=n;return f===ai?this:P?P(at,this):this.multiplyUnsafe(f)}isSmallOrder(){return this.multiplyUnsafe(f).is0()}toBytes(P=!0){return kr(P,"isCompressed"),this.assertValidity(),x(at,this,P)}toHex(P=!0){return Br(this.toBytes(P))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(P=!0){return this.toBytes(P)}_setWindowSize(P){this.precompute(P)}static normalizeZ(P){return Fr(at,P)}static msm(P,d){return ic(at,u,P,d)}static fromPrivateKey(P){return at.BASE.multiply(ui(u,P))}}at.BASE=new at(a.Gx,a.Gy,e.ONE),at.ZERO=new at(e.ZERO,e.ONE,e.ZERO),at.Fp=e,at.Fn=u;const lt=u.BITS,mt=new rc(at,n.endo?Math.ceil(lt/2):lt);return at.BASE.precompute(8),at}function Kc(t){return Uint8Array.of(t?2:3)}function Wc(t,n){return{secretKey:n.BYTES,publicKey:1+t.BYTES,publicKeyUncompressed:1+2*t.BYTES,publicKeyHasPrefix:!0,signature:2*n.BYTES}}function Lm(t,n={}){const{Fn:r}=t,e=n.randomBytes||Cs,u=Object.assign(Wc(t.Fp,r),{seed:Ju(r.ORDER)});function a(x){try{return!!ui(r,x)}catch{return!1}}function f(x,B){const{publicKey:D,publicKeyUncompressed:j}=u;try{const z=x.length;return B===!0&&z!==D||B===!1&&z!==j?!1:!!t.fromBytes(x)}catch{return!1}}function g(x=e(u.seed)){return h1(Vn(x,u.seed,"seed"),r.ORDER)}function l(x,B=!0){return t.BASE.multiply(ui(r,x)).toBytes(B)}function E(x){const B=g(x);return{secretKey:B,publicKey:l(B)}}function T(x){if(typeof x=="bigint")return!1;if(x instanceof t)return!0;const{secretKey:B,publicKey:D,publicKeyUncompressed:j}=u;if(r.allowedLengths||B===D)return;const z=Ze("key",x).length;return z===D||z===j}function L(x,B,D=!0){if(T(x)===!0)throw new Error("first arg must be private key");if(T(B)===!1)throw new Error("second arg must be public key");const j=ui(r,x);return t.fromHex(B).multiply(j).toBytes(D)}return Object.freeze({getPublicKey:l,getSharedSecret:L,keygen:E,Point:t,utils:{isValidSecretKey:a,isValidPublicKey:f,randomSecretKey:g,isValidPrivateKey:a,randomPrivateKey:g,normPrivateKeyToScalar:x=>ui(r,x),precompute(x=8,B=t.BASE){return B.precompute(x,!1)}},lengths:u})}function Cm(t,n,r={}){Su(n),xi(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const e=r.randomBytes||Cs,u=r.hmac||((d,...S)=>Yc(n,d,qn(...S))),{Fp:a,Fn:f}=t,{ORDER:g,BITS:l}=f,{keygen:E,getPublicKey:T,getSharedSecret:L,utils:N,lengths:x}=Lm(t,r),B={prehash:!1,lowS:typeof r.lowS=="boolean"?r.lowS:!1,format:void 0,extraEntropy:!1},D="compact";function j(d){const S=g>>ai;return d>S}function z(d,S){if(!f.isValidNot0(S))throw new Error(`invalid signature ${d}: out of range 1..Point.Fn.ORDER`);return S}function J(d,S){ua(S);const U=x.signature,K=S==="compact"?U:S==="recovered"?U+1:void 0;return Vn(d,K,`${S} signature`)}class Z{constructor(S,U,K){this.r=z("r",S),this.s=z("s",U),K!=null&&(this.recovery=K),Object.freeze(this)}static fromBytes(S,U=D){J(S,U);let K;if(U==="der"){const{r:W,s:h}=cr.toSig(Vn(S));return new Z(W,h)}U==="recovered"&&(K=S[0],U="compact",S=S.subarray(1));const q=f.BYTES,rt=S.subarray(0,q),ct=S.subarray(q,q*2);return new Z(f.fromBytes(rt),f.fromBytes(ct),K)}static fromHex(S,U){return this.fromBytes(wo(S),U)}addRecoveryBit(S){return new Z(this.r,this.s,S)}recoverPublicKey(S){const U=a.ORDER,{r:K,s:q,recovery:rt}=this;if(rt==null||![0,1,2,3].includes(rt))throw new Error("recovery id invalid");if(g*zc<U&&rt>1)throw new Error("recovery id is ambiguous for h>1 curve");const W=rt===2||rt===3?K+g:K;if(!a.isValid(W))throw new Error("recovery id 2 or 3 invalid");const h=a.toBytes(W),R=t.fromBytes(qn(Kc((rt&1)===0),h)),Y=f.inv(W),$=ht(Ze("msgHash",S)),pt=f.create(-$*Y),It=f.create(q*Y),Vt=t.BASE.multiplyUnsafe(pt).add(R.multiplyUnsafe(It));if(Vt.is0())throw new Error("point at infinify");return Vt.assertValidity(),Vt}hasHighS(){return j(this.s)}toBytes(S=D){if(ua(S),S==="der")return wo(cr.hexFromSig(this));const U=f.toBytes(this.r),K=f.toBytes(this.s);if(S==="recovered"){if(this.recovery==null)throw new Error("recovery bit must be present");return qn(Uint8Array.of(this.recovery),U,K)}return qn(U,K)}toHex(S){return Br(this.toBytes(S))}assertValidity(){}static fromCompact(S){return Z.fromBytes(Ze("sig",S),"compact")}static fromDER(S){return Z.fromBytes(Ze("sig",S),"der")}normalizeS(){return this.hasHighS()?new Z(this.r,f.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Br(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Br(this.toBytes("compact"))}}const nt=r.bits2int||function(S){if(S.length>8192)throw new Error("input is too large");const U=Ao(S),K=S.length*8-l;return K>0?U>>BigInt(K):U},ht=r.bits2int_modN||function(S){return f.create(nt(S))},ft=Ti(l);function At(d){return Ds("num < 2^"+l,d,fr,ft),f.toBytes(d)}function bt(d,S){return Vn(d,void 0,"message"),S?Vn(n(d),void 0,"prehashed message"):d}function at(d,S,U){if(["recovered","canonical"].some(pt=>pt in U))throw new Error("sign() legacy options not supported");const{lowS:K,prehash:q,extraEntropy:rt}=ca(U,B);d=bt(d,q);const ct=ht(d),W=ui(f,S),h=[At(W),At(ct)];if(rt!=null&&rt!==!1){const pt=rt===!0?e(x.secretKey):rt;h.push(Ze("extraEntropy",pt))}const R=qn(...h),Y=ct;function $(pt){const It=nt(pt);if(!f.isValidNot0(It))return;const Vt=f.inv(It),Zt=t.BASE.multiply(It).toAffine(),le=f.create(Zt.x);if(le===fr)return;const we=f.create(Vt*f.create(Y+le*W));if(we===fr)return;let ge=(Zt.x===le?0:2)|Number(Zt.y&ai),Se=we;return K&&j(we)&&(Se=f.neg(we),ge^=1),new Z(le,Se,ge)}return{seed:R,k2sig:$}}function lt(d,S,U={}){d=Ze("message",d);const{seed:K,k2sig:q}=at(d,S,U);return r1(n.outputLen,f.BYTES,u)(K,q)}function mt(d){let S;const U=typeof d=="string"||Oi(d),K=!U&&d!==null&&typeof d=="object"&&typeof d.r=="bigint"&&typeof d.s=="bigint";if(!U&&!K)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(K)S=new Z(d.r,d.s);else if(U){try{S=Z.fromBytes(Ze("sig",d),"der")}catch(q){if(!(q instanceof cr.Err))throw q}if(!S)try{S=Z.fromBytes(Ze("sig",d),"compact")}catch{return!1}}return S||!1}function wt(d,S,U,K={}){const{lowS:q,prehash:rt,format:ct}=ca(K,B);if(U=Ze("publicKey",U),S=bt(Ze("message",S),rt),"strict"in K)throw new Error("options.strict was renamed to lowS");const W=ct===void 0?mt(d):Z.fromBytes(Ze("sig",d),ct);if(W===!1)return!1;try{const h=t.fromBytes(U);if(q&&W.hasHighS())return!1;const{r:R,s:Y}=W,$=ht(S),pt=f.inv(Y),It=f.create($*pt),Vt=f.create(R*pt),Zt=t.BASE.multiplyUnsafe(It).add(h.multiplyUnsafe(Vt));return Zt.is0()?!1:f.create(Zt.x)===R}catch{return!1}}function P(d,S,U={}){const{prehash:K}=ca(U,B);return S=bt(S,K),Z.fromBytes(d,"recovered").recoverPublicKey(S).toBytes()}return Object.freeze({keygen:E,getPublicKey:T,getSharedSecret:L,utils:N,lengths:x,Point:t,sign:lt,verify:wt,recoverPublicKey:P,Signature:Z,hash:n})}function Mm(t){const n={a:t.a,b:t.b,p:t.Fp.ORDER,n:t.n,h:t.h,Gx:t.Gx,Gy:t.Gy},r=t.Fp;let e=t.allowedPrivateKeyLengths?Array.from(new Set(t.allowedPrivateKeyLengths.map(f=>Math.ceil(f/2)))):void 0;const u=Dr(n.n,{BITS:t.nBitLength,allowedLengths:e,modFromBytes:t.wrapPrivateKey}),a={Fp:r,Fn:u,allowInfinityPoint:t.allowInfinityPoint,endo:t.endo,isTorsionFree:t.isTorsionFree,clearCofactor:t.clearCofactor,fromBytes:t.fromBytes,toBytes:t.toBytes};return{CURVE:n,curveOpts:a}}function Bm(t){const{CURVE:n,curveOpts:r}=Mm(t),e={hmac:t.hmac,randomBytes:t.randomBytes,lowS:t.lowS,bits2int:t.bits2int,bits2int_modN:t.bits2int_modN};return{CURVE:n,curveOpts:r,hash:t.hash,ecdsaOpts:e}}function km(t,n){const r=n.Point;return Object.assign({},n,{ProjectivePoint:r,CURVE:Object.assign({},t,Xu(r.Fn.ORDER,r.Fn.BITS))})}function Um(t){const{CURVE:n,curveOpts:r,hash:e,ecdsaOpts:u}=Bm(t),a=xm(n,r),f=Cm(a,e,u);return km(t,f)}function Dm(t,n){const r=e=>Um({...t,hash:e});return{...r(n),create:r}}const fa={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Pm={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Zc=BigInt(2);function Fm(t){const n=fa.p,r=BigInt(3),e=BigInt(6),u=BigInt(11),a=BigInt(22),f=BigInt(23),g=BigInt(44),l=BigInt(88),E=t*t*t%n,T=E*E*t%n,L=$e(T,r,n)*T%n,N=$e(L,r,n)*T%n,x=$e(N,Zc,n)*E%n,B=$e(x,u,n)*x%n,D=$e(B,a,n)*B%n,j=$e(D,g,n)*D%n,z=$e(j,l,n)*j%n,J=$e(z,g,n)*D%n,Z=$e(J,r,n)*T%n,nt=$e(Z,f,n)*B%n,ht=$e(nt,e,n)*E%n,ft=$e(ht,Zc,n);if(!la.eql(la.sqr(ft),t))throw new Error("Cannot find square root");return ft}const la=Dr(fa.p,{sqrt:Fm}),Hm=Dm({...fa,Fp:la,lowS:!0,endo:Pm},ku);Li.utils.randomPrivateKey,Li.getPublicKey;function $c(t){try{return Li.ExtendedPoint.fromHex(t),!0}catch{return!1}}const Xc=(t,n)=>Li.sign(t,n.slice(0,32)),Vm=Li.verify,da=t=>be.Buffer.isBuffer(t)?t:t instanceof Uint8Array?be.Buffer.from(t.buffer,t.byteOffset,t.byteLength):be.Buffer.from(t);class qc{constructor(n){Object.assign(this,n)}encode(){return be.Buffer.from(Xs.serialize(Ui,this))}static decode(n){return Xs.deserialize(Ui,this,n)}static decodeUnchecked(n){return Xs.deserializeUnchecked(Ui,this,n)}}const Ui=new Map;var Jc;const Qc=32,Yn=32;function Gm(t){return t._bn!==void 0}let tf=1;class ve extends qc{constructor(n){if(super({}),this._bn=void 0,Gm(n))this._bn=n._bn;else{if(typeof n=="string"){const r=En.decode(n);if(r.length!=Yn)throw new Error("Invalid public key input");this._bn=new dc(r)}else this._bn=new dc(n);if(this._bn.byteLength()>Yn)throw new Error("Invalid public key input")}}static unique(){const n=new ve(tf);return tf+=1,new ve(n.toBuffer())}equals(n){return this._bn.eq(n._bn)}toBase58(){return En.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const n=this.toBuffer();return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}toBuffer(){const n=this._bn.toArrayLike(be.Buffer);if(n.length===Yn)return n;const r=be.Buffer.alloc(32);return n.copy(r,32-n.length),r}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(n,r,e){const u=be.Buffer.concat([n.toBuffer(),be.Buffer.from(r),e.toBuffer()]),a=mc(u);return new ve(a)}static createProgramAddressSync(n,r){let e=be.Buffer.alloc(0);n.forEach(function(a){if(a.length>Qc)throw new TypeError("Max seed length exceeded");e=be.Buffer.concat([e,da(a)])}),e=be.Buffer.concat([e,r.toBuffer(),be.Buffer.from("ProgramDerivedAddress")]);const u=mc(e);if($c(u))throw new Error("Invalid seeds, address must fall off the curve");return new ve(u)}static async createProgramAddress(n,r){return this.createProgramAddressSync(n,r)}static findProgramAddressSync(n,r){let e=255,u;for(;e!=0;){try{const a=n.concat(be.Buffer.from([e]));u=this.createProgramAddressSync(a,r)}catch(a){if(a instanceof TypeError)throw a;e--;continue}return[u,e]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(n,r){return this.findProgramAddressSync(n,r)}static isOnCurve(n){const r=new ve(n);return $c(r.toBytes())}}Jc=ve,ve.default=new Jc("11111111111111111111111111111111"),Ui.set(ve,{kind:"struct",fields:[["_bn","u256"]]}),new ve("BPFLoader1111111111111111111111111111111111");const Vr=1232,Di=127,Er=64,ef=129;class ci{constructor(n,r){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=n,this.accountKeysFromLookups=r}keySegments(){const n=[this.staticAccountKeys];return this.accountKeysFromLookups&&(n.push(this.accountKeysFromLookups.writable),n.push(this.accountKeysFromLookups.readonly)),n}get(n){for(const r of this.keySegments()){if(n<r.length)return r[n];n-=r.length}}get length(){return this.keySegments().flat().length}compileInstructions(n){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const e=new Map;this.keySegments().flat().forEach((a,f)=>{e.set(a.toBase58(),f)});const u=a=>{const f=e.get(a.toBase58());if(f===void 0)throw new Error("Encountered an unknown instruction account key during compilation");return f};return n.map(a=>({programIdIndex:u(a.programId),accountKeyIndexes:a.keys.map(f=>u(f.pubkey)),data:a.data}))}}const Ae=(t="publicKey")=>dt.blob(32,t),Ym=(t="signature")=>dt.blob(64,t),fi=(t="string")=>{const n=dt.struct([dt.u32("length"),dt.u32("lengthPadding"),dt.blob(dt.offset(dt.u32(),-8),"chars")],t),r=n.decode.bind(n),e=n.encode.bind(n),u=n;return u.decode=(a,f)=>r(a,f).chars.toString(),u.encode=(a,f,g)=>{const l={chars:be.Buffer.from(a,"utf8")};return e(l,f,g)},u.alloc=a=>dt.u32().span+dt.u32().span+be.Buffer.from(a,"utf8").length,u},jm=(t="authorized")=>dt.struct([Ae("staker"),Ae("withdrawer")],t),zm=(t="lockup")=>dt.struct([dt.ns64("unixTimestamp"),dt.ns64("epoch"),Ae("custodian")],t),Km=(t="voteInit")=>dt.struct([Ae("nodePubkey"),Ae("authorizedVoter"),Ae("authorizedWithdrawer"),dt.u8("commission")],t),Wm=(t="voteAuthorizeWithSeedArgs")=>dt.struct([dt.u32("voteAuthorizationType"),Ae("currentAuthorityDerivedKeyOwnerPubkey"),fi("currentAuthorityDerivedKeySeed"),Ae("newAuthorized")],t);function kn(t){let n=0,r=0;for(;;){let e=t.shift();if(n|=(e&127)<<r*7,r+=1,(e&128)===0)break}return n}function Un(t,n){let r=n;for(;;){let e=r&127;if(r>>=7,r==0){t.push(e);break}else e|=128,t.push(e)}}function Fe(t,n){if(!t)throw new Error(n||"Assertion failed")}class Ho{constructor(n,r){this.payer=void 0,this.keyMetaMap=void 0,this.payer=n,this.keyMetaMap=r}static compile(n,r){const e=new Map,u=f=>{const g=f.toBase58();let l=e.get(g);return l===void 0&&(l={isSigner:!1,isWritable:!1,isInvoked:!1},e.set(g,l)),l},a=u(r);a.isSigner=!0,a.isWritable=!0;for(const f of n){u(f.programId).isInvoked=!0;for(const g of f.keys){const l=u(g.pubkey);l.isSigner||=g.isSigner,l.isWritable||=g.isWritable}}return new Ho(r,e)}getMessageComponents(){const n=[...this.keyMetaMap.entries()];Fe(n.length<=256,"Max static account keys length exceeded");const r=n.filter(([,l])=>l.isSigner&&l.isWritable),e=n.filter(([,l])=>l.isSigner&&!l.isWritable),u=n.filter(([,l])=>!l.isSigner&&l.isWritable),a=n.filter(([,l])=>!l.isSigner&&!l.isWritable),f={numRequiredSignatures:r.length+e.length,numReadonlySignedAccounts:e.length,numReadonlyUnsignedAccounts:a.length};{Fe(r.length>0,"Expected at least one writable signer key");const[l]=r[0];Fe(l===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}const g=[...r.map(([l])=>new ve(l)),...e.map(([l])=>new ve(l)),...u.map(([l])=>new ve(l)),...a.map(([l])=>new ve(l))];return[f,g]}extractTableLookup(n){const[r,e]=this.drainKeysFoundInLookupTable(n.state.addresses,f=>!f.isSigner&&!f.isInvoked&&f.isWritable),[u,a]=this.drainKeysFoundInLookupTable(n.state.addresses,f=>!f.isSigner&&!f.isInvoked&&!f.isWritable);if(!(r.length===0&&u.length===0))return[{accountKey:n.key,writableIndexes:r,readonlyIndexes:u},{writable:e,readonly:a}]}drainKeysFoundInLookupTable(n,r){const e=new Array,u=new Array;for(const[a,f]of this.keyMetaMap.entries())if(r(f)){const g=new ve(a),l=n.findIndex(E=>E.equals(g));l>=0&&(Fe(l<256,"Max lookup table index exceeded"),e.push(l),u.push(g),this.keyMetaMap.delete(a))}return[e,u]}}const nf="Reached end of buffer unexpectedly";function fn(t){if(t.length===0)throw new Error(nf);return t.shift()}function ln(t,...n){const[r]=n;if(n.length===2?r+(n[1]??0)>t.length:r>=t.length)throw new Error(nf);return t.splice(...n)}class Gr{constructor(n){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=n.header,this.accountKeys=n.accountKeys.map(r=>new ve(r)),this.recentBlockhash=n.recentBlockhash,this.instructions=n.instructions,this.instructions.forEach(r=>this.indexToProgramIds.set(r.programIdIndex,this.accountKeys[r.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(n=>({programIdIndex:n.programIdIndex,accountKeyIndexes:n.accounts,data:En.decode(n.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new ci(this.staticAccountKeys)}static compile(n){const r=Ho.compile(n.instructions,n.payerKey),[e,u]=r.getMessageComponents(),f=new ci(u).compileInstructions(n.instructions).map(g=>({programIdIndex:g.programIdIndex,accounts:g.accountKeyIndexes,data:En.encode(g.data)}));return new Gr({header:e,accountKeys:u,recentBlockhash:n.recentBlockhash,instructions:f})}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures;if(n>=this.header.numRequiredSignatures){const e=n-r,a=this.accountKeys.length-r-this.header.numReadonlyUnsignedAccounts;return e<a}else{const e=r-this.header.numReadonlySignedAccounts;return n<e}}isProgramId(n){return this.indexToProgramIds.has(n)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((n,r)=>!this.isProgramId(r))}serialize(){const n=this.accountKeys.length;let r=[];Un(r,n);const e=this.instructions.map(L=>{const{accounts:N,programIdIndex:x}=L,B=Array.from(En.decode(L.data));let D=[];Un(D,N.length);let j=[];return Un(j,B.length),{programIdIndex:x,keyIndicesCount:be.Buffer.from(D),keyIndices:N,dataLength:be.Buffer.from(j),data:B}});let u=[];Un(u,e.length);let a=be.Buffer.alloc(Vr);be.Buffer.from(u).copy(a);let f=u.length;e.forEach(L=>{const x=dt.struct([dt.u8("programIdIndex"),dt.blob(L.keyIndicesCount.length,"keyIndicesCount"),dt.seq(dt.u8("keyIndex"),L.keyIndices.length,"keyIndices"),dt.blob(L.dataLength.length,"dataLength"),dt.seq(dt.u8("userdatum"),L.data.length,"data")]).encode(L,a,f);f+=x}),a=a.slice(0,f);const g=dt.struct([dt.blob(1,"numRequiredSignatures"),dt.blob(1,"numReadonlySignedAccounts"),dt.blob(1,"numReadonlyUnsignedAccounts"),dt.blob(r.length,"keyCount"),dt.seq(Ae("key"),n,"keys"),Ae("recentBlockhash")]),l={numRequiredSignatures:be.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:be.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:be.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:be.Buffer.from(r),keys:this.accountKeys.map(L=>da(L.toBytes())),recentBlockhash:En.decode(this.recentBlockhash)};let E=be.Buffer.alloc(2048);const T=g.encode(l,E);return a.copy(E,T),E.slice(0,T+a.length)}static from(n){let r=[...n];const e=fn(r);if(e!==(e&Di))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const u=fn(r),a=fn(r),f=kn(r);let g=[];for(let N=0;N<f;N++){const x=ln(r,0,Yn);g.push(new ve(be.Buffer.from(x)))}const l=ln(r,0,Yn),E=kn(r);let T=[];for(let N=0;N<E;N++){const x=fn(r),B=kn(r),D=ln(r,0,B),j=kn(r),z=ln(r,0,j),J=En.encode(be.Buffer.from(z));T.push({programIdIndex:x,accounts:D,data:J})}const L={header:{numRequiredSignatures:e,numReadonlySignedAccounts:u,numReadonlyUnsignedAccounts:a},recentBlockhash:En.encode(be.Buffer.from(l)),accountKeys:g,instructions:T};return new Gr(L)}}class Pi{constructor(n){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=n.header,this.staticAccountKeys=n.staticAccountKeys,this.recentBlockhash=n.recentBlockhash,this.compiledInstructions=n.compiledInstructions,this.addressTableLookups=n.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let n=0;for(const r of this.addressTableLookups)n+=r.readonlyIndexes.length+r.writableIndexes.length;return n}getAccountKeys(n){let r;if(n&&"accountKeysFromLookups"in n&&n.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=n.accountKeysFromLookups.writable.length+n.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");r=n.accountKeysFromLookups}else if(n&&"addressLookupTableAccounts"in n&&n.addressLookupTableAccounts)r=this.resolveAddressTableLookups(n.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new ci(this.staticAccountKeys,r)}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures,e=this.staticAccountKeys.length;if(n>=e){const u=n-e,a=this.addressTableLookups.reduce((f,g)=>f+g.writableIndexes.length,0);return u<a}else if(n>=this.header.numRequiredSignatures){const u=n-r,f=e-r-this.header.numReadonlyUnsignedAccounts;return u<f}else{const u=r-this.header.numReadonlySignedAccounts;return n<u}}resolveAddressTableLookups(n){const r={writable:[],readonly:[]};for(const e of this.addressTableLookups){const u=n.find(a=>a.key.equals(e.accountKey));if(!u)throw new Error(`Failed to find address lookup table account for table key ${e.accountKey.toBase58()}`);for(const a of e.writableIndexes)if(a<u.state.addresses.length)r.writable.push(u.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${e.accountKey.toBase58()}`);for(const a of e.readonlyIndexes)if(a<u.state.addresses.length)r.readonly.push(u.state.addresses[a]);else throw new Error(`Failed to find address for index ${a} in address lookup table ${e.accountKey.toBase58()}`)}return r}static compile(n){const r=Ho.compile(n.instructions,n.payerKey),e=new Array,u={writable:new Array,readonly:new Array},a=n.addressLookupTableAccounts||[];for(const T of a){const L=r.extractTableLookup(T);if(L!==void 0){const[N,{writable:x,readonly:B}]=L;e.push(N),u.writable.push(...x),u.readonly.push(...B)}}const[f,g]=r.getMessageComponents(),E=new ci(g,u).compileInstructions(n.instructions);return new Pi({header:f,staticAccountKeys:g,recentBlockhash:n.recentBlockhash,compiledInstructions:E,addressTableLookups:e})}serialize(){const n=Array();Un(n,this.staticAccountKeys.length);const r=this.serializeInstructions(),e=Array();Un(e,this.compiledInstructions.length);const u=this.serializeAddressTableLookups(),a=Array();Un(a,this.addressTableLookups.length);const f=dt.struct([dt.u8("prefix"),dt.struct([dt.u8("numRequiredSignatures"),dt.u8("numReadonlySignedAccounts"),dt.u8("numReadonlyUnsignedAccounts")],"header"),dt.blob(n.length,"staticAccountKeysLength"),dt.seq(Ae(),this.staticAccountKeys.length,"staticAccountKeys"),Ae("recentBlockhash"),dt.blob(e.length,"instructionsLength"),dt.blob(r.length,"serializedInstructions"),dt.blob(a.length,"addressTableLookupsLength"),dt.blob(u.length,"serializedAddressTableLookups")]),g=new Uint8Array(Vr),E=f.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(n),staticAccountKeys:this.staticAccountKeys.map(T=>T.toBytes()),recentBlockhash:En.decode(this.recentBlockhash),instructionsLength:new Uint8Array(e),serializedInstructions:r,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:u},g);return g.slice(0,E)}serializeInstructions(){let n=0;const r=new Uint8Array(Vr);for(const e of this.compiledInstructions){const u=Array();Un(u,e.accountKeyIndexes.length);const a=Array();Un(a,e.data.length);const f=dt.struct([dt.u8("programIdIndex"),dt.blob(u.length,"encodedAccountKeyIndexesLength"),dt.seq(dt.u8(),e.accountKeyIndexes.length,"accountKeyIndexes"),dt.blob(a.length,"encodedDataLength"),dt.blob(e.data.length,"data")]);n+=f.encode({programIdIndex:e.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(u),accountKeyIndexes:e.accountKeyIndexes,encodedDataLength:new Uint8Array(a),data:e.data},r,n)}return r.slice(0,n)}serializeAddressTableLookups(){let n=0;const r=new Uint8Array(Vr);for(const e of this.addressTableLookups){const u=Array();Un(u,e.writableIndexes.length);const a=Array();Un(a,e.readonlyIndexes.length);const f=dt.struct([Ae("accountKey"),dt.blob(u.length,"encodedWritableIndexesLength"),dt.seq(dt.u8(),e.writableIndexes.length,"writableIndexes"),dt.blob(a.length,"encodedReadonlyIndexesLength"),dt.seq(dt.u8(),e.readonlyIndexes.length,"readonlyIndexes")]);n+=f.encode({accountKey:e.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(u),writableIndexes:e.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(a),readonlyIndexes:e.readonlyIndexes},r,n)}return r.slice(0,n)}static deserialize(n){let r=[...n];const e=fn(r),u=e&Di;Fe(e!==u,"Expected versioned message but received legacy message");const a=u;Fe(a===0,`Expected versioned message with version 0 but found version ${a}`);const f={numRequiredSignatures:fn(r),numReadonlySignedAccounts:fn(r),numReadonlyUnsignedAccounts:fn(r)},g=[],l=kn(r);for(let B=0;B<l;B++)g.push(new ve(ln(r,0,Yn)));const E=En.encode(ln(r,0,Yn)),T=kn(r),L=[];for(let B=0;B<T;B++){const D=fn(r),j=kn(r),z=ln(r,0,j),J=kn(r),Z=new Uint8Array(ln(r,0,J));L.push({programIdIndex:D,accountKeyIndexes:z,data:Z})}const N=kn(r),x=[];for(let B=0;B<N;B++){const D=new ve(ln(r,0,Yn)),j=kn(r),z=ln(r,0,j),J=kn(r),Z=ln(r,0,J);x.push({accountKey:D,writableIndexes:z,readonlyIndexes:Z})}return new Pi({header:f,staticAccountKeys:g,recentBlockhash:E,compiledInstructions:L,addressTableLookups:x})}}const rf=3,Zm=4,$m=8,Xm=16;function Vo(t){const n=ln(t,0,4);return n[0]+n[1]*2**8+n[2]*2**16+n[3]*2**24}function qm(t){const n=ln(t,0,8);let r=BigInt(0);for(let e=n.length-1;e>=0;e--)r=r<<BigInt(8)|BigInt(n[e]);return Fe(r<=BigInt(Number.MAX_SAFE_INTEGER),"Expected u64 value to be within the safe integer range"),Number(r)}class Go{constructor(n){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.transactionConfig=void 0,this.header=n.header,this.staticAccountKeys=n.staticAccountKeys,this.recentBlockhash=n.recentBlockhash,this.compiledInstructions=n.compiledInstructions,this.transactionConfig=n.transactionConfig??{computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null}}get version(){return 1}get addressTableLookups(){return[]}getAccountKeys(){return new ci(this.staticAccountKeys)}isAccountSigner(n){return n<this.header.numRequiredSignatures}isAccountWritable(n){const r=this.header.numRequiredSignatures,e=this.staticAccountKeys.length;if(n>=e)return!1;if(n>=this.header.numRequiredSignatures){const u=n-r,f=e-r-this.header.numReadonlyUnsignedAccounts;return u<f}else{const u=r-this.header.numReadonlySignedAccounts;return n<u}}serialize(){throw new Error("Serialization of version 1 transaction messages is not supported")}static deserialize(n){let r=[...n];const e=fn(r),u=e&Di;Fe(e!==u,"Expected versioned message but received legacy message");const a=u;Fe(a===1,`Expected versioned message with version 1 but found version ${a}`);const f={numRequiredSignatures:fn(r),numReadonlySignedAccounts:fn(r),numReadonlyUnsignedAccounts:fn(r)},g=Vo(r);Fe((g&-32)===0,"Unexpected bits set in the transaction config mask");const l=g&rf;Fe(l===0||l===rf,"Expected both or neither of the priority fee bits to be set in the transaction config mask");const E=En.encode(ln(r,0,Yn)),T=fn(r),L=fn(r),N=[];for(let j=0;j<L;j++)N.push(new ve(ln(r,0,Yn)));const x={computeUnitLimit:null,heapSize:null,loadedAccountsDataSizeLimit:null,priorityFee:null};l!==0&&(x.priorityFee=qm(r)),g&Zm&&(x.computeUnitLimit=Vo(r)),g&$m&&(x.loadedAccountsDataSizeLimit=Vo(r)),g&Xm&&(x.heapSize=Vo(r));const B=[];for(let j=0;j<T;j++){const z=fn(r),J=fn(r),Z=fn(r)+fn(r)*256;B.push({accountKeyIndexesLength:J,dataLength:Z,programIdIndex:z})}const D=[];for(const j of B)D.push({programIdIndex:j.programIdIndex,accountKeyIndexes:ln(r,0,j.accountKeyIndexesLength),data:new Uint8Array(ln(r,0,j.dataLength))});return Fe(r.length===0,"Expected no bytes to remain after deserializing a version 1 message"),new Go({header:f,staticAccountKeys:N,recentBlockhash:E,compiledInstructions:D,transactionConfig:x})}}const Yo={deserializeMessageVersion(t){const n=t[0],r=n&Di;return r===n?"legacy":r},deserialize:t=>{const n=Yo.deserializeMessageVersion(t);if(n==="legacy")return Gr.from(t);if(n===0)return Pi.deserialize(t);if(n===1)return Go.deserialize(t);throw new Error(`Transaction message version ${n} deserialization is not supported`)}},Jm=be.Buffer.alloc(Er).fill(0);class ha{constructor(n){this.keys=void 0,this.programId=void 0,this.data=be.Buffer.alloc(0),this.programId=n.programId,this.keys=n.keys,n.data&&(this.data=n.data)}toJSON(){return{keys:this.keys.map(({pubkey:n,isSigner:r,isWritable:e})=>({pubkey:n.toJSON(),isSigner:r,isWritable:e})),programId:this.programId.toJSON(),data:[...this.data]}}}class jo{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(n){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,!!n)if(n.feePayer&&(this.feePayer=n.feePayer),n.signatures&&(this.signatures=n.signatures),Object.prototype.hasOwnProperty.call(n,"nonceInfo")){const{minContextSlot:r,nonceInfo:e}=n;this.minNonceContextSlot=r,this.nonceInfo=e}else if(Object.prototype.hasOwnProperty.call(n,"lastValidBlockHeight")){const{blockhash:r,lastValidBlockHeight:e}=n;this.recentBlockhash=r,this.lastValidBlockHeight=e}else{const{recentBlockhash:r,nonceInfo:e}=n;e&&(this.nonceInfo=e),this.recentBlockhash=r}}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(n=>n.toJSON()),signers:this.signatures.map(({publicKey:n})=>n.toJSON())}}add(...n){if(n.length===0)throw new Error("No instructions");return n.forEach(r=>{"instructions"in r?this.instructions=this.instructions.concat(r.instructions):"data"in r&&"programId"in r&&"keys"in r?this.instructions.push(r):this.instructions.push(new ha(r))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let n,r;if(this.nonceInfo?(n=this.nonceInfo.nonce,this.instructions[0]!=this.nonceInfo.nonceInstruction?r=[this.nonceInfo.nonceInstruction,...this.instructions]:r=this.instructions):(n=this.recentBlockhash,r=this.instructions),!n)throw new Error("Transaction recentBlockhash required");r.length<1&&console.warn("No instructions provided");let e;if(this.feePayer)e=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)e=this.signatures[0].publicKey;else throw new Error("Transaction fee payer required");for(let D=0;D<r.length;D++)if(r[D].programId===void 0)throw new Error(`Transaction instruction index ${D} has undefined program id`);const u=[],a=[];r.forEach(D=>{D.keys.forEach(z=>{a.push({...z})});const j=D.programId.toString();u.includes(j)||u.push(j)}),u.forEach(D=>{a.push({pubkey:new ve(D),isSigner:!1,isWritable:!1})});const f=[];a.forEach(D=>{const j=D.pubkey.toString(),z=f.findIndex(J=>J.pubkey.toString()===j);z>-1?(f[z].isWritable=f[z].isWritable||D.isWritable,f[z].isSigner=f[z].isSigner||D.isSigner):f.push(D)}),f.sort(function(D,j){if(D.isSigner!==j.isSigner)return D.isSigner?-1:1;if(D.isWritable!==j.isWritable)return D.isWritable?-1:1;const z={localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"};return D.pubkey.toBase58().localeCompare(j.pubkey.toBase58(),"en",z)});const g=f.findIndex(D=>D.pubkey.equals(e));if(g>-1){const[D]=f.splice(g,1);D.isSigner=!0,D.isWritable=!0,f.unshift(D)}else f.unshift({pubkey:e,isSigner:!0,isWritable:!0});for(const D of this.signatures){const j=f.findIndex(z=>z.pubkey.equals(D.publicKey));if(j>-1)f[j].isSigner||(f[j].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: ${D.publicKey.toString()}`)}let l=0,E=0,T=0;const L=[],N=[];f.forEach(({pubkey:D,isSigner:j,isWritable:z})=>{j?(L.push(D.toString()),l+=1,z||(E+=1)):(N.push(D.toString()),z||(T+=1))});const x=L.concat(N),B=r.map(D=>{const{data:j,programId:z}=D;return{programIdIndex:x.indexOf(z.toString()),accounts:D.keys.map(J=>x.indexOf(J.pubkey.toString())),data:En.encode(j)}});return B.forEach(D=>{Fe(D.programIdIndex>=0),D.accounts.forEach(j=>Fe(j>=0))}),new Gr({header:{numRequiredSignatures:l,numReadonlySignedAccounts:E,numReadonlyUnsignedAccounts:T},accountKeys:x,recentBlockhash:n,instructions:B})}_compile(){const n=this.compileMessage(),r=n.accountKeys.slice(0,n.header.numRequiredSignatures);return this.signatures.length===r.length&&this.signatures.every((u,a)=>r[a].equals(u.publicKey))||(this.signatures=r.map(e=>({signature:null,publicKey:e}))),n}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(n){return(await n.getFeeForMessage(this.compileMessage())).value}setSigners(...n){if(n.length===0)throw new Error("No signers");const r=new Set;this.signatures=n.filter(e=>{const u=e.toString();return r.has(u)?!1:(r.add(u),!0)}).map(e=>({signature:null,publicKey:e}))}sign(...n){if(n.length===0)throw new Error("No signers");const r=new Set,e=[];for(const a of n){const f=a.publicKey.toString();r.has(f)||(r.add(f),e.push(a))}this.signatures=e.map(a=>({signature:null,publicKey:a.publicKey}));const u=this._compile();this._partialSign(u,...e)}partialSign(...n){if(n.length===0)throw new Error("No signers");const r=new Set,e=[];for(const a of n){const f=a.publicKey.toString();r.has(f)||(r.add(f),e.push(a))}const u=this._compile();this._partialSign(u,...e)}_partialSign(n,...r){const e=n.serialize();r.forEach(u=>{const a=Xc(e,u.secretKey);this._addSignature(u.publicKey,da(a))})}addSignature(n,r){this._compile(),this._addSignature(n,r)}_addSignature(n,r){Fe(r.length===64);const e=this.signatures.findIndex(u=>n.equals(u.publicKey));if(e<0)throw new Error(`unknown signer: ${n.toString()}`);this.signatures[e].signature=be.Buffer.from(r)}verifySignatures(n=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),n)}_getMessageSignednessErrors(n,r){const e={};for(const{signature:u,publicKey:a}of this.signatures)u===null?r&&(e.missing||=[]).push(a):Vm(u,n,a.toBytes())||(e.invalid||=[]).push(a);return e.invalid||e.missing?e:void 0}serialize(n){const{requireAllSignatures:r,verifySignatures:e}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},n),u=this.serializeMessage();if(e){const a=this._getMessageSignednessErrors(u,r);if(a){let f="Signature verification failed.";throw a.invalid&&(f+=`
|
|
6
|
+
Invalid signature for public key${a.invalid.length===1?"":"(s)"} [\`${a.invalid.map(g=>g.toBase58()).join("`, `")}\`].`),a.missing&&(f+=`
|
|
7
|
+
Missing signature for public key${a.missing.length===1?"":"(s)"} [\`${a.missing.map(g=>g.toBase58()).join("`, `")}\`].`),new Error(f)}}return this._serialize(u)}_serialize(n){const{signatures:r}=this,e=[];Un(e,r.length);const u=e.length+r.length*64+n.length,a=be.Buffer.alloc(u);return Fe(r.length<256),be.Buffer.from(e).copy(a,0),r.forEach(({signature:f},g)=>{f!==null&&(Fe(f.length===64,"signature has invalid length"),be.Buffer.from(f).copy(a,e.length+g*64))}),n.copy(a,e.length+r.length*64),Fe(a.length<=Vr,`Transaction too large: ${a.length} > ${Vr}`),a}get keys(){return Fe(this.instructions.length===1),this.instructions[0].keys.map(n=>n.pubkey)}get programId(){return Fe(this.instructions.length===1),this.instructions[0].programId}get data(){return Fe(this.instructions.length===1),this.instructions[0].data}static from(n){let r=[...n];const e=kn(r);let u=[];for(let a=0;a<e;a++){const f=ln(r,0,Er);u.push(En.encode(be.Buffer.from(f)))}return jo.populate(Gr.from(r),u)}static populate(n,r=[]){const e=new jo;return e.recentBlockhash=n.recentBlockhash,n.header.numRequiredSignatures>0&&(e.feePayer=n.accountKeys[0]),r.forEach((u,a)=>{const f={signature:u==En.encode(Jm)?null:En.decode(u),publicKey:n.accountKeys[a]};e.signatures.push(f)}),n.instructions.forEach(u=>{const a=u.accounts.map(f=>{const g=n.accountKeys[f];return{pubkey:g,isSigner:e.signatures.some(l=>l.publicKey.toString()===g.toString())||n.isAccountSigner(f),isWritable:n.isAccountWritable(f)}});e.instructions.push(new ha({keys:a,programId:n.accountKeys[u.programIdIndex],data:En.decode(u.data)}))}),e._message=n,e._json=e.toJSON(),e}}class zo{get version(){return this.message.version}constructor(n,r){if(this.signatures=void 0,this.message=void 0,r!==void 0)Fe(r.length===n.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=r;else{const e=[];for(let u=0;u<n.header.numRequiredSignatures;u++)e.push(new Uint8Array(Er));this.signatures=e}this.message=n}serialize(){const n=this.message.serialize(),r=Array();Un(r,this.signatures.length);const e=dt.struct([dt.blob(r.length,"encodedSignaturesLength"),dt.seq(Ym(),this.signatures.length,"signatures"),dt.blob(n.length,"serializedMessage")]),u=new Uint8Array(2048),a=e.encode({encodedSignaturesLength:new Uint8Array(r),signatures:this.signatures,serializedMessage:n},u);return u.slice(0,a)}static deserialize(n){if(n[0]===ef)return this.deserializeV1(n);let r=[...n];const e=[],u=kn(r);for(let f=0;f<u;f++)e.push(new Uint8Array(ln(r,0,Er)));const a=Yo.deserialize(new Uint8Array(r));return new zo(a,e)}static deserializeV1(n){const r=n[1],e=r*Er,u=n.length-e;Fe(u>0,"Expected transaction to have enough bytes for its signatures");const a=Yo.deserialize(n.slice(0,u)),f=[];for(let g=0;g<r;g++){const l=u+g*Er;f.push(n.slice(l,l+Er))}return new zo(a,f)}sign(n){const r=this.message.serialize(),e=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const u of n){const a=e.findIndex(f=>f.equals(u.publicKey));Fe(a>=0,`Cannot sign with non signer key ${u.publicKey.toBase58()}`),this.signatures[a]=Xc(r,u.secretKey)}}addSignature(n,r){Fe(r.byteLength===64,"Signature must be 64 bytes long");const u=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(a=>a.equals(n));Fe(u>=0,`Can not add signature; \`${n.toBase58()}\` is not required to sign this transaction`),this.signatures[u]=r}}new ve("SysvarC1ock11111111111111111111111111111111"),new ve("SysvarEpochSchedu1e111111111111111111111111"),new ve("Sysvar1nstructions1111111111111111111111111"),new ve("SysvarRecentB1ockHashes11111111111111111111"),new ve("SysvarRent111111111111111111111111111111111"),new ve("SysvarRewards111111111111111111111111111111"),new ve("SysvarS1otHashes111111111111111111111111111"),new ve("SysvarS1otHistory11111111111111111111111111"),new ve("SysvarStakeHistory1111111111111111111111111");const of=dt.nu64("lamportsPerSignature");dt.struct([dt.u32("version"),dt.u32("state"),Ae("authorizedPubkey"),Ae("nonce"),dt.struct([of],"feeCalculator")]).span;function li(t){const n=dt.blob(8,t),r=n.decode.bind(n),e=n.encode.bind(n),u=n,a=qg();return u.decode=(f,g)=>{const l=r(f,g);return a.decode(l)},u.encode=(f,g,l)=>{const E=a.encode(f);return e(E,g,l)},u}Object.freeze({Create:{index:0,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports"),dt.ns64("space"),Ae("programId")])},Assign:{index:1,layout:dt.struct([dt.u32("instruction"),Ae("programId")])},Transfer:{index:2,layout:dt.struct([dt.u32("instruction"),li("lamports")])},CreateWithSeed:{index:3,layout:dt.struct([dt.u32("instruction"),Ae("base"),fi("seed"),dt.ns64("lamports"),dt.ns64("space"),Ae("programId")])},AdvanceNonceAccount:{index:4,layout:dt.struct([dt.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:dt.struct([dt.u32("instruction"),Ae("authorized")])},AuthorizeNonceAccount:{index:7,layout:dt.struct([dt.u32("instruction"),Ae("authorized")])},Allocate:{index:8,layout:dt.struct([dt.u32("instruction"),dt.ns64("space")])},AllocateWithSeed:{index:9,layout:dt.struct([dt.u32("instruction"),Ae("base"),fi("seed"),dt.ns64("space"),Ae("programId")])},AssignWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),Ae("base"),fi("seed"),Ae("programId")])},TransferWithSeed:{index:11,layout:dt.struct([dt.u32("instruction"),li("lamports"),fi("seed"),Ae("programId")])},UpgradeNonceAccount:{index:12,layout:dt.struct([dt.u32("instruction")])}}),new ve("11111111111111111111111111111111"),new ve("BPFLoader2111111111111111111111111111111111"),dt.struct([dt.u32("typeIndex"),li("deactivationSlot"),dt.nu64("lastExtendedSlot"),dt.u8("lastExtendedStartIndex"),dt.u8(),dt.seq(Ae(),dt.offset(dt.u8(),-1),"authority")]);const Xe=ki(Js(ve),qt(),t=>new ve(t)),sf=Qs([qt(),ze("base64")]),pa=ki(Js(be.Buffer),sf,t=>be.Buffer.from(t[0],"base64"));function af(t){return Tn([Ht({jsonrpc:ze("2.0"),id:qt(),result:t}),Ht({jsonrpc:ze("2.0"),id:qt(),error:Ht({code:si(),message:qt(),data:ae(im())})})])}const Qm=af(si());function He(t){return ki(af(t),Qm,n=>"error"in n?n:{...n,result:Mi(n.result,t)})}function jn(t){return He(Ht({context:Ht({slot:St()}),value:t}))}function Ko(t){return Ht({context:Ht({slot:St()}),value:t})}const t3=Ht({foundation:St(),foundationTerm:St(),initial:St(),taper:St(),terminal:St()});He(ie(te(Ht({epoch:St(),effectiveSlot:St(),amount:St(),postBalance:St(),commission:ae(te(St()))}))));const e3=ie(Ht({slot:St(),prioritizationFee:St()})),n3=Ht({total:St(),validator:St(),foundation:St(),epoch:St()}),r3=Ht({epoch:St(),slotIndex:St(),slotsInEpoch:St(),absoluteSlot:St(),blockHeight:ae(St()),transactionCount:ae(St())}),i3=Ht({slotsPerEpoch:St(),leaderScheduleSlotOffset:St(),warmup:tr(),firstNormalEpoch:St(),firstNormalSlot:St()}),o3=Cc(qt(),ie(St())),Yr=te(Tn([Ht({}),qt()])),s3=Ht({err:Yr}),a3=ze("receivedSignature");Ht({"solana-core":qt(),"feature-set":ae(St())});const u3=Ht({program:qt(),programId:Xe,parsed:si()}),c3=Ht({programId:Xe,accounts:ie(Xe),data:qt()});jn(Ht({err:te(Tn([Ht({}),qt()])),logs:te(ie(qt())),accounts:ae(te(ie(te(Ht({executable:tr(),owner:qt(),lamports:St(),data:ie(qt()),rentEpoch:ae(St())}))))),unitsConsumed:ae(St()),returnData:ae(te(Ht({programId:qt(),data:Qs([qt(),ze("base64")])}))),innerInstructions:ae(te(ie(Ht({index:St(),instructions:ie(Tn([u3,c3]))}))))})),jn(Ht({byIdentity:Cc(qt(),ie(St())),range:Ht({firstSlot:St(),lastSlot:St()})})),He(t3),He(n3),He(e3),He(r3),He(i3),He(o3),He(St()),jn(Ht({total:St(),circulating:St(),nonCirculating:St(),nonCirculatingAccounts:ie(Xe)}));const f3=Ht({amount:qt(),uiAmount:te(St()),decimals:St(),uiAmountString:ae(qt())});jn(ie(Ht({address:Xe,amount:qt(),uiAmount:te(St()),decimals:St(),uiAmountString:ae(qt())}))),jn(ie(Ht({pubkey:Xe,account:Ht({executable:tr(),owner:Xe,lamports:St(),data:pa,rentEpoch:St()})})));const va=Ht({program:qt(),parsed:si(),space:St()});jn(ie(Ht({pubkey:Xe,account:Ht({executable:tr(),owner:Xe,lamports:St(),data:va,rentEpoch:St()})}))),jn(ie(Ht({lamports:St(),address:Xe})));const ga=Ht({executable:tr(),owner:Xe,lamports:St(),data:pa,rentEpoch:St()});Ht({pubkey:Xe,account:ga});const l3=ki(Tn([Js(be.Buffer),va]),Tn([sf,va]),t=>Array.isArray(t)?Mi(t,pa):t),d3=Ht({executable:tr(),owner:Xe,lamports:St(),data:l3,rentEpoch:St()});Ht({pubkey:Xe,account:d3}),Ht({state:Tn([ze("active"),ze("inactive"),ze("activating"),ze("deactivating")]),active:St(),inactive:St()}),He(ie(Ht({signature:qt(),slot:St(),err:Yr,memo:te(qt()),blockTime:ae(te(St()))}))),He(ie(Ht({signature:qt(),slot:St(),err:Yr,memo:te(qt()),blockTime:ae(te(St()))}))),Ht({subscription:St(),result:Ko(ga)});const h3=Ht({pubkey:Xe,account:ga});Ht({subscription:St(),result:Ko(h3)});const p3=Ht({parent:St(),slot:St(),root:St()});Ht({subscription:St(),result:p3});const v3=Tn([Ht({type:Tn([ze("firstShredReceived"),ze("completed"),ze("optimisticConfirmation"),ze("root")]),slot:St(),timestamp:St()}),Ht({type:ze("createdBank"),parent:St(),slot:St(),timestamp:St()}),Ht({type:ze("frozen"),slot:St(),timestamp:St(),stats:Ht({numTransactionEntries:St(),numSuccessfulTransactions:St(),numFailedTransactions:St(),maxTransactionsPerEntry:St()})}),Ht({type:ze("dead"),slot:St(),timestamp:St(),err:qt()})]);Ht({subscription:St(),result:v3}),Ht({subscription:St(),result:Ko(Tn([s3,a3]))}),Ht({subscription:St(),result:St()}),Ht({pubkey:qt(),gossip:te(qt()),tpu:te(qt()),rpc:te(qt()),version:te(qt())});const uf=Ht({votePubkey:qt(),nodePubkey:qt(),activatedStake:St(),epochVoteAccount:tr(),epochCredits:ie(Qs([St(),St(),St()])),commission:St(),lastVote:St(),rootSlot:te(St())});He(Ht({current:ie(uf),delinquent:ie(uf)}));const g3=Tn([ze("processed"),ze("confirmed"),ze("finalized")]),m3=Ht({slot:St(),confirmations:te(St()),err:Yr,confirmationStatus:ae(g3)});jn(ie(te(m3))),He(St());const cf=Ht({accountKey:Xe,writableIndexes:ie(St()),readonlyIndexes:ie(St())}),ff=Ht({computeUnitLimit:te(St()),heapSize:te(St()),loadedAccountsDataSizeLimit:te(St()),priorityFee:te(St())}),ma=Ht({signatures:ie(qt()),message:Ht({accountKeys:ie(qt()),header:Ht({numRequiredSignatures:St(),numReadonlySignedAccounts:St(),numReadonlyUnsignedAccounts:St()}),instructions:ie(Ht({accounts:ie(St()),data:qt(),programIdIndex:St()})),recentBlockhash:qt(),addressTableLookups:ae(ie(cf)),transactionConfig:ae(te(ff))})}),lf=Ht({pubkey:Xe,signer:tr(),writable:tr(),source:ae(Tn([ze("transaction"),ze("lookupTable")]))}),df=Ht({accountKeys:ie(lf),signatures:ie(qt())}),hf=Ht({parsed:si(),program:qt(),programId:Xe}),pf=Ht({accounts:ie(Xe),data:qt(),programId:Xe}),y3=Tn([pf,hf]),w3=Tn([Ht({parsed:si(),program:qt(),programId:qt()}),Ht({accounts:ie(qt()),data:qt(),programId:qt()})]),vf=ki(y3,w3,t=>"accounts"in t?Mi(t,pf):Mi(t,hf)),gf=Ht({signatures:ie(qt()),message:Ht({accountKeys:ie(lf),instructions:ie(vf),recentBlockhash:qt(),addressTableLookups:ae(te(ie(cf))),transactionConfig:ae(te(ff))})}),Wo=Ht({accountIndex:St(),mint:qt(),owner:ae(qt()),programId:ae(qt()),uiTokenAmount:f3}),mf=Ht({writable:ie(Xe),readonly:ie(Xe)}),Zo=Ht({err:Yr,fee:St(),innerInstructions:ae(te(ie(Ht({index:St(),instructions:ie(Ht({accounts:ie(St()),data:qt(),programIdIndex:St()}))})))),preBalances:ie(St()),postBalances:ie(St()),logMessages:ae(te(ie(qt()))),preTokenBalances:ae(te(ie(Wo))),postTokenBalances:ae(te(ie(Wo))),loadedAddresses:ae(mf),computeUnitsConsumed:ae(St()),costUnits:ae(St())}),ya=Ht({err:Yr,fee:St(),innerInstructions:ae(te(ie(Ht({index:St(),instructions:ie(vf)})))),preBalances:ie(St()),postBalances:ie(St()),logMessages:ae(te(ie(qt()))),preTokenBalances:ae(te(ie(Wo))),postTokenBalances:ae(te(ie(Wo))),loadedAddresses:ae(mf),computeUnitsConsumed:ae(St()),costUnits:ae(St())}),di=Tn([ze(0),ze(1),ze("legacy")]),jr=Ht({pubkey:qt(),lamports:St(),postBalance:te(St()),rewardType:te(qt()),commission:ae(te(St()))});He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),transactions:ie(Ht({transaction:ma,meta:te(Zo),version:ae(di)})),rewards:ae(ie(jr)),blockTime:te(St()),blockHeight:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),rewards:ae(ie(jr)),blockTime:te(St()),blockHeight:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),transactions:ie(Ht({transaction:df,meta:te(Zo),version:ae(di)})),rewards:ae(ie(jr)),blockTime:te(St()),blockHeight:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),transactions:ie(Ht({transaction:gf,meta:te(ya),version:ae(di)})),rewards:ae(ie(jr)),blockTime:te(St()),blockHeight:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),transactions:ie(Ht({transaction:df,meta:te(ya),version:ae(di)})),rewards:ae(ie(jr)),blockTime:te(St()),blockHeight:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),rewards:ae(ie(jr)),blockTime:te(St()),blockHeight:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),transactions:ie(Ht({transaction:ma,meta:te(Zo)})),rewards:ae(ie(jr)),blockTime:te(St())}))),He(te(Ht({blockhash:qt(),previousBlockhash:qt(),parentSlot:St(),signatures:ie(qt()),blockTime:te(St())}))),He(te(Ht({slot:St(),meta:te(Zo),blockTime:ae(te(St())),transaction:ma,version:ae(di)}))),He(te(Ht({slot:St(),transaction:gf,meta:te(ya),blockTime:ae(te(St())),version:ae(di)}))),jn(Ht({blockhash:qt(),lastValidBlockHeight:St()})),jn(tr());const _3=Ht({slot:St(),numTransactions:St(),numSlots:St(),samplePeriodSecs:St()});He(ie(_3)),jn(te(Ht({feeCalculator:Ht({lamportsPerSignature:St()})}))),He(qt()),He(qt());const E3=Ht({err:Yr,logs:ie(qt()),signature:qt()});Ht({result:Ko(E3),subscription:St()}),Object.freeze({CreateLookupTable:{index:0,layout:dt.struct([dt.u32("instruction"),li("recentSlot"),dt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:dt.struct([dt.u32("instruction")])},ExtendLookupTable:{index:2,layout:dt.struct([dt.u32("instruction"),li(),dt.seq(Ae(),dt.offset(dt.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:dt.struct([dt.u32("instruction")])},CloseLookupTable:{index:4,layout:dt.struct([dt.u32("instruction")])}}),new ve("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:dt.struct([dt.u8("instruction"),dt.u32("units"),dt.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:dt.struct([dt.u8("instruction"),dt.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:dt.struct([dt.u8("instruction"),dt.u32("units")])},SetComputeUnitPrice:{index:3,layout:dt.struct([dt.u8("instruction"),li("microLamports")])}}),new ve("ComputeBudget111111111111111111111111111111"),dt.struct([dt.u8("numSignatures"),dt.u8("padding"),dt.u16("signatureOffset"),dt.u16("signatureInstructionIndex"),dt.u16("publicKeyOffset"),dt.u16("publicKeyInstructionIndex"),dt.u16("messageDataOffset"),dt.u16("messageDataSize"),dt.u16("messageInstructionIndex")]),new ve("Ed25519SigVerify111111111111111111111111111"),Hm.utils.isValidPrivateKey,dt.struct([dt.u8("numSignatures"),dt.u16("signatureOffset"),dt.u8("signatureInstructionIndex"),dt.u16("ethAddressOffset"),dt.u8("ethAddressInstructionIndex"),dt.u16("messageDataOffset"),dt.u16("messageDataSize"),dt.u8("messageInstructionIndex"),dt.blob(20,"ethAddress"),dt.blob(64,"signature"),dt.u8("recoveryId")]),new ve("KeccakSecp256k11111111111111111111111111111");var yf;new ve("StakeConfig11111111111111111111111111111111");class wa{constructor(n,r,e){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=n,this.epoch=r,this.custodian=e}}yf=wa,wa.default=new yf(0,0,ve.default),Object.freeze({Initialize:{index:0,layout:dt.struct([dt.u32("instruction"),jm(),zm()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Ae("newAuthorized"),dt.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:dt.struct([dt.u32("instruction")])},Split:{index:3,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},Withdraw:{index:4,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},Deactivate:{index:5,layout:dt.struct([dt.u32("instruction")])},Merge:{index:7,layout:dt.struct([dt.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:dt.struct([dt.u32("instruction"),Ae("newAuthorized"),dt.u32("stakeAuthorizationType"),fi("authoritySeed"),Ae("authorityOwner")])}}),new ve("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:dt.struct([dt.u32("instruction"),Km()])},Authorize:{index:1,layout:dt.struct([dt.u32("instruction"),Ae("newAuthorized"),dt.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:dt.struct([dt.u32("instruction"),dt.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:dt.struct([dt.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:dt.struct([dt.u32("instruction"),Wm()])}}),new ve("Vote111111111111111111111111111111111111111"),new ve("Va1idator1nfo111111111111111111111111111111"),Ht({name:qt(),website:ae(qt()),details:ae(qt()),iconUrl:ae(qt()),keybaseUsername:ae(qt())}),new ve("Vote111111111111111111111111111111111111111"),dt.struct([Ae("nodePubkey"),Ae("authorizedWithdrawer"),dt.u8("commission"),dt.nu64(),dt.seq(dt.struct([dt.nu64("slot"),dt.u32("confirmationCount")]),dt.offset(dt.u32(),-8),"votes"),dt.u8("rootSlotValid"),dt.nu64("rootSlot"),dt.nu64(),dt.seq(dt.struct([dt.nu64("epoch"),Ae("authorizedVoter")]),dt.offset(dt.u32(),-8),"authorizedVoters"),dt.struct([dt.seq(dt.struct([Ae("authorizedPubkey"),dt.nu64("epochOfLastAuthorizedSwitch"),dt.nu64("targetEpoch")]),32,"buf"),dt.nu64("idx"),dt.u8("isEmpty")],"priorVoters"),dt.nu64(),dt.seq(dt.struct([dt.nu64("epoch"),dt.nu64("credits"),dt.nu64("prevCredits")]),dt.offset(dt.u32(),-8),"epochCredits"),dt.struct([dt.nu64("slot"),dt.nu64("timestamp")],"lastTimestamp")]);const R3=Object.freeze(Object.defineProperty({__proto__:null,FeeCalculatorLayout:of,Lockup:wa,MAX_SEED_LENGTH:Qc,Message:Gr,MessageAccountKeys:ci,MessageV0:Pi,MessageV1:Go,PACKET_DATA_SIZE:Vr,PUBLIC_KEY_LENGTH:Yn,PublicKey:ve,SIGNATURE_LENGTH_IN_BYTES:Er,SOLANA_SCHEMA:Ui,Struct:qc,Transaction:jo,TransactionInstruction:ha,VERSION_1_MESSAGE_PREFIX:ef,VERSION_PREFIX_MASK:Di,VersionedMessage:Yo,VersionedTransaction:zo},Symbol.toStringTag,{value:"Module"}));function b3(t){if(t.length>=255)throw new TypeError("Alphabet too long");const n=new Uint8Array(256);for(let E=0;E<n.length;E++)n[E]=255;for(let E=0;E<t.length;E++){const T=t.charAt(E),L=T.charCodeAt(0);if(n[L]!==255)throw new TypeError(T+" is ambiguous");n[L]=E}const r=t.length,e=t.charAt(0),u=Math.log(r)/Math.log(256),a=Math.log(256)/Math.log(r);function f(E){if(E instanceof Uint8Array||(ArrayBuffer.isView(E)?E=new Uint8Array(E.buffer,E.byteOffset,E.byteLength):Array.isArray(E)&&(E=Uint8Array.from(E))),!(E instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(E.length===0)return"";let T=0,L=0,N=0;const x=E.length;for(;N!==x&&E[N]===0;)N++,T++;const B=(x-N)*a+1>>>0,D=new Uint8Array(B);for(;N!==x;){let J=E[N],Z=0;for(let nt=B-1;(J!==0||Z<L)&&nt!==-1;nt--,Z++)J+=256*D[nt]>>>0,D[nt]=J%r>>>0,J=J/r>>>0;if(J!==0)throw new Error("Non-zero carry");L=Z,N++}let j=B-L;for(;j!==B&&D[j]===0;)j++;let z=e.repeat(T);for(;j<B;++j)z+=t.charAt(D[j]);return z}function g(E){if(typeof E!="string")throw new TypeError("Expected String");if(E.length===0)return new Uint8Array;let T=0,L=0,N=0;for(;E[T]===e;)L++,T++;const x=(E.length-T)*u+1>>>0,B=new Uint8Array(x);for(;T<E.length;){const J=E.charCodeAt(T);if(J>255)return;let Z=n[J];if(Z===255)return;let nt=0;for(let ht=x-1;(Z!==0||nt<N)&&ht!==-1;ht--,nt++)Z+=r*B[ht]>>>0,B[ht]=Z%256>>>0,Z=Z/256>>>0;if(Z!==0)throw new Error("Non-zero carry");N=nt,T++}let D=x-N;for(;D!==x&&B[D]===0;)D++;const j=new Uint8Array(L+(x-D));let z=L;for(;D!==x;)j[z++]=B[D++];return j}function l(E){const T=g(E);if(T)return T;throw new Error("Non-base"+r+" character")}return{encode:f,decodeUnsafe:g,decode:l}}var A3="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const S3=b3(A3),$o=R3,Rr=S3;var _a={exports:{}},wf;function I3(){return wf||(wf=1,(function(t){var n=(function(){var r=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",a={};function f(l,E){if(!a[l]){a[l]={};for(var T=0;T<l.length;T++)a[l][l.charAt(T)]=T}return a[l][E]}var g={compressToBase64:function(l){if(l==null)return"";var E=g._compress(l,6,function(T){return e.charAt(T)});switch(E.length%4){default:case 0:return E;case 1:return E+"===";case 2:return E+"==";case 3:return E+"="}},decompressFromBase64:function(l){return l==null?"":l==""?null:g._decompress(l.length,32,function(E){return f(e,l.charAt(E))})},compressToUTF16:function(l){return l==null?"":g._compress(l,15,function(E){return r(E+32)})+" "},decompressFromUTF16:function(l){return l==null?"":l==""?null:g._decompress(l.length,16384,function(E){return l.charCodeAt(E)-32})},compressToUint8Array:function(l){for(var E=g.compress(l),T=new Uint8Array(E.length*2),L=0,N=E.length;L<N;L++){var x=E.charCodeAt(L);T[L*2]=x>>>8,T[L*2+1]=x%256}return T},decompressFromUint8Array:function(l){if(l==null)return g.decompress(l);for(var E=new Array(l.length/2),T=0,L=E.length;T<L;T++)E[T]=l[T*2]*256+l[T*2+1];var N=[];return E.forEach(function(x){N.push(r(x))}),g.decompress(N.join(""))},compressToEncodedURIComponent:function(l){return l==null?"":g._compress(l,6,function(E){return u.charAt(E)})},decompressFromEncodedURIComponent:function(l){return l==null?"":l==""?null:(l=l.replace(/ /g,"+"),g._decompress(l.length,32,function(E){return f(u,l.charAt(E))}))},compress:function(l){return g._compress(l,16,function(E){return r(E)})},_compress:function(l,E,T){if(l==null)return"";var L,N,x={},B={},D="",j="",z="",J=2,Z=3,nt=2,ht=[],ft=0,At=0,bt;for(bt=0;bt<l.length;bt+=1)if(D=l.charAt(bt),Object.prototype.hasOwnProperty.call(x,D)||(x[D]=Z++,B[D]=!0),j=z+D,Object.prototype.hasOwnProperty.call(x,j))z=j;else{if(Object.prototype.hasOwnProperty.call(B,z)){if(z.charCodeAt(0)<256){for(L=0;L<nt;L++)ft=ft<<1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++;for(N=z.charCodeAt(0),L=0;L<8;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1}else{for(N=1,L=0;L<nt;L++)ft=ft<<1|N,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=0;for(N=z.charCodeAt(0),L=0;L<16;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1}J--,J==0&&(J=Math.pow(2,nt),nt++),delete B[z]}else for(N=x[z],L=0;L<nt;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1;J--,J==0&&(J=Math.pow(2,nt),nt++),x[j]=Z++,z=String(D)}if(z!==""){if(Object.prototype.hasOwnProperty.call(B,z)){if(z.charCodeAt(0)<256){for(L=0;L<nt;L++)ft=ft<<1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++;for(N=z.charCodeAt(0),L=0;L<8;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1}else{for(N=1,L=0;L<nt;L++)ft=ft<<1|N,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=0;for(N=z.charCodeAt(0),L=0;L<16;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1}J--,J==0&&(J=Math.pow(2,nt),nt++),delete B[z]}else for(N=x[z],L=0;L<nt;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1;J--,J==0&&(J=Math.pow(2,nt),nt++)}for(N=2,L=0;L<nt;L++)ft=ft<<1|N&1,At==E-1?(At=0,ht.push(T(ft)),ft=0):At++,N=N>>1;for(;;)if(ft=ft<<1,At==E-1){ht.push(T(ft));break}else At++;return ht.join("")},decompress:function(l){return l==null?"":l==""?null:g._decompress(l.length,32768,function(E){return l.charCodeAt(E)})},_decompress:function(l,E,T){var L=[],N=4,x=4,B=3,D="",j=[],z,J,Z,nt,ht,ft,At,bt={val:T(0),position:E,index:1};for(z=0;z<3;z+=1)L[z]=z;for(Z=0,ht=Math.pow(2,2),ft=1;ft!=ht;)nt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=E,bt.val=T(bt.index++)),Z|=(nt>0?1:0)*ft,ft<<=1;switch(Z){case 0:for(Z=0,ht=Math.pow(2,8),ft=1;ft!=ht;)nt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=E,bt.val=T(bt.index++)),Z|=(nt>0?1:0)*ft,ft<<=1;At=r(Z);break;case 1:for(Z=0,ht=Math.pow(2,16),ft=1;ft!=ht;)nt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=E,bt.val=T(bt.index++)),Z|=(nt>0?1:0)*ft,ft<<=1;At=r(Z);break;case 2:return""}for(L[3]=At,J=At,j.push(At);;){if(bt.index>l)return"";for(Z=0,ht=Math.pow(2,B),ft=1;ft!=ht;)nt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=E,bt.val=T(bt.index++)),Z|=(nt>0?1:0)*ft,ft<<=1;switch(At=Z){case 0:for(Z=0,ht=Math.pow(2,8),ft=1;ft!=ht;)nt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=E,bt.val=T(bt.index++)),Z|=(nt>0?1:0)*ft,ft<<=1;L[x++]=r(Z),At=x-1,N--;break;case 1:for(Z=0,ht=Math.pow(2,16),ft=1;ft!=ht;)nt=bt.val&bt.position,bt.position>>=1,bt.position==0&&(bt.position=E,bt.val=T(bt.index++)),Z|=(nt>0?1:0)*ft,ft<<=1;L[x++]=r(Z),At=x-1,N--;break;case 2:return j.join("")}if(N==0&&(N=Math.pow(2,B),B++),L[At])D=L[At];else if(At===x)D=J+J.charAt(0);else return null;j.push(D),L[x++]=J+D.charAt(0),N--,J=D,N==0&&(N=Math.pow(2,B),B++)}}};return g})();t!=null?t.exports=n:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return n})})(_a)),_a.exports}var O3=I3();const In=Ss(O3);var Ea=(t=>(t.USD="USD",t.AED="AED",t.AFN="AFN",t.ALL="ALL",t.AMD="AMD",t.ANG="ANG",t.AOA="AOA",t.ARS="ARS",t.AUD="AUD",t.AWG="AWG",t.AZN="AZN",t.BAM="BAM",t.BBD="BBD",t.BDT="BDT",t.BGN="BGN",t.BHD="BHD",t.BIF="BIF",t.BMD="BMD",t.BND="BND",t.BOB="BOB",t.BRL="BRL",t.BSD="BSD",t.BTN="BTN",t.BWP="BWP",t.BYN="BYN",t.BZD="BZD",t.CAD="CAD",t.CHF="CHF",t.CLF="CLF",t.CLP="CLP",t.CNY="CNY",t.COP="COP",t.CRC="CRC",t.CUP="CUP",t.CVE="CVE",t.CZK="CZK",t.DJF="DJF",t.DKK="DKK",t.DOP="DOP",t.DZD="DZD",t.EGP="EGP",t.ETB="ETB",t.EUR="EUR",t.FJD="FJD",t.GBP="GBP",t.GEL="GEL",t.GHS="GHS",t.GMD="GMD",t.GNF="GNF",t.GTQ="GTQ",t.GYD="GYD",t.HKD="HKD",t.HNL="HNL",t.HTG="HTG",t.HUF="HUF",t.IDR="IDR",t.ILS="ILS",t.INR="INR",t.IQD="IQD",t.IRR="IRR",t.ISK="ISK",t.JMD="JMD",t.JOD="JOD",t.JPY="JPY",t.KES="KES",t.KGS="KGS",t.KHR="KHR",t.KMF="KMF",t.KRW="KRW",t.KWD="KWD",t.KYD="KYD",t.KZT="KZT",t.LAK="LAK",t.LBP="LBP",t.LKR="LKR",t.LRD="LRD",t.LSL="LSL",t.LYD="LYD",t.MAD="MAD",t.MDL="MDL",t.MGA="MGA",t.MKD="MKD",t.MMK="MMK",t.MNT="MNT",t.MOP="MOP",t.MRU="MRU",t.MUR="MUR",t.MWK="MWK",t.MVR="MVR",t.MXN="MXN",t.MYR="MYR",t.MZN="MZN",t.NAD="NAD",t.NGN="NGN",t.NIO="NIO",t.NOK="NOK",t.NPR="NPR",t.NZD="NZD",t.OMR="OMR",t.PAB="PAB",t.PEN="PEN",t.PGK="PGK",t.PHP="PHP",t.PKR="PKR",t.PLN="PLN",t.PYG="PYG",t.QAR="QAR",t.RON="RON",t.RSD="RSD",t.RWF="RWF",t.SAR="SAR",t.SCR="SCR",t.SDG="SDG",t.SEK="SEK",t.SGD="SGD",t.SLE="SLE",t.SLL="SLL",t.SOS="SOS",t.SRD="SRD",t.STN="STN",t.SVC="SVC",t.SYP="SYP",t.SZL="SZL",t.THB="THB",t.TJS="TJS",t.TMT="TMT",t.TND="TND",t.TOP="TOP",t.TRY="TRY",t.TTD="TTD",t.TWD="TWD",t.TZS="TZS",t.UAH="UAH",t.UGX="UGX",t.UYU="UYU",t.UZS="UZS",t.VND="VND",t.VUV="VUV",t.WST="WST",t.XAF="XAF",t.XCD="XCD",t.XOF="XOF",t.XPF="XPF",t.YER="YER",t.ZAR="ZAR",t.ZMW="ZMW",t.ZWL="ZWL",t.CDF="CDF",t.ERN="ERN",t.FKP="FKP",t.KPW="KPW",t.RUB="RUB",t.SBD="SBD",t.SHP="SHP",t.SSP="SSP",t.VES="VES",t))(Ea||{});const N3={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"},_f={USD:"USD",EUR:"EUR",GBP:"GBP",BRL:"BRL",CAD:"CAD"};function T3(t){return t in _f}const Ef={USD:"USD",EUR:"EUR",GBP:"GBP",CAD:"CAD",BRL:"BRL"};function x3(t){return t in Ef}const L3=new Set(["CLF"]),C3=new Set(["BHD","IQD","JOD","KWD","LYD","OMR","TND"]),M3=new Set(["BIF","CLP","DJF","GNF","ISK","JPY","KMF","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"]);function B3(t){return L3.has(t)?4:C3.has(t)?3:M3.has(t)?0:2}function k3(t,n){return t.currency===n}function U3(t){return{base:t.to,rate:1/t.rate,to:t.base}}var D3={269:function(t,n,r){r.r(n),r.d(n,{ERROR_API_KEY_EXPIRED:function(){return As},ERROR_API_KEY_INVALID:function(){return bs},ERROR_API_KEY_MISSING:function(){return Rs},ERROR_BAD_REQUEST_FORMAT:function(){return Ad},ERROR_BAD_RESPONSE_FORMAT:function(){return Qa},ERROR_CLIENT_TIMEOUT:function(){return Xa},ERROR_CSP_BLOCK:function(){return tu},ERROR_FORBIDDEN_ENDPOINT:function(){return H0},ERROR_FORBIDDEN_HEADER:function(){return Td},ERROR_FORBIDDEN_ORIGIN:function(){return Nd},ERROR_GENERAL_SERVER_FAILURE:function(){return Sd},ERROR_INSTALLATION_METHOD_RESTRICTED:function(){return F0},ERROR_INTEGRATION_FAILURE:function(){return V0},ERROR_INVALID_ENDPOINT:function(){return eu},ERROR_INVALID_PROXY_INTEGRATION_HEADERS:function(){return z0},ERROR_INVALID_PROXY_INTEGRATION_SECRET:function(){return j0},ERROR_NETWORK_ABORT:function(){return Ja},ERROR_NETWORK_CONNECTION:function(){return qa},ERROR_NETWORK_RESTRICTED:function(){return Y0},ERROR_RATE_LIMIT:function(){return Od},ERROR_SERVER_TIMEOUT:function(){return Id},ERROR_SUBSCRIPTION_NOT_ACTIVE:function(){return D0},ERROR_TOKEN_EXPIRED:function(){return hw},ERROR_TOKEN_INVALID:function(){return dw},ERROR_TOKEN_MISSING:function(){return lw},ERROR_UNSUPPORTED_VERSION:function(){return P0},ERROR_WRONG_REGION:function(){return U0},default:function(){return pw},defaultEndpoint:function(){return hs},defaultTlsEndpoint:function(){return ps},load:function(){return _l},makeBotdModule:function(){return tw},makeConsoleDebugModule:function(){return cw},makeIdentificationModule:function(){return sw},makeLatencyReportModule:function(){return uw},makeRemoteDebugModule:function(){return fw},makeValidationModule:function(){return aw}});var e=r(635);function u(i,s){return new Promise((function(o){return setTimeout(o,i,s)}))}function a(i){return!!i&&typeof i.then=="function"}function f(i,s){try{var o=i();a(o)?o.then((function(c){return s(!0,c)}),(function(c){return s(!1,c)})):s(!0,o)}catch(c){s(!1,c)}}function g(i,s,o){return o===void 0&&(o=16),(0,e.sH)(this,void 0,void 0,(function(){var c,p,y,w;return(0,e.YH)(this,(function(_){switch(_.label){case 0:c=Array(i.length),p=Date.now(),y=0,_.label=1;case 1:return y<i.length?(c[y]=s(i[y],y),(w=Date.now())>=p+o?(p=w,[4,new Promise((function(v){var I=new MessageChannel;I.port1.onmessage=function(){return v()},I.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:_.sent(),_.label=3;case 3:return++y,[3,1];case 4:return[2,c]}}))}))}function l(i){return i.then(void 0,(function(){})),i}function E(i){return parseInt(i)}function T(i){return parseFloat(i)}function L(i,s){return typeof i=="number"&&isNaN(i)?s:i}function N(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function x(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,y=65535&i[1],w=s[0]>>>16,_=65535&s[0],v=s[1]>>>16,I=0,M=0,C=0,X=0;C+=(X+=y+(65535&s[1]))>>>16,X&=65535,M+=(C+=p+v)>>>16,C&=65535,I+=(M+=c+_)>>>16,M&=65535,I+=o+w,I&=65535,i[0]=I<<16|M,i[1]=C<<16|X}function B(i,s){var o=i[0]>>>16,c=65535&i[0],p=i[1]>>>16,y=65535&i[1],w=s[0]>>>16,_=65535&s[0],v=s[1]>>>16,I=65535&s[1],M=0,C=0,X=0,tt=0;X+=(tt+=y*I)>>>16,tt&=65535,C+=(X+=p*I)>>>16,X&=65535,C+=(X+=y*v)>>>16,X&=65535,M+=(C+=c*I)>>>16,C&=65535,M+=(C+=p*v)>>>16,C&=65535,M+=(C+=y*_)>>>16,C&=65535,M+=o*I+c*v+p*_+y*w,M&=65535,i[0]=M<<16|C,i[1]=X<<16|tt}function D(i,s){var o=i[0];(s%=64)==32?(i[0]=i[1],i[1]=o):s<32?(i[0]=o<<s|i[1]>>>32-s,i[1]=i[1]<<s|o>>>32-s):(s-=32,i[0]=i[1]<<s|o>>>32-s,i[1]=o<<s|i[1]>>>32-s)}function j(i,s){(s%=64)!=0&&(s<32?(i[0]=i[1]>>>32-s,i[1]=i[1]<<s):(i[0]=i[1]<<s-32,i[1]=0))}function z(i,s){i[0]^=s[0],i[1]^=s[1]}var J=[4283543511,3981806797],Z=[3301882366,444984403];function nt(i){var s=[0,i[0]>>>1];z(i,s),B(i,J),s[1]=i[0]>>>1,z(i,s),B(i,Z),s[1]=i[0]>>>1,z(i,s)}var ht=[2277735313,289559509],ft=[1291169091,658871167],At=[0,5],bt=[0,1390208809],at=[0,944331445];function lt(i){return typeof i!="function"}function mt(i,s,o,c){var p=Object.keys(i).filter((function(w){return!(function(_,v){for(var I=0,M=_.length;I<M;++I)if(_[I]===v)return!0;return!1})(o,w)})),y=l(g(p,(function(w){return(function(_,v){var I=l(new Promise((function(M){var C=Date.now();f(_.bind(null,v),(function(){for(var X=[],tt=0;tt<arguments.length;tt++)X[tt]=arguments[tt];var et=Date.now()-C;if(!X[0])return M((function(){return{error:X[1],duration:et}}));var it=X[1];if(lt(it))return M((function(){return{value:it,duration:et}}));M((function(){return new Promise((function(ut){var gt=Date.now();f(it,(function(){for(var Rt=[],vt=0;vt<arguments.length;vt++)Rt[vt]=arguments[vt];var Et=et+Date.now()-gt;if(!Rt[0])return ut({error:Rt[1],duration:Et});ut({value:Rt[1],duration:Et})}))}))}))}))})));return function(){return I.then((function(M){return M()}))}})(i[w],s)}),c));return function(){return(0,e.sH)(this,void 0,void 0,(function(){var w,_,v,I;return(0,e.YH)(this,(function(M){switch(M.label){case 0:return[4,y];case 1:return[4,g(M.sent(),(function(C){return l(C())}),c)];case 2:return w=M.sent(),[4,Promise.all(w)];case 3:for(_=M.sent(),v={},I=0;I<p.length;++I)v[p[I]]=_[I];return[2,v]}}))}))}}function wt(i,s){var o=function(c){return lt(c)?s(c):function(){var p=c();return a(p)?p.then(s):s(p)}};return function(c){var p=i(c);return a(p)?p.then(o):o(p)}}function P(){var i=window,s=navigator;return N(["MSCSSMatrix"in i,"msSetImmediate"in i,"msIndexedDB"in i,"msMaxTouchPoints"in s,"msPointerEnabled"in s])>=4}function d(){var i=window,s=navigator;return N(["msWriteProfilerMark"in i,"MSStream"in i,"msLaunchUri"in s,"msSaveBlob"in s])>=3&&!P()}function S(){var i=window,s=navigator;return N(["webkitPersistentStorage"in s,"webkitTemporaryStorage"in s,(s.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in i,"BatteryManager"in i,"webkitMediaStream"in i,"webkitSpeechGrammar"in i])>=5}function U(){var i=window;return N(["ApplePayError"in i,"CSSPrimitiveValue"in i,"Counter"in i,navigator.vendor.indexOf("Apple")===0,"RGBColor"in i,"WebKitMediaKeys"in i])>=4}function K(){var i=window,s=i.HTMLElement,o=i.Document;return N(["safari"in i,!("ongestureend"in i),!("TouchEvent"in i),!("orientation"in i),s&&!("autocapitalize"in s.prototype),o&&"pointerLockElement"in o.prototype])>=4}function q(){var i,s,o=window;return N(["buildID"in navigator,"MozAppearance"in((s=(i=document.documentElement)===null||i===void 0?void 0:i.style)!==null&&s!==void 0?s:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4}function rt(){var i=document;return i.fullscreenElement||i.msFullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||null}function ct(){var i=S(),s=q(),o=window,c=navigator,p="connection";return i?N([!("SharedWorker"in o),c[p]&&"ontypechange"in c[p],!("sinkId"in new Audio)])>=2:!!s&&N(["onorientationchange"in o,"orientation"in o,/android/i.test(c.appVersion)])>=2}function W(){var i=navigator,s=window,o=Audio.prototype,c=s.visualViewport;return N(["srLatency"in o,"srChannelCount"in o,"devicePosture"in i,c&&"segments"in c,"getTextInformation"in Image.prototype])>=3}function h(){var i=window,s=i.OfflineAudioContext||i.webkitOfflineAudioContext;if(!s)return-2;if(U()&&!K()&&!(function(){var I=window;return N(["DOMRectList"in I,"RTCPeerConnectionIceEvent"in I,"SVGGeometryElement"in I,"ontransitioncancel"in I])>=3})())return-1;var o=new s(1,5e3,44100),c=o.createOscillator();c.type="triangle",c.frequency.value=1e4;var p=o.createDynamicsCompressor();p.threshold.value=-50,p.knee.value=40,p.ratio.value=12,p.attack.value=0,p.release.value=.25,c.connect(p),p.connect(o.destination),c.start(0);var y=(function(I){var M=function(){};return[new Promise((function(C,X){var tt=!1,et=0,it=0;I.oncomplete=function(Rt){return C(Rt.renderedBuffer)};var ut=function(){setTimeout((function(){return X(R("timeout"))}),Math.min(500,it+5e3-Date.now()))},gt=function(){try{var Rt=I.startRendering();switch(a(Rt)&&l(Rt),I.state){case"running":it=Date.now(),tt&&ut();break;case"suspended":document.hidden||et++,tt&&et>=3?X(R("suspended")):setTimeout(gt,500)}}catch(vt){X(vt)}};gt(),M=function(){tt||(tt=!0,it>0&&ut())}})),M]})(o),w=y[0],_=y[1],v=l(w.then((function(I){return(function(M){for(var C=0,X=0;X<M.length;++X)C+=Math.abs(M[X]);return C})(I.getChannelData(0).subarray(4500))}),(function(I){if(I.name==="timeout"||I.name==="suspended")return-3;throw I})));return function(){return _(),v}}function R(i){var s=new Error(i);return s.name=i,s}function Y(i,s,o){var c,p,y;return o===void 0&&(o=50),(0,e.sH)(this,void 0,void 0,(function(){var w,_;return(0,e.YH)(this,(function(v){switch(v.label){case 0:w=document,v.label=1;case 1:return w.body?[3,3]:[4,u(o)];case 2:return v.sent(),[3,1];case 3:_=w.createElement("iframe"),v.label=4;case 4:return v.trys.push([4,,10,11]),[4,new Promise((function(I,M){var C=!1,X=function(){C=!0,I()};_.onload=X,_.onerror=function(it){C=!0,M(it)};var tt=_.style;tt.setProperty("display","block","important"),tt.position="absolute",tt.top="0",tt.left="0",tt.visibility="hidden",s&&"srcdoc"in _?_.srcdoc=s:_.src="about:blank",w.body.appendChild(_);var et=function(){var it,ut;C||(((ut=(it=_.contentWindow)===null||it===void 0?void 0:it.document)===null||ut===void 0?void 0:ut.readyState)==="complete"?X():setTimeout(et,10))};et()}))];case 5:v.sent(),v.label=6;case 6:return!((p=(c=_.contentWindow)===null||c===void 0?void 0:c.document)===null||p===void 0)&&p.body?[3,8]:[4,u(o)];case 7:return v.sent(),[3,6];case 8:return[4,i(_,_.contentWindow)];case 9:return[2,v.sent()];case 10:return(y=_.parentNode)===null||y===void 0||y.removeChild(_),[7];case 11:return[2]}}))}))}function $(i){for(var s=(function(I){for(var M,C,X="Unexpected syntax '".concat(I,"'"),tt=/^\s*([a-z-]*)(.*)$/i.exec(I),et=tt[1]||void 0,it={},ut=/([.:#][\w-]+|\[.+?\])/gi,gt=function(Gt,Yt){it[Gt]=it[Gt]||[],it[Gt].push(Yt)};;){var Rt=ut.exec(tt[2]);if(!Rt)break;var vt=Rt[0];switch(vt[0]){case".":gt("class",vt.slice(1));break;case"#":gt("id",vt.slice(1));break;case"[":var Et=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(vt);if(!Et)throw new Error(X);gt(Et[1],(C=(M=Et[4])!==null&&M!==void 0?M:Et[5])!==null&&C!==void 0?C:"");break;default:throw new Error(X)}}return[et,it]})(i),o=s[0],c=s[1],p=document.createElement(o??"div"),y=0,w=Object.keys(c);y<w.length;y++){var _=w[y],v=c[_].join(" ");_==="style"?pt(p.style,v):p.setAttribute(_,v)}return p}function pt(i,s){for(var o=0,c=s.split(";");o<c.length;o++){var p=c[o],y=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(p);if(y){var w=y[1],_=y[2],v=y[4];i.setProperty(w,_,v||"")}}}var It=["monospace","sans-serif","serif"],Vt=["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 Zt(i){var s,o,c,p=!1,y=(function(){var v=document.createElement("canvas");return v.width=1,v.height=1,[v,v.getContext("2d")]})(),w=y[0],_=y[1];return(function(v,I){return!(!I||!v.toDataURL)})(w,_)?(p=(function(v){return v.rect(0,0,10,10),v.rect(2,2,6,6),!v.isPointInPath(5,5,"evenodd")})(_),s=(function(v,I){(function(C,X){C.width=240,C.height=60,X.textBaseline="alphabetic",X.fillStyle="#f60",X.fillRect(100,1,62,20),X.fillStyle="#069",X.font='11pt "Times New Roman"';var tt="Cwm fjordbank gly ".concat("😃");X.fillText(tt,2,15),X.fillStyle="rgba(102, 204, 0, 0.2)",X.font="18pt Arial",X.fillText(tt,4,45)})(v,I);var M=le(v);return M!==le(v)?["unstable","unstable"]:((function(C,X){C.width=122,C.height=110,X.globalCompositeOperation="multiply";for(var tt=0,et=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];tt<et.length;tt++){var it=et[tt],ut=it[0],gt=it[1],Rt=it[2];X.fillStyle=ut,X.beginPath(),X.arc(gt,Rt,40,0,2*Math.PI,!0),X.closePath(),X.fill()}X.fillStyle="#f9c",X.arc(60,60,60,0,2*Math.PI,!0),X.arc(60,60,20,0,2*Math.PI,!0),X.fill("evenodd")})(v,I),[le(v),M])})(w,_),o=s[0],c=s[1]):o=c="unsupported",{winding:p,geometry:o,text:c}}function le(i){return i.toDataURL()}function we(){var i=screen,s=function(c){return L(E(c),null)},o=[s(i.width),s(i.height)];return o.sort().reverse(),o}var ge,Se;function Ee(){var i=this;return(function(){if(Se===void 0){var s=function(){var o=_e();Ve(o)?Se=setTimeout(s,2500):(ge=o,Se=void 0)};s()}})(),function(){return(0,e.sH)(i,void 0,void 0,(function(){var s;return(0,e.YH)(this,(function(o){switch(o.label){case 0:return Ve(s=_e())?ge?[2,(0,e.fX)([],ge,!0)]:rt()?[4,(c=document,(c.exitFullscreen||c.msExitFullscreen||c.mozCancelFullScreen||c.webkitExitFullscreen).call(c))]:[3,2]:[3,2];case 1:o.sent(),s=_e(),o.label=2;case 2:return Ve(s)||(ge=s),[2,s]}var c}))}))}}function _e(){var i=screen;return[L(T(i.availTop),null),L(T(i.width)-T(i.availWidth)-L(T(i.availLeft),0),null),L(T(i.height)-T(i.availHeight)-L(T(i.availTop),0),null),L(T(i.availLeft),null)]}function Ve(i){for(var s=0;s<4;++s)if(i[s])return!1;return!0}function Ie(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w,_,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:for(o=document,c=o.createElement("div"),p=new Array(i.length),y={},m(c),v=0;v<i.length;++v)(w=$(i[v])).tagName==="DIALOG"&&w.show(),m(_=o.createElement("div")),_.appendChild(w),c.appendChild(_),p[v]=w;I.label=1;case 1:return o.body?[3,3]:[4,u(50)];case 2:return I.sent(),[3,1];case 3:o.body.appendChild(c);try{for(v=0;v<i.length;++v)p[v].offsetParent||(y[i[v]]=!0)}finally{(s=c.parentNode)===null||s===void 0||s.removeChild(c)}return[2,y]}}))}))}function m(i){i.style.setProperty("visibility","hidden","important"),i.style.setProperty("display","block","important")}function k(i){return matchMedia("(inverted-colors: ".concat(i,")")).matches}function H(i){return matchMedia("(forced-colors: ".concat(i,")")).matches}function Q(i){return matchMedia("(prefers-contrast: ".concat(i,")")).matches}function yt(i){return matchMedia("(prefers-reduced-motion: ".concat(i,")")).matches}function _t(i){return matchMedia("(prefers-reduced-transparency: ".concat(i,")")).matches}function Lt(i){return matchMedia("(dynamic-range: ".concat(i,")")).matches}var zt=Math,ee=function(){return 0},F={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},b=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]),O=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"],G="WEBGL_debug_renderer_info";function st(i){if(i.webgl)return i.webgl.context;var s,o=document.createElement("canvas");o.addEventListener("webglCreateContextError",(function(){return s=void 0}));for(var c=0,p=["webgl","experimental-webgl"];c<p.length;c++){var y=p[c];try{s=o.getContext(y)}catch{}if(s)break}return i.webgl={context:s},s}function Ct(i,s,o){var c=i.getShaderPrecisionFormat(i[s],i[o]);return c?[c.rangeMin,c.rangeMax,c.precision]:[]}function Mt(i){return Object.keys(i.__proto__).filter(Ut)}function Ut(i){return typeof i=="string"&&!i.match(/[^A-Z0-9_x]/)}function kt(){return q()}function ot(i){return typeof i.getParameter=="function"}var Kt=function(){var i=this;return Y((function(s,o){var c=o.document;return(0,e.sH)(i,void 0,void 0,(function(){var p,y,w,_,v,I,M,C,X,tt,et;return(0,e.YH)(this,(function(it){for((p=c.body).style.fontSize="48px",(y=c.createElement("div")).style.setProperty("visibility","hidden","important"),w={},_={},v=function(ut){var gt=c.createElement("span"),Rt=gt.style;return Rt.position="absolute",Rt.top="0",Rt.left="0",Rt.fontFamily=ut,gt.textContent="mmMwWLliI0O&1",y.appendChild(gt),gt},I=function(ut,gt){return v("'".concat(ut,"',").concat(gt))},M=function(){for(var ut={},gt=function(Et){ut[Et]=It.map((function(Gt){return I(Et,Gt)}))},Rt=0,vt=Vt;Rt<vt.length;Rt++)gt(vt[Rt]);return ut},C=function(ut){return It.some((function(gt,Rt){return ut[Rt].offsetWidth!==w[gt]||ut[Rt].offsetHeight!==_[gt]}))},X=It.map(v),tt=M(),p.appendChild(y),et=0;et<It.length;et++)w[It[et]]=X[et].offsetWidth,_[It[et]]=X[et].offsetHeight;return[2,Vt.filter((function(ut){return C(tt[ut])}))]}))}))}))},he=function(i){var s=(i===void 0?{}:i).debug;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w;return(0,e.YH)(this,(function(_){switch(_.label){case 0:return U()||ct()?(v=atob,o={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',v("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",v("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",v("LnNwb25zb3JpdA=="),".ylamainos",v("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",v("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",v("LmhlYWRlci1ibG9ja2VkLWFk"),v("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",v("I2FkXzMwMFgyNTA="),v("I2Jhbm5lcmZsb2F0MjI="),v("I2NhbXBhaWduLWJhbm5lcg=="),v("I0FkLUNvbnRlbnQ=")],adGuardChinese:[v("LlppX2FkX2FfSA=="),v("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",v("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),v("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",v("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",v("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",v("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),v("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),v("LmFkZ29vZ2xl"),v("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[v("YW1wLWF1dG8tYWRz"),v("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",v("I2FkX2ludmlld19hcmVh")],adGuardRussian:[v("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),v("LnJlY2xhbWE="),'div[id^="smi2adblock"]',v("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[v("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),v("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",v("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),v("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),v("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",v("I3Jla2xhbWk="),v("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),v("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),v("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[v("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",v("LndpZGdldF9wb19hZHNfd2lkZ2V0"),v("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",v("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[v("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),v("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",v("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",v("I3Jla2xhbW5pLWJveA=="),v("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",v("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[v("I2FkdmVydGVudGll"),v("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",v("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",v("LnNwb25zb3JsaW5rZ3J1ZW4="),v("I3dlcmJ1bmdza3k="),v("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),v("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[v("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",v("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[v("LnJla2xhbW9zX3RhcnBhcw=="),v("LnJla2xhbW9zX251b3JvZG9z"),v("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),v("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),v("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[v("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:[v("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),v("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",v("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[v("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),v("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),v("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",v("LmFkX19tYWlu"),v("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[v("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),v("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[v("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),v("I2xpdmVyZUFkV3JhcHBlcg=="),v("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),v("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[v("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",v("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),v("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),v("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[v("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),v("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),v("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",v("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),v("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),v("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),v("ZGl2I3NrYXBpZWNfYWQ=")],ro:[v("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),v("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),v("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[v("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),v("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),v("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",v("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),v("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",v("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},c=Object.keys(o),[4,Ie((w=[]).concat.apply(w,c.map((function(I){return o[I]}))))]):[2,void 0];case 1:return p=_.sent(),s&&(function(I,M){for(var C="DOM blockers debug:\n```",X=0,tt=Object.keys(I);X<tt.length;X++){var et=tt[X];C+=`
|
|
8
|
+
`.concat(et,":");for(var it=0,ut=I[et];it<ut.length;it++){var gt=ut[it];C+=`
|
|
9
|
+
`.concat(M[gt]?"🚫":"➡️"," ").concat(gt)}}console.log("".concat(C,"\n```"))})(o,p),(y=c.filter((function(I){var M=o[I];return N(M.map((function(C){return p[C]})))>.6*M.length}))).sort(),[2,y]}var v}))}))},ne=function(){return i===void 0&&(i=4e3),Y((function(s,o){var c=o.document,p=c.body,y=p.style;y.width="".concat(i,"px"),y.webkitTextSizeAdjust=y.textSizeAdjust="none",S()?p.style.zoom="".concat(1/o.devicePixelRatio):U()&&(p.style.zoom="reset");var w=c.createElement("div");return w.textContent=(0,e.fX)([],Array(i/20|0),!0).map((function(){return"word"})).join(" "),p.appendChild(w),(function(_,v){for(var I={},M={},C=0,X=Object.keys(F);C<X.length;C++){var tt=X[C],et=F[tt],it=et[0],ut=it===void 0?{}:it,gt=et[1],Rt=gt===void 0?"mmMwWLliI0fiflO&1":gt,vt=_.createElement("span");vt.textContent=Rt,vt.style.whiteSpace="nowrap";for(var Et=0,Gt=Object.keys(ut);Et<Gt.length;Et++){var Yt=Gt[Et],Wt=ut[Yt];Wt!==void 0&&(vt.style[Yt]=Wt)}I[tt]=vt,v.append(_.createElement("br"),vt)}for(var Tt=0,Ft=Object.keys(F);Tt<Ft.length;Tt++)M[tt=Ft[Tt]]=I[tt].getBoundingClientRect().width;return M})(c,p)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var i},oe=function(){return navigator.oscpu},de=function(){var i,s=navigator,o=[],c=s.language||s.userLanguage||s.browserLanguage||s.systemLanguage;if(c!==void 0&&o.push([c]),Array.isArray(s.languages))S()&&N([!("MediaSettingsRange"in(i=window)),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3||o.push(s.languages);else if(typeof s.languages=="string"){var p=s.languages;p&&o.push(p.split(","))}return o},fe=function(){return window.screen.colorDepth},ue=function(){return L(T(navigator.deviceMemory),void 0)},Ke=function(){return L(E(navigator.hardwareConcurrency),void 0)},me=function(){var i,s=(i=window.Intl)===null||i===void 0?void 0:i.DateTimeFormat;if(s){var o=new s().resolvedOptions().timeZone;if(o)return o}var c,p=(c=new Date().getFullYear(),-Math.max(T(new Date(c,0,1).getTimezoneOffset()),T(new Date(c,6,1).getTimezoneOffset())));return"UTC".concat(p>=0?"+":"").concat(p)},Re=function(){try{return!!window.sessionStorage}catch{return!0}},un=function(){try{return!!window.localStorage}catch{return!0}},Me=function(){return!!window.openDatabase},De=function(){return navigator.cpuClass},lr=function(){var i=navigator.platform;return i==="MacIntel"&&U()&&!K()?(function(){if(navigator.platform==="iPad")return!0;var s=screen,o=s.width/s.height;return N(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,o>.65&&o<1.53])>=2})()?"iPad":"iPhone":i},Ye=function(){var i=navigator.plugins;if(i){for(var s=[],o=0;o<i.length;++o){var c=i[o];if(c){for(var p=[],y=0;y<c.length;++y){var w=c[y];p.push({type:w.type,suffixes:w.suffixes})}s.push({name:c.name,description:c.description,mimeTypes:p})}}return s}},Ge=function(){var i,s=navigator,o=0;s.maxTouchPoints!==void 0?o=E(s.maxTouchPoints):s.msMaxTouchPoints!==void 0&&(o=s.msMaxTouchPoints);try{document.createEvent("TouchEvent"),i=!0}catch{i=!1}return{maxTouchPoints:o,touchEvent:i,touchStart:"ontouchstart"in window}},zr=function(){return navigator.vendor||""},qe=function(){for(var i=[],s=0,o=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];s<o.length;s++){var c=o[s],p=window[c];p&&typeof p=="object"&&i.push(c)}return i.sort()},Je=function(){var i=document;try{i.cookie="cookietest=1; SameSite=Strict;";var s=i.cookie.indexOf("cookietest=")!==-1;return i.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",s}catch{return!1}},os=function(){for(var i=0,s=["rec2020","p3","srgb"];i<s.length;i++){var o=s[i];if(matchMedia("(color-gamut: ".concat(o,")")).matches)return o}},Qe=function(){return!!k("inverted")||!k("none")&&void 0},tn=function(){return!!H("active")||!H("none")&&void 0},ss=function(){if(matchMedia("(min-monochrome: 0)").matches){for(var i=0;i<=100;++i)if(matchMedia("(max-monochrome: ".concat(i,")")).matches)return i;throw new Error("Too high value")}},en=function(){return Q("no-preference")?0:Q("high")||Q("more")?1:Q("low")||Q("less")?-1:Q("forced")?10:void 0},nn=function(){return!!yt("reduce")||!yt("no-preference")&&void 0},ji=function(){return!!_t("reduce")||!_t("no-preference")&&void 0},zi=function(){return!!Lt("high")||!Lt("standard")&&void 0},Ki=function(){var i,s=zt.acos||ee,o=zt.acosh||ee,c=zt.asin||ee,p=zt.asinh||ee,y=zt.atanh||ee,w=zt.atan||ee,_=zt.sin||ee,v=zt.sinh||ee,I=zt.cos||ee,M=zt.cosh||ee,C=zt.tan||ee,X=zt.tanh||ee,tt=zt.exp||ee,et=zt.expm1||ee,it=zt.log1p||ee;return{acos:s(.12312423423423424),acosh:o(1e308),acoshPf:(i=1e154,zt.log(i+zt.sqrt(i*i-1))),asin:c(.12312423423423424),asinh:p(1),asinhPf:zt.log(1+zt.sqrt(2)),atanh:y(.5),atanhPf:zt.log(3)/2,atan:w(.5),sin:_(-1e300),sinh:v(1),sinhPf:zt.exp(1)-1/zt.exp(1)/2,cos:I(10.000000000123),cosh:M(1),coshPf:(zt.exp(1)+1/zt.exp(1))/2,tan:C(-1e300),tanh:X(1),tanhPf:(zt.exp(2)-1)/(zt.exp(2)+1),exp:tt(1),expm1:et(1),expm1Pf:zt.exp(1)-1,log1p:it(10),log1pPf:zt.log(11),powPI:zt.pow(zt.PI,-100)}},Wi=function(){return navigator.pdfViewerEnabled},Zi=function(){var i=new Float32Array(1),s=new Uint8Array(i.buffer);return i[0]=1/0,i[0]=i[0]-i[0],s[3]},$i=function(){var i,s=document.createElement("a"),o=(i=s.attributionSourceId)!==null&&i!==void 0?i:s.attributionsourceid;return o===void 0?void 0:String(o)},Xi=function(){if(!ct()&&!U())return-2;if(!window.AudioContext)return-1;var i=new AudioContext().baseLatency;return i==null?-1:isFinite(i)?i:-3},qi=function(){if(!window.Intl)return-1;var i=window.Intl.DateTimeFormat;if(!i)return-2;var s=i().resolvedOptions().locale;return s||s===""?s:-3},Ji=function(i){var s,o,c,p,y,w,_=st(i.cache);if(!_)return-1;if(!ot(_))return-2;var v=kt()?null:_.getExtension(G);return{version:((s=_.getParameter(_.VERSION))===null||s===void 0?void 0:s.toString())||"",vendor:((o=_.getParameter(_.VENDOR))===null||o===void 0?void 0:o.toString())||"",vendorUnmasked:v?(c=_.getParameter(v.UNMASKED_VENDOR_WEBGL))===null||c===void 0?void 0:c.toString():"",renderer:((p=_.getParameter(_.RENDERER))===null||p===void 0?void 0:p.toString())||"",rendererUnmasked:v?(y=_.getParameter(v.UNMASKED_RENDERER_WEBGL))===null||y===void 0?void 0:y.toString():"",shadingLanguageVersion:((w=_.getParameter(_.SHADING_LANGUAGE_VERSION))===null||w===void 0?void 0:w.toString())||""}},Qi=function(i){var s=st(i.cache);if(!s)return-1;if(!ot(s))return-2;var o=s.getSupportedExtensions(),c=s.getContextAttributes(),p=[],y=[],w=[],_=[],v=[];if(c)for(var I=0,M=Object.keys(c);I<M.length;I++){var C=M[I];y.push("".concat(C,"=").concat(c[C]))}for(var X=0,tt=Mt(s);X<tt.length;X++){var et=s[Gt=tt[X]];w.push("".concat(Gt,"=").concat(et).concat(b.has(et)?"=".concat(s.getParameter(et)):""))}if(o)for(var it=0,ut=o;it<ut.length;it++){var gt=ut[it];if(!(gt===G&&kt()||gt==="WEBGL_polygon_mode"&&(S()||U()))){var Rt=s.getExtension(gt);if(Rt)for(var vt=0,Et=Mt(Rt);vt<Et.length;vt++){var Gt;et=Rt[Gt=Et[vt]],_.push("".concat(Gt,"=").concat(et).concat(O.has(et)?"=".concat(s.getParameter(et)):""))}else p.push(gt)}}for(var Yt=0,Wt=A;Yt<Wt.length;Yt++)for(var Tt=Wt[Yt],Ft=0,$t=V;Ft<$t.length;Ft++){var Qt=$t[Ft],re=Ct(s,Tt,Qt);v.push("".concat(Tt,".").concat(Qt,"=").concat(re.join(",")))}return _.sort(),w.sort(),{contextAttributes:y,parameters:w,shaderPrecisions:v,extensions:o,extensionParameters:_,unsupportedExtensions:p}},pn=function(i,s){var o=(function(X){for(var tt=new Uint8Array(X.length),et=0;et<X.length;et++){var it=X.charCodeAt(et);if(it>127)return new TextEncoder().encode(X);tt[et]=it}return tt})(i);s=s||0;var c,p=[0,o.length],y=p[1]%16,w=p[1]-y,_=[0,s],v=[0,s],I=[0,0],M=[0,0];for(c=0;c<w;c+=16)I[0]=o[c+4]|o[c+5]<<8|o[c+6]<<16|o[c+7]<<24,I[1]=o[c]|o[c+1]<<8|o[c+2]<<16|o[c+3]<<24,M[0]=o[c+12]|o[c+13]<<8|o[c+14]<<16|o[c+15]<<24,M[1]=o[c+8]|o[c+9]<<8|o[c+10]<<16|o[c+11]<<24,B(I,ht),D(I,31),B(I,ft),z(_,I),D(_,27),x(_,v),B(_,At),x(_,bt),B(M,ft),D(M,33),B(M,ht),z(v,M),D(v,31),x(v,_),B(v,At),x(v,at);I[0]=0,I[1]=0,M[0]=0,M[1]=0;var C=[0,0];switch(y){case 15:C[1]=o[c+14],j(C,48),z(M,C);case 14:C[1]=o[c+13],j(C,40),z(M,C);case 13:C[1]=o[c+12],j(C,32),z(M,C);case 12:C[1]=o[c+11],j(C,24),z(M,C);case 11:C[1]=o[c+10],j(C,16),z(M,C);case 10:C[1]=o[c+9],j(C,8),z(M,C);case 9:C[1]=o[c+8],z(M,C),B(M,ft),D(M,33),B(M,ht),z(v,M);case 8:C[1]=o[c+7],j(C,56),z(I,C);case 7:C[1]=o[c+6],j(C,48),z(I,C);case 6:C[1]=o[c+5],j(C,40),z(I,C);case 5:C[1]=o[c+4],j(C,32),z(I,C);case 4:C[1]=o[c+3],j(C,24),z(I,C);case 3:C[1]=o[c+2],j(C,16),z(I,C);case 2:C[1]=o[c+1],j(C,8),z(I,C);case 1:C[1]=o[c],z(I,C),B(I,ht),D(I,31),B(I,ft),z(_,I)}return z(_,p),z(v,p),x(_,v),x(v,_),nt(_),nt(v),x(_,v),x(v,_),("00000000"+(_[0]>>>0).toString(16)).slice(-8)+("00000000"+(_[1]>>>0).toString(16)).slice(-8)+("00000000"+(v[0]>>>0).toString(16)).slice(-8)+("00000000"+(v[1]>>>0).toString(16)).slice(-8)},to="phantomjs",eo="selenium",no="headless_chrome",Be=(function(i){function s(o,c){var p=i.call(this,c)||this;return p.state=o,p.name="BotdError",Object.setPrototypeOf(p,s.prototype),p}return(0,e.C6)(s,i),s})(Error);function ro(i,s){return i.indexOf(s)!==-1}function Dn(i,s){return i.indexOf(s)!==-1}function yi(i){return Object.getOwnPropertyNames(i)}function wi(i){for(var s=[],o=1;o<arguments.length;o++)s[o-1]=arguments[o];for(var c=function(_){if(typeof _=="string"){if(ro(i,_))return{value:!0}}else if((function(v,I){if("find"in v)return v.find(I);for(var M=0;M<v.length;M++)if(I(v[M]))return v[M]})(i,(function(v){return _.test(v)}))!=null)return{value:!0}},p=0,y=s;p<y.length;p++){var w=c(y[p]);if(typeof w=="object")return w.value}return!1}function io(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function Fa(){var i,s,o=window,c=navigator;return io(["webkitPersistentStorage"in c,"webkitTemporaryStorage"in c,c.vendor.indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in o,"BatteryManager"in o,"webkitMediaStream"in o,"webkitSpeechGrammar"in o])>=5?"chromium":io(["ApplePayError"in o,"CSSPrimitiveValue"in o,"Counter"in o,c.vendor.indexOf("Apple")===0,"getStorageUpdates"in c,"WebKitMediaKeys"in o])>=4?"webkit":io(["buildID"in navigator,"MozAppearance"in((s=(i=document.documentElement)===null||i===void 0?void 0:i.style)!==null&&s!==void 0?s:{}),"onmozfullscreenchange"in o,"mozInnerScreenX"in o,"CSSMozDocumentRule"in o,"CanvasCaptureMediaStream"in o])>=4?"gecko":"unknown"}var Mn={android:function(){var i=Fa(),s=i==="chromium",o=i==="gecko";if(!s&&!o)return!1;var c=window;return io(["onorientationchange"in c,"orientation"in c,s&&!("SharedWorker"in c),o&&/android/i.test(navigator.appVersion)])>=2},browserKind:function(){var i,s=(i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase();return Dn(s,"edg/")?"edge":Dn(s,"trident")||Dn(s,"msie")?"internet_explorer":Dn(s,"wechat")?"wechat":Dn(s,"firefox")?"firefox":Dn(s,"opera")||Dn(s,"opr")?"opera":Dn(s,"chrome")?"chrome":Dn(s,"safari")?"safari":"unknown"},browserEngineKind:Fa,documentFocus:function(){return document.hasFocus!==void 0&&document.hasFocus()},userAgent:function(){return navigator.userAgent},appVersion:function(){var i=navigator.appVersion;if(i==null)throw new Be(-1,"navigator.appVersion is undefined");return i},rtt:function(){if(navigator.connection===void 0)throw new Be(-1,"navigator.connection is undefined");if(navigator.connection.rtt===void 0)throw new Be(-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 Be(-1,"navigator.plugins is undefined");if(navigator.plugins.length===void 0)throw new Be(-3,"navigator.plugins.length is undefined");return navigator.plugins.length},pluginsArray:function(){if(navigator.plugins===void 0)throw new Be(-1,"navigator.plugins is undefined");if(window.PluginArray===void 0)throw new Be(-1,"window.PluginArray is undefined");return navigator.plugins instanceof PluginArray},errorTrace:function(){try{null[0]()}catch(i){if(i instanceof Error&&i.stack!=null)return i.stack.toString()}throw new Be(-3,"errorTrace signal unexpected behaviour")},productSub:function(){var i=navigator.productSub;if(i===void 0)throw new Be(-1,"navigator.productSub is undefined");return i},windowExternal:function(){if(window.external===void 0)throw new Be(-1,"window.external is undefined");var i=window.external;if(typeof i.toString!="function")throw new Be(-2,"window.external.toString is not a function");return i.toString()},mimeTypesConsistent:function(){if(navigator.mimeTypes===void 0)throw new Be(-1,"navigator.mimeTypes is undefined");for(var i=navigator.mimeTypes,s=Object.getPrototypeOf(i)===MimeTypeArray.prototype,o=0;o<i.length;o++)s&&(s=Object.getPrototypeOf(i[o])===MimeType.prototype);return s},evalLength:function(){return eval.toString().length},webGL:function(){var i=document.createElement("canvas");if(typeof i.getContext!="function")throw new Be(-2,"HTMLCanvasElement.getContext is not a function");var s=i.getContext("webgl");if(s===null)throw new Be(-4,"WebGLRenderingContext is null");if(typeof s.getParameter!="function")throw new Be(-2,"WebGLRenderingContext.getParameter is not a function");return{vendor:s.getParameter(s.VENDOR),renderer:s.getParameter(s.RENDERER)}},webDriver:function(){if(navigator.webdriver==null)throw new Be(-1,"navigator.webdriver is undefined");return navigator.webdriver},languages:function(){var i,s=navigator,o=[],c=s.language||s.userLanguage||s.browserLanguage||s.systemLanguage;if(c!==void 0&&o.push([c]),Array.isArray(s.languages))Fa()==="chromium"&&io([!("MediaSettingsRange"in(i=window)),"RTCEncodedAudioFrame"in i,""+i.Intl=="[object Intl]",""+i.Reflect=="[object Reflect]"])>=3||o.push(s.languages);else if(typeof s.languages=="string"){var p=s.languages;p&&o.push(p.split(","))}return o},notificationPermissions:function(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s;return(0,e.YH)(this,(function(o){switch(o.label){case 0:if(window.Notification===void 0)throw new Be(-1,"window.Notification is undefined");if(navigator.permissions===void 0)throw new Be(-1,"navigator.permissions is undefined");if(typeof(i=navigator.permissions).query!="function")throw new Be(-2,"navigator.permissions.query is not a function");o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.query({name:"notifications"})];case 2:return s=o.sent(),[2,window.Notification.permission==="denied"&&s.state==="prompt"];case 3:throw o.sent(),new Be(-3,"notificationPermissions signal unexpected behaviour");case 4:return[2]}}))}))},documentElementKeys:function(){if(document.documentElement===void 0)throw new Be(-1,"document.documentElement is undefined");var i=document.documentElement;if(typeof i.getAttributeNames!="function")throw new Be(-2,"document.documentElement.getAttributeNames is not a function");return i.getAttributeNames()},functionBind:function(){if(Function.prototype.bind===void 0)throw new Be(-2,"Function.prototype.bind is undefined");return Function.prototype.bind.toString()},process:function(){var i=window.process,s="window.process is";if(i===void 0)throw new Be(-1,"".concat(s," undefined"));if(i&&typeof i!="object")throw new Be(-3,"".concat(s," not an object"));return i},distinctiveProps:function(){var i,s,o=((i={}).awesomium={window:["awesomium"]},i.cef={window:["RunPerfTest"]},i.cefsharp={window:["CefSharp"]},i.coachjs={window:["emit"]},i.fminer={window:["fmget_targets"]},i.geb={window:["geb"]},i.nightmarejs={window:["__nightmare","nightmare"]},i.phantomas={window:["__phantomas"]},i[to]={window:["callPhantom","_phantom"]},i.rhino={window:["spawn"]},i[eo]={window:["_Selenium_IDE_Recorder","_selenium","calledSelenium",/^([a-z]){3}_.*_(Array|Promise|Symbol)$/],document:["__selenium_evaluate","selenium-evaluate","__selenium_unwrapped"]},i.webdriverio={window:["wdioElectron"]},i.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"]},i[no]={window:["domAutomation","domAutomationController"]},i),c={},p=yi(window),y=[];for(s in window.document!==void 0&&(y=yi(window.document)),o){var w=o[s];if(w!==void 0){var _=w.window!==void 0&&wi.apply(void 0,(0,e.fX)([p],w.window,!1)),v=!(w.document===void 0||!y.length)&&wi.apply(void 0,(0,e.fX)([y],w.document,!1));c[s]=_||v}}return c}};function oo(i,s){return new Promise((function(o){return Ha(o,i,s)}))}function Ha(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=Date.now()+s,y=0,w=function(){y=setTimeout((function(){Date.now()<p?w():i.apply(void 0,o)}),p-Date.now())};return w(),function(){return clearTimeout(y)}}function as(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];var p=document,y="visibilitychange",w=function(){return p.hidden?I():v()},_=(function(M,C,X){for(var tt=[],et=3;et<arguments.length;et++)tt[et-3]=arguments[et];var it,ut=!1,gt=M,Rt=0,vt=function(){ut||it||(Rt=Date.now(),it=Ha((function(){ut=!0,X.apply(void 0,tt)}),gt))};return C&&vt(),{start:vt,stop:function(){!ut&&it&&(it(),it=void 0,gt-=Date.now()-Rt)}}})(s,!p.hidden,(function(){p.removeEventListener(y,w),i.apply(void 0,o)})),v=_.start,I=_.stop;return p.addEventListener(y,w),function(){p.removeEventListener(y,w),I()}}function Pn(i,s){return new Promise((function(o){return as(o,i,s)}))}function s0(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,i()];case 1:return[2,c.sent()];case 2:return o=c.sent(),console.error(o),[2,s];case 3:return[2]}}))}))}function Va(i,s){return new Promise((function(o,c){var p=!1;s?.then((function(){return p=!0}),(function(){return p=!0})),(typeof i=="function"?Va(Promise.resolve(),s).then(i):i).then((function(y){p||o(y)}),(function(y){p||c(y)}))}))}function so(i){return i.then(void 0,(function(){})),i}function zn(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:try{o=s().then((function(_){return c=[!0,_]}),(function(_){return c=[!1,_]}))}catch(_){c=[!1,_]}return y=i.then((function(_){return p=[!0,_]}),(function(_){return p=[!1,_]})),[4,Promise.race([o,y])];case 1:return w.sent(),[2,function(){if(c){if(c[0])return c[1];throw c[1]}if(p){if(p[0])return p[1];throw p[1]}throw new Error("96375")}]}}))}))}function a0(){var i,s,o=new Promise((function(c,p){i=c,s=p}));return o.resolve=i,o.reject=s,o}function us(i){return i instanceof Error||i!==null&&typeof i=="object"&&"name"in i}function u0(i,s){var o=0;return function(){return Math.random()*Math.min(s,i*Math.pow(2,o++))}}function Kr(i){return i instanceof ArrayBuffer?new Uint8Array(i):new Uint8Array(i.buffer,i.byteOffset,i.byteLength)}function t4(i,s){return Object.prototype.hasOwnProperty.call(i,s)}function _i(i,s,o,c){return i.addEventListener(s,o,c),function(){return i.removeEventListener(s,o,c)}}var Ga,Ya="0123456789abcdef";function c0(i,s){if(s.length==0||s.length>i.length)return-1;for(var o=0;o<i.length;o++){for(var c=0,p=0;p<s.length;p++){if(i[o+p]!==s[p]){c=0;break}c++}if(c==s.length)return o}return-1}function Sr(i){for(var s=new Uint8Array(i.length),o=0;o<i.length;o++){var c=i.charCodeAt(o);if(c>127)return new TextEncoder().encode(i);s[o]=c}return s}function cs(i){if(typeof TextDecoder=="function"){var s=new TextDecoder().decode(i);if(s)return s}var o=Kr(i);return decodeURIComponent(escape(String.fromCharCode.apply(null,o)))}function Ei(i){return i.reduce((function(s,o){return s+(o?1:0)}),0)}function f0(i,s){return(i-s+256)%256}function er(i){var s=Kr(i);return btoa(String.fromCharCode.apply(null,s))}function fs(i){for(var s=atob(i),o=s.length,c=new Uint8Array(o),p=0;p<o;p++)c[p]=s.charCodeAt(p);return c}function nr(i){return l0(Sr(i))}function l0(i){var s=Kr(i);Ga=Ga||(function(){for(var p,y=new Uint32Array(256),w=0;w<256;w++){p=w;for(var _=0;_<8;_++)p=1&p?3988292384^p>>>1:p>>>1;y[w]=p}return y})();for(var o=-1,c=0;c<s.length;c++)o=o>>>8^Ga[255&(o^s[c])];return~o>>>0}function d0(i){return i===void 0?void 0:"".concat(i)}function e4(i,s){if(i!==void 0){if(!Array.isArray(i))throw new TypeError("Expected ".concat(s," to be an array, a ").concat((function(o){return typeof o=="object"?o?Object.prototype.toString.call(o):"null":typeof o})(i)," is given"));return i.map(String)}}function n4(i){for(var s=new Uint8Array(i.length/2),o=0;o<i.length;o+=2)s[o/2]=parseInt(i[o]+i[o+1],16);return s}function ls(i){if(i instanceof Array)return i.map(ls);if(i&&typeof i=="object"){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o];s[p]=ls(i[p])}return s}return i}function r4(i,s){for(var o=[],c=Object.getOwnPropertyNames(i),p=0;p<c.length;p++){var y=c[p],w=nr(y);s.has(w)&&o.push({i:p,n:y})}return{l:c.length,p:o}}var ja=new Uint32Array(2);function ds(){return crypto?(crypto.getRandomValues(ja),(1048576*ja[0]+(1048575&ja[1]))/4503599627370496):Math.random()}function h0(i,s,o){o===void 0&&(o=ds);for(var c="",p=0;p<i;p++)c+=s.charAt(o()*s.length);return c}function ao(i){return h0(i,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function p0(){return[8,4,4,4,12].map((function(i){return h0(i,Ya)})).join("-")}var v0=new Uint8Array(1);function i4(){return crypto.getRandomValues(v0),v0[0]}function g0(){return new TypeError("Can't pick from nothing")}function o4(i,s){return Math.floor(ds()*(s-i+1))+i}function m0(i){return s4(i)?(function(s){if(s.length===0)throw g0();return s[Math.floor(ds()*s.length)]})(i):(function(s){for(var o=ds(),c=0,p=0,y=0,w=s;y<w.length;y++)c+=C=w[y][1];for(var _=0,v=s;_<v.length;_++){var I=v[_],M=I[0],C=I[1];if(o>=p/c&&o<(p+C)/c)return M;p+=C}throw g0()})(Object.entries(i))}var s4=Array.isArray,za="3.11.11",hs={default:"endpoint"},y0={default:"tEndpoint"},ps={default:"tlsEndpoint"};function w0(i){return i?{query:!0,fragment:!0}:void 0}var _0="_vid";function E0(i){switch(i){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 R0(){return{len:0,arr:new Uint8Array(128)}}function rr(i,s){A0(i,i.len+1),i.arr[i.len++]=s}function vs(i,s){A0(i,i.len+s.length),i.arr.set(s,i.len),i.len+=s.length}function b0(i){return i.arr.subarray(0,i.len)}function A0(i,s){if(i.arr.length<s){var o=new Uint8Array(Math.max(2*i.arr.length,s));o.set(i.arr),i.arr=o}}function S0(i){var s=R0(),o=new WeakSet,c=function(p){if(typeof p=="string"){var y=p.replace(y4,(function(ut){return"\\"+(k0[ut]||"u"+ut.charCodeAt(0).toString(16).padStart(4,"0"))}));return rr(s,uo),vs(s,Sr(y)),void rr(s,uo)}if(typeof p=="number"||p===!0||p===!1)return(Number.isNaN(p)||p===1/0||p===-1/0)&&(p=null),void vs(s,Sr(String(p)));if(typeof p=="object"&&p){if(o.has(p))throw new TypeError("Recursive input");o.add(p);var w=p.toJSON;if(typeof w=="function")return void c(w.call(p));if(p instanceof Number||p instanceof String)return void c(p.valueOf());var _=!0,v=function(){_?_=!1:rr(s,Ka)};if(Array.isArray(p)){rr(s,T0);for(var I=0,M=p;I<M.length;I++){var C=M[I];v(),c(C)}rr(s,x0)}else{rr(s,L0);for(var X=0,tt=Object.entries(p);X<tt.length;X++){var et=tt[X],it=et[0];a4(C=et[1])||(v(),c(it),rr(s,O0),c(C))}rr(s,C0)}o.delete(p)}else vs(s,$a)};return c(i),b0(s)}function gs(i){var s=R0(),o=Kr(i),c=0,p=function(){return I(),o[c]===uo?y():I0(o[c])?w():M($a)?(c+=$a.length,null):M(M0)?(c+=M0.length,!0):M(B0)?(c+=B0.length,!1):o[c]===T0?_():o[c]===L0?v():C()},y=function(){for(s.len=0;c++,o[c]!==uo;){if(o[c]===d4){if(c++,o[c]===Za){var tt=parseInt(cs(o.subarray(c+1,c+5)),16);vs(s,Sr(String.fromCharCode(tt))),c+=4;continue}var et=m4[o[c]];if(et){rr(s,et);continue}return C()}if(o[c]===void 0)return C();rr(s,o[c])}return c++,cs(b0(s))},w=function(){for(var tt=c;o[c]===g4||o[c]===Wa||o[c]===h4||o[c]===p4||I0(o[c]);)c++;return Number(cs(o.subarray(tt,c)))},_=function(){var tt=[];for(c++;;){if(I(),o[c]===x0){c++;break}if(tt.length){if(o[c]!==Ka)return C();c++}tt.push(p())}return tt},v=function(){var tt={},et=!0;for(c++;;){if(I(),o[c]===C0){c++;break}if(!et){if(o[c]!==Ka)return C();c++,I()}if(o[c]!==uo)return C();var it=y();if(I(),o[c]!==O0)return C();c++,Object.defineProperty(tt,it,{value:p(),configurable:!0,enumerable:!0,writable:!0}),et=!1}return tt},I=function(){for(;o[c]===u4||o[c]===l4||o[c]===f4||o[c]===c4;)c++},M=function(tt){for(var et=0;et<tt.length;et++)if(o[c+et]!==tt[et])return!1;return!0},C=function(){throw new SyntaxError("Unexpected ".concat(c<o.length?"byte ".concat(c):"end"))},X=p();return I(),o[c]!==void 0&&C(),X}function a4(i){return i===void 0||typeof i=="function"||typeof i=="symbol"}function I0(i){return i>=N0&&i<N0+10||i===v4}var uo=34,Ka=44,O0=58,u4=32,c4=9,f4=13,l4=10,d4=92,N0=48,Wa=101,Za=117,h4=69,p4=43,v4=45,g4=46,T0=91,x0=93,L0=123,C0=125,$a=new Uint8Array([110,Za,108,108]),M0=new Uint8Array([116,114,Za,Wa]),B0=new Uint8Array([102,97,108,115,Wa]),k0={'"':'"',"\\":"\\","\b":"b","\f":"f","\n":"n","\r":"r"," ":"t"},m4=(function(){for(var i=new Uint8Array(128),s=0,o=Object.entries(k0);s<o.length;s++){var c=o[s],p=c[0];i[c[1].charCodeAt(0)]=p.charCodeAt(0)}return i})(),y4=/[\x00-\x1F"\\]/g,Xa="Client timeout",qa="Network connection error",Ja="Network request aborted",Qa="Response cannot be parsed",tu="Blocked by CSP",eu="The endpoint parameter is not a valid URL";function Wr(i,s,o){return o===void 0&&(o="..."),i.length<=s?i:"".concat(i.slice(0,Math.max(0,s-o.length))).concat(o)}function Kn(i){for(var s="",o=0;o<i.length;++o)if(o>0){var c=i[o].toLowerCase();c!==i[o]?s+=" ".concat(c):s+=i[o]}else s+=i[o].toUpperCase();return s}var U0=Kn("WrongRegion"),D0=Kn("SubscriptionNotActive"),P0=Kn("UnsupportedVersion"),F0=Kn("InstallationMethodRestricted"),H0=Kn("HostnameRestricted"),V0=Kn("IntegrationFailed"),G0=Kn("VisitorNotFound"),Y0=Kn("NetworkRestricted"),j0=Kn("InvalidProxyIntegrationSecret"),z0=Kn("InvalidProxyIntegrationHeaders");function w4(i){var s;try{s=gs(i.body)}catch{}return(0,e.Cl)((0,e.Cl)({},i),{bodyData:s})}function _4(i,s,o,c){var p=c.bodyData;return p===void 0?q0(c):(function(y){return y instanceof Object&&y.v==="2"&&y.products instanceof Object})(p)?(function(y,w,_,v){var I,M=y.notifications,C=y.requestId,X=y.sealedResult,tt=y.error,et=y.products,it=(function(Yt){for(var Wt=[],Tt=0,Ft=Object.keys(Yt);Tt<Ft.length;Tt++){var $t=Yt[Ft[Tt]];$t&&Wt.push($t)}return Wt})(et);X0(M);for(var ut=0,gt=it;ut<gt.length;ut++)X0(gt[ut].notifications);if(tt)return K0(tt,C,X,_);for(var Rt=0,vt=it;Rt<vt.length;Rt++){var Et=vt[Rt].error;if(Et)return K0(Et,C,X,_)}(function(Yt,Wt,Tt){for(var Ft,$t=0,Qt=Wt;$t<Qt.length;$t++){var re=Qt[$t];(Ft=re.onResponse)===null||Ft===void 0||Ft.call(re,Yt,Tt)}})(y,w,v);var Gt=(I=et.identification)===null||I===void 0?void 0:I.data;return{result:Gt?(0,e.Cl)((0,e.Cl)({requestId:C},X===void 0?{}:{sealedResult:X}),Gt.result):W0(C,X,_)}})(p,i,s,o):q0(c)}function K0(i,s,o,c){switch(i.code){case"NotAvailableForCrawlBots":case"NotAvailableForAIBots":return Z0(s,o,!0,c);case"NotAvailableWithoutUA":return Z0(s,o,void 0,c);default:return{error:$0(E4(i),s,i),stop:i.code==="VisitorNotFound"}}}function E4(i){var s,o=i.code,c=i.message;return o===void 0?c:(s=(function(p){switch(p){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"}})(o))!==null&&s!==void 0?s:Kn(o)}function W0(i,s,o){var c={requestId:i,visitorFound:!1,visitorId:"",confidence:{score:.5,comment:"The real score is unknown"}};if(s!==void 0&&(c.sealedResult=s),!o)return c;var p="n/a";return(0,e.Cl)((0,e.Cl)({},c),{incognito:!1,browserName:p,browserVersion:p,device:p,ip:p,os:p,osVersion:p,firstSeenAt:{subscription:null,global:null},lastSeenAt:{subscription:null,global:null}})}function Z0(i,s,o,c){return{result:(0,e.Cl)((0,e.Cl)({},W0(i,s,c)),{bot:(0,e.Cl)({probability:1},o===void 0?void 0:{safe:o})})}}function $0(i,s,o){var c=new Error(i);return s!==void 0&&(c.requestId=s),o!==void 0&&(c.raw=o),c}function X0(i){i?.forEach(R4)}function R4(i){var s=i.level,o=i.message;s==="error"?console.error(o):s==="warning"?console.warn(o):console.log(o)}function q0(i){return{error:$0(Qa,void 0,{httpStatusCode:i.status,bodyBase64:er(i.body)})}}var J0="[Fingerprint Pro]";function b4(i){return i===void 0&&(i=J0),function(s){var o=console.log;switch(s.e){case 2:case 5:case 8:case 11:case 14:case 20:o=console.error;break;case 13:var c=s.result;Object.keys(c).some((function(y){return"error"in c[y]}))&&(o=console.warn);break;case 17:var p=s.error;o=s.stage===0&&us(p)&&p.message===G0?console.log:console.error}o.apply(console,(function(y,w){var _=w.e,v=w.stage,I=(0,e.Tt)(w,["e","stage"]),M=[y,new Date().toISOString().slice(11),E0(_)];if(v!==void 0)switch(v){case 0:M.push("(fast)");break;case 1:M.push("(final)");break;default:I.stage=v}return M.push(I),M})(i,s))}}function A4(i){i===void 0&&(i="".concat(J0," "));var s={};return function(o){switch(o.e){case 15:s[o.getCallId]=o.body;break;case 18:console.log("".concat(i,"Visitor id request"),s[o.getCallId]);break;case 19:console.log("".concat(i,"Visitor id response"),o.body);break;case 16:case 17:delete s[o.getCallId]}}}var Q0="__fpjs_pvid";function tl(){var i=window,s=i[Q0];return i[Q0]=typeof s=="string"?s:ao(10)}function S4(){var i=window;try{return i.self!==i.top}catch{return!0}}function nu(){return!document.hidden}var el="stripped",ru=["path","query","fragment"];function ms(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c=this;return(0,e.YH)(this,(function(p){switch(p.label){case 0:return nl(s)?[2,i]:(o=ys(i),[4,Promise.all(ru.map((function(y){return(0,e.sH)(c,void 0,void 0,(function(){var w,_,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return w=o[y],s[y]&&w?(_=o,v=y,[4,I4(y==="query"?(M=w,M.split("&").sort().join("&")):w)]):[3,2];case 1:_[v]=I.sent(),I.label=2;case 2:return[2]}var M}))}))})))]);case 1:return p.sent(),[2,ws(o)]}}))}))}function nl(i){return!(i&&ru.some((function(s){return i[s]})))}function ys(i){var s,o,c=i.split("#"),p=c[0],y=c.slice(1),w=p.split("?"),_=w[0],v=w.slice(1),I=/^((\w+:)?\/\/[^/]*)?((\/)(.*)|$)$/.exec(_);return I?(s=(I[1]||"")+(I[4]||""),o=I[5]||""):(s="",o=_),{origin:s,path:o,query:v.length?v.join("?"):null,fragment:y.length?y.join("#"):null}}function ws(i){var s=i.origin,o=i.path,c=i.query,p=i.fragment;return s+o+(c===null?"":"?".concat(c))+(p===null?"":"#".concat(p))}function I4(i){var s;return(0,e.sH)(this,void 0,void 0,(function(){var o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return i===""?[2,""]:(o=(s=window.crypto)===null||s===void 0?void 0:s.subtle)!=null&&o.digest?[4,o.digest("SHA-256",Sr(i))]:[2,el];case 1:return[2,er(c.sent()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")]}}))}))}function O4(i,s){var o=ys(i),c=o.origin+o.path;return c&&!c.endsWith("/")&&(c+="/"),c+=s,o.origin="",o.path=c,ws(o)}function iu(i,s){for(var o=ys(i),c=o.query,p=0,y=Object.entries(s);p<y.length;p++)for(var w=y[p],_=w[0],v=w[1],I=0,M=Array.isArray(v)?v:[v];I<M.length;I++){var C=M[I];c="".concat(c?"".concat(c,"&"):"").concat(_,"=").concat(N4(C))}return o.query=c,ws(o)}function N4(i){return i.split("/").map(encodeURIComponent).join("/")}function T4(i){return function(s){var o=[],c=new Map,p=window.setInterval((function(){var w=o.shift();if(w){var _=w[0],v=w[1],I=so(i(v));c.set(_,I)}}),1);function y(){window.clearInterval(p)}return s.then(y,y),[o,c,s]}}function rl(i){var s,o,c=Math.random();return s=c,o=i,i.container[0].push([s,o]),(function(p,y,w){var _;function v(){window.clearInterval(_)}var I=p[1],M=p[2],C=new Promise((function(X,tt){_=window.setInterval((function(){var et=I.get(y);if(et)return I.delete(y),et.then(X,tt)}),1)}));return C.then(v,v),w?.then(v,v),M.then(v,v),C})(i.container,c,i.abort)}var il=T4(x4);function x4(i){return(function(s,o,c,p){var y,w=document,_="securitypolicyviolation",v=function(M){var C=new URL(s,location.href),X=M.blockedURI;X!==C.href&&X!==C.protocol.slice(0,-1)&&X!==C.origin||(y=M,I())};w.addEventListener(_,v);var I=function(){return w.removeEventListener(_,v)};return p?.then(I,I),Promise.resolve().then(o).then((function(M){return I(),M}),(function(M){return new Promise((function(C){var X=new MessageChannel;X.port1.onmessage=function(){return C()},X.port2.postMessage(null)})).then((function(){if(I(),y)return(function(){throw ol()})();throw M}))}))})(i.url,(function(){return o=(s=i).url,c=s.method,p=c===void 0?"get":c,y=s.body,w=s.headers,_=s.withCredentials,v=_!==void 0&&_,I=s.timeout,M=s.responseFormat,C=s.abort,new Promise((function(X,tt){if((function(Rt){if(URL.prototype)try{return new URL(Rt,location.href),!1}catch(vt){if(vt instanceof Error&&vt.name==="TypeError")return!0;throw vt}})(o))throw co("InvalidURLError","Invalid URL");var et=new XMLHttpRequest;try{et.open(p,o,!0)}catch(Rt){throw Rt instanceof Error&&/violate.+content security policy/i.test(Rt.message)?ol():Rt}if(et.withCredentials=v,et.timeout=I===void 0?0:Math.max(I,1),M==="binary"&&(et.responseType="arraybuffer"),w)for(var it=0,ut=Object.keys(w);it<ut.length;it++){var gt=ut[it];et.setRequestHeader(gt,w[gt])}et.onload=function(){return X((function(Rt){return{body:Rt.response,status:Rt.status,statusText:Rt.statusText,getHeader:function(vt){return(function(Et,Gt){var Yt,Wt=new RegExp("^".concat((Yt=Gt,Yt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),": (.*)$"),"im").exec(Et);return Wt?Wt[1]:void 0})(Rt.getAllResponseHeaders(),vt)}}})(et))},et.ontimeout=function(){return tt(co("TimeoutError","The request timed out"))},et.onabort=function(){return tt(co("AbortError","The request is aborted"))},et.onerror=function(){return tt(co("TypeError",navigator.onLine?"Connection error":"Network offline"))},et.send((function(Rt){var vt=function(){try{return new Blob([]),!1}catch{return!0}};if(Rt instanceof ArrayBuffer){if(!vt())return new Uint8Array(Rt)}else if(Rt?.buffer instanceof ArrayBuffer&&vt())return Rt.buffer;return Rt})(y)),C?.catch((function(){})).then((function(){et.onabort=null,et.abort()}))}));var s,o,c,p,y,w,_,v,I,M,C}),0,i.abort)}function co(i,s){var o=new Error(s);return o.name=i,o}function ol(){return co("CSPError","The request is blocked by the CSP")}function dr(i,s){for(var o=[],c=2;c<arguments.length;c++)o[c-2]=arguments[c];i&&s0((function(){var p=s.apply(void 0,o);p!==void 0&&i(p)}))}function fo(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w;return(0,e.YH)(this,(function(_){switch(_.label){case 0:dr(i,s),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,p()];case 2:return y=_.sent(),[3,4];case 3:throw w=_.sent(),dr(i,c,w),w;case 4:return dr(i,o,y),[2,y]}}))}))}function L4(i){for(var s={},o=0,c=Object.keys(i);o<c.length;o++){var p=c[o],y=i[p];if("value"in y){y.value;var w=(0,e.Tt)(y,["value"]);s[p]=w}else s[p]=y}return s}function sl(i){return typeof i.getCallId=="string"}function C4(i){if(typeof i!="object"||!i)return i;var s=i.modules;return s instanceof Array?(0,e.Cl)((0,e.Cl)({},i),{modules:s.map((function(o){if(typeof o!="object"||!o)return o;var c=o.key;return typeof c=="string"?{key:c}:o}))}):i}function M4(){var i=window,s=navigator;return Ei(["maxTouchPoints"in s,"mediaCapabilities"in s,"PointerEvent"in i,"visualViewport"in i,"onafterprint"in i])>=4}function B4(){var i=window;return Ei(["mediaSession"in navigator,"BigInt64Array"in i,"FormDataEvent"in i,"ImageBitmap"in i,"WebGL2RenderingContext"in i,"onclose"in i])>=4}function k4(){var i=window;return Ei(["fromAsync"in Array,"OffscreenCanvas"in i,"CompressionStream"in i,"isWellFormed"in String.prototype])>=3}function U4(){var i,s=window;return Ei(["Iterator"in s,s.Error&&"isError"in s.Error,s.Atomics&&"pause"in s.Atomics,((i=s.Document)===null||i===void 0?void 0:i.prototype)&&"fragmentDirective"in s.Document.prototype,s.CSSRule&&!("UNKNOWN_RULE"in s.CSSRule),!("SVGDocument"in s)])>=4}function al(){var i=window;return Ei([!("PushManager"in i),!("AudioBuffer"in i),!("RTCPeerConnection"in i),!("geolocation"in navigator),!("ServiceWorker"in i)])>=3}function D4(){var i=window;return Ei(["ClipboardItem"in i,"PerformanceEventTiming"in i,"RTCSctpTransport"in i])>=2}var P4=(function(){function i(s){var o=this;this.onReportReady=s,this.isStopped=!1,this.pageStartTimestamp=(function(){var et,it,ut=performance;if(ut.timeOrigin){var gt=(it=(et=ut.getEntriesByType)===null||et===void 0?void 0:et.call(ut,"navigation"))===null||it===void 0?void 0:it[0];if(gt)return ut.timeOrigin+(gt.responseStart||gt.unloadEventEnd)}return ut.timing.domLoading||ut.timing.responseStart||ut.timing.unloadEventEnd})(),this.events={};for(var c=window,p=document,y=[[p,"readystatechange",function(){return o.handleDocumentReadyStateChange()}],[p,"visibilitychange",function(){return o.handleVisibilityChange()}],[p,"pageshow",function(){return o.handlePageTransition(!0)}],[p,"pagehide",function(){return o.handlePageTransition(!1)}],[c,"unload",function(){return o.handlePageUnload()}]],w=0,_=y;w<_.length;w++){var v=_[w],I=v[0],M=v[1],C=v[2];I.addEventListener(M,C)}var X=(function(et){var it=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange"].map((function(ut){return _i(document,ut,et,void 0)}));return function(){for(var ut=0,gt=it;ut<gt.length;ut++)(0,gt[ut])()}})((function(){return o.handleFullscreenChange()})),tt=(function(et){var it=window,ut=navigator.connection;if(ut)return _i(ut,"change",et);var gt=_i(it,"online",et),Rt=_i(it,"offline",et);return function(){gt(),Rt()}})((function(){return o.handleNetworkConnectionChange()}));this.stop=function(){o.isStopped=!0;for(var et=0,it=y;et<it.length;et++){var ut=it[et],gt=ut[0],Rt=ut[1],vt=ut[2];gt.removeEventListener(Rt,vt)}X(),tt()}}return i.prototype.addEvent=function(s){var o;if(!this.isStopped){var c={time:new Date,type:"agentEvent",event:s};if(s.e===0){var p=s.options;this.urlHashing=(o=p?.urlHashing)!==null&&o!==void 0?o:w0(p?.stripUrlParams),c.documentReadyState=document.readyState,c.isPageVisible=nu(),c.isFullscreen=ul(),c.network=cl()}switch(this.storeAgentEvent(c),s.e){case 2:this.submitReport(s.agentId,void 0);break;case 4:case 5:this.submitReport(s.agentId,s.getCallId)}}},i.prototype.handleDocumentReadyStateChange=function(){this.storeEnvironmentEvent({time:new Date,type:"documentReadyState",state:document.readyState})},i.prototype.handleVisibilityChange=function(){this.storeEnvironmentEvent({time:new Date,type:"pageVisibilityToggle",isVisible:nu()})},i.prototype.handlePageTransition=function(s){this.storeEnvironmentEvent({time:new Date,type:"pageTransition",isShown:s})},i.prototype.handleFullscreenChange=function(){this.storeEnvironmentEvent({time:new Date,type:"fullscreenToggle",isFullscreen:ul()})},i.prototype.handleNetworkConnectionChange=function(){this.storeEnvironmentEvent({time:new Date,type:"networkChange",network:cl()})},i.prototype.handlePageUnload=function(){this.storeEnvironmentEvent({time:new Date,type:"pageUnload"});for(var s=0,o=Object.keys(this.events);s<o.length;s++){var c=o[s],p=this.events[c];if(Object.keys(p.getCalls).length===0)this.submitReport(c,void 0);else for(var y=0,w=Object.keys(p.getCalls);y<w.length;y++){var _=w[y];F4(p.getCalls[_])||this.submitReport(c,_)}}this.stop()},i.prototype.storeAgentEvent=function(s){var o=s.event,c=o.agentId;if(this.events[c]||(this.events[c]={commonEvents:[],getCalls:{}}),sl(o)){var p=o.getCallId;this.events[c].getCalls[p]||(this.events[c].getCalls[p]=[]),this.events[c].getCalls[p].push(s)}else this.events[c].commonEvents.push(s)},i.prototype.storeEnvironmentEvent=function(s){for(var o=0,c=Object.keys(this.events);o<c.length;o++){var p=c[o];this.events[p].commonEvents.push(s)}},i.prototype.submitReport=function(s,o){var c=(function(y,w,_){var v=[];return y[w]&&(v.push.apply(v,y[w].commonEvents),_!==void 0&&v.push.apply(v,y[w].getCalls[_]||[])),v.sort((function(I,M){return I.time.getTime()-M.time.getTime()})),v})(this.events,s,o),p=(function(y,w,_){for(var v,I,M,C,X,tt,et,it,ut,gt=(function(Tt){for(var Ft={},$t=0,Qt=Tt;$t<Qt.length;$t++){var re=Qt[$t];re.type==="agentEvent"&&(Ft[re.event.e]=re)}return Ft})(y),Rt="null",vt=0,Et=[[4,"getSuccess"],[5,"getFail"],[3,"getting"],[1,"loadSuccess"],[2,"loadFail"],[0,"loading"]];vt<Et.length;vt++){var Gt=Et[vt],Yt=Gt[0],Wt=Gt[1];if(gt[Yt]){Rt=Wt;break}}return{time:((v=y[y.length-1])===null||v===void 0?void 0:v.time)||new Date,pageUrl:location.href,pageStartTime:new Date(w),isInIframe:S4(),agentVersion:(I=gt[0])===null||I===void 0?void 0:I.event.version,userAgent:navigator.userAgent,pageViewId:tl(),agentId:(M=gt[0])===null||M===void 0?void 0:M.event.agentId,getCallId:(C=gt[3])===null||C===void 0?void 0:C.event.getCallId,requestId:(tt=(X=gt[4])===null||X===void 0?void 0:X.event.result.requestId)!==null&&tt!==void 0?tt:(it=(et=gt[5])===null||et===void 0?void 0:et.event.error)===null||it===void 0?void 0:it.requestId,visitorId:(ut=gt[4])===null||ut===void 0?void 0:ut.event.result.visitorId,identificationState:Rt,events:y,urlHashing:_}})(c,this.pageStartTimestamp,this.urlHashing);try{this.onReportReady(p)}catch(y){console.error(y)}},i})();function F4(i){return i.some((function(s){return s.type==="agentEvent"&&(s.event.e===4||s.event.e===5)}))}function ul(){return!!rt()}function cl(){var i=navigator.connection;return{online:navigator.onLine,downlink:i?.downlink,downlinkMax:i?.downlinkMax,effectiveType:i?.effectiveType,roundTrip:i?.rtt,saveData:i?.saveData,type:i?.type}}function H4(i){var s=this,o=i.clientId,c=i.token,p=i.endpoint,y=p===void 0?"https://api.rollbar.com/api/1/item/":p,w=new P4((function(_){return(0,e.sH)(s,void 0,void 0,(function(){var v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return v=(function(M,C,X){return{access_token:X,data:V4(M,C,void 0)}})(_,o,c),[4,j4(y,v)];case 1:return I.sent(),[2]}}))}))}));return w.addEvent.bind(w)}function V4(i,s,o){var c;o===void 0&&(o=p0());var p=G4[i.identificationState],y=p.level,w=p.message,_=(function(v,I){if(nl(I))return v;for(var M=ys(v),C=0,X=ru;C<X.length;C++){var tt=X[C];I[tt]&&M[tt]&&(M[tt]=el)}return ws(M)})(i.pageUrl,i.urlHashing);return{environment:s,level:y,timestamp:Math.round(i.time.getTime()/1e3),platform:"browser",framework:"Fingerprint Pro",language:"javascript",uuid:o,notifier:{name:"Fingerprint Pro monitoring",version:za},request:{url:_,query_string:((c=/\?.*$/.exec(_))!==null&&c!==void 0?c:[""])[0],user_ip:"$remote_ip"},client:{javascript:{browser:i.userAgent,code_version:i.agentVersion}},person:i.visitorId===void 0?void 0:{id:"visitorId:".concat(i.visitorId)},body:{telemetry:(0,e.fX)([{level:"debug",source:"client",timestamp_ms:i.pageStartTime.getTime(),type:"manual",body:{message:"Page starts"}}],i.events.map(Y4),!0),message:{body:w}},custom:{isInIframe:i.isInIframe,pageViewId:i.pageViewId,agentId:i.agentId,getCallId:i.getCallId,requestId:i.requestId,identificationState:i.identificationState}}}var G4={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 Y4(i){var s={type:"manual",level:"debug",source:"client",timestamp_ms:i.time.getTime()};switch(i.type){case"documentReadyState":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:'Document ready state becomes "'.concat(i.state,'"')}});case"pageVisibilityToggle":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Page becomes ".concat(i.isVisible?"visible (in foreground)":"invisible (in background)")}});case"pageTransition":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:i.isShown?"Page is restored from browser history":"Page is about to go to browser history"}});case"fullscreenToggle":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Programmatic fullscreen ".concat(i.isFullscreen?"on":"off")}});case"networkChange":return(0,e.Cl)((0,e.Cl)({},s),{body:(0,e.Cl)((0,e.Cl)({},i.network),{message:"Network connection changes"})});case"pageUnload":return(0,e.Cl)((0,e.Cl)({},s),{body:{message:"Page is about to unload (terminate)"}})}var o=i.event,c=function(I,M){M===void 0&&(M="info");var C=I;C.e,C.agentId,C.getCallId;for(var X=(0,e.Tt)(C,["e","agentId","getCallId"]),tt=(0,e.Cl)((0,e.Cl)({},s),{level:M,body:(0,e.Cl)({message:E0(o.e)},X)}),et=0,it=["documentReadyState","isPageVisible","isFullscreen","network"];et<it.length;et++){var ut=it[et];i[ut]!==void 0&&(tt.body[ut]=i[ut])}return tt};switch(o.e){case 0:o.version;var p=o.options,y=(0,e.Tt)(o,["version","options"]);return c((0,e.Cl)((0,e.Cl)({},y),{options:C4(p)}));case 1:case 3:case 4:case 6:case 9:case 12:case 15:case 16:case 18:return c(o);case 2:case 5:case 8:case 11:case 14:case 17:case 20:return c(o,"error");case 7:var w=o.result;return c((0,e.Cl)((0,e.Cl)({},o),{result:(0,e.Cl)((0,e.Cl)({},w),{v:"v"in w?w.v&&Wr(w.v,1e3):void 0})}));case 10:return c((0,e.Cl)((0,e.Cl)({},o),{body:Wr(o.body,1e3)}));case 13:var _=c((0,e.Cl)((0,e.Cl)({},o),{result:L4(o.result)}));return _.body.message+=" (the values are omitted)",_;case 19:var v=o.body;return v instanceof ArrayBuffer&&(v="(base64) ".concat(v.byteLength>1800?"".concat(er(new Uint8Array(v,0,1800)),"..."):er(v))),c((0,e.Cl)((0,e.Cl)({},o),{body:v}))}}function j4(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c;return(0,e.YH)(this,(function(p){switch(p.label){case 0:o=(function(y){return JSON.stringify(y,(function(w,_){if(_ instanceof Error){var v=(function(I,M){var C;return M===void 0&&(M=!1),(0,e.Cl)({name:I.name,message:I.message,stack:M?(C=I.stack)===null||C===void 0?void 0:C.split(`
|
|
10
|
+
`):I.stack},I)})(_);return typeof v.stack=="string"&&(v.stack=Wr(v.stack,1e3)),v}return _}))})(s),c=u0(1e3,1e4),p.label=1;case 1:return navigator.onLine&&(function(y){var w,_=y.url,v=y.body,I=(function(){var C,X=(C=window.event)===null||C===void 0?void 0:C.type;return X==="pagehide"||X==="unload"})();if(I)try{if(!((w=navigator.sendBeacon)===null||w===void 0)&&w.call(navigator,_,v))return!0}catch(C){if(!(C instanceof Error&&C.message==="Illegal invocation"))throw C}var M=new XMLHttpRequest;M.open("POST",_,!I),v instanceof Blob&&M.setRequestHeader("Content-Type",v.type);try{M.send(v)}catch{return!1}return!0})({url:i,body:o})?[3,4]:[4,oo(c())];case 2:p.sent(),p.label=3;case 3:return[3,1];case 4:return[2]}}))}))}function fl(i,s,o,c,p){c===void 0&&(c=1/0);var y,w={failedAttempts:[]},_=(function(C){var X=(function(it){var ut=(0,e.fX)([],it,!0);return{current:function(){return ut[0]},postpone:function(){var gt=ut.shift();gt!==void 0&&ut.push(gt)},exclude:function(){ut.shift()}}})(C),tt=u0(200,1e4),et=new Set;return[X.current(),function(it,ut,gt){var Rt;if(ut)Rt=(function(Yt){var Wt=Yt.getHeader("retry-after");if(Wt){if(/^\s*\d+(\.\d+)?\s*$/.test(Wt))return 1e3*parseFloat(Wt);var Tt=new Date(Wt);return isNaN(Tt)?void 0:Tt.getTime()-Date.now()}})(ut),Rt!==void 0?X.postpone():X.exclude();else if(gt instanceof Error&&(gt.name==="CSPError"||gt.name==="InvalidURLError"))X.exclude(),Rt=0;else{var vt=Date.now()-it.getTime()<50,Et=X.current();Et&&vt&&!et.has(Et)&&(et.add(Et),Rt=0),X.postpone()}var Gt=X.current();return Gt===void 0?void 0:[Gt,Rt??it.getTime()+tt()-Date.now()]}]})(i),v=_[0],I=_[1],M=(y=[p?.then((function(C){return w.aborted={resolve:!0,value:C}}),(function(C){return w.aborted={resolve:!1,error:C}})),(0,e.sH)(this,void 0,void 0,(function(){var C,X,tt;return(0,e.YH)(this,(function(et){switch(et.label){case 0:if(v===void 0)return[2];C=v,X=function(it){var ut,gt,Rt,vt,Et,Gt;return(0,e.YH)(this,(function(Yt){switch(Yt.label){case 0:ut=new Date,gt=void 0,Rt=void 0,Yt.label=1;case 1:return Yt.trys.push([1,3,,4]),[4,Va((function(){return s(C,it,p)}),p)];case 2:return gt=Yt.sent(),[3,4];case 3:return vt=Yt.sent(),Rt=vt,w.failedAttempts.push({level:0,endpoint:C,error:vt}),[3,4];case 4:if(gt){if("result"in(Et=o(gt)))return w.result=Et.result,[2,"break"];if(w.failedAttempts.push({level:1,endpoint:C,error:Et.error}),Et.stop)return[2,"break"]}return(Gt=I(ut,gt,Rt))?[4,Va(oo(Gt[1]),p)]:[2,"break"];case 5:return Yt.sent(),C=Gt[0],[2]}}))},tt=0,et.label=1;case 1:return tt<c?[5,X(tt)]:[3,4];case 2:if(et.sent()==="break")return[3,4];et.label=3;case 3:return++tt,[3,1];case 4:return[2]}}))}))],Promise.race(y.filter((function(C){return!!C})))).then((function(){return w}));return{then:M.then.bind(M),current:w}}function ll(){return"js/".concat(za)}var z4=/\(([^(^\s^}]+):(\d)+:(\d)+\)/i,K4=/@([^(^\s^}]+):(\d)+:(\d)+/i;function dl(i){return{e:W4(i)}}function W4(i){var s;try{i&&typeof i=="object"&&"message"in i?(s=String(i.message),"name"in i&&(s="".concat(i.name,": ").concat(s))):s=String(i)}catch(o){s="Code 3017: ".concat(o)}return Wr(s,500)}function on(i){return wt(i,(function(s){return{s:0,v:s}}))}function vn(i,s){return wt(i,(function(o){return{s:o==null?s:0,v:o??null}}))}function hl(i){return wt(i,(function(s){return typeof s=="number"?{s,v:null}:{s:0,v:s}}))}function Bn(i){var s=function(c){return{s:0,v:c}},o=function(c){if(!(c instanceof Be))throw c;var p=c.state;if(typeof p!="number")throw new Error("Unexpected non-numeric error state ".concat(JSON.stringify(p),". Error message: ").concat(c.message));return{s:p,v:null}};return function(){try{var c=i();return(function(p){return!!p&&typeof p.then=="function"})(c)?c.then(s,o):s(c)}catch(p){return o(p)}}}function Z4(i){var s=i.modules,o=i.components,c=o===void 0?{}:o,p=i.customComponent,y=i.apiKey,w=i.tls,_=i.tag,v=i.extendedResult,I=i.exposeComponents,M=i.linkedId,C=i.algorithm,X=i.imi,tt=i.storageKey,et=i.products,it=i.urlHashing,ut=i.ab,gt=i.fast,Rt=i.requestId;return(0,e.sH)(this,void 0,void 0,(function(){var vt,Et,Gt=this;return(0,e.YH)(this,(function(Yt){switch(Yt.label){case 0:return vt=(0,e.Cl)(((Et={}).c=y,Et.t=(Wt=_)&&typeof Wt=="object"?Wt:Wt!=null?{tag:Wt}:void 0,Et.cbd=v?1:void 0,Et.lid=M,Et.a=C,Et.m=X.m,Et.l=X.l,Et.ec=I?1:void 0,Et.mo=s.map((function(Tt){return Tt.key})).filter((function(Tt){return!!Tt})),Et.pr=et,Et.s56=w,Et.s67=p?{s:0,v:p}:{s:-1,v:null},Et.sc=(function(){var Tt,Ft=(function(){var $t,Qt,re,ce,ye,pe=new Error,Oe=($t=pe).fileName?$t.fileName.split(" ")[0]:$t.sourceURL?$t.sourceURL:null;if(Oe)return Oe;if(pe.stack){var Le=(re=(Qt=pe.stack.split(`
|
|
11
|
+
`))[0],ce=Qt[1],(ye=z4.exec(ce)||K4.exec(re))?ye[1]:void 0);if(Le)return Le}return null})();return(Tt={}).u=Ft?Wr(Ft,1e3):null,Tt})(),Et.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})(it),Et.gt=1,Et.ab=ut,Et.hu=gt?0:Rt?1:void 0,Et.ri=Rt,Et),(function(Tt){for(var Ft={},$t=0,Qt=Object.keys(Tt);$t<Qt.length;$t++){var re=Qt[$t],ce=Tt[re];if(ce){var ye="error"in ce?dl(ce.error):ce.value;Ft[re]=ye}}return Ft})(c)),[4,Promise.all(s.map((function(Tt){var Ft=Tt.toRequest;return(0,e.sH)(Gt,void 0,void 0,(function(){var $t,Qt,re;return(0,e.YH)(this,(function(ce){switch(ce.label){case 0:return Ft?(Qt=($t=Object).assign,re=[vt],[4,Ft(tt,it)]):[3,2];case 1:Qt.apply($t,re.concat([ce.sent()])),ce.label=2;case 2:return[2]}}))}))})))];case 1:return Yt.sent(),[2,vt]}var Wt}))}))}function pl(i,s,o,c,p){p===void 0&&(p=i4);var y=p()%(o+1),w=Kr(i),_=1+s.length+1+y+c+w.length,v=new ArrayBuffer(_),I=new Uint8Array(v),M=0,C=p();I[M++]=C;for(var X=0,tt=s;X<tt.length;X++){var et=tt[X];I[M++]=C+et}I[M++]=C+y;for(var it=0;it<y;++it)I[M++]=p();var ut=new Uint8Array(c);for(it=0;it<c;++it)ut[it]=p(),I[M++]=ut[it];for(it=0;it<w.length;++it)I[M++]=w[it]^ut[it%c];return v}function ou(i,s,o){var c=function(){throw new Error("Invalid data")},p=Kr(i);p.length<s.length+2&&c();for(var y=0;y<s.length;++y)f0(p[1+y],p[0])!==s[y]&&c();var w=1+s.length,_=f0(p[w],p[0]);p.length<w+1+_+o&&c();var v=w+1+_,I=v+o,M=new ArrayBuffer(p.length-I),C=new Uint8Array(M);for(y=0;y<C.length;++y)C[y]=p[I+y]^p[v+y%o];return M}function $4(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p,y;return(0,e.YH)(this,(function(w){switch(w.label){case 0:return vl()?(s=(function(){try{return[!0,new CompressionStream("deflate-raw")]}catch{return[!1,new CompressionStream("deflate")]}})(),o=s[0],c=s[1],[4,X4(i,c)]):[2,[!1,i]];case 1:return p=w.sent(),y=o?p:(function(_){return new Uint8Array(_.buffer,_.byteOffset+2,_.byteLength-6)})(p),[2,[!0,y]]}}))}))}function vl(){return typeof CompressionStream<"u"}function X4(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p,y,w,_,v,I,M,C,X;return(0,e.YH)(this,(function(tt){switch(tt.label){case 0:(o=s.writable.getWriter()).write(i),o.close(),c=s.readable.getReader(),p=[],y=0,tt.label=1;case 1:return[4,c.read()];case 2:if(w=tt.sent(),_=w.value,w.done)return[3,4];p.push(_),y+=_.byteLength,tt.label=3;case 3:return[3,1];case 4:if(p.length===1)return[2,p[0]];for(v=new Uint8Array(y),I=0,M=0,C=p;M<C.length;M++)X=C[M],v.set(X,I),I+=X.byteLength;return[2,v]}}))}))}var gl=[3,13],q4=[3,14];function J4(i,s){return pl(i,s?q4:gl,3,9)}function Q4(i){var s=i.body,o=(0,e.Tt)(i,["body"]);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,y,w,_,v,I;return(0,e.YH)(this,(function(M){switch(M.label){case 0:return ml(s)?[4,$4(s)]:[3,2];case 1:return w=M.sent(),[3,3];case 2:w=[!1,s],M.label=3;case 3:return p=(c=w)[0],y=c[1],[4,rl((0,e.Cl)((0,e.Cl)({},o),{body:J4(y,p),responseFormat:"binary"}))];case 4:_=M.sent(),v=_.body,I=!1;try{v=ou(v,gl,9),I=!0}catch{}return[2,(0,e.Cl)((0,e.Cl)({},_),{body:v,wasSecret:I})]}}))}))}function ml(i){return i.byteLength>1024&&vl()}function yl(i,s,o,c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,_,v,I=this;return(0,e.YH)(this,(function(M){switch(M.label){case 0:if(i.length===0)throw new TypeError("The list of endpoints is empty");return y=i.map((function(C){return(function(X,tt){var et=tt.apiKey,it=tt.integrations,ut=it===void 0?[]:it;return iu(X,{ci:ll(),q:et,ii:ut})})(C,s)})),[4,Z4(s)];case 1:return w=M.sent(),_=S0(w),v=s.fast?0:1,[4,fo(p,(function(){return{e:15,stage:v,body:w,isCompressed:ml(_)}}),(function(C){return{e:16,stage:v,result:C}}),(function(C){return{e:17,stage:v,error:C}}),(function(){return(0,e.sH)(I,void 0,void 0,(function(){return(0,e.YH)(this,(function(C){switch(C.label){case 0:return[4,fl(y,t6.bind(null,_,p,v,o),_4.bind(null,s.modules,!!s.extendedResult,s.storageKey),1/0,c)];case 1:return[2,e6(C.sent())]}}))}))}))];case 2:return[2,M.sent()]}}))}))}function t6(i,s,o,c,p,y,w){var _=this;return fo(s,(function(){return{e:18,stage:o,tryNumber:y,url:p}}),(function(v){var I=v.status,M=v.getHeader,C=v.body,X=v.bodyData,tt=v.wasSecret;return{e:19,stage:o,tryNumber:y,status:I,retryAfter:M("retry-after"),body:X??C,wasSecret:tt}}),(function(v){return{e:20,stage:o,tryNumber:y,error:v}}),(function(){return(0,e.sH)(_,void 0,void 0,(function(){return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Q4({url:p,method:"post",headers:{"Content-Type":"text/plain"},body:i,withCredentials:!0,abort:w,container:c})];case 1:return[2,w4(v.sent())]}}))}))}))}function e6(i){var s=i.result,o=i.failedAttempts,c=i.aborted;if(s)return s;var p=o[0];if(!p)throw c&&!c.resolve?c.error:new Error("aborted");var y=p.level,w=p.error;if(y===0&&w instanceof Error){switch(w.name){case"CSPError":throw new Error(tu);case"InvalidURLError":throw new Error(eu);case"AbortError":throw new Error(Ja)}throw new Error(qa)}throw w}function n6(i,s,o){var c,p=this,y=(0,e.Cl)((0,e.Cl)({},o),{cache:{}}),w=(function(X){for(var tt={},et={},it={},ut=0,gt=X;ut<gt.length;ut++){var Rt=gt[ut].sources;Rt&&(Object.assign(tt,Rt.stage1),Object.assign(et,Rt.stage2),Object.assign(it,Rt.stage3))}var vt=et;return Object.assign(vt,it),[tt,vt]})(i),_=w[0],v=w[1],I=s?1e5:50,M=mt(_,y,[],I),C=so((c=8,c===void 0&&(c=50),(function(X,tt){tt===void 0&&(tt=1/0);var et=window.requestIdleCallback;return et?new Promise((function(it){return et.call(window,(function(){return it()}),{timeout:tt})})):u(Math.min(X,tt))})(c,2*c)).then((function(){return mt(v,y,[],I)})));return function(){return(0,e.sH)(p,void 0,void 0,(function(){var X,tt,et,it;return(0,e.YH)(this,(function(ut){switch(ut.label){case 0:return[4,Promise.all([M(),C.then((function(gt){return gt()}))])];case 1:return X=ut.sent(),tt=X[0],et=X[1],it=et,Object.assign(it,tt),[2,it]}}))}))}}function Ir(i,s){for(var o=i;o;){for(var c=Object.getOwnPropertyNames(o),p=0;p<c.length;p++){var y=c[p];if(nr(y)==s)return y}o=Object.getPrototypeOf(o)}return""}function Xt(i,s){var o=i[Ir(i,s)];return typeof o=="function"?o.bind(i):o}function xn(i,s){var o;return function(c){return o||(o=(function(p,y){return gs(ou(new Uint32Array(p),[],y))})(i,s)),ls(o[c])}}function lo(i,s,o){var c;return function(p){return c===null?c:(c||(c=(function(y,w,_){var v=Sr(w());try{return gs((function(I,M,C){for(var X=Kr(I),tt=new ArrayBuffer(X.length-C),et=new Uint8Array(tt),it=0;it<X.length;++it)et[it]=X[it]^M[it%M.length];return tt})(new Uint32Array(y),v,_))}catch(I){if(us(I)&&I.name==="SyntaxError")return null;throw I}})(i,s,o)),ls(c&&c[p]))}}var Zr=xn([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),r6=[202,206];function i6(i){for(var s={uAVXy:"9|5|11|0|3|6|7|2|10|8|4|1",FInQd:function(it,ut){return it(ut)},kpZRq:function(it,ut,gt){return it(ut,gt)},UoPyk:function(it,ut){return it(ut)},UpGPH:function(it,ut,gt){return it(ut,gt)},ZuRYV:function(it,ut){return it-ut},VnFXf:function(it,ut,gt,Rt){return it(ut,gt,Rt)},fDQiC:function(it,ut){return it(ut)},eKHGy:function(it,ut){return it<ut},AkgUE:function(it,ut){return it/ut},iBJKB:function(it,ut,gt){return it(ut,gt)},lIinn:function(it,ut){return it+ut}},o=s.uAVXy.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.FInQd(er,v);continue;case"1":return s.kpZRq(O4,i,_);case"2":var y=s.kpZRq(s6,s.UoPyk(Sr,M),r6);continue;case"3":var w=s.UpGPH(parseInt,X[s.ZuRYV(X.length,1)],16);continue;case"4":var _=s.kpZRq(o6,C,v);continue;case"5":var v=new Uint8Array(16);continue;case"6":var I=s.VnFXf(wl,v[w],8,22);continue;case"7":var M=p.slice(0,Math.min(s.ZuRYV(p.length,2),I));continue;case"8":var C="".concat(M).concat(tt).replace(new RegExp(s.fDQiC(Zr,1),"g"),"-").replace(new RegExp(s.fDQiC(Zr,2),"g"),"_");continue;case"9":var X=s.UoPyk(pn,i);continue;case"10":var tt=s.FInQd(er,s.FInQd(a6,s.FInQd(l0,y))).slice(0,2);continue;case"11":for(var et=0;s.eKHGy(et,X.length);et+=2)v[s.AkgUE(et,2)]=s.iBJKB(parseInt,"".concat(X[et]).concat(X[s.lIinn(et,1)]),16);continue}break}}function o6(i,s){for(var o={goMxK:"2|4|1|0|3",lnlOq:function(v,I){return v<I},RltcK:function(v,I,M,C){return v(I,M,C)},cVMXe:function(v,I){return v&I},SclSa:function(v,I){return v+I}},c=o.goMxK.split("|"),p=0;;){switch(c[p++]){case"0":for(;o.lnlOq(w,i.length);)_=o.RltcK(wl,s[o.cVMXe(w,15)],4,7),y+=i.slice(w,o.SclSa(w,_)),y+="/",w+=_;continue;case"1":var y="";continue;case"2":var w=0;continue;case"3":return y.slice(0,-1);case"4":var _=0;continue}break}}function wl(i,s,o){return(function(c,p){return c+p})(s,Math.floor((function(c,p){return c*p})((function(c){return c/256})(i),(function(c){return c+1})((function(c,p){return c-p})(o,s)))))}function s6(i,s){for(var o={toGYz:"0|3|4|1|2",OGfKZ:function(v,I){return v+I},ENgdo:function(v,I){return v<I},oVWhZ:function(v,I){return v+I}},c=o.toGYz.split("|"),p=0;;){switch(c[p++]){case"0":var y=o.OGfKZ(i.length,s.length);continue;case"1":for(var w=0;o.ENgdo(w,s.length);w++)_[o.oVWhZ(w,i.length)]=s[w];continue;case"2":return _;case"3":var _=new Uint8Array(y);continue;case"4":for(w=0;o.ENgdo(w,i.length);w++)_[w]=i[w];continue}break}}function a6(i){var s=function(o,c){return o>>c};return new Uint8Array([s(i,24),s(i,16),(function(o){return o>>8})(i),i])}function su(i,s){return!!i&&(function(o,c){return o===c})((function(o,c){return o(c,3814588639)})(Xt,i),(function(o,c){return o(c,3814588639)})(Xt,s))}function u6(i){var s=function(c,p){return c(p)},o=(function(c){return c(3)})(Zr);return(function(c,p){return c!==p})(i,s(Zr,4))&&(o="".concat(i,".").concat(o)),s(Zr,5).concat(o,"/")}function c6(i){var s=(function(o){return o(6)})(Zr)[i];return"".concat(s,(function(o){return o(7)})(Zr))}var f6=(function(){var i;return(i={}).noop=["a","b"],i})();function l6(i,s,o,c,p,y,w,_,v,I,M,C,X){var tt=this,et={modules:i,apiKey:c,integrations:_,imi:v,storageKey:w,ab:M,urlHashing:I},it=function(Et,Gt,Yt){return(0,e.sH)(tt,void 0,void 0,(function(){var Wt,Tt,Ft;return(0,e.YH)(this,(function($t){switch($t.label){case 0:return C?[4,gt()]:[2,void 0];case 1:Wt=$t.sent(),Tt=!1,Gt.catch((function(){return Tt=!0})),$t.label=2;case 2:return $t.trys.push([2,4,,5]),[4,yl(p,(0,e.Cl)((0,e.Cl)({},et),{tls:Wt,fast:!0}),Et,Gt,Yt)];case 3:return[2,$t.sent()];case 4:if(Ft=$t.sent(),Tt)throw Ft;return us(Ft)&&Ft.message===G0||console.warn(Ft),[2,void 0];case 5:return[2]}}))}))},ut=function(Et,Gt,Yt){var Wt=Et.timeout,Tt=Wt===void 0?1e4:Wt,Ft=Et.tag,$t=Et.linkedId,Qt=Et.disableTls,re=Et.extendedResult,ce=Et.exposeComponents,ye=Et.environment,pe=Et.products,Oe=so(Promise.all([vt(Yt),Rt(Tt,Qt,Yt)]));return function(Le,Ce){return(0,e.sH)(tt,void 0,void 0,(function(){var Te,rn,Nn;return(0,e.YH)(this,(function(gn){switch(gn.label){case 0:return[4,Promise.race([Ce,Oe])];case 1:return Te=gn.sent(),rn=Te[0],Nn=Te[1],[4,yl(p,(0,e.Cl)((0,e.Cl)({},et),{components:rn,customComponent:ye,tag:Ft,tls:Nn,linkedId:d0($t),extendedResult:re,exposeComponents:ce,algorithm:y,products:e4(pe,"products"),requestId:Le}),Gt,Ce,Yt)];case 2:return[2,gn.sent()]}}))}))}},gt=function(){return o?.(0,50,!1,void 0)},Rt=function(Et,Gt,Yt){return o?.(.1*Et,.4*Et,Gt,Yt)},vt=function(Et){return(0,e.sH)(tt,void 0,void 0,(function(){var Gt,Yt;return(0,e.YH)(this,(function(Wt){switch(Wt.label){case 0:return Wt.trys.push([0,2,,3]),[4,s()];case 1:return Gt=Wt.sent(),dr(Et,(function(){return{e:13,result:Gt}})),[2,Gt];case 2:throw Yt=Wt.sent(),dr(Et,(function(){return{e:14,error:Yt}})),Yt;case 3:return[2]}}))}))};return{get:function(Et){Et===void 0&&(Et={});var Gt=X&&(function(Yt,Wt){return function(Tt){return Yt((0,e.Cl)((0,e.Cl)({},Tt),{getCallId:Wt}))}})(X,ao(8));return fo(Gt,(function(){return{e:3,options:Et}}),(function(Yt){return{e:4,result:Yt}}),(function(Yt){return{e:5,error:Yt}}),(function(){return Yt=function(Wt){return(function(Tt,Ft,$t){return(0,e.sH)(tt,void 0,void 0,(function(){var Qt,re,ce,ye,pe,Oe,Le;return(0,e.YH)(this,(function(Ce){switch(Ce.label){case 0:Qt=a0(),Ce.label=1;case 1:return Ce.trys.push([1,,7,8]),re=il(Qt),ce=Pn((Le=Tt.timeout)!==null&&Le!==void 0?Le:1e4).then((function(){return Promise.reject(new Error(Xa))})),ye=ut(Tt,re,Ft),[4,it(re,ce,Ft)];case 2:return(pe=Ce.sent())?($t(pe),[4,ye(pe.requestId,ce)]):[3,4];case 3:return Ce.sent(),[3,6];case 4:return Oe=$t,[4,ye(void 0,ce)];case 5:Oe.apply(void 0,[Ce.sent()]),Ce.label=6;case 6:return[3,8];case 7:return Qt.resolve(),[7];case 8:return[2]}}))}))})(Et,Gt,Wt)},new Promise((function(Wt,Tt){Yt(Wt).then((function(){return Tt(new Error("Action didn't call `resolve` or `reject`"))}),Tt)}));var Yt}))}}}var _l=function(i){return(0,e.sH)(this,void 0,void 0,(function(){var s,o;return(0,e.YH)(this,(function(c){switch(c.label){case 0:return p=(0,e.fX)([(w=/{(.*?)}/.exec(location.hash),!!w&&nr(w[1])===3025844545&&A4())],(i?.modules||[]).map((function(_){return _.addEvent})),!0),y=p.filter((function(_){return!!_})),s=y.length?function(){for(var _=[],v=0;v<arguments.length;v++)_[v]=arguments[v];for(var I=function(X){s0((function(){return X.apply(void 0,_)}))},M=0,C=y;M<C.length;M++)I(C[M])}:void 0,o=s&&(function(_,v){return function(I){return _((0,e.Cl)((0,e.Cl)({},I),{agentId:v}))}})(s,ao(8)),[4,fo(o,(function(){return{e:0,version:za,options:i}}),(function(_){return{e:1,ab:_[1]}}),(function(_){return{e:2,error:_}}),(function(){var _,v,I=i.token,M=i.apiKey,C=M===void 0?I:M,X=i.region,tt=X===void 0?"us":X,et=i.tlsEndpoint,it=et===void 0?ps:et,ut=i.disableTls,gt=i.storageKey,Rt=gt===void 0?_0:gt,vt=i.endpoint,Et=vt===void 0?hs:vt,Gt=i.te,Yt=Gt===void 0?y0:Gt,Wt=i.integrationInfo,Tt=Wt===void 0?[]:Wt,Ft=i.algorithm,$t=i.imi,Qt=$t===void 0?((_={}).m="s",_):$t,re=i.stripUrlParams,ce=i.urlHashing,ye=ce===void 0?w0(re):ce,pe=i.modules,Oe=i.abTests,Le=Oe===void 0?{}:Oe,Ce=i.externalABSelections,Te=Ce===void 0?{}:Ce,rn=i.optimizeRepeatedVisits,Nn=rn!==void 0&&rn,gn=i.aggressiveOptimization,Hn=gn!==void 0&&gn;if(!C||typeof C!="string")throw new Error("API key required");var Wn,Zn,Tr,Xr,ir,dn,Bt,Nt,xt,Jt=(function(Ne,ke,We){for(var wn=(0,e.Cl)({},We),xr=0,vo=Object.entries(Ne);xr<vo.length;xr++){var Ai=vo[xr],Si=Ai[0],go=Ai[1],Ln=ke[Si];if(Ln)try{wn[Si]=m0(Ln);continue}catch($n){console.error($n)}wn[Si]=m0(go)}return wn})((function(Ne){for(var ke=(0,e.Cl)({},f6),We=0,wn=Ne;We<wn.length;We++){var xr=wn[We];Object.assign(ke,xr.ab)}return ke})(pe),Le,Te),se=(Wn=Et,Zn=tt,Tr=function(Ne,ke,We){return Ne(ke,We)},Xr=function(Ne,ke){return Ne(ke)},ir=function(Ne,ke){return Ne(ke)},(Array.isArray(Wn)?Wn:[Wn]).map((function(Ne){return Tr(su,Ne,hs)?Xr(u6,Zn):ir(String,Ne)}))),cn=(v=(function(Ne){for(var ke=0,We=Ne;ke<We.length;ke++){var wn=We[ke];if(wn.tls)return wn.tls}})(pe))===null||v===void 0?void 0:v(it,se,C,ut,void 0,o);return dr(o,(function(){return{e:12}})),[l6(pe,n6(pe,Hn,{urlHashing:ye,ab:Jt,te:(Bt=tt,Nt=function(Ne,ke){return Ne(ke)},xt=function(Ne,ke){return Ne(ke)},su(dn=Yt,y0)?Nt(c6,Bt):xt(String,dn))}),cn,C,se,d0(Ft),Rt,Tt,Qt,ye,Jt,Nn,o),Jt]}))];case 1:return[2,c.sent()[0]]}var p,y,w}))}))},d6=on(Kt),h6=vn(he,-1),p6=on(ne),v6=wt(h,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),g6=wt(Ee,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),El=vn(oe,-1),Rl=on(de),m6=vn(fe,-1),bl=vn(ue,-1),Al=wt(we,(function(i){return{s:0,v:i.map((function(s){return s===null?-1:s}))}})),Sl=vn(Ke,-1),y6=on(me),w6=on(Re),_6=on(un),E6=on(Me),R6=vn(De,-1),Il=vn(lr,-1),b6=vn(Ye,-1),A6=wt((function(){return Zt()}),(function(i){var s=i.geometry,o=i.text,c=s==="unsupported"?-1:s==="unstable"?-2:0;return{s:c,v:(0,e.Cl)((0,e.Cl)({},i),{geometry:c===0?pn(s):"",text:c===0?pn(o):""})}})),Ol=on(Ge),Nl=on(zr),S6=on(qe),I6=on(Je),O6=vn(os,-1),N6=vn(Qe,-1),T6=vn(tn,-1),x6=vn(ss,-1),L6=vn(en,-1),C6=vn(nn,-1),M6=vn(ji,-1),B6=vn(zi,-1),k6=wt(Ki,(function(i){return{s:0,v:pn(Object.keys(i).map((function(s){return"".concat(s,"=").concat(i[s])})).join(","))}})),U6=vn(Wi,-1),D6=on(Zi),P6=vn($i,-1),F6=wt(Xi,(function(i){return i===-1||i===-2||i===-3?{s:i,v:null}:{s:0,v:i}})),Tl=hl(Ji),xl=wt(Qi,(function(i){var s;if(typeof i=="number")return{s:i,v:null};var o=["32926","32928"],c=i.parameters.map((function(y){var w=y.split("=",3),_=w[0],v=w[1];return w[2]!==void 0||o.includes(v)?"".concat(_,"(").concat(v,")=null"):"".concat(_,"=").concat(v)})),p=i.extensionParameters.map((function(y){var w=y.split("=",3),_=w[0],v=w[1],I=w[2];return I!==void 0&&v!=="34047"?"".concat(_,"(").concat(v,")=").concat(I):"".concat(_,"=").concat(v)}));return{s:0,v:{contextAttributes:pn(i.contextAttributes.join("&")),parameters:pn(c.join("&")),parameters2:pn(i.parameters.join("&")),shaderPrecisions:pn(i.shaderPrecisions.join("&")),extensions:pn(((s=i.extensions)===null||s===void 0?void 0:s.join(","))||""),extensionParameters:pn(p.join(",")),extensionParameters2:pn(i.extensionParameters.join("&")),unsupportedExtensions:i.unsupportedExtensions}}})),H6=hl(qi),V6=Bn(Mn.userAgent),G6=Bn(Mn.appVersion),Y6=Bn(Mn.rtt),j6=Bn(Mn.notificationPermissions),z6=Bn(Mn.pluginsLength),K6=Bn(Mn.errorTrace),W6=Bn(Mn.productSub),Z6=Bn(Mn.documentElementKeys),$6=Bn(Mn.windowExternal),X6=Bn(Mn.mimeTypesConsistent),q6=Bn(Mn.functionBind),J6=Bn(Mn.process),Q6=Bn(Mn.windowSize),t8=Bn(Mn.distinctiveProps),Ll=on(P),Cl=on(d),Ml=on(S),Bl=on(U),kl=on(K),Ul=on(q),Dl=on(ct),Pl=on(al),e8=on(W);function n8(){var i=window;if(!S())return Ri(!1);try{if([66,114,97,118,101].map((function(w){return String.fromCharCode(w)})).join("")in i)return Ri(!0);var s=document.createElement("canvas");s.width=4,s.height=4,s.style.display="inline";var o=s.toDataURL();if(o==="")return Ri(!0);var c=fs(o.split(",")[1]),p=c0(c,[73,68,65,84,24]);if(p===-1)return Ri(!1);var y=c0(c,[73,69,78,68]);return Ri(y!==-1&&c.slice(p+5,y).reduce((function(w,_){return w+_}),0)!==1321)}catch{return Ri(!1)}}function Ri(i){return{s:0,v:i}}function Fl(){return Hl("dark")?{s:0,v:!0}:Hl("light")?{s:0,v:!1}:{s:-1,v:null}}function Hl(i){return matchMedia("(prefers-color-scheme: ".concat(i,")")).matches}function Vl(){var i=Date.now();return{s:0,v:[Gl(i),Gl(i-6e4*new Date().getTimezoneOffset())]}}function Gl(i){var s=Number(i);return isNaN(s)?-1:s}function r8(){var i=window.performance;if(!i?.now)return{s:-1,v:null};for(var s=1,o=1,c=i.now(),p=c,y=0;y<5e4;y++)if((c=p)<(p=i.now())){var w=p-c;w>s?w<o&&(o=w):w<s&&(o=s,s=w)}return{s:0,v:[s,o]}}var i8=xn([1910186786,4206938268,3099470367,511281317,2493621742,2512262268],6);function o8(){var i,s,o=function(y,w){return y===w},c=function(y,w,_){return y(w,_)},p=o(s=(function(y){return y===null})(i=window[(function(y){return y(0)})(i8)])||o(i,void 0)?void 0:c(Xt,i,3933025333),null)||(function(y){return y===void 0})(s)?void 0:c(Xt,s,3098533860);return(function(y){return y===null})(p)||o(p,void 0)?{s:-1,v:null}:{s:0,v:p}}function s8(i){var s=st(i.cache);return s?((function(o){o.clearColor(0,0,1,1);var c=o.createProgram();if(c){w(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);}"),w(1,"void main(){gl_FragColor=vec4(1,0,0,1);}"),o.linkProgram(c),o.useProgram(c),o.enableVertexAttribArray(0);var p=o.getUniformLocation(c,"t"),y=o.createBuffer();o.bindBuffer(34962,y),o.bufferData(34962,new Float32Array([0,1,-1,-1,1,-1]),35044),o.vertexAttribPointer(0,2,5126,!1,0,0),o.clear(16384),o.uniform1f(p,3.65),o.drawArrays(4,0,3)}function w(_,v){var I=o.createShader(35633-_);c&&I&&(o.shaderSource(I,v),o.compileShader(I),o.attachShader(c,I))}})(s),{s:0,v:pn(s.canvas.toDataURL())}):{s:-1,v:null}}function a8(i){return Yl(i,c8)}function u8(i){return Yl(i,f8)}function Yl(i,s){var o=i.cache;return(0,e.sH)(this,void 0,void 0,(function(){var c,p;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return typeof((c=window.speechSynthesis)==null?void 0:c.getVoices)!="function"?[2,{s:-1,v:null}]:(o.tts||(o.tts=(function(w){return(0,e.sH)(this,void 0,void 0,(function(){var _,v,I;return(0,e.YH)(this,(function(M){switch(M.label){case 0:if(_=function(){return w.getVoices()},(function(C){return!C.addEventListener||q()&&al()})(w))return[2,{v:_()}];v={v:null},M.label=1;case 1:return M.trys.push([1,,3,4]),[4,new Promise((function(C,X){var tt,et=function(){var it=_();it.length?(v.v=it,tt?.(),tt=Ha(C,50)):tt||(tt=as(C,600))};I=_i(w,"voiceschanged",(function(){try{et()}catch(it){X(it)}})),et()}))];case 2:return M.sent(),[3,4];case 3:return I&&as(I,1e4),[7];case 4:return[2,v]}}))}))})(c)),[4,o.tts]);case 1:return p=y.sent(),[2,function(){return p.v?s(p.v):{s:-2,v:null}}]}}))}))}function c8(i){var s=function(c){return c.replace(/([,\\])/g,"\\$1")},o=i.map((function(c){return[s(c.voiceURI),s(c.name),s(c.lang),c.localService?"1":"0",c.default?"1":"0"].join(",")})).sort();return{s:i.length?0:1,v:pn(JSON.stringify(o))}}function f8(i){var s=i.some((function(o){return nr(o.name.slice(0,6))===1655763047}));return{s:i.length?0:1,v:s}}var l8=["brands","mobile","platform","platformVersion","architecture","bitness","model","uaFullVersion","fullVersionList"];function d8(){var i;return(0,e.sH)(this,void 0,void 0,(function(){var s,o,c,p=this;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return(s=navigator.userAgentData)&&typeof s=="object"?(o={},c=[],typeof s.getHighEntropyValues!="function"?[3,2]:[4,Promise.all(l8.map((function(w){return(0,e.sH)(p,void 0,void 0,(function(){var _,v;return(0,e.YH)(this,(function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,s.getHighEntropyValues([w])];case 1:return(_=I.sent()[w])!==void 0&&(o[w]=typeof _=="string"?_:JSON.stringify(_)),[3,3];case 2:if(!((v=I.sent())instanceof Error&&v.name==="NotAllowedError"))throw v;return c.push(w),[3,3];case 3:return[2]}}))}))})))]):[2,{s:-1,v:null}];case 1:y.sent(),y.label=2;case 2:return[2,{s:0,v:{b:s.brands.map((function(w){return{b:w.brand,v:w.version}})),m:s.mobile,p:(i=s.platform)!==null&&i!==void 0?i:null,h:o,nah:c}}]}}))}))}function jl(i){var s=i.urlHashing;return(0,e.sH)(this,void 0,void 0,(function(){var o,c,p;return(0,e.YH)(this,(function(y){switch(y.label){case 0:return o=(function(){for(var w,_,v=[],I=window;;)try{var M=(w=I.location)===null||w===void 0?void 0:w.href,C=(_=I.document)===null||_===void 0?void 0:_.referrer;if(M===void 0||C===void 0)return{s:1,v};v.push({l:M,f:C});var X=I.parent;if(!X||X===I)return{s:0,v};I=X}catch(tt){if(p8(tt))return{s:1,v};throw tt}})(),c=[(0,e.Cl)({},o)],p={},[4,h8(o.v,s)];case 1:return[2,e.Cl.apply(void 0,c.concat([(p.v=y.sent(),p)]))]}}))}))}function h8(i,s){return(0,e.sH)(this,void 0,void 0,(function(){var o=this;return(0,e.YH)(this,(function(c){return[2,Promise.all(i.map((function(p){return(0,e.sH)(o,void 0,void 0,(function(){var y,w,_;return(0,e.YH)(this,(function(v){switch(v.label){case 0:return[4,Promise.all([ms(p.l,s),ms(p.f,s)])];case 1:return y=v.sent(),w=y[0],_=y[1],[2,{l:w,f:_}]}}))}))})))]}))}))}function p8(i){if(!i||typeof i!="object")return!1;var s=i;return!(!P()&&!d()||s.name!=="Error"&&s.name!=="TypeError"||s.message!=="Permission denied")||s.name==="SecurityError"}function v8(){return(function(i){var s=i.location,o=i.origin,c=s.origin,p=s.ancestorOrigins,y=null;if(p){y=new Array(p.length);for(var w=0;w<p.length;++w)y[w]=p[w]}return{s:0,v:{w:o??null,l:c??null,a:y}}})(window)}function zl(){return{s:0,v:eval.toString().length}}function Kl(){var i=navigator.webdriver;return i===null?{s:-1,v:null}:i===void 0?{s:-2,v:null}:{s:0,v:i}}function g8(){var i=function(o,c,p){return o(c,p)},s=this;return i(zn,Pn(250,{s:-2,v:null}),(function(){var o,c,p=function(y,w,_){return i(y,w,_)};return o=e.sH,c=function(){var y,w=function(_,v,I){return i(_,v,I)};return(function(_,v,I){return _(v,I)})(e.YH,this,(function(_){switch(_.label){case 0:return!((function(v,I){return(function(M,C){return M===C})(v,I)})(y=p(Xt,navigator,1417288500),null)||(function(v){return(function(I){return I===void 0})(v)})(y))&&p(Xt,y,3686698663)?[4,p(Xt,y,3686698663)().then((function(){return{s:0,v:""}}),(function(v){return{s:0,v:w(Xt,v,3065852031)}}))]:[2,{s:-1,v:null}];case 1:return[2,_.sent()]}}))},o(s,void 0,void 0,c)}))}function au(){var i;return uu([Ir(i=new Image().style,2882756133),Ir(i,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 m8(){var i;return uu([Ir(i=new Image().style,2487676862),Ir(i,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 y8(){return i=navigator,s=document.createElement("frameset"),o=Xt(i,704082790),uu([Ir(s,3017323393),Wl(i,859837811,"QjslADtOBipACA")||Wl(o,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 i,s,o}function Wl(i,s,o){var c=Ir(i,s);if(!c)return"";for(var p=fs(o),y=Array(p.length),w=0;w<p.length;w++)y[w]=p[w]^c.charCodeAt(w%c.length);return String.fromCharCode.apply(null,y)}function uu(i,s){for(var o=i.join(""),c=o.split(""),p=Array(o.length),y=0;y<p.length;++y)p[y]=c.splice(s[y%s.length],1);return p.join("")}var je=lo([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],au,1);function Zl(){if(!(function(s){return s in window})((i=je,i(1))))return!1;var i;try{return new window[(function(s){return s(1)})(je)],!0}catch(s){if((function(o){return o instanceof Error})(s)&&(function(o,c){return o===c})(s.name,(function(o){return o(2)})(je)))return!1;throw s}}function w8(i){return s=e.sH,o=function(){var c,p,y,w,_=function(v,I){return(function(M,C){return M(C)})(v,I)};return(function(v,I,M){return v(I,M)})(e.YH,this,(function(v){var I=function(M,C){return _(M,C)};switch(v.label){case 0:return c=_(cu,i),p=c[0],y=c[1],w=c[2],(function(M){return(function(C){return C!==0})(M)})(y)?[2,{n:p,l:y}]:[4,new Promise((function(M){var C=function(X,tt){return I(X,tt)};w[I(je,3)]((function(X){C(M,{n:p,l:X[C(je,4)]})}),(function(){C(M,{n:p,l:-1})}))}))];case 1:return[2,v.sent()]}}))},s(this,void 0,void 0,o);var s,o}function cu(i){for(var s={WceTb:"5|3|7|0|9|10|6|2|8|1|11|4",YXrDm:function(M,C,X){return M(C,X)},JsRES:function(M,C){return M(C)},WmCxs:function(M,C){return M(C)},kyiGc:function(M,C){return M===C},xozCJ:function(M,C){return M(C)},oRPyT:function(M,C){return M(C)},Unnxw:function(M,C){return M instanceof C},ZXJxt:function(M,C){return M===C},hAXYn:function(M,C){return M(C)},rrdYU:function(M,C){return M!==C},IPLsn:function(M,C){return M===C},qpBPk:function(M,C){return M(C)},tTnsV:function(M,C){return M===C},UBZPU:function(M,C){return M(C)},ijSLc:function(M,C){return M(C)},azIFr:function(M,C){return M(C)},axwYs:function(M,C){return M(C)},eKSOZ:function(M,C){return M===C}},o=s.WceTb.split("|"),c=0;;){switch(o[c++]){case"0":var p=s.YXrDm(Ir,new window[s.JsRES(je,5)]("")[s.WmCxs(je,6)](""),3626513111);continue;case"1":if(s.kyiGc(typeof I[s.WmCxs(je,16)],s.xozCJ(je,17)))return[y,-4,null];continue;case"2":try{v[s.oRPyT(je,11)][s.JsRES(je,12)](_)}catch(M){if(s.Unnxw(M,Error)&&s.ZXJxt(M.name,s.hAXYn(je,2))&&s.rrdYU(s.IPLsn(w=M[s.qpBPk(je,13)],null)||s.tTnsV(w,void 0)?void 0:w.indexOf(s.UBZPU(je,14)),-1))return[y,-3,null];throw M}continue;case"3":var y=i.split("/").slice(-1)[0];continue;case"4":return[y,0,I[s.ijSLc(je,16)][0]];case"5":var w;continue;case"6":var _=new window[s.WmCxs(je,9)]([],i,s.oRPyT(je,10));continue;case"7":var v=new window[s.qpBPk(je,1)];continue;case"8":I[s.azIFr(je,15)]=v[s.qpBPk(je,15)];continue;case"9":var I=document[s.oRPyT(je,7)](p);continue;case"10":I[s.JsRES(je,8)]=s.axwYs(je,3);continue;case"11":if(s.eKSOZ(I[s.qpBPk(je,16)].length,0))return[y,-2,null];continue}break}}var Or=xn([752472786,243421427,250966661,1304376727,44907654,246431386,1168077535,16463263,1619723729,1257995473,1606171802,1236083594,66480798,250966748,1912304588],4);function _8(){var i,s,o=function(_){return _()},c=function(_,v,I){return _(v,I)},p=function(_,v,I){return _(v,I)},y=function(_,v,I){return _(v,I)},w=function(_,v,I){return _(v,I)};return i=e.sH,s=function(){var _,v=this;return(0,e.YH)(this,(function(I){var M=function(et,it,ut){return(function(gt,Rt,vt){return gt(Rt,vt)})(et,it,ut)},C=function(et){return o(et)},X=function(et,it,ut,gt,Rt){return(function(vt,Et,Gt,Yt,Wt){return vt(Et,Gt,Yt,Wt)})(et,it,ut,gt,Rt)},tt=function(et,it){return(function(ut,gt){return ut(gt)})(et,it)};switch(I.label){case 0:return(_=je(0))?[3,2]:[4,c(zn,c(Pn,350,{s:-3,v:null}),(function(){var et=function(ut){return C(ut)},it=function(ut,gt){return(function(Rt,vt){return(function(Et,Gt){return Et(Gt)})(Rt,vt)})(ut,gt)};return X(e.sH,v,void 0,void 0,(function(){var ut;return M(e.YH,this,(function(gt){switch(gt.label){case 0:return ut={s:-3},[4,Promise.all([et($l)])];case 1:return[2,(ut[it(Or,0)]=gt.sent(),ut)]}}))}))}))];case 1:case 3:case 5:return[2,I.sent()];case 2:return o(Zl)?[3,4]:[4,p(zn,y(Pn,350,{s:-1,v:null}),(function(){var et=function(ut,gt){return(function(Rt,vt){return(function(Et,Gt){return Et(Gt)})(Rt,vt)})(ut,gt)},it=function(ut,gt){return tt(ut,gt)};return X(e.sH,v,void 0,void 0,(function(){var ut;return(function(gt,Rt,vt){return M(gt,Rt,vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:return ut={s:-1},[4,Promise.all([et($l,_[0])])];case 1:return[2,(ut[it(Or,0)]=gt.sent(),ut)]}}))}))}))];case 4:return[4,y(zn,w(Pn,350,{s:-2,v:null}),(function(){var et=function(it,ut){return tt(it,ut)};return X(e.sH,v,void 0,void 0,(function(){var it;return(function(ut,gt,Rt){return M(ut,gt,Rt)})(e.YH,this,(function(ut){switch(ut.label){case 0:return it={s:0},[4,Promise.all(_.map(w8))];case 1:return[2,(it[et(Or,0)]=ut.sent(),it)]}}))}))}))]}}))},i(this,void 0,void 0,s)}function $l(i){var s,o,c=function(v,I){return v(I)},p=function(v,I){return v(I)},y=function(v,I,M){return v(I,M)},w=function(v,I){return v===I},_=function(v,I){return v===I};return i===void 0&&(i=p(Or,1)),(function(v,I,M,C,X){return v(I,void 0,void 0,X)})(e.sH,this,0,0,(function(){var v,I,M;return y(e.YH,this,(function(C){v=i.split("/").slice(-1)[0];try{return I=new window[c(Or,2)]([],i),M=new window[c(Or,3)](p(Or,4).concat(y(Xt,I,4081332993)||"").concat(v,c(Or,5)).concat(y(Xt,I,3034174415))),(function(X){return X===""})(w(s=y(Xt,M,3518522040),null)||(function(X){return X===void 0})(s)?void 0:s.substring(1))?[2,{n:v,l:-2}]:[2,{n:v,l:p(nr,_(o=y(Xt,M,3518522040),null)||w(o,void 0)?void 0:o.substring(1))}]}catch{return[2,{n:v,l:-1}]}return[2]}))}))}var E8=xn([2072691393,3531177868,682500123,140161052,2954107647,581829239],6);function R8(){var i=function(o,c){return o===c},s=(function(o){return o(navigator,3087401394)})(Xt);return i(s,void 0)||i(s,null)?{s:-1,v:null}:{s:0,v:s}}function b8(){for(var i={pCQFw:"0|5|1|3|6|4|2",QPheb:function(M,C){return M(C)},cvtRQ:function(M,C){return M<C},obwRn:function(M,C,X){return M(C,X)},zLaAT:function(M,C,X,tt){return M(C,X,tt)},BBhKA:function(M,C){return M===C},dlsEs:function(M,C,X){return M(C,X)}},s=i.pCQFw.split("|"),o=0;;){switch(s[o++]){case"0":var c=window[i.QPheb(E8,0)];continue;case"1":var p=[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 y=[[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 w=0,_=y;i.cvtRQ(w,_.length);w++){var v=_[w];I<<=1,I|=i.obwRn(Xt,c,1108488788)(Uint8Array.of.apply(Uint8Array,i.zLaAT(e.fX,i.zLaAT(e.fX,[],p,!1),v,!1)))?1:0}continue;case"5":if(!(!(i.BBhKA(c,null)||i.BBhKA(c,void 0))&&i.dlsEs(Xt,c,1108488788)))return{s:-1,v:null};continue;case"6":var I=0;continue}break}}function A8(){for(var i={tzfkk:"3|4|0|2|1|5",hnlPn:function(I,M){return I-M},YETaQ:function(I,M){return I*M},zzipR:function(I,M){return I>=M},QPpiL:function(I,M){return I===M},YposS:function(I,M){return I%M},FPDfz:function(I,M){return I|M}},s=i.tzfkk.split("|"),o=0;;){switch(s[o++]){case"0":var c=4096;continue;case"1":for(var p=i.hnlPn(i.YETaQ(v,c),1);i.zzipR(p,0);--p)if(i.QPpiL(i.YposS(p,c),0)){var y=Math.random();_.push(i.FPDfz(i.YETaQ(i.hnlPn(w,y),Math.pow(2,31)),0)),w=y}continue;case"2":var w=Math.random();continue;case"3":var _=[];continue;case"4":var v=6;continue;case"5":return{s:0,v:_}}break}}function Xl(){var i=window.devicePixelRatio;return i==null?{s:-1,v:null}:{s:0,v:i}}function S8(){for(var i=navigator,s=["webkitPersistentStorage","connectionSpeed","xr","hid"],o=[],c=0,p=Object.getOwnPropertyNames(Object.getPrototypeOf(i));c<p.length;c++){var y=p[c];if(!s.includes(y)){var w=i[y];typeof w=="function"&&w.name!==void 0&&o.push(w.name)}}return{s:0,v:o}}function I8(){try{return objectToInspect,{s:0,v:!0}}catch{return{s:0,v:!1}}}function O8(){return typeof CSS>"u"?{s:-1,v:null}:{s:0,v:CSS.supports("backdrop-filter","blur(2px)")}}function N8(){if(typeof window.SharedArrayBuffer!="function")return{s:-2,v:null};var i=new window.SharedArrayBuffer(1);return i.byteLength===void 0?{s:-1,v:null}:{s:0,v:i.byteLength}}function T8(){if(typeof window.matchMedia!="function")return{s:-2,v:null};var i=window.matchMedia("(-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2), (min-resolution: 192dpi)");return i.matches===void 0?{s:-1,v:null}:{s:0,v:i.matches}}function x8(){try{throw"a"}catch(i){try{return i.toSource(),{s:0,v:!0}}catch{return{s:0,v:!1}}}}function L8(){return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(i){return[2,Y((function(s,o){var c=o.document.createElement("div");return c.style.border=".5px dotted transparent",o.document.body.appendChild(c),{s:0,v:c.offsetHeight}}))]}))}))}function C8(){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 M8(){return{s:0,v:!(!navigator.userAgentData||typeof navigator.userAgentData!="object")}}function B8(){if(navigator.plugins===void 0)return{s:-1,v:null};for(var i=navigator.plugins,s=Object.getPrototypeOf(i)===PluginArray.prototype,o=0;o<i.length;o++)s&&(s=Object.getPrototypeOf(i[o])===Plugin.prototype);return{s:0,v:s}}function k8(){return{s:0,v:[typeof SourceBuffer,typeof SourceBufferList]}}function U8(){return window.close===void 0?{s:-1,v:null}:{s:0,v:window.close.toString()}}function ql(){var i=navigator.language;return i?{s:0,v:i}:{s:-1,v:null}}function Jl(){var i=navigator.languages;return i?{s:0,v:i}:{s:-1,v:null}}function D8(){var i,s,o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return i=e.sH,s=function(){var p,y,w,_;return(function(v,I,M){return v(I,M)})(e.YH,this,(function(v){switch(v.label){case 0:return p=navigator,y=o(Xt,p,1417288500),(w=o(Xt,p,2706846255))||!((function(I){return I===null})(y)||(function(I){return I===void 0})(y))&&o(Xt,y,3538568711)?w?[4,Promise.race([o(oo,250,void 0),new Promise((function(I){(function(M,C){return o(M,C,1291883197)})(Xt,w)((function(M,C){return(function(X,tt){return(function(et,it){return et(it)})(X,tt)})(I,C)}))}))])]:[3,2]:[2,{s:-1,v:null}];case 1:if((function(I){return I!==void 0})(_=v.sent()))return[2,{s:0,v:_}];v.label=2;case 2:return!((function(I){return I===null})(y)||(function(I){return I===void 0})(y))&&c(Xt,y,3538568711)?[4,Promise.race([o(oo,250,void 0),c(Xt,y,3538568711)().then((function(I){return(function(M,C){return o(M,C,1813778413)})(Xt,I)}))])]:[3,4];case 3:if((function(I){return I!==void 0})(_=v.sent()))return[2,{s:1,v:_}];v.label=4;case 4:return[2,{s:-2,v:null}]}}))},i(this,void 0,void 0,s)}var P8=xn([3158227384,2888664152,4084918174,3589656136,3712538156,4029405675,3656566123,3630103819,3648705019],6);function F8(){var i=function(s,o){return s===o};return(0,e.sH)(this,void 0,void 0,(function(){var s,o=function(y){return(function(w){return w()})(y)},c=function(y,w,_){return(function(v,I,M){return v(I,M)})(y,w,_)},p=function(y){return(function(w){return w()})(y)};return(function(y,w,_){return y(w,_)})(e.YH,this,(function(y){switch(y.label){case 0:return o(S)&&o(D4)?[2,{s:-3,v:null}]:[4,Promise.race([c(oo,100,null),p(H8)])];case 1:return(function(w){return i(w,null)})(s=y.sent())?[2,{s:-2,v:null}]:(function(w){return i(w,void 0)})(s)?[2,{s:-1,v:null}]:[2,{s:0,v:s}]}}))}))}function H8(){var i=function(o,c){return o(c)},s=function(o,c,p,y,w){return o(c,p,y,w)};return s(e.sH,this,void 0,void 0,(function(){var o,c=function(p,y){return i(p,y)};return(function(p,y,w){return p(y,w)})(e.YH,this,(function(p){return(o=window[(function(y,w){return i(y,w)})(P8,0)])?[2,new Promise((function(y){(function(w,_,v,I,M){s(w,_,v,I,M)})(o,0,1,(function(){return(function(w){return c(w,!0)})(y)}),(function(){return(function(w){return c(w,!1)})(y)}))}))]:[2,void 0]}))}))}function V8(){return Y((function(i,s){var o=s.screen,c=function(p){var y=parseInt(p);return typeof y=="number"&&isNaN(y)?-1:y};return{s:0,v:{w:c(o.width),h:c(o.height)}}}))}var $r=xn([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 G8(){try{return(function(s,o){return s(o)})(Ql,!!window[i=$r,i(0)])}catch{return(function(o){return o(!0)})(Ql)}var i}function Ql(i){return{s:0,v:i}}function Y8(){var i=function(c){return c()},s=function(c,p,y){return c(p,y)},o=this;return s(zn,Pn(250,{s:-3,v:null}),(function(){return c=e.sH,p=function(){var y=function(w){return i(w)};return s(e.YH,this,(function(w){return y(U)||(function(_){return i(_)})(q)?[2,y(j8)]:[2,{s:-1,v:null}]}))},c(o,void 0,void 0,p);var c,p}))}function j8(){var i,s,o=function(c,p){return c(p)};return i=e.sH,s=function(){var c,p,y={BQeod:function(w,_){return o(w,_)},iOflQ:function(w,_,v){return(function(I,M,C){return I(M,C)})(w,_,v)},uZYOC:function(w,_){return o(w,_)},DssqK:function(w){return(function(_){return _()})(w)},FbFdf:function(w,_){return(function(v,I){return v(I)})(w,_)},TWEdd:function(w,_){return(function(v,I){return v instanceof I})(w,_)},NPofR:function(w,_){return(function(v,I){return v===I})(w,_)},saNhW:"4|2|0|3|1",ywkCU:function(w,_){return(function(v,I){return v(I)})(w,_)},tYhgW:function(w,_,v){return(function(I,M,C){return I(M,C)})(w,_,v)}};return(function(w,_,v){return w(_,v)})(e.YH,this,(function(w){for(var _=y.saNhW.split("|"),v=0;;){switch(_[v++]){case"0":if(!c)return[2,{s:-2,v:null}];continue;case"1":return[2,new Promise((function(M,C){try{var X=y.iOflQ(Xt,c,2758837156)(p,1);X[y.BQeod($r,1)]=function(){(function(tt){y.BQeod(tt,{s:-5,v:null})})(M)},X[y.uZYOC($r,2)]=function(tt){var et=I.Qxjcv(Xt,I.Qxjcv(Xt,tt,1181691900),325763347);try{return I.Qxjcv(Xt,I.ehgXq(Xt,et,138212912)("-",I.zaFXk($r,3)),2928708052)(new window[I.zaFXk($r,4)]),void I.zaFXk(M,{s:0,v:""})}catch(it){if(I.pOfaM(it,Error))return void I.zaFXk(M,{s:0,v:I.ehgXq(Xt,it,3065852031)});I.zaFXk(C,it)}finally{I.tUivq(Xt,et,318865860)(),I.tUivq(Xt,c,3885781331)(p)}}}catch(tt){if(!y.DssqK(U))return void y.FbFdf(M,{s:-5,v:null});if(y.TWEdd(tt,Error)&&y.NPofR(tt.name,y.FbFdf($r,5)))return void y.uZYOC(M,{s:-4,v:null});y.FbFdf(C,tt)}}))];case"2":c=window[y.FbFdf($r,0)];continue;case"3":p="".concat(y.ywkCU(ao,16));continue;case"4":var I={Qxjcv:function(M,C,X){return y.tYhgW(M,C,X)},ehgXq:function(M,C,X){return y.iOflQ(M,C,X)},zaFXk:function(M,C){return y.BQeod(M,C)},pOfaM:function(M,C){return y.TWEdd(M,C)},tUivq:function(M,C,X){return y.tYhgW(M,C,X)}};continue}break}}))},i(this,void 0,void 0,s)}var td=xn([3374490785,3473914354,2687361672,2338446584,2909720041,3983198953,2690882468,2623789291,2927482620,2452479215],4);function z8(){var i=function(p,y,w){return p(y,w)},s="test";if(!U()||(function(p){return p()})(M4))return{s:-1,v:null};var o=window[(function(p){return p(0)})(td)],c=window[(function(p){return p(1)})(td)];try{(function(p){p(null,null,null,null)})(o)}catch{return{s:0,v:!0}}try{return i(Xt,c,2330630162)(s,"1"),i(Xt,c,588657539)(s),{s:0,v:!1}}catch{return{s:0,v:!0}}}function K8(){var i=Object.getOwnPropertyDescriptor(document,"createElement");return i?{s:0,v:!("writeable"in i)}:{s:-1,v:null}}function W8(){return{s:0,v:!!navigator.onLine}}var xe=xn([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 Z8(i){return(function(s,o){return s(o,2660613247)})(Xt,i)||(i[(function(s){return s(0)})(xe)]={})}var $8=[[xe(1),function(i){return nd(!1,i)}],[xe(2),function(){return nd(!0)}],[xe(3),function(){return i=ho,s=xe(4),i(s);var i,s}],[xe(5),function(){var i=function(s,o){return s(o)};return i(ho,i(xe,6))}],[xe(7),function(){var i=function(s,o){return s(o)};return i(ho,i(xe,8))}],[xe(9),function(){var i=function(s,o){return s(o)};return i(ho,i(xe,10))}]];function X8(){var i=function(o,c){return o(c)},s=function(o,c){return o in c};return((function(o){return o in window})(i(xe,11))||(function(o){return o in window})(i(xe,12))||s((function(o){return o(13)})(xe),window))&&s((function(o){return o(14)})(xe),navigator)}function q8(){var i,s=function(o,c){return o(c)};return!(function(o){return o()})(S)||!(function(o){return o in document})(s(xe,15))||((function(o){return o===null})(i=document[s(xe,15)])||(function(o){return o===void 0})(i)?void 0:(function(o,c){return o(c,2256349940)})(Xt,i)().includes(s(xe,16)))}function J8(){return(function(i){return i in navigator})(xe(17))&&(function(i,s){return i in s})((function(i){return i(18)})(xe),(function(i){return i(navigator,2900309608)})(Xt))}function Q8(i,s,o){var c,p=function(w,_){return w!==_},y=function(w,_){return w!==_};return(function(w){return w===void 0})(s)&&(s={}),p(o,null)&&p(o,void 0)||(o=[(function(w){return w()})(rd)]),y(c=s[i],null)&&y(c,void 0)?c:s[i]=(function(w){return w(navigator,3994889901)})(Xt)(i,o)}function ho(i,s,o){var c=function(p,y,w,_){return p(y,w,_)};return(function(p,y,w,_,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,y,w;return(function(_,v,I){return _(v,I)})(e.YH,this,(function(_){switch(_.label){case 0:p=0,y=i,_.label=1;case 1:if(!(function(v,I){return v<I})(p,y.length))return[3,6];w=y[p],_.label=2;case 2:return _.trys.push([2,4,,5]),[4,c(Q8,w,s,o)];case 3:return[2,!!_.sent()];case 4:return _.sent(),[3,5];case 5:return p++,[3,1];case 6:return[2,!1]}}))}))}var ed=xe(19);function ty(){var i=function(_,v){return _(v)},s=function(_,v){return _(v)},o=function(_,v){return _(v)},c=function(_,v,I){return _(v,I)},p=function(_,v){return _ in v},y=function(_,v){return _(v)},w=function(_){return _()};return(0,e.sH)(this,void 0,void 0,(function(){var _,v,I;return c(e.YH,this,(function(M){switch(M.label){case 0:return(function(C){return C()})(q)||(function(C){return C()})(ct)?[2,!1]:(_=!1,(function(C){return C()})(J8)?(v={type:i(xe,20),audio:s(xe,21),video:o(xe,22),keySystemConfiguration:{keySystem:ed,video:o(xe,23)}},[4,c(Xt,c(Xt,navigator,2900309608),3516168465)(v)]):[3,2]);case 1:I=M.sent(),_=(function(C,X,tt){return C(X,tt)})(t4,I,(function(C){return C(24)})(xe))&&I[(function(C){return C(24)})(xe)],M.label=2;case 2:return[2,_&&!p(y(xe,25),navigator)||!w(S)]}}))}))}function ey(i){for(var s={HkMtb:"3|2|0|4|1",pPhzD:function(y,w,_){return y(w,_)},EAQNq:function(y,w){return y(w)},cWdUy:function(y,w){return y(w)},NbRpv:function(y){return y()},dFENT:function(y,w){return y===w},npgEB:function(y,w){return y(w)}},o=s.HkMtb.split("|"),c=0;;){switch(o[c++]){case"0":s.pPhzD(Xt,p,621177879)&&(s.pPhzD(Xt,p,621177879)[0][s.EAQNq(xe,26)]=s.cWdUy(xe,27));continue;case"1":return p;case"2":var p=s.NbRpv(rd);continue;case"3":s.dFENT(i,void 0)&&(i=!1);continue;case"4":i&&(p[s.cWdUy(xe,28)]=s.npgEB(xe,29));continue}break}}function nd(i,s){return i===void 0&&(i=!1),o=e.sH,c=function(){var p,y=function(_){return(function(v){return v()})(_)},w=function(_,v,I,M){return(function(C,X,tt,et){return C(X,tt,et)})(_,v,I,M)};return(function(_,v,I){return _(v,I)})(e.YH,this,(function(_){switch(_.label){case 0:return[4,y(ty)];case 1:return _.sent()?(p=(function(v,I){return(function(M,C){return M(C)})(v,I)})(ey,i),[4,w(ho,[ed],s,[p])]):[2,!1];case 2:return[2,_.sent()]}}))},o(this,void 0,void 0,c);var o,c}function rd(){return xe(30)}function ny(i){var s=function(y,w,_){return y(w,_)},o=function(y,w,_,v,I){return y(w,_,v,I)},c=function(y,w,_){return y(w,_)},p=c(Xt,i,1095199719);return o(e.sH,this,void 0,void 0,(function(){var y,w=function(tt,et){return(function(it,ut){return it(ut)})(tt,et)},_=function(tt,et,it){return s(tt,et,it)},v=function(tt,et,it,ut,gt){return o(tt,et,it,ut,gt)},I=function(tt){return(function(et){return et()})(tt)},M=function(tt,et,it){return s(tt,et,it)},C=function(tt,et,it){return s(tt,et,it)},X=this;return c(e.YH,this,(function(tt){return I(X8)&&I(q8)?I(ct)?[2,function(){return{s:-3,v:null}}]:(y=w(Z8,p),[2,M(zn,C(Pn,250,{s:-2,v:null}),(function(){var et=function(Rt,vt){return(function(Et,Gt){return(function(Yt,Wt){return Yt<Wt})(Et,Gt)})(Rt,vt)},it=function(Rt,vt){return w(Rt,vt)},ut=function(Rt,vt,Et){return _(Rt,vt,Et)},gt=function(Rt,vt,Et,Gt,Yt){return v(Rt,vt,Et,Gt,Yt)};return v(e.sH,X,void 0,void 0,(function(){var Rt,vt,Et,Gt,Yt,Wt,Tt,Ft=function(Qt,re){return it(Qt,re)},$t=this;return ut(e.YH,this,(function(Qt){switch(Qt.label){case 0:return[4,Promise.all($8.map((function(re){var ce=function(ye,pe){return Ft(ye,pe)};return(function(ye,pe,Oe,Le,Ce){return gt(ye,pe,void 0,void 0,Ce)})(e.sH,$t,0,0,(function(){var ye,pe,Oe;return(function(Le,Ce,Te){return(function(rn,Nn,gn){return ut(rn,Nn,gn)})(Le,Ce,Te)})(e.YH,this,(function(Le){switch(Le.label){case 0:return ye=re[0],pe=re[1],Oe=[ye],[4,ce(pe,y)];case 1:return[2,Oe.concat([Le.sent()])]}}))}))})))];case 1:for(Rt=Qt.sent(),vt={},Et=0,Gt=Rt;et(Et,Gt.length);Et++)Yt=Gt[Et],Wt=Yt[0],Tt=Yt[1],vt[Wt]=Tt;return[2,{s:0,v:vt}]}}))}))}))]):[2,function(){return{s:-1,v:null}}]}))}))}var ry=xn([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 iy(){for(var i,s,o={},c=0,p=ry(0);c<p.length;c++)for(var y=p[c],w=y[0],_=0,v=y[1];_<v.length;_++){var I=v[_],M=(s=(i=Object.getOwnPropertyDescriptor(window[w],I))===null||i===void 0?void 0:i.get)===null||s===void 0?void 0:s.toString();M!==void 0&&(o["".concat(w,".").concat(I)]=M)}return{s:0,v:o}}var id=4191585516,oy=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,id]);function sy(){for(var i=[],s=Object.getOwnPropertyNames(window),o=0;o<s.length;o++){var c=s[o],p=nr(c);if(oy.has(p)&&i.push(c),p===id){var y=s[o+1]||"";i.push(y)}}return{s:0,v:i}}function ay(){return Y((function(i,s){var o={},c=s.document.createElement("div");s.document.body.appendChild(c);for(var p,y={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"},w=0,_=Object.keys(y);w<_.length;w++){var v=_[w];o[y[v]]=(p=v,c.style.color=p,s.getComputedStyle(c).color)}return{s:0,v:o}}))}function uy(){return Y((function(i,s){var o=s.navigator.webdriver;return o===null?{s:-1,v:null}:o===void 0?{s:-2,v:null}:{s:0,v:o}}))}function cy(){return(function(i){var s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"hardwareConcurrency");if(!s||!s.get)return{s:-1,v:null};var o=window.Function,c=window.Object,p=!1;try{p=delete window.Function&&delete window.Object}catch{p=!1}if(!p)return y(),{s:-2,v:null};try{return s.get.toString(),{s:0,v:!1}}catch{return{s:0,v:!0}}finally{y()}function y(){try{window.Function=o,window.Object=c}catch{}}})(navigator)}function od(i,s){for(var o={},c=i.getBoundingClientRect(),p=0,y=["x","y","left","right","bottom","height","top","width"];p<y.length;p++){var w=y[p];w in c&&(o[w]=c[w])}var _=s.getComputedStyle(i,null).getPropertyValue("font-family");return o.font=_,o}function fy(){for(var i="",s=128512;s<=128591;s++){var o=String.fromCodePoint(s);i+=o}return Y((function(c,p){var y=p.document.createElement("span");return y.style.whiteSpace="nowrap",y.innerHTML=i,p.document.body.append(y),{s:0,v:od(y,p)}}))}function ly(){var i="<mrow><munderover><mmultiscripts><mo>∏</mo>";function s(w,_,v,I,M){return"<mmultiscripts><mi>".concat(w,"</mi><mi>").concat(_,"</mi><mi>").concat(v,"</mi>")+"<mprescripts></mprescripts><mi>".concat(I,"</mi><mi>").concat(M,"</mi></mmultiscripts>")}for(var o=0,c=[["𝔈","υ","τ","ρ","σ"],["𝔇","π","ο","ν","ξ"],["𝔄","δ","γ","α","β"],["𝔅","θ","η","ε","ζ"],["𝔉","ω","ψ","ϕ","χ"],["ℭ","μ","λ","ι","κ"]];o<c.length;o++){var p=c[o],y=s.apply(void 0,p);i+=y}return i+="</munderover></mrow>",Y((function(w,_){var v=_.document.createElement("math");return v.style.whiteSpace="nowrap",v.innerHTML=i,_.document.body.append(v),{s:0,v:od(v,_)}}))}var dy=xn([1024705730,641842159,2578743392,3876471597,2070139803],6);function hy(){var i=Xt(navigator,2698072953);return i?{s:0,v:(function(s,o){return s(o)})(py,i)}:{s:-1,v:null}}function py(i){var s=function(_,v){return _<v},o=function(_,v,I){return _(v,I)},c=function(_,v,I){return _(v,I)},p=(function(_){return _(Object,1110892003)})(Xt)(i,(function(_){return _(0)})(dy));if(p&&(function(_,v){return _(v,2813370411)})(Xt,p))return!0;for(var y=0;s(y,i.length);y++){var w=o(Xt,Object,1110892003)(i,y);if(w&&(c(Xt,w,2813370411)||o(Xt,w,1651707638)))return!0}return!1}var Pe=lo([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],au,0);function vy(){for(var i={YQAxx:"0|2|4|1|3",NxnUc:"1|2|0|3|4|5",dRZXE:function(w,_){return w!==_},arEiG:function(w,_){return w(_)},FEyAC:function(w,_){return w|_},cUIUX:function(w,_){return w&_},vaJLl:function(w,_){return w&_},osTKi:function(w,_){return w(_)},vuPdB:function(w,_){return w+_},euenK:function(w,_){return w(_)}},s=i.YQAxx.split("|"),o=0;;){switch(s[o++]){case"0":var c={nkHEv:i.NxnUc,yPbQz:function(w,_){return i.dRZXE(w,_)},cIFeZ:function(w,_){return i.arEiG(w,_)},kGvFR:function(w,_){return i.FEyAC(w,_)},eFyAy:function(w,_){return i.cUIUX(w,_)},WLFtS:function(w,_){return i.vaJLl(w,_)},uzqnn:function(w,_){return i.osTKi(w,_)},rqcBN:function(w,_){return i.vuPdB(w,_)}};continue;case"1":Object.defineProperty(p,i.osTKi(Pe,2),{value:y});continue;case"2":var p=i.euenK(fs,i.arEiG(Pe,0));continue;case"3":return p;case"4":var y=function(w){for(var _=c.nkHEv.split("|"),v=0;;){switch(_[v++]){case"0":var I=this[C];continue;case"1":var M;continue;case"2":var C=c.yPbQz(M=this[c.cIFeZ(Pe,1)],null)&&c.yPbQz(M,void 0)?M:0;continue;case"3":this[C]=c.kGvFR(c.eFyAy(I,~w),c.WLFtS(~I,w));continue;case"4":this[c.uzqnn(Pe,1)]=c.rqcBN(C,1);continue;case"5":return I}break}};continue}break}}function gy(i){var s,o,c,p=function(_,v){return _(v)},y=function(_,v){return _===v},w=function(_,v){return _(v)};return o=e.sH,c=function(){var _,v,I,M,C,X,tt=function(vt,Et){return p(vt,Et)},et=function(vt,Et){return w(vt,Et)},it=function(vt,Et,Gt,Yt,Wt){return(function(Tt,Ft,$t,Qt,re){return Tt(Ft,$t,Qt,re)})(vt,Et,Gt,Yt,Wt)},ut=function(vt,Et){return p(vt,Et)},gt=function(vt,Et){return p(vt,Et)},Rt=this;return(function(vt,Et,Gt){return vt(Et,Gt)})(e.YH,this,(function(vt){switch(vt.label){case 0:return _=window[p(Pe,3)],(v=y(s=_[p(Pe,4)],null)||y(s,void 0)?void 0:s.bind(_))?(I=w(Pe,5),M=p(Pe,6),C={},[4,Promise.all(I.map((function(Et){var Gt=function(Qt,re,ce){return(function(ye,pe,Oe){return(function(Le,Ce,Te){return Le(Ce,Te)})(ye,pe,Oe)})(Qt,re,ce)},Yt=function(Qt,re){return tt(Qt,re)},Wt=function(Qt,re){return et(Qt,re)},Tt=function(Qt,re){return(function(ce,ye){return(function(pe,Oe){return pe<Oe})(ce,ye)})(Qt,re)},Ft=function(Qt,re,ce,ye,pe){return it(Qt,re,ce,ye,pe)},$t=function(Qt,re){return gt(Qt,re)};return it(e.sH,Rt,void 0,void 0,(function(){var Qt,re,ce,ye,pe,Oe,Le,Ce;return(function(Te,rn,Nn){return(function(gn,Hn,Wn){return gn(Hn,Wn)})(Te,rn,Nn)})(e.YH,this,(function(Te){switch(Te.label){case 0:return Te.trys.push([0,9,,10]),[4,Gt(v,Et,M)];case 1:return[4,Te.sent()[Yt(Pe,7)]()];case 2:Qt=Te.sent(),re=Qt[Wt(Pe,8)](),ce=[92,189,203],ye=0,Te.label=3;case 3:if(!Tt(ye,3))return[3,8];Te.label=4;case 4:return Te.trys.push([4,6,,7]),pe=C,Oe=Wt(nr,Et),[4,Ft(my,Qt,re,i,ce)];case 5:return pe[Oe]=Te.sent(),[2];case 6:if((function(rn,Nn){return ut(rn,Nn)})(_y,Le=Te.sent()))return ce=$t(yy,i),[3,7];throw $t(wy,ce),Le;case 7:return ye++,[3,3];case 8:return[3,10];case 9:return Ce=Te.sent(),X=Ce,[3,10];case 10:return[2]}}))}))})))]):[2,null];case 1:if(vt.sent(),X&&y(Object.keys(C).length,0))throw X;return[2,C]}}))},o(this,void 0,void 0,c)}function my(i,s,o,c){var p=function(I,M){return I(M)},y=function(I,M){return I(M)},w=function(I,M){return I(M)},_=function(I,M){return I(M)},v=function(I,M){return I(M)};return new Promise((function(I,M){s[_(Pe,9)]=function(C){return p(I,{i:y(cs,c),t:p(nr,C[y(Pe,10)]),s:s[y(Pe,11)],e:s[w(Pe,12)],p:_(er,C[v(Pe,13)])})},i[_(Pe,14)](o),s[(function(C){return C(15)})(Pe)]((function(C){return C(16)})(Pe),c).catch(M)}))}function yy(i){for(var s={UtaFw:"4|0|1|2|3",ulOIn:function(I,M){return I-M},pxHuO:function(I,M){return I>=M},pGlZB:function(I,M){return I(M)},ooLWC:function(I,M){return I+M},buezi:function(I,M){return I<<M},btVnF:function(I,M){return I%M},wSoGJ:function(I,M){return I*M},lowup:function(I,M){return I%M},hsYMn:function(I,M){return I*M}},o=s.UtaFw.split("|"),c=0;;){switch(o[c++]){case"0":var p=v.length;continue;case"1":var y=137;continue;case"2":for(var w=s.ulOIn(i.length,1);s.pxHuO(w,0);w--){var _=i[s.pGlZB(Pe,2)](s.ooLWC(s.buezi(w,8),y));v[s.btVnF(w,p)]^=s.ooLWC(_,s.wSoGJ(v[s.btVnF(s.ooLWC(w,1),p)],17)),y=_}continue;case"3":return s.pGlZB(Sr,s.pGlZB(er,v).slice(0,3));case"4":var v=new Uint8Array([s.lowup(Date.now(),1024),s.hsYMn(Math.random(),65536)]);continue}break}}function wy(i){for(var s=function(_,v){return _<v},o=function(_,v){return _+v},c=function(_,v){return _%v},p=function(_,v){return _-v},y=0;s(y,i.length);y++){var w=65;i[y]=o(w,c(i[y],p(122,w)))}}function _y(i){return(function(s,o){return s(o)})(us,i)&&(function(s,o){return s===o})("".concat(i),(function(s){return s(17)})(Pe))}function Ey(){var i=function(s,o){return s(o)};return(function(s,o,c,p,y){return s(o,void 0,void 0,y)})(e.sH,this,0,0,(function(){var s,o,c,p=function(tt,et){return i(tt,et)},y=function(tt){return(function(et){return et()})(tt)},w=function(tt,et){return(function(it,ut){return it in ut})(tt,et)},_=function(tt,et){return(function(it,ut){return it(ut)})(tt,et)},v=function(tt,et,it,ut){return(function(gt,Rt,vt,Et){return gt(Rt,vt,Et)})(tt,et,it,ut)},I=function(tt,et){return i(tt,et)},M=function(tt,et,it,ut){return(function(gt,Rt,vt,Et){return gt(Rt,vt,Et)})(tt,et,it,ut)},C=function(tt,et){return(function(it,ut){return it(ut)})(tt,et)},X=function(tt,et){return(function(it,ut){return it&&ut})(tt,et)};return(function(tt,et,it){return tt(et,it)})(e.YH,this,(function(tt){switch(tt.label){case 0:return y(k4)?[2,!w(p(Pe,19),window[_(Pe,20)][p(Pe,21)])]:y(B4)?[4,Promise.all([v(sd,I(Pe,22),(function(){return!0}),(function(){return!1})),M(sd,C(Pe,23),(function(){return!1}),(function(et){return(function(it){return(function(ut,gt){return ut instanceof gt})(it,Error)})(et)&&(function(it,ut){return(function(gt,Rt){return gt===Rt})(it,ut)})(et.name,p(Pe,24))}))])]:[3,2];case 1:return s=tt.sent(),o=s[0],c=s[1],[2,X(o,c)];case 2:return[2,!1]}}))}))}function sd(i,s,o){var c=function(p,y){return p(y)};return new Promise((function(p){var y=function(I,M){return c(I,M)},w=c(cu,i),_=w[1],v=w[2];if((function(I){return I!==0})(_))return(function(I){return I(!1)})(p);v[c(Pe,25)]((function(){return(function(I,M){return(function(C,X){return C(X)})(I,M)})(p,(function(I){return(function(M){return M()})(I)})(s))}),(function(I){return y(p,y(o,I))}))}))}var Ry=xn([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 by(){var i=function(s,o,c){return s(o,c)};return i(zn,i(Pn,2e3,{s:-2,v:null}),Ay)}function Ay(){var i,s=function(M){return M()},o=function(M,C){return M(C)},c=function(M,C){return M(C)},p=function(M,C){return M<C},y=function(M,C){return M===C},w=function(M,C,X){return M(C,X)},_=function(M,C,X){return M(C,X)},v=function(M,C){return M(C)},I=function(M,C){return M(C)};return(function(M,C,X,tt,et){return M(C,void 0,void 0,et)})(e.sH,this,0,0,(function(){var M,C,X,tt,et,it,ut,gt,Rt,vt,Et,Gt,Yt;return _(e.YH,this,(function(Wt){switch(Wt.label){case 0:M=window,C=s(vy),X=o(Ry,0),Wt.label=1;case 1:for(Wt.trys.push([1,2,,5]),tt="".concat(c(fu,C[0])).concat(c(fu,C[1])).concat(o(fu,C[2])),et=X[tt],it=Object.values(et),ut={},gt=0,Rt=(Yt=Object.keys(M)).slice.apply(Yt,it);p(gt,Rt.length);gt++)vt=Rt[gt],Et=y(i=w(Xt,Object,1110892003)(M,vt),null)||y(i,void 0)?void 0:_(Xt,i,494360628),ut[o(nr,vt)]={i:!0,t:null,s:vt.slice(-3),e:12,p:v(String,Et).slice(0,50)};return[2,{s:-3,v:ut}];case 2:return Wt.sent(),[4,s(Ey)];case 3:return Wt.sent()?[2,{s:-4,v:null}]:[4,I(gy,C)];case 4:return(Gt=Wt.sent())?[2,{s:0,v:Gt}]:[2,{s:-1,v:null}];case 5:return[2]}}))}))}function fu(i){return"".concat(Ya[(function(s){return s>>4})(i)]).concat(Ya[(function(s){return s%16})(i)])}var sn=xn([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 ad(i){var s=function(c,p,y){return c(p,y)},o=Xt(i,928136154);return(0,e.sH)(this,void 0,void 0,(function(){var c,p,y=function(I){return(function(M){return M()})(I)},w=function(I,M){return(function(C,X){return C===X})(I,M)},_=function(I,M,C){return s(I,M,C)},v=function(I,M,C){return(function(X,tt,et){return X(tt,et)})(I,M,C)};return s(e.YH,this,(function(I){switch(I.label){case 0:return c=y(p0),[4,_(zn,v(Pn,300,-4),Sy.bind(null,c,o))];case 1:return p=I.sent(),[2,function(){var M=(function(C){return y(C)})(p);return(function(C){return w(C,0)})(M)||(function(C){return w(C,-4)})(M)?{s:M,v:{u:c,e:[],s:[]}}:{s:M,v:null}}]}}))}))}function Sy(i,s){var o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return(function(p,y,w,_,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p,y,w,_,v,I,M,C,X=function(gt,Rt,vt){return o(gt,Rt,vt)},tt=function(gt,Rt,vt){return c(gt,Rt,vt)},et=function(gt,Rt){return(function(vt,Et){return vt!==Et})(gt,Rt)},it=function(gt,Rt,vt){return c(gt,Rt,vt)},ut=function(gt,Rt,vt){return(function(Et,Gt,Yt){return Et(Gt,Yt)})(gt,Rt,vt)};return(function(gt,Rt,vt){return gt(Rt,vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:if(p=X(Iy,i,s),y=X(Ny,p,!0),w=tt(Xt,y,453955339),_=tt(Xt,y,1801730948),et(w,0))return[2,w];v=X(Cy,_,s),gt.label=1;case 1:return gt.trys.push([1,,4,5]),[4,it(Xt,v,142982734)()];case 2:return I=gt.sent(),M=tt(Xt,I,453955339),C=tt(Xt,I,1801730948),et(M,0)?[2,M]:[4,ut(Xt,_,76151562)(C)];case 3:return gt.sent(),[2,0];case 4:return(function(Rt,vt){return o(Rt,vt,107910612)})(Xt,v)(),[7];case 5:return[2]}}))}))}function Iy(i,s){for(var o={AvCwh:"2|1|5|0|3|4",sALZI:function(_,v){return _(v)}},c=o.AvCwh.split("|"),p=0;;){switch(c[p++]){case"0":var y={};continue;case"1":w[o.sALZI(sn,1)]=o.sALZI(Oy,s);continue;case"2":var w=o.sALZI(sn,0);continue;case"3":y[o.sALZI(sn,3)]=[w];continue;case"4":return y;case"5":w[o.sALZI(sn,2)]=i;continue}break}}function Oy(i){var s=function(o,c){return o(c)};return s(sn,4).concat((function(o,c,p){return o(c,p)})(iu,i,s(sn,5)))}var ud=sn(6);function Ny(i,s){for(var o={xqmnO:"4|3|0|2|1",SaOtC:function(_,v){return _ instanceof v},xPGBK:function(_,v){return _===v},DCAVD:function(_,v){return _(v)},fgKXx:function(_,v){return _(v)}},c=o.xqmnO.split("|"),p=0;;){switch(c[p++]){case"0":var y;continue;case"1":return{s:0,v:y};case"2":try{y=new w(i)}catch(_){if(o.SaOtC(_,Error)){if(o.xPGBK(_.name,ud))return{s:-6,v:null};if(o.DCAVD(xy,_))return{s:-9,v:null}}throw _}continue;case"3":if(!w)return{s:-3,v:null};continue;case"4":var w=s?window[o.fgKXx(sn,7)]||window[o.DCAVD(sn,8)]:window[o.DCAVD(sn,7)];continue}break}}function Ty(i,s){var o,c=function(p,y){return p===y};try{return c(o=(function(p,y){return p(y,34843658)})(Xt,i),null)||c(o,void 0)||o.call(i,s||Math.random().toString()),0}catch(p){if((function(y){return y instanceof Error})(p)&&c(p.name,ud))return-7;throw p}}function xy(i){return(function(s,o){return s===o})(i.name,(function(s){return s(9)})(sn))&&(function(s,o){return s(o,3632233996)})(Xt,new RegExp((function(s){return s(10)})(sn)))((function(s,o){return s(o,3065852031)})(Xt,i))}function po(i){try{Xt(i,318865860)()}catch{}}function Ly(i,s){var o=function(c,p,y){return c(p,y)};return(function(c,p,y,w,_){return c(p,void 0,void 0,_)})(e.sH,this,0,0,(function(){var c,p;return(function(y,w,_){return y(w,_)})(e.YH,this,(function(y){switch(y.label){case 0:try{c=(function(w,_,v){return o(w,_,v)})(Xt,i,882066760)(s)}catch(w){if(!(function(_,v){return(function(I,M){return I instanceof M})(_,v)})(w,Error)||!(function(_,v,I){return o(_,v,I)})(Xt,new RegExp((function(_){return(function(v){return v(11)})(_)})(sn),"i"),3632233996)((function(_,v,I){return o(_,v,I)})(Xt,w,3065852031)))throw w;c=new Promise((function(_,v){(function(I,M){return(function(C,X,tt){return o(C,X,tt)})(I,M,882066760)})(Xt,i)(_,v,s)}))}return[4,c];case 1:return(function(w){return(function(_,v){return _===v})(w,void 0)})(p=y.sent())?[2,{s:-8,v:null}]:[2,{s:0,v:p}]}}))}))}function Cy(i,s){var o,c,p=function(Tt,Ft){return Tt(Ft)},y=function(Tt,Ft){return Tt===Ft},w=function(Tt,Ft,$t){return Tt(Ft,$t)},_=function(Tt,Ft){return Tt(Ft)},v=function(Tt,Ft){return Tt!==Ft},I=function(Tt,Ft){return Tt in Ft},M=function(Tt,Ft){return Tt in Ft},C=function(Tt){return Tt()},X=function(Tt,Ft){return Tt(Ft)},tt=function(Tt,Ft,$t){return Tt(Ft,$t)},et=function(Tt,Ft,$t){return Tt(Ft,$t)},it=function(Tt,Ft,$t,Qt,re){return Tt(Ft,$t,Qt,re)},ut=this;function gt(Tt,Ft){return p(Rt,Tt)&&y(w(Xt,Tt,3920415024),400)&&w(Xt,Tt,4101391790).includes(Ft)}function Rt(Tt){return y(typeof Tt,_(sn,12))&&v(Tt,null)&&I(p(sn,13),Tt)&&M(_(sn,14),Tt)}var vt=null,Et=!1;function Gt(){var Tt=function($t,Qt){return(function(re,ce){return re!==ce})($t,Qt)},Ft=function($t,Qt){return _($t,Qt)};return it(e.sH,this,void 0,void 0,(function(){var $t,Qt,re,ce;return(function(ye,pe,Oe){return et(ye,pe,Oe)})(e.YH,this,(function(ye){switch(ye.label){case 0:return $t=(function(pe,Oe){return X(pe,Oe)})(Ty,i),Tt($t,0)?[2,{s:$t,v:null}]:[4,Ft(Ly,i)];case 1:return Qt=ye.sent(),re=(function(pe,Oe){return tt(pe,Oe,453955339)})(Xt,Qt),ce=(function(pe,Oe){return(function(Le,Ce,Te){return Le(Ce,Te)})(pe,Oe,1801730948)})(Xt,Qt),Tt(re,0)?[2,{s:re,v:null}]:[2,{s:0,v:ce}]}}))}))}s&&et(Xt,i,123626528)(sn(15),(function(Tt){w(gt,Tt,s)&&(vt?(C(vt),vt=null,X(po,i)):Et=!0)}));var Yt,Wt=((o={})[Yt=sn,Yt(17)]=function(){return(function(Tt,Ft){return Tt(Ft)})(po,i)},o[(function(Tt){return Tt(18)})(sn)]=function(){var Tt=function($t){return C($t)},Ft=function($t,Qt,re){return(function(ce,ye,pe){return ce(ye,pe)})($t,Qt,re)};return it(e.sH,ut,void 0,void 0,(function(){var $t;return Ft(e.YH,this,(function(Qt){switch(Qt.label){case 0:return[4,Tt(Gt)];case 1:return $t=Qt.sent(),(function(re){return v(re,0)})(Ft(Xt,$t,453955339))&&(function(re,ce){p(re,ce)})(po,i),[2,$t]}}))}))},o);return s?tt(Xt,Object,1914874273)(Wt,((c={})[(function(Tt){return Tt(19)})(sn)]=function(){y((function(Tt,Ft){return Tt(Ft,4184312542)})(Xt,i),p(sn,16))||(Et?(function(Tt,Ft){Tt(Ft)})(po,i):vt=(function(Tt,Ft,$t,Qt){return Tt(Ft,5e3,Qt)})(as,po,0,i))},c)):Wt}var Fn=lo([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],m8,2);function My(){var i=function(w,_){return w(_)},s=function(w,_){return w(_)},o=function(w,_,v){return w(_,v)},c=function(w,_){return w<_},p=function(w,_,v){return w(_,v)},y=function(w,_,v){return w(_,v)};return(function(w,_,v,I,M){return w(_,void 0,void 0,M)})(e.sH,this,0,0,(function(){var w,_,v,I,M,C,X,tt;return o(e.YH,this,(function(et){switch(et.label){case 0:return(function(it){return it()})(U4)?[2,[-1,NaN]]:(w=new Uint8Array([0]),_=i(Fn,0),[4,navigator[i(Fn,1)](s(Fn,2),_)]);case 1:return[4,et.sent()[s(Fn,3)]()];case 2:return v=et.sent(),[4,o(cd,v,w)];case 3:if(I=et.sent(),!(M=c(I,10)))return[3,5];for(C=o(o4,10,2500),X=(function(it){return it-1})((function(it,ut){return it-ut})(C,I)),tt=0;c(tt,X);tt++)p(ky,v,w);return[4,y(cd,v,w)];case 4:I=et.sent(),et.label=5;case 5:return[2,[M?1:0,I]]}}))}))}function By(){return(function(s,o){return s==o})(typeof navigator[i=Fn,i(1)],(function(s){return s(4)})(Fn));var i}function cd(i,s){var o=function(c,p){return c(p)};return(function(c,p,y,w,_){return c(p,void 0,void 0,_)})(e.sH,this,0,0,(function(){var c,p=function(v,I){return o(v,I)},y=function(v,I){return o(v,I)},w=function(v,I){return o(v,I)},_=function(v,I){return o(v,I)};return(function(v,I,M){return v(I,M)})(e.YH,this,(function(v){switch(v.label){case 0:return[4,(c=i[p(Fn,5)]())[p(Fn,6)](y(Fn,7),s)];case 1:return v.sent(),[2,w(Number,c[_(Fn,8)])]}}))}))}function ky(i,s){var o=function(p,y){return p(y)},c=i[o(Fn,5)]();o(so,c[o(Fn,6)]((function(p){return p(7)})(Fn),s))}function Uy(){var i=function(s,o,c){return s(o,c)};return(function(s,o,c,p,y){return s(o,void 0,void 0,y)})(e.sH,this,0,0,(function(){var s=function(w){return(function(_){return _()})(w)},o=function(w,_,v){return i(w,_,v)},c=function(w,_,v){return i(w,_,v)},p=function(w,_,v){return i(w,_,v)},y=this;return(0,e.YH)(this,(function(w){var _=function(I){return s(I)},v=function(I,M){return(function(C,X){return(function(tt,et){return tt===et})(C,X)})(I,M)};return s(By)?[2,c(zn,p(Pn,500,{s:-2,v:null}),(function(){var I=function(X){return _(X)},M=function(X,tt){return v(X,tt)},C=function(X,tt,et){return(function(it,ut,gt){return o(it,ut,gt)})(X,tt,et)};return(function(X,tt,et,it,ut){return(function(gt,Rt,vt,Et,Gt){return(function(Yt,Wt,Tt,Ft,$t){return Yt(Wt,Tt,Ft,$t)})(gt,Rt,vt,Et,Gt)})(X,tt,void 0,void 0,ut)})(e.sH,y,0,0,(function(){var X,tt=function(et){return I(et)};return C(e.YH,this,(function(et){switch(et.label){case 0:return[4,tt(My)];case 1:return(function(it){return M(it,-1)})((X=et.sent())[0])?[2,{s:-3,v:null}]:[2,{s:0,v:X}]}}))}))}))]:[2,function(){return{s:-1,v:null}}]}))}))}var _s=lo([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],au,2);function fd(){return _s(0)}function Dy(){return(0,e.sH)(this,void 0,void 0,(function(){var i,s,o;return(function(c,p,y){return c(p,y)})(e.YH,this,(function(c){var p=function(y,w){return(function(_,v){return _(v)})(y,w)};switch(c.label){case 0:return i=(function(y){return y()})(fd),[4,Promise.all(i.map(Py))];case 1:return s=c.sent(),o={},i.forEach((function(y,w){var _=p(nr,y).toString(16);o[_]=s[w]})),[2,o]}}))}))}function Py(i){var s=function(o,c){return o(c)};return new Promise((function(o){var c=s(_s,1).concat(i,s(_s,2));try{var p=(function(_,v){return _(v)})(cu,c),y=p[1],w=p[2];if((function(_){return _!==0})(y))return void(function(_,v){_(v)})(o,y);w[(function(_){return _(3)})(_s)]((function(){return s(o,0)}),(function(){return(function(_){return s(_,-1)})(o)}))}catch{s(o,-2)}}))}var Fy=xn([4291220175,857170018,1001396817,1198736693],6);function ld(){var i=function(s,o,c){return s(o,c)};return(0,e.sH)(this,void 0,void 0,(function(){var s=function(v){return(function(I){return I()})(v)},o=function(v,I){return(function(M,C){return M(C)})(v,I)},c=function(v,I,M){return(function(C,X,tt){return C(X,tt)})(v,I,M)},p=function(v,I,M,C,X){return(function(tt,et,it,ut,gt){return tt(et,it,ut,gt)})(v,I,M,C,X)},y=function(v,I,M){return(function(C,X,tt){return C(X,tt)})(v,I,M)},w=function(v,I,M){return i(v,I,M)},_=this;return i(e.YH,this,(function(v){var I=function(et){return s(et)},M=function(et){return s(et)},C=function(et,it){return o(et,it)},X=function(et,it,ut){return c(et,it,ut)},tt=function(et,it,ut,gt,Rt){return p(et,it,ut,gt,Rt)};switch(v.label){case 0:return[4,y(zn,w(Pn,500,{s:-2,v:null}),(function(){var et=function(ut){return M(ut)},it=function(ut,gt){return C(ut,gt)};return tt(e.sH,_,void 0,void 0,(function(){var ut;return(function(gt,Rt,vt){return X(gt,Rt,vt)})(e.YH,this,(function(gt){switch(gt.label){case 0:return(function(Rt){return I(Rt)})(fd)?(function(Rt){return I(Rt)})(Zl)?(ut={s:0},[4,et(Dy)]):[2,{s:-1,v:null}]:[2,{s:-3,v:null}];case 1:return[2,(ut[it(Fy,0)]=gt.sent(),ut)]}}))}))}))];case 1:return[2,v.sent()]}}))}))}function Hy(){return{s:0,v:"serviceWorker"in Navigator.prototype}}function dd(){return{s:0,v:!!window.isSecureContext}}var jt=lo([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],y8,0);function Vy(){var i=function(s,o){return s(o)};return i(jt,0)&&navigator[i(jt,0)]}function Gy(){var i=function(s,o){return s(o)};return document[i(jt,1)](i(jt,2))[i(jt,3)](i(jt,4))}function Yy(i,s){return o=e.sH,c=function(){var p,y,w,_,v=function(M,C){return(function(X,tt){return X(tt)})(M,C)},I=function(M,C,X,tt){return(function(et,it,ut,gt){return et(it,ut,gt)})(M,C,X,tt)};return(function(M,C,X){return M(C,X)})(e.YH,this,(function(M){switch(M.label){case 0:return p=Array.from((function(C){return(function(X){return X===null})(C)})(i)||(function(C){return(function(X){return X===void 0})(C)})(i)?void 0:i[v(jt,5)].values()),[4,Promise.all([I(jy,i,p,s),v(Ky,i)])];case 1:return y=M.sent(),w=y[0],_=y[1],[2,[w,_,p]]}}))},o(this,void 0,void 0,c);var o,c}var bi=16;function jy(i,s,o){var c=function(vt,Et){return vt(Et)},p=function(vt,Et){return vt*Et},y=function(vt,Et){return vt(Et)},w=function(vt,Et){return vt(Et)},_=function(vt,Et){return vt+Et},v=function(vt,Et){return vt(Et)},I=function(vt,Et){return vt(Et)},M=function(vt,Et){return vt(Et)},C=function(vt,Et){return vt(Et)},X=function(vt,Et){return vt(Et)},tt=function(vt,Et){return vt(Et)},et=function(vt,Et){return vt(Et)},it=function(vt,Et){return vt(Et)},ut=function(vt,Et){return vt(Et)},gt=function(vt,Et){return vt+Et},Rt=function(vt,Et){return vt+Et};return(function(vt,Et,Gt,Yt,Wt){return vt(Et,void 0,void 0,Wt)})(e.sH,this,0,0,(function(){var vt,Et,Gt,Yt,Wt,Tt,Ft,$t,Qt,re,ce,ye,pe,Oe,Le,Ce,Te,rn,Nn,gn,Hn,Wn,Zn,Tr,Xr,ir,dn,Bt={LIcVF:"1|3|2|0|4",CVGyL:function(Nt,xt){return c(Nt,xt)},NQGua:function(Nt,xt){return p(Nt,xt)},IxGbO:function(Nt,xt){return y(Nt,xt)},qQoQh:function(Nt,xt){return c(Nt,xt)},eRsOG:function(Nt,xt){return(function(Jt,se){return Jt%se})(Nt,xt)},sTGJP:function(Nt,xt){return w(Nt,xt)},bLKEM:function(Nt,xt){return(function(Jt,se){return Jt/se})(Nt,xt)},BfmPO:function(Nt,xt){return(function(Jt,se){return Jt/se})(Nt,xt)},qiUeQ:function(Nt,xt){return(function(Jt,se){return Jt/se})(Nt,xt)},QCXCI:function(Nt,xt){return(function(Jt,se){return Jt*se})(Nt,xt)},YuwoT:function(Nt,xt){return _(Nt,xt)},NzoFK:function(Nt,xt){return w(Nt,xt)},nStre:function(Nt,xt){return v(Nt,xt)},cgngL:function(Nt,xt){return I(Nt,xt)},lnSsO:function(Nt,xt){return M(Nt,xt)},LWtIu:function(Nt,xt){return I(Nt,xt)},rnbTq:function(Nt,xt){return M(Nt,xt)},vXgTw:function(Nt,xt){return(function(Jt,se){return Jt|se})(Nt,xt)},SGWhR:function(Nt,xt){return w(Nt,xt)},tJskz:function(Nt,xt){return v(Nt,xt)},WwBMK:function(Nt,xt){return w(Nt,xt)},XvGWM:function(Nt,xt){return I(Nt,xt)},Czazt:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},TcuLX:function(Nt,xt){return C(Nt,xt)},qmLme:function(Nt,xt){return X(Nt,xt)},DHpBv:function(Nt,xt){return c(Nt,xt)},GXSjU:function(Nt,xt){return I(Nt,xt)},lZchU:function(Nt,xt){return(function(Jt,se){return Jt|se})(Nt,xt)},kdFZM:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},fjLlD:function(Nt,xt){return tt(Nt,xt)},NZEUH:function(Nt,xt){return M(Nt,xt)},rMQcE:function(Nt,xt){return X(Nt,xt)},cmdDW:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},fMGTS:function(Nt,xt){return v(Nt,xt)},Megnu:function(Nt,xt){return et(Nt,xt)},dwDBV:function(Nt,xt){return(function(Jt,se){return Jt<se})(Nt,xt)},UStju:"16|13|12|14|1|11|3|2|15|6|5|0|7|8|4|10|9",yPtzU:function(Nt,xt){return(function(Jt,se){return Jt===se})(Nt,xt)},hIuvn:function(Nt,xt){return et(Nt,xt)},LUaAI:function(Nt,xt){return it(Nt,xt)},KBsRE:function(Nt,xt){return c(Nt,xt)},eiLib:function(Nt,xt){return p(Nt,xt)},gsIFj:function(Nt,xt){return C(Nt,xt)},ymkbA:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},RTTay:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},SXGAR:function(Nt,xt){return ut(Nt,xt)},rLyth:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},lnNJb:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},HtEmG:function(Nt,xt){return p(Nt,xt)},kEERD:function(Nt,xt){return(function(Jt,se){return Jt+se})(Nt,xt)},lEDdr:function(Nt,xt){return gt(Nt,xt)},VfkAG:function(Nt,xt){return _(Nt,xt)},FQVYm:function(Nt,xt){return it(Nt,xt)},rjquO:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},zCjNE:function(Nt,xt){return ut(Nt,xt)},HfSqy:function(Nt,xt){return tt(Nt,xt)},xEOfR:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)},CsGxJ:function(Nt,xt){return w(Nt,xt)},CPukW:function(Nt,xt){return y(Nt,xt)},uiTcO:function(Nt,xt){return(function(Jt,se){return Jt*se})(Nt,xt)},gvEcj:function(Nt,xt){return Rt(Nt,xt)},qonBa:function(Nt,xt){return Rt(Nt,xt)},SQuSM:function(Nt,xt){return(function(Jt,se){return Jt+se})(Nt,xt)},qLjkZ:function(Nt,xt){return(function(Jt,se){return Jt*se})(Nt,xt)},XMYnt:function(Nt,xt){return gt(Nt,xt)},YtxIQ:function(Nt,xt){return(function(Jt,se){return Jt(se)})(Nt,xt)}};return(function(Nt,xt,Jt){return Nt(xt,Jt)})(e.YH,this,(function(Nt){switch(Nt.label){case 0:return[4,i[Bt.sTGJP(jt,6)]({requiredFeatures:s})];case 1:for(vt=Nt.sent(),Et=Math.PI,Gt=[[0,1,0,Bt.bLKEM(Et,7)],[1,0,0,Bt.bLKEM(Et,8)],[0,1,1,Bt.BfmPO(Et,4)],[1,2,1,Bt.qiUeQ(Et,8)]],Yt=Gt.length,Wt=new Uint8Array(Bt.QCXCI(Yt,Bt.YuwoT(Bt.YuwoT(16,bi),8))),Tt=navigator[Bt.IxGbO(jt,0)][Bt.NzoFK(jt,7)](),o[Bt.nStre(jt,8)]({device:vt,format:Tt}),Ft=vt[Bt.cgngL(jt,9)](Bt.IxGbO(jt,10)),$t=vt[Bt.CVGyL(jt,11)]({label:Bt.IxGbO(jt,12),layout:Bt.cgngL(jt,13),vertex:{module:Ft},fragment:{module:Ft,targets:[{format:Tt}]},primitive:Bt.lnSsO(jt,14)}),Qt=[[255,0,0,255],[0,255,0,255],[0,0,255,255]],re=new Uint8Array(Bt.cgngL(Array,Bt.NQGua(7,9)).fill(void 0).map((function(se,cn){return Qt[(function(Ne){return Bt.eRsOG(Ne,3)})(cn)]})).flat()),ce=vt[Bt.CVGyL(jt,15)]({label:Bt.LWtIu(jt,16),size:[7,9],format:Bt.rnbTq(jt,17),usage:Bt.vXgTw(window[Bt.SGWhR(jt,18)][Bt.IxGbO(jt,19)],window[Bt.tJskz(jt,18)][Bt.WwBMK(jt,20)])}),vt[Bt.LWtIu(jt,21)][Bt.XvGWM(jt,22)]({texture:ce},re,{bytesPerRow:Bt.NQGua(7,4)},{width:7,height:9}),ye=vt[Bt.SGWhR(jt,23)](Bt.Czazt(jt,24)),pe=vt[Bt.XvGWM(jt,25)]({layout:$t[Bt.TcuLX(jt,26)](0),entries:[{binding:0,resource:ye},{binding:1,resource:ce[Bt.qmLme(jt,27)]()}]}),Oe=Gt.map((function(se){for(var cn=Bt.LIcVF.split("|"),Ne=0;;){switch(cn[Ne++]){case"0":ke[Bt.CVGyL(jt,35)]();continue;case"1":var ke=vt[Bt.CVGyL(jt,28)]({label:Bt.CVGyL(jt,29),size:Bt.NQGua(4,Float32Array[Bt.IxGbO(jt,30)]),usage:window[Bt.IxGbO(jt,31)][Bt.CVGyL(jt,32)],mappedAtCreation:!0});continue;case"2":We[Bt.CVGyL(jt,34)](se);continue;case"3":var We=new Float32Array(ke[Bt.IxGbO(jt,33)]());continue;case"4":return vt[Bt.CVGyL(jt,25)]({layout:$t[Bt.qQoQh(jt,26)](1),entries:[{binding:0,resource:{buffer:ke}}]})}break}})),Le=vt[Bt.DHpBv(jt,36)](Bt.Czazt(jt,37)),Ce=vt[Bt.qQoQh(jt,28)]({size:Bt.QCXCI(Le[Bt.GXSjU(jt,38)],8),usage:Bt.lZchU(window[Bt.kdFZM(jt,31)][Bt.tJskz(jt,39)],window[Bt.fjLlD(jt,31)][Bt.qmLme(jt,40)])}),Te=vt[Bt.LWtIu(jt,28)]({size:Bt.NQGua(Ce[Bt.NZEUH(jt,41)],Yt),usage:Bt.vXgTw(window[Bt.rMQcE(jt,31)][Bt.XvGWM(jt,20)],window[Bt.cmdDW(jt,31)][Bt.fMGTS(jt,42)])}),rn={label:Bt.Megnu(jt,43),colorAttachments:Bt.qmLme(jt,44),timestampWrites:{querySet:Le,beginningOfPassWriteIndex:0,endOfPassWriteIndex:1}},dn=0;Bt.dwDBV(dn,Oe.length);dn++)for(var xt=Bt.UStju.split("|"),Jt=0;;){switch(xt[Jt++]){case"0":Bt.yPtzU(Te[Bt.hIuvn(jt,58)],Bt.LUaAI(jt,59))&&gn[Bt.KBsRE(jt,60)](Ce,0,Te,Bt.eiLib(dn,16),Ce[Bt.qQoQh(jt,41)]);continue;case"1":Hn[Bt.gsIFj(jt,51)]($t);continue;case"2":Wn=window[Bt.ymkbA(jt,53)][Bt.qQoQh(jt,54)]();continue;case"3":Hn[Bt.sTGJP(jt,52)](1,Nn);continue;case"4":Tr=Bt.RTTay(zy,o[Bt.qmLme(jt,2)]);continue;case"5":gn[Bt.cmdDW(jt,57)](Le,0,Le[Bt.hIuvn(jt,38)],Ce,0);continue;case"6":Hn[Bt.SXGAR(jt,56)]();continue;case"7":Zn=gn[Bt.rLyth(jt,61)]();continue;case"8":vt[Bt.Megnu(jt,21)][Bt.RTTay(jt,62)]([Zn]);continue;case"9":Wt[Bt.lnNJb(jt,34)](new Uint8Array(new Float64Array([Wn])[Bt.XvGWM(jt,63)]),Bt.HtEmG(dn,Bt.YuwoT(Bt.kEERD(16,bi),8)));continue;case"10":Wt[Bt.cgngL(jt,34)](Tr,Bt.lEDdr(8,Bt.NQGua(dn,Bt.VfkAG(Bt.lEDdr(16,bi),8))));continue;case"11":Hn[Bt.FQVYm(jt,52)](0,pe);continue;case"12":gn=vt[Bt.SGWhR(jt,48)](Bt.kdFZM(jt,49));continue;case"13":rn[Bt.rjquO(jt,45)][0][Bt.hIuvn(jt,46)]=o[Bt.CVGyL(jt,47)]()[Bt.zCjNE(jt,27)]();continue;case"14":Hn=gn[Bt.FQVYm(jt,50)](rn);continue;case"15":Hn[Bt.HfSqy(jt,55)](48);continue;case"16":Nn=Oe[dn];continue}break}return Bt.yPtzU(Te[Bt.xEOfR(jt,58)],Bt.CsGxJ(jt,59))?[4,Te[Bt.DHpBv(jt,64)](window[Bt.WwBMK(jt,65)][Bt.CPukW(jt,66)])]:[3,3];case 2:for(Nt.sent(),Xr=Te[Bt.cmdDW(jt,33)](),ir=new Uint8Array(Xr),dn=0;Bt.dwDBV(dn,Yt);dn++)Wt[Bt.TcuLX(jt,34)](ir[Bt.sTGJP(jt,67)](Bt.NQGua(dn,bi),Bt.uiTcO(Bt.gvEcj(dn,1),bi)),Bt.qonBa(Bt.SQuSM(8,16),Bt.qLjkZ(dn,Bt.gvEcj(Bt.XMYnt(16,bi),8))));Te[Bt.YtxIQ(jt,35)](),Nt.label=3;case 3:return[2,Bt.GXSjU(er,Wt)]}}))}))}function zy(i){var s=function(o,c){return o(c)};return s(n4,s(pn,i[s(jt,68)]()))}function Ky(i){var s,o=function(p,y){return p!==y},c=function(p,y){return p(y)};return(function(p,y,w,_,v){return p(y,void 0,void 0,v)})(e.sH,this,0,0,(function(){var p;return(function(y,w,_){return y(w,_)})(e.YH,this,(function(y){switch(y.label){case 0:return o(s=i[c(jt,69)],null)&&o(s,void 0)?(p=s,[3,3]):[3,1];case 1:return[4,i[c(jt,70)]()];case 2:p=y.sent(),y.label=3;case 3:return[2,p]}}))}))}function hd(){var i=function(o,c,p){return o(c,p)},s=this;return i(zn,Pn(1e3,{s:-2,v:null}),(function(){var o,c,p=function(v){return(function(I){return I()})(v)},y=function(v,I,M){return i(v,I,M)},w=function(v,I,M){return(function(C,X,tt){return C(X,tt)})(v,I,M)},_=function(v,I,M){return(function(C,X,tt){return C(X,tt)})(v,I,M)};return o=e.sH,c=function(){var v,I,M,C,X,tt,et;return i(e.YH,this,(function(it){switch(it.label){case 0:return[4,p(Wy)];case 1:return v=it.sent(),(function(ut,gt){return(function(Rt,vt){return Rt!==vt})(ut,gt)})(y(Xt,v,453955339),0)?[2,v]:(I=(function(ut,gt){return i(ut,gt,1801730948)})(Xt,v),M=I[0],C=I[1],[4,w(Yy,M,C)]);case 2:return X=it.sent(),tt=X[0],et=X[1],[2,{s:0,v:{s:X[2],f:tt,v:y(Xt,et,4112659446),a:_(Xt,et,1956208378)}}]}}))},o(s,void 0,void 0,c)}))}function Wy(){var i,s,o=function(p,y,w){return p(y,w)},c=function(p,y,w){return p(y,w)};return i=e.sH,s=function(){var p,y,w,_,v=function(C,X,tt){return c(C,X,tt)},I=function(C){return(function(X){return X()})(C)},M=function(C,X,tt){return c(C,X,tt)};return o(e.YH,this,(function(C){switch(C.label){case 0:if(!(p=(function(X,tt){return o(X,tt,3179935986)})(Xt,navigator)))return[2,{s:-3,v:null}];y=null,C.label=1;case 1:return C.trys.push([1,3,,4]),[4,v(Xt,p,1678473624)()];case 2:return y=C.sent(),[3,4];case 3:if((function(X){return(function(tt,et){return tt instanceof et})(X,Error)})(w=C.sent())&&I(q))return[2,{s:-3,v:M(Xt,w,3065852031)}];throw w;case 4:return y?I(Vy)?(_=(function(X){return(function(tt){return tt()})(X)})(Gy))?[2,{s:0,v:[y,_]}]:[2,{s:-5,v:null}]:[2,{s:-1,v:null}]:[2,{s:-4,v:null}]}}))},i(this,void 0,void 0,s)}function Zy(){var i;return{s:0,v:(i=performance.timeOrigin)!==null&&i!==void 0?i:Date.now()-performance.now()}}var Nr=xn([1058085656,755065913,591387725,1190162267,3207354738,1862345487,1482820536,1963637024,16670991,4033829736,1867081798,1215448816,1812826169,279519816,3211723043,576614155,1881342384],5);function $y(){var i,s,o=function(c){return c()};return i=e.sH,s=function(){var c,p=function(w){return o(w)},y=function(w,_){return(function(v,I){return v(I)})(w,_)};return(function(w,_,v){return w(_,v)})(e.YH,this,(function(w){switch(w.label){case 0:return p(S)||(function(_){return o(_)})(U)?(c={s:0},[4,p(Xy)]):[3,2];case 1:return[2,(c[y(Nr,0)]=w.sent(),c)];case 2:return[2,{s:-1,v:null}]}}))},i(this,void 0,void 0,s)}function Xy(){var i={Blqbz:function(o,c){return o(c)},xZHoB:"2|1|3|0|4",dJhbP:function(o,c){return o(c)},SkSjD:function(o){return o()},KqpSs:function(o,c,p){return o(c,p)},hsbcg:function(o,c,p){return o(c,p)},QsyLE:function(o,c){return o(c)},BRhvx:function(o,c,p){return o(c,p)},FbvWI:function(o,c){return o(c)},iDelp:function(o,c){return o(c)}},s=new Promise((function(o){for(var c=i.xZHoB.split("|"),p=0;;){switch(c[p++]){case"0":window[i.Blqbz(Nr,5)](window[i.dJhbP(Nr,6)].debug,0,y);continue;case"1":var y;continue;case"2":var w={mXScH:function(_,v){return i.dJhbP(_,v)}};continue;case"3":i.SkSjD(S)?((y=new Error).name=" ",i.KqpSs(Xt,Object,1973166116)(y,i.dJhbP(Nr,1),{get:o.bind(null,!0)})):(y=i.hsbcg(Xt,window[i.dJhbP(Nr,2)],1297038992)(i.QsyLE(Nr,3)),i.BRhvx(Xt,Object,1973166116)(y,i.FbvWI(Nr,4),{get:function(){w.mXScH(o,!0);var _=new Error;throw _.name="",_}}));continue;case"4":window[i.iDelp(Nr,5)]((function(){i.Blqbz(o,!1)}));continue}break}}));return i.FbvWI(so,s)}var qy=new Set([2882888216,2306836488,1040191956,1447924955]);function Jy(){return{s:0,v:r4(Navigator.prototype,qy)}}var pd=xn([337235919,2760532337,875971243,3754618647,55785531,2093468645,3611500405],7);function Qy(){var i,s=(function(o,c){return o(c,3966979758)})(Xt,new window[i=pd,i(0)](""));return(function(o,c){return o!==c})(typeof s,(function(o){return o(1)})(pd))?{s:-1,v:null}:{s:0,v:{isTrusted:s}}}var tw=function(){return{key:"bd",sources:{stage1:(i={},i.s94=ad,i),stage2:(s={},s.s106=j6,s.s154=ny,s.s158=uy,s.s160=u8,s.s97=ld,s.s70=hd,s.s152=L8,s),stage3:(o={},o.s1=El,o.s2=Rl,o.s4=bl,o.s5=Al,o.s7=Sl,o.s15=Il,o.s19=Ol,o.s27=Nl,o.s74=Tl,o.s75=xl,o.s24=zl,o.s44=Fl,o.s45=Vl,o.s57=Xl,o.s59=Ll,o.s60=Cl,o.s61=Ml,o.s62=Bl,o.s63=kl,o.s64=Ul,o.s65=Dl,o.s68=Pl,o.s69=jl,o.s72=Kl,o.s82=ql,o.s83=Jl,o.s99=dd,o.s101=V6,o.s103=G6,o.s104=Y6,o.s117=z6,o.s119=K6,o.s123=W6,o.s131=Z6,o.s133=$6,o.s136=X6,o.s148=q6,o.s149=J6,o.s150=Q6,o.s157=t8,o.s102=M8,o.s118=B8,o.s120=x8,o.s130=k8,o.s132=U8,o.s135=C8,o.s139=O8,o.s142=T8,o.s144=N8,o.s145=S8,o.s146=I8,o.s151=K8,o.s153=W8,o.s155=iy,o.s156=sy,o.s159=cy,o.s162=hy,o.s163=$y,o.s165=Qy,o.s166=Jy,o)}};var i,s,o};function ew(i,s,o,c,p,y){var w=c?[]:(function(C,X,tt){return(function(et,it){for(var ut=function($t,Qt){return $t<Qt},gt=function($t,Qt,re){return $t(Qt,re)},Rt=function($t,Qt){return $t(Qt)},vt=[],Et=0,Gt=Array.isArray(et)?et:[et];ut(Et,Gt.length);Et++){var Yt=Gt[Et];if(gt(su,Yt,ps))for(var Wt=0,Tt=it;ut(Wt,Tt.length);Wt++){var Ft=Tt[Wt];vt.push(Rt(i6,Ft))}else vt.push(Rt(String,Yt))}return vt})(C,X).map((function(et){return iu(et,{q:tt})}))})(i,s,o);if(w.length===0)return function(){return Promise.resolve({s:-1,v:null})};dr(y,(function(){return{e:6}}));var _=a0(),v=il(_),I=Date.now(),M=fl(w,nw.bind(null,5e3,y,v),rw,Math.max(10,w.length),p);return M.then((function(){return _.resolve()}),(function(){return _.resolve()})),function(C,X,tt,et){return(0,e.sH)(this,void 0,void 0,(function(){var it,ut;return(0,e.YH)(this,(function(gt){switch(gt.label){case 0:if(tt)return[2,{s:-1,v:null}];gt.label=1;case 1:return gt.trys.push([1,3,,4]),[4,Promise.race([M,iw(I,C,X)])];case 2:return gt.sent(),it=(function(Rt){var vt=Rt.result,Et=Rt.failedAttempts;if(vt!==void 0)return vt;var Gt=Et[0];if(!Gt)return{s:-3,v:null};if(Gt.level===1)return Gt.error;var Yt=Gt.error,Wt=Gt.endpoint;if(Yt instanceof Error){var Tt=Yt.name,Ft=Yt.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(Wr(Wt,255))};case"TypeError":return{s:-4,v:Ft}}}return dl(Yt)})(M.current),dr(et,(function(){return{e:7,result:it}})),[2,it];case 3:throw ut=gt.sent(),dr(et,(function(){return{e:8,error:ut}})),ut;case 4:return[2]}}))}))}}function nw(i,s,o,c,p,y){return fo(s,(function(){return{e:9,tryNumber:p,url:c,timeout:i}}),(function(w){var _=w.status,v=w.getHeader,I=w.body;return{e:10,tryNumber:p,status:_,retryAfter:v("retry-after"),body:I}}),(function(w){return{e:11,tryNumber:p,error:w}}),(function(){return rl({url:c,timeout:i,abort:y,container:o})}))}function rw(i){var s=i.status,o=i.body;return s===200&&/^[a-zA-Z0-9+/]{1,1022}={0,2}$/.test(o)?{result:{s:0,v:o}}:{error:{s:-5,v:Wr("".concat(s,": ").concat(o),255)}}}function iw(i,s,o){return Pn(Math.min(Math.max(s,i+1e4-Date.now()),o))}function vd(i){for(var s="".concat(i,"="),o=0,c=document.cookie.split(";");o<c.length;o++){for(var p=c[o],y=0;p[y]===" "&&y<p.length;)++y;if(p.indexOf(s)===y)return p.slice(y+s.length)}}function gd(i,s,o,c){var p="".concat(i,"=").concat(s),y=new Date(Date.now()+24*o*60*60*1e3),w="expires=".concat(y.toUTCString()),_=c?"domain=".concat(c):"";document.cookie=[p,"path=/",w,_,"SameSite=Lax"].join("; ")}function md(i){var s=location.hostname,o=q();(function(c,p){var y=c.length-(c.slice(-1)==="."?1:0);do if(y=y>0?c.lastIndexOf(".",y-1):-1,p(c.slice(y+1))===!0)return!0;while(y>=0);return!1})(s,(function(c){if(!o||!/^([^.]{1,3}\.)*[^.]+\.?$/.test(c)||c===s)return i(c)}))||i()}function yd(i){return"".concat(i,"_t")}function lu(i){return"".concat(i,"_lr")}function wd(i){var s,o;try{return(o=(s=localStorage==null?void 0:localStorage.getItem)===null||s===void 0?void 0:s.call(localStorage,i))!==null&&o!==void 0?o:void 0}catch{}}function du(i,s){var o;try{(o=localStorage==null?void 0:localStorage.setItem)===null||o===void 0||o.call(localStorage,i,s)}catch{}}function ow(i){var s=(function(p){return[vd(p),wd(p)]})(yd(i)),o=s[0],c=s[1];return o=_d(o),c=_d(c),o!==void 0&&c!==void 0?{s:0,v:o||c}:o!==void 0?{s:1,v:o}:c!==void 0?{s:2,v:c}:{s:-1,v:null}}function _d(i){return i&&i.length<=1e3?i:void 0}var sw=function(){return{key:"id",sources:{stage1:(i={},i.s94=ad,i),stage2:(s={},s.s52=a8,s.s6=g6,s.s58=d8,s.s20=d6,s.s36=h6,s.s51=p6,s.s21=v6,s.s79=_8,s.s69=jl,s.s23=F8,s.s29=D8,s.s84=V8,s.s85=Y8,s.s89=g8,s.s17=A6,s.s87=ay,s.s92=ly,s.s93=fy,s.s95=Uy,s.s97=ld,s.s70=hd,s),stage3:(o={},o.s22=b8,o.s30=R8,o.s33=n8,o.s44=Fl,o.s45=Vl,o.s49=r8,o.s50=o8,o.s57=Xl,o.s59=Ll,o.s60=Cl,o.s61=Ml,o.s62=Bl,o.s63=kl,o.s64=Ul,o.s65=Dl,o.s66=P6,o.s68=Pl,o.s71=v8,o.s24=zl,o.s72=Kl,o.s1=El,o.s2=Rl,o.s3=m6,o.s4=bl,o.s5=Al,o.s7=Sl,o.s9=y6,o.s10=w6,o.s11=_6,o.s12=G8,o.s13=E6,o.s14=R6,o.s15=Il,o.s16=b6,o.s19=Ol,o.s27=Nl,o.s28=S6,o.s32=I6,o.s37=O6,o.s41=N6,o.s39=T6,o.s42=x6,o.s38=L6,o.s43=C6,o.s40=B6,o.s46=k6,o.s80=U6,o.s81=D6,o.s82=ql,o.s83=Jl,o.s86=z8,o.s91=M6,o.s96=F6,o.s98=Hy,o.s99=dd,o.s200=Zy,o.s201=e8,o.s202=H6,o.s74=Tl,o.s75=xl,o.s76=s8,o)},tls:ew,toRequest:function(c,p){return(0,e.sH)(this,void 0,void 0,(function(){var y,w,_,v,I,M;return(0,e.YH)(this,(function(C){switch(C.label){case 0:return y=location.href,w=document.referrer,[4,Promise.all([y&&ms(y,p),w&&ms(w,p)])];case 1:return _=C.sent(),v=_[0],I=_[1],[2,(M={},M.url=v,M.cr=I||void 0,M.s55=ow(c),M.s48=A8(),M)]}}))}))},onResponse:function(c,p){var y,w,_;(function(v,I){var M=yd(v);I&&(function(C,X){(function(tt,et){md((function(it){(function(ut,gt){gd(ut,"",-1,gt)})(tt,it)})),md((function(it){return gd(tt,et,365,it),vd(tt)===et}))})(X,C),du(X,C)})(I,M)})(p,(_=(w=(y=c.products)===null||y===void 0?void 0:y.identification)===null||w===void 0?void 0:w.data)===null||_===void 0?void 0:_.visitorToken)}};var i,s,o},aw=function(){return{key:"si",sources:{stage2:(i={},i.s77=by,i)}};var i},Ed=[3,7];function hu(i){var s=wd(i);if(!s)return[];try{var o=s?JSON.parse(s):[];return Array.isArray(o)?o:[]}catch{return[]}}function Rd(i){var s={};return new Set(i).forEach((function(o){var c=(function(y){if(!URL.prototype)return y;try{return new URL(y,window.location.origin).toString()}catch{return y}})(o),p=performance.getEntriesByName(c,"resource");s[o]=p})),s}function pu(i,s,o,c,p,y){for(var w,_=[],v=0,I=i;v<I.length;v++){var M=I[v],C=M.event;C.e!==o&&C.e!==c&&C.e!==p||C.stage===y&&((_[w=C.tryNumber]||(_[w]={}))[C.e]=M)}return _.map((function(X){var tt,et,it,ut,gt,Rt,vt=(tt=X[o])===null||tt===void 0?void 0:tt.timestamp,Et=(it=(et=X[c])===null||et===void 0?void 0:et.timestamp)!==null&&it!==void 0?it:(ut=X[p])===null||ut===void 0?void 0:ut.timestamp,Gt=(gt=X[o])===null||gt===void 0?void 0:gt.event.url,Yt=(Rt=X[p])===null||Rt===void 0?void 0:Rt.event.error;return vt&&Et&&Gt?bd(Gt,vt,Et,Yt,s[Gt]):null})).filter((function(X){return!!X}))}function bd(i,s,o,c,p){var y,w=(function(_,v,I){if(_){for(var M,C=_.length-1;C>=0;C--){var X=_[C];if(X.startTime<v-1)break;X.responseEnd<=I+1&&(M=X)}return M}})(p,s,o);return(y={}).s=hr(w?.startTime)||Math.round(s),y.e=hr(w?.responseEnd)||Math.round(o),y.u=i||null,y.er=c?String(c):null,y.ds=hr(w?.domainLookupStart),y.de=hr(w?.domainLookupEnd),y.cs=hr(w?.connectStart),y.css=hr(w?.secureConnectionStart),y.ce=hr(w?.connectEnd),y.qs=hr(w?.requestStart),y.ss=hr(w?.responseStart),y}function hr(i){return typeof i=="number"?i===0?null:Math.round(i):null}function Es(i){var s,o=(s=performance.timeOrigin)!==null&&s!==void 0?s:Date.now()-performance.now();return Math.round(i.getTime()-o)}var uw=function(){var i=(function(){var o={},c=[],p=[],y=!1,w=_i(document,"visibilitychange",_);function _(){var I;p.push(((I={}).t=Math.round(performance.now()),I.s=nu()?"v":"h",I))}function v(I,M){for(var C,X,tt,et,it,ut,gt,Rt,vt,Et,Gt,Yt,Wt=(function(Jt,se,cn){var Ne=[];return Jt[se]&&(Ne.push.apply(Ne,Jt[se].commonEvents),cn!==void 0&&Ne.push.apply(Ne,Jt[se].getCalls[cn]||[])),Ne})(o,I,M),Tt={},Ft=0,$t=Wt;Ft<$t.length;Ft++){var Qt=$t[Ft];Tt[Qt.event.e]=Qt}var re=(X=Tt[4])!==null&&X!==void 0?X:Tt[5];if(Tt[0]&&Tt[1]&&Tt[3]&&Tt[12]&&re){var ce=Tt[0].event.options,ye=ce.token,pe=ce.apiKey,Oe=pe===void 0?ye:pe,Le=ce.storageKey,Ce=Le===void 0?_0:Le,Te=ce.modules,rn=ce.ldi,Nn=ce.aggressiveOptimization,gn=Nn!==void 0&&Nn,Hn=ce.optimizeRepeatedVisits,Wn=Hn!==void 0&&Hn;if(Oe){var Zn,Tr,Xr=Math.min(Tt[0].timestamp,Es((tt=rn?.attempts[0].startedAt)!==null&&tt!==void 0?tt:new Date("8524-04-28"))),ir=(et=Tt[5])===null||et===void 0?void 0:et.event.error,dn=(it=Tt[4])===null||it===void 0?void 0:it.event.result,Bt=(ut=Tt[13])!==null&&ut!==void 0?ut:Tt[14],Nt=Rd(c),xt=((C={}).v="1",C.dt=new Date().toISOString(),C.ci=ll(),C.pi=tl(),C.ai=I,C.ri=ao(12),C.c=Oe,C.rid=(Rt=(gt=dn?.requestId)!==null&>!==void 0?gt:ir?.requestId)!==null&&Rt!==void 0?Rt:null,C.er=(vt=ir?.message)!==null&&vt!==void 0?vt:null,C.mo=Te.map((function(Jt){return Jt.key})).filter((function(Jt){return!!Jt})),C.sa=(Zn=(Et=rn?.attempts)!==null&&Et!==void 0?Et:[],Tr=Rd(Zn.map((function(Jt){return Jt.url})).filter((function(Jt){return!!Jt}))),Zn.map((function(Jt,se){var cn=Zn.length>1&&se<Zn.length-1&&!("error"in Jt);return bd(Jt.url,Es(Jt.startedAt),Es(Jt.finishedAt),cn?"Unknown":Jt.error,Tr[Jt.url])}))),C.ls=Tt[0].timestamp,C.le=Tt[1].timestamp,C.ca=pu(Wt,Nt,9,10,11),C.ss=Tt[12].timestamp,C.se=(Gt=Bt?.timestamp)!==null&&Gt!==void 0?Gt:null,C.sd=(function(Jt){var se,cn=(se=Jt[13])===null||se===void 0?void 0:se.event.result;if(!cn)return{};var Ne={};for(var ke in cn)Ne[ke]=Math.round(cn[ke].duration);return Ne})(Tt),C.gs=Tt[3].timestamp,C.ge=re.timestamp,C.fa=pu(Wt,Nt,18,19,20,0),C.ia=pu(Wt,Nt,18,19,20,1),C.vs=(function(Jt,se,cn,Ne){for(var ke=(function(Ln,$n){var Lr,Cr;return(0,e.YH)(this,(function(pr){switch(pr.label){case 0:Lr=0,Cr=0,pr.label=1;case 1:return Lr<Ln.length&&Cr<$n.length?(function(vw,gw){return vw.t<gw.t})(Ln[Lr],$n[Cr])?[4,Ln[Lr]]:[3,3]:[3,6];case 2:return pr.sent(),Lr++,[3,5];case 3:return[4,$n[Cr]];case 4:pr.sent(),Cr++,pr.label=5;case 5:return[3,1];case 6:return Lr<Ln.length?[4,Ln[Lr]]:[3,9];case 7:pr.sent(),pr.label=8;case 8:return Lr++,[3,6];case 9:return Cr<$n.length?[4,$n[Cr]]:[3,12];case 10:pr.sent(),pr.label=11;case 11:return Cr++,[3,9];case 12:return[2]}}))})(Jt.map((function(Ln){var $n;return($n={}).t=Es(Ln.time),$n.s=Ln.state==="visible"?"v":"h",$n})),se),We=[],wn=void 0,xr=function(){var Ln;We.length===0&&wn!==void 0&&We.push(((Ln={}).t=cn,Ln.s=wn,Ln))};We.length<100;){var vo=ke.next();if(vo.done)break;var Ai=vo.value,Si=Ai.t,go=Ai.s;if(Si>Ne)break;Si<cn?wn=go:go!==wn&&(xr(),We.push(Ai),wn=go)}return xr(),We})((Yt=rn?.visibilityStates)!==null&&Yt!==void 0?Yt:[],p,Xr,re.timestamp),C.ab=Tt[1].event.ab,C.ao=gn,C.or=Wn,C);(function(Jt,se){(function(cn,Ne){var ke=lu(Ne),We=hu(ke)||[];We.splice(0,We.length-2);var wn=pl(S0(cn),Ed,3,7);We.push([cn.ri,er(wn)]),du(ke,JSON.stringify(We))})(Jt,se)})(xt,Ce)}}}return _(),{addEvent:function(I){if(!y)switch((function(M){var C=M.event,X=C.agentId;if(o[X]||(o[X]={commonEvents:[],getCalls:{}}),sl(C)){var tt=C.getCallId;o[X].getCalls[tt]||(o[X].getCalls[tt]=[]),o[X].getCalls[tt].push(M)}else o[X].commonEvents.push(M)})({timestamp:Math.round(performance.now()),event:I}),I.e){case 9:case 18:c.push(I.url);break;case 4:case 5:v(I.agentId,I.getCallId)}},destroy:function(){y=!0,w()}}})(),s=new Set;return{toRequest:function(o){var c,p=(function(y){var w=hu(lu(y))||[],_=[];return w.forEach((function(v){try{var I=gs(ou(fs(v[1]),Ed,7));_.push(I)}catch{}})),_})(o);return s=new Set(p.map((function(y){return y.ri}))),(c={}).lr=p,c},onResponse:function(o,c){(function(p,y){var w=lu(p);if(y.size!==0){var _=hu(w).filter((function(v){return!y.has(v[0])}));_.length!==0?du(w,JSON.stringify(_)):(function(v){var I;try{(I=localStorage==null?void 0:localStorage.removeItem)===null||I===void 0||I.call(localStorage,v)}catch{}})(w)}})(c,s)},addEvent:i.addEvent,destroy:i.destroy}},cw=function(i){return{addEvent:b4(i)}},fw=function(i){return{addEvent:H4(i)}},Rs="API key required",bs="API key not found",As="API key expired",Ad="Request cannot be parsed",Sd="Request failed",Id="Request failed to process",Od="Too many requests, rate limit exceeded",Nd="Not available for this origin",Td="Not available with restricted header",lw=Rs,dw=bs,hw=As,pw={load:_l,defaultEndpoint:hs,defaultTlsEndpoint:ps,ERROR_CLIENT_TIMEOUT:Xa,ERROR_NETWORK_CONNECTION:qa,ERROR_NETWORK_ABORT:Ja,ERROR_WRONG_REGION:U0,ERROR_SUBSCRIPTION_NOT_ACTIVE:D0,ERROR_API_KEY_MISSING:Rs,ERROR_API_KEY_INVALID:bs,ERROR_API_KEY_EXPIRED:As,ERROR_BAD_REQUEST_FORMAT:Ad,ERROR_BAD_RESPONSE_FORMAT:Qa,ERROR_GENERAL_SERVER_FAILURE:Sd,ERROR_SERVER_TIMEOUT:Id,ERROR_RATE_LIMIT:Od,ERROR_FORBIDDEN_ORIGIN:Nd,ERROR_FORBIDDEN_HEADER:Td,ERROR_UNSUPPORTED_VERSION:P0,ERROR_INSTALLATION_METHOD_RESTRICTED:F0,ERROR_FORBIDDEN_ENDPOINT:H0,ERROR_CSP_BLOCK:tu,ERROR_INTEGRATION_FAILURE:V0,ERROR_INVALID_ENDPOINT:eu,ERROR_NETWORK_RESTRICTED:Y0,ERROR_INVALID_PROXY_INTEGRATION_SECRET:j0,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:z0,ERROR_TOKEN_MISSING:Rs,ERROR_TOKEN_INVALID:bs,ERROR_TOKEN_EXPIRED:As}},568:function(t,n,r){r.r(n),r.d(n,{componentsToDebugString:function(){return _t},default:function(){return b},getFullscreenElement:function(){return U},getScreenFrame:function(){return Vt},hashComponents:function(){return Lt},isAndroid:function(){return K},isChromium:function(){return wt},isDesktopSafari:function(){return d},isEdgeHTML:function(){return mt},isGecko:function(){return S},isTrident:function(){return lt},isWebKit:function(){return P},load:function(){return F},loadSources:function(){return bt},murmurX64Hash128:function(){return O},prepareForSources:function(){return zt},sources:function(){return Q},transformSource:function(){return at},withIframe:function(){return rt}});var e=r(635),u="3.4.2";function a(A,V){return new Promise((function(G){return setTimeout(G,A,V)}))}function f(A){return!!A&&typeof A.then=="function"}function g(A,V){try{var G=A();f(G)?G.then((function(st){return V(!0,st)}),(function(st){return V(!1,st)})):V(!0,G)}catch(st){V(!1,st)}}function l(A,V,G){return G===void 0&&(G=16),(0,e.sH)(this,void 0,void 0,(function(){var st,Ct,Mt,Ut;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:st=Array(A.length),Ct=Date.now(),Mt=0,kt.label=1;case 1:return Mt<A.length?(st[Mt]=V(A[Mt],Mt),(Ut=Date.now())>=Ct+G?(Ct=Ut,[4,a(0)]):[3,3]):[3,4];case 2:kt.sent(),kt.label=3;case 3:return++Mt,[3,1];case 4:return[2,st]}}))}))}function E(A){A.then(void 0,(function(){}))}function T(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 G=[0,0,0,0];return G[3]+=A[3]+V[3],G[2]+=G[3]>>>16,G[3]&=65535,G[2]+=A[2]+V[2],G[1]+=G[2]>>>16,G[2]&=65535,G[1]+=A[1]+V[1],G[0]+=G[1]>>>16,G[1]&=65535,G[0]+=A[0]+V[0],G[0]&=65535,[G[0]<<16|G[1],G[2]<<16|G[3]]}function L(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 G=[0,0,0,0];return G[3]+=A[3]*V[3],G[2]+=G[3]>>>16,G[3]&=65535,G[2]+=A[2]*V[3],G[1]+=G[2]>>>16,G[2]&=65535,G[2]+=A[3]*V[2],G[1]+=G[2]>>>16,G[2]&=65535,G[1]+=A[1]*V[3],G[0]+=G[1]>>>16,G[1]&=65535,G[1]+=A[2]*V[2],G[0]+=G[1]>>>16,G[1]&=65535,G[1]+=A[3]*V[1],G[0]+=G[1]>>>16,G[1]&=65535,G[0]+=A[0]*V[3]+A[1]*V[2]+A[2]*V[1]+A[3]*V[0],G[0]&=65535,[G[0]<<16|G[1],G[2]<<16|G[3]]}function N(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 x(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 D(A){return A=B(A,[0,A[0]>>>1]),A=B(A=L(A,[4283543511,3981806797]),[0,A[0]>>>1]),B(A=L(A,[3301882366,444984403]),[0,A[0]>>>1])}function j(A,V){V=V||0;var G,st=(A=A||"").length%16,Ct=A.length-st,Mt=[0,V],Ut=[0,V],kt=[0,0],ot=[0,0],Kt=[2277735313,289559509],he=[1291169091,658871167];for(G=0;G<Ct;G+=16)kt=[255&A.charCodeAt(G+4)|(255&A.charCodeAt(G+5))<<8|(255&A.charCodeAt(G+6))<<16|(255&A.charCodeAt(G+7))<<24,255&A.charCodeAt(G)|(255&A.charCodeAt(G+1))<<8|(255&A.charCodeAt(G+2))<<16|(255&A.charCodeAt(G+3))<<24],ot=[255&A.charCodeAt(G+12)|(255&A.charCodeAt(G+13))<<8|(255&A.charCodeAt(G+14))<<16|(255&A.charCodeAt(G+15))<<24,255&A.charCodeAt(G+8)|(255&A.charCodeAt(G+9))<<8|(255&A.charCodeAt(G+10))<<16|(255&A.charCodeAt(G+11))<<24],kt=N(kt=L(kt,Kt),31),Mt=T(Mt=N(Mt=B(Mt,kt=L(kt,he)),27),Ut),Mt=T(L(Mt,[0,5]),[0,1390208809]),ot=N(ot=L(ot,he),33),Ut=T(Ut=N(Ut=B(Ut,ot=L(ot,Kt)),31),Mt),Ut=T(L(Ut,[0,5]),[0,944331445]);switch(kt=[0,0],ot=[0,0],st){case 15:ot=B(ot,x([0,A.charCodeAt(G+14)],48));case 14:ot=B(ot,x([0,A.charCodeAt(G+13)],40));case 13:ot=B(ot,x([0,A.charCodeAt(G+12)],32));case 12:ot=B(ot,x([0,A.charCodeAt(G+11)],24));case 11:ot=B(ot,x([0,A.charCodeAt(G+10)],16));case 10:ot=B(ot,x([0,A.charCodeAt(G+9)],8));case 9:ot=L(ot=B(ot,[0,A.charCodeAt(G+8)]),he),Ut=B(Ut,ot=L(ot=N(ot,33),Kt));case 8:kt=B(kt,x([0,A.charCodeAt(G+7)],56));case 7:kt=B(kt,x([0,A.charCodeAt(G+6)],48));case 6:kt=B(kt,x([0,A.charCodeAt(G+5)],40));case 5:kt=B(kt,x([0,A.charCodeAt(G+4)],32));case 4:kt=B(kt,x([0,A.charCodeAt(G+3)],24));case 3:kt=B(kt,x([0,A.charCodeAt(G+2)],16));case 2:kt=B(kt,x([0,A.charCodeAt(G+1)],8));case 1:kt=L(kt=B(kt,[0,A.charCodeAt(G)]),Kt),Mt=B(Mt,kt=L(kt=N(kt,31),he))}return Mt=T(Mt=B(Mt,[0,A.length]),Ut=B(Ut,[0,A.length])),Ut=T(Ut,Mt),Mt=T(Mt=D(Mt),Ut=D(Ut)),Ut=T(Ut,Mt),("00000000"+(Mt[0]>>>0).toString(16)).slice(-8)+("00000000"+(Mt[1]>>>0).toString(16)).slice(-8)+("00000000"+(Ut[0]>>>0).toString(16)).slice(-8)+("00000000"+(Ut[1]>>>0).toString(16)).slice(-8)}function z(A){return parseInt(A)}function J(A){return parseFloat(A)}function Z(A,V){return typeof A=="number"&&isNaN(A)?V:A}function nt(A){return A.reduce((function(V,G){return V+(G?1:0)}),0)}function ht(A,V){if(V===void 0&&(V=1),Math.abs(V)>=1)return Math.round(A/V)*V;var G=1/V;return Math.round(A*G)/G}function ft(A){return A&&typeof A=="object"&&"message"in A?A:{message:A}}function At(A){return typeof A!="function"}function bt(A,V,G){var st=Object.keys(A).filter((function(Mt){return!(function(Ut,kt){for(var ot=0,Kt=Ut.length;ot<Kt;++ot)if(Ut[ot]===kt)return!0;return!1})(G,Mt)})),Ct=l(st,(function(Mt){return(function(Ut,kt){var ot=new Promise((function(Kt){var he=Date.now();g(Ut.bind(null,kt),(function(){for(var ne=[],oe=0;oe<arguments.length;oe++)ne[oe]=arguments[oe];var de=Date.now()-he;if(!ne[0])return Kt((function(){return{error:ft(ne[1]),duration:de}}));var fe=ne[1];if(At(fe))return Kt((function(){return{value:fe,duration:de}}));Kt((function(){return new Promise((function(ue){var Ke=Date.now();g(fe,(function(){for(var me=[],Re=0;Re<arguments.length;Re++)me[Re]=arguments[Re];var un=de+Date.now()-Ke;if(!me[0])return ue({error:ft(me[1]),duration:un});ue({value:me[1],duration:un})}))}))}))}))}));return E(ot),function(){return ot.then((function(Kt){return Kt()}))}})(A[Mt],V)}));return E(Ct),function(){return(0,e.sH)(this,void 0,void 0,(function(){var Mt,Ut,kt,ot;return(0,e.YH)(this,(function(Kt){switch(Kt.label){case 0:return[4,Ct];case 1:return[4,l(Kt.sent(),(function(he){var ne=he();return E(ne),ne}))];case 2:return Mt=Kt.sent(),[4,Promise.all(Mt)];case 3:for(Ut=Kt.sent(),kt={},ot=0;ot<st.length;++ot)kt[st[ot]]=Ut[ot];return[2,kt]}}))}))}}function at(A,V){var G=function(st){return At(st)?V(st):function(){var Ct=st();return f(Ct)?Ct.then(V):V(Ct)}};return function(st){var Ct=A(st);return f(Ct)?Ct.then(G):G(Ct)}}function lt(){var A=window,V=navigator;return nt(["MSCSSMatrix"in A,"msSetImmediate"in A,"msIndexedDB"in A,"msMaxTouchPoints"in V,"msPointerEnabled"in V])>=4}function mt(){var A=window,V=navigator;return nt(["msWriteProfilerMark"in A,"MSStream"in A,"msLaunchUri"in V,"msSaveBlob"in V])>=3&&!lt()}function wt(){var A=window,V=navigator;return nt(["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 P(){var A=window,V=navigator;return nt(["ApplePayError"in A,"CSSPrimitiveValue"in A,"Counter"in A,V.vendor.indexOf("Apple")===0,"getStorageUpdates"in V,"WebKitMediaKeys"in A])>=4}function d(){var A=window;return nt(["safari"in A,!("DeviceMotionEvent"in A),!("ongestureend"in A),!("standalone"in navigator)])>=3}function S(){var A,V,G=window;return nt(["buildID"in navigator,"MozAppearance"in((V=(A=document.documentElement)===null||A===void 0?void 0:A.style)!==null&&V!==void 0?V:{}),"onmozfullscreenchange"in G,"mozInnerScreenX"in G,"CSSMozDocumentRule"in G,"CanvasCaptureMediaStream"in G])>=4}function U(){var A=document;return A.fullscreenElement||A.msFullscreenElement||A.mozFullScreenElement||A.webkitFullscreenElement||null}function K(){var A=wt(),V=S();if(!A&&!V)return!1;var G=window;return nt(["onorientationchange"in G,"orientation"in G,A&&!("SharedWorker"in G),V&&/android/i.test(navigator.appVersion)])>=2}function q(A){var V=new Error(A);return V.name=A,V}function rt(A,V,G){var st,Ct,Mt;return G===void 0&&(G=50),(0,e.sH)(this,void 0,void 0,(function(){var Ut,kt;return(0,e.YH)(this,(function(ot){switch(ot.label){case 0:Ut=document,ot.label=1;case 1:return Ut.body?[3,3]:[4,a(G)];case 2:return ot.sent(),[3,1];case 3:kt=Ut.createElement("iframe"),ot.label=4;case 4:return ot.trys.push([4,,10,11]),[4,new Promise((function(Kt,he){var ne=!1,oe=function(){ne=!0,Kt()};kt.onload=oe,kt.onerror=function(ue){ne=!0,he(ue)};var de=kt.style;de.setProperty("display","block","important"),de.position="absolute",de.top="0",de.left="0",de.visibility="hidden",V&&"srcdoc"in kt?kt.srcdoc=V:kt.src="about:blank",Ut.body.appendChild(kt);var fe=function(){var ue,Ke;ne||(((Ke=(ue=kt.contentWindow)===null||ue===void 0?void 0:ue.document)===null||Ke===void 0?void 0:Ke.readyState)==="complete"?oe():setTimeout(fe,10))};fe()}))];case 5:ot.sent(),ot.label=6;case 6:return!((Ct=(st=kt.contentWindow)===null||st===void 0?void 0:st.document)===null||Ct===void 0)&&Ct.body?[3,8]:[4,a(G)];case 7:return ot.sent(),[3,6];case 8:return[4,A(kt,kt.contentWindow)];case 9:return[2,ot.sent()];case 10:return(Mt=kt.parentNode)===null||Mt===void 0||Mt.removeChild(kt),[7];case 11:return[2]}}))}))}function ct(A){for(var V=(function(Kt){for(var he,ne,oe="Unexpected syntax '".concat(Kt,"'"),de=/^\s*([a-z-]*)(.*)$/i.exec(Kt),fe=de[1]||void 0,ue={},Ke=/([.:#][\w-]+|\[.+?\])/gi,me=function(De,lr){ue[De]=ue[De]||[],ue[De].push(lr)};;){var Re=Ke.exec(de[2]);if(!Re)break;var un=Re[0];switch(un[0]){case".":me("class",un.slice(1));break;case"#":me("id",un.slice(1));break;case"[":var Me=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(un);if(!Me)throw new Error(oe);me(Me[1],(ne=(he=Me[4])!==null&&he!==void 0?he:Me[5])!==null&&ne!==void 0?ne:"");break;default:throw new Error(oe)}}return[fe,ue]})(A),G=V[0],st=V[1],Ct=document.createElement(G??"div"),Mt=0,Ut=Object.keys(st);Mt<Ut.length;Mt++){var kt=Ut[Mt],ot=st[kt].join(" ");kt==="style"?W(Ct.style,ot):Ct.setAttribute(kt,ot)}return Ct}function W(A,V){for(var G=0,st=V.split(";");G<st.length;G++){var Ct=st[G],Mt=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(Ct);if(Mt){var Ut=Mt[1],kt=Mt[2],ot=Mt[4];A.setProperty(Ut,kt,ot||"")}}}var h=["monospace","sans-serif","serif"],R=["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 Y(A){return A.toDataURL()}var $,pt,It=2500;function Vt(){var A=this;return(function(){if(pt===void 0){var V=function(){var G=Zt();le(G)?pt=setTimeout(V,It):($=G,pt=void 0)};V()}})(),function(){return(0,e.sH)(A,void 0,void 0,(function(){var V;return(0,e.YH)(this,(function(G){switch(G.label){case 0:return le(V=Zt())?$?[2,(0,e.fX)([],$,!0)]:U()?[4,(st=document,(st.exitFullscreen||st.msExitFullscreen||st.mozCancelFullScreen||st.webkitExitFullscreen).call(st))]:[3,2]:[3,2];case 1:G.sent(),V=Zt(),G.label=2;case 2:return le(V)||($=V),[2,V]}var st}))}))}}function Zt(){var A=screen;return[Z(J(A.availTop),null),Z(J(A.width)-J(A.availWidth)-Z(J(A.availLeft),0),null),Z(J(A.height)-J(A.availHeight)-Z(J(A.availTop),0),null),Z(J(A.availLeft),null)]}function le(A){for(var V=0;V<4;++V)if(A[V])return!1;return!0}function we(A){var V;return(0,e.sH)(this,void 0,void 0,(function(){var G,st,Ct,Mt,Ut,kt,ot;return(0,e.YH)(this,(function(Kt){switch(Kt.label){case 0:for(G=document,st=G.createElement("div"),Ct=new Array(A.length),Mt={},ge(st),ot=0;ot<A.length;++ot)(Ut=ct(A[ot])).tagName==="DIALOG"&&Ut.show(),ge(kt=G.createElement("div")),kt.appendChild(Ut),st.appendChild(kt),Ct[ot]=Ut;Kt.label=1;case 1:return G.body?[3,3]:[4,a(50)];case 2:return Kt.sent(),[3,1];case 3:G.body.appendChild(st);try{for(ot=0;ot<A.length;++ot)Ct[ot].offsetParent||(Mt[A[ot]]=!0)}finally{(V=st.parentNode)===null||V===void 0||V.removeChild(st)}return[2,Mt]}}))}))}function ge(A){A.style.setProperty("display","block","important")}function Se(A){return matchMedia("(inverted-colors: ".concat(A,")")).matches}function Ee(A){return matchMedia("(forced-colors: ".concat(A,")")).matches}function _e(A){return matchMedia("(prefers-contrast: ".concat(A,")")).matches}function Ve(A){return matchMedia("(prefers-reduced-motion: ".concat(A,")")).matches}function Ie(A){return matchMedia("(dynamic-range: ".concat(A,")")).matches}var m=Math,k=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"}]},Q={fonts:function(){return rt((function(A,V){var G=V.document,st=G.body;st.style.fontSize="48px";var Ct=G.createElement("div"),Mt={},Ut={},kt=function(ne){var oe=G.createElement("span"),de=oe.style;return de.position="absolute",de.top="0",de.left="0",de.fontFamily=ne,oe.textContent="mmMwWLliI0O&1",Ct.appendChild(oe),oe},ot=h.map(kt),Kt=(function(){for(var ne={},oe=function(ue){ne[ue]=h.map((function(Ke){return(function(me,Re){return kt("'".concat(me,"',").concat(Re))})(ue,Ke)}))},de=0,fe=R;de<fe.length;de++)oe(fe[de]);return ne})();st.appendChild(Ct);for(var he=0;he<h.length;he++)Mt[h[he]]=ot[he].offsetWidth,Ut[h[he]]=ot[he].offsetHeight;return R.filter((function(ne){return oe=Kt[ne],h.some((function(de,fe){return oe[fe].offsetWidth!==Mt[de]||oe[fe].offsetHeight!==Ut[de]}));var oe}))}))},domBlockers:function(A){var V=(A===void 0?{}:A).debug;return(0,e.sH)(this,void 0,void 0,(function(){var G,st,Ct,Mt,Ut;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return P()||K()?(ot=atob,G={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',ot("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",ot("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",ot("LnNwb25zb3JpdA=="),".ylamainos",ot("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),ot("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",ot("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",ot("LmhlYWRlci1ibG9ja2VkLWFk"),ot("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",ot("I2FkXzMwMFgyNTA="),ot("I2Jhbm5lcmZsb2F0MjI="),ot("I2NhbXBhaWduLWJhbm5lcg=="),ot("I0FkLUNvbnRlbnQ=")],adGuardChinese:[ot("LlppX2FkX2FfSA=="),ot("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",ot("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),ot("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",ot("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",ot("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",ot("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),ot("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),ot("LmFkZ29vZ2xl"),ot("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[ot("YW1wLWF1dG8tYWRz"),ot("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",ot("I2FkX2ludmlld19hcmVh")],adGuardRussian:[ot("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),ot("LnJlY2xhbWE="),'div[id^="smi2adblock"]',ot("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[ot("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),ot("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",ot("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),ot("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),ot("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",ot("I3Jla2xhbWk="),ot("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),ot("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),ot("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[ot("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",ot("LndpZGdldF9wb19hZHNfd2lkZ2V0"),ot("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",ot("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[ot("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),ot("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",ot("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",ot("I3Jla2xhbW5pLWJveA=="),ot("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",ot("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[ot("I2FkdmVydGVudGll"),ot("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",ot("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",ot("LnNwb25zb3JsaW5rZ3J1ZW4="),ot("I3dlcmJ1bmdza3k="),ot("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),ot("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[ot("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",ot("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),ot("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),ot("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[ot("LnJla2xhbW9zX3RhcnBhcw=="),ot("LnJla2xhbW9zX251b3JvZG9z"),ot("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),ot("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),ot("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[ot("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:[ot("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),ot("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",ot("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[ot("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),ot("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),ot("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",ot("LmFkX19tYWlu"),ot("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[ot("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[ot("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),ot("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[ot("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),ot("I2xpdmVyZUFkV3JhcHBlcg=="),ot("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),ot("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[ot("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",ot("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),ot("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),ot("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[ot("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),ot("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),ot("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",ot("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),ot("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),ot("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),ot("ZGl2I3NrYXBpZWNfYWQ=")],ro:[ot("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),ot("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),ot("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),ot("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[ot("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),ot("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),ot("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",ot("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),ot("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",ot("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},st=Object.keys(G),[4,we((Ut=[]).concat.apply(Ut,st.map((function(Kt){return G[Kt]}))))]):[2,void 0];case 1:return Ct=kt.sent(),V&&(function(Kt,he){for(var ne="DOM blockers debug:\n```",oe=0,de=Object.keys(Kt);oe<de.length;oe++){var fe=de[oe];ne+=`
|
|
12
|
+
`.concat(fe,":");for(var ue=0,Ke=Kt[fe];ue<Ke.length;ue++){var me=Ke[ue];ne+=`
|
|
13
|
+
`.concat(he[me]?"🚫":"➡️"," ").concat(me)}}console.log("".concat(ne,"\n```"))})(G,Ct),(Mt=st.filter((function(Kt){var he=G[Kt];return nt(he.map((function(ne){return Ct[ne]})))>.6*he.length}))).sort(),[2,Mt]}var ot}))}))},fontPreferences:function(){return A===void 0&&(A=4e3),rt((function(V,G){var st=G.document,Ct=st.body,Mt=Ct.style;Mt.width="".concat(A,"px"),Mt.webkitTextSizeAdjust=Mt.textSizeAdjust="none",wt()?Ct.style.zoom="".concat(1/G.devicePixelRatio):P()&&(Ct.style.zoom="reset");var Ut=st.createElement("div");return Ut.textContent=(0,e.fX)([],Array(A/20|0),!0).map((function(){return"word"})).join(" "),Ct.appendChild(Ut),(function(kt,ot){for(var Kt={},he={},ne=0,oe=Object.keys(H);ne<oe.length;ne++){var de=oe[ne],fe=H[de],ue=fe[0],Ke=ue===void 0?{}:ue,me=fe[1],Re=me===void 0?"mmMwWLliI0fiflO&1":me,un=kt.createElement("span");un.textContent=Re,un.style.whiteSpace="nowrap";for(var Me=0,De=Object.keys(Ke);Me<De.length;Me++){var lr=De[Me],Ye=Ke[lr];Ye!==void 0&&(un.style[lr]=Ye)}Kt[de]=un,ot.appendChild(kt.createElement("br")),ot.appendChild(un)}for(var Ge=0,zr=Object.keys(H);Ge<zr.length;Ge++)he[de=zr[Ge]]=Kt[de].getBoundingClientRect().width;return he})(st,Ct)}),'<!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(P()&&!d()&&!(function(){var Kt=window;return nt(["DOMRectList"in Kt,"RTCPeerConnectionIceEvent"in Kt,"SVGGeometryElement"in Kt,"ontransitioncancel"in Kt])>=3})())return-1;var G=new V(1,5e3,44100),st=G.createOscillator();st.type="triangle",st.frequency.value=1e4;var Ct=G.createDynamicsCompressor();Ct.threshold.value=-50,Ct.knee.value=40,Ct.ratio.value=12,Ct.attack.value=0,Ct.release.value=.25,st.connect(Ct),Ct.connect(G.destination),st.start(0);var Mt=(function(Kt){var he=function(){};return[new Promise((function(ne,oe){var de=!1,fe=0,ue=0;Kt.oncomplete=function(Re){return ne(Re.renderedBuffer)};var Ke=function(){setTimeout((function(){return oe(q("timeout"))}),Math.min(500,ue+5e3-Date.now()))},me=function(){try{var Re=Kt.startRendering();switch(f(Re)&&E(Re),Kt.state){case"running":ue=Date.now(),de&&Ke();break;case"suspended":document.hidden||fe++,de&&fe>=3?oe(q("suspended")):setTimeout(me,500)}}catch(un){oe(un)}};me(),he=function(){de||(de=!0,ue>0&&Ke())}})),he]})(G),Ut=Mt[0],kt=Mt[1],ot=Ut.then((function(Kt){return(function(he){for(var ne=0,oe=0;oe<he.length;++oe)ne+=Math.abs(he[oe]);return ne})(Kt.getChannelData(0).subarray(4500))}),(function(Kt){if(Kt.name==="timeout"||Kt.name==="suspended")return-3;throw Kt}));return E(ot),function(){return kt(),ot}},screenFrame:function(){var A=this,V=Vt();return function(){return(0,e.sH)(A,void 0,void 0,(function(){var G,st;return(0,e.YH)(this,(function(Ct){switch(Ct.label){case 0:return[4,V()];case 1:return G=Ct.sent(),[2,[(st=function(Mt){return Mt===null?null:ht(Mt,10)})(G[0]),st(G[1]),st(G[2]),st(G[3])]]}}))}))}},osCpu:function(){return navigator.oscpu},languages:function(){var A,V=navigator,G=[],st=V.language||V.userLanguage||V.browserLanguage||V.systemLanguage;if(st!==void 0&&G.push([st]),Array.isArray(V.languages))wt()&&nt([!("MediaSettingsRange"in(A=window)),"RTCEncodedAudioFrame"in A,""+A.Intl=="[object Intl]",""+A.Reflect=="[object Reflect]"])>=3||G.push(V.languages);else if(typeof V.languages=="string"){var Ct=V.languages;Ct&&G.push(Ct.split(","))}return G},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Z(J(navigator.deviceMemory),void 0)},screenResolution:function(){var A=screen,V=function(st){return Z(z(st),null)},G=[V(A.width),V(A.height)];return G.sort().reverse(),G},hardwareConcurrency:function(){return Z(z(navigator.hardwareConcurrency),void 0)},timezone:function(){var A,V=(A=window.Intl)===null||A===void 0?void 0:A.DateTimeFormat;if(V){var G=new V().resolvedOptions().timeZone;if(G)return G}var st,Ct=(st=new Date().getFullYear(),-Math.max(J(new Date(st,0,1).getTimezoneOffset()),J(new Date(st,6,1).getTimezoneOffset())));return"UTC".concat(Ct>=0?"+":"").concat(Math.abs(Ct))},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!lt()&&!mt())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"&&P()&&!d()?(function(){if(navigator.platform==="iPad")return!0;var V=screen,G=V.width/V.height;return nt(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,G>.65&&G<1.53])>=2})()?"iPad":"iPhone":A},plugins:function(){var A=navigator.plugins;if(A){for(var V=[],G=0;G<A.length;++G){var st=A[G];if(st){for(var Ct=[],Mt=0;Mt<st.length;++Mt){var Ut=st[Mt];Ct.push({type:Ut.type,suffixes:Ut.suffixes})}V.push({name:st.name,description:st.description,mimeTypes:Ct})}}return V}},canvas:function(){var A,V,G=!1,st=(function(){var kt=document.createElement("canvas");return kt.width=1,kt.height=1,[kt,kt.getContext("2d")]})(),Ct=st[0],Mt=st[1];if((function(kt,ot){return!(!ot||!kt.toDataURL)})(Ct,Mt)){G=(function(kt){return kt.rect(0,0,10,10),kt.rect(2,2,6,6),!kt.isPointInPath(5,5,"evenodd")})(Mt),(function(kt,ot){kt.width=240,kt.height=60,ot.textBaseline="alphabetic",ot.fillStyle="#f60",ot.fillRect(100,1,62,20),ot.fillStyle="#069",ot.font='11pt "Times New Roman"';var Kt="Cwm fjordbank gly ".concat("😃");ot.fillText(Kt,2,15),ot.fillStyle="rgba(102, 204, 0, 0.2)",ot.font="18pt Arial",ot.fillText(Kt,4,45)})(Ct,Mt);var Ut=Y(Ct);Ut!==Y(Ct)?A=V="unstable":(V=Ut,(function(kt,ot){kt.width=122,kt.height=110,ot.globalCompositeOperation="multiply";for(var Kt=0,he=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];Kt<he.length;Kt++){var ne=he[Kt],oe=ne[0],de=ne[1],fe=ne[2];ot.fillStyle=oe,ot.beginPath(),ot.arc(de,fe,40,0,2*Math.PI,!0),ot.closePath(),ot.fill()}ot.fillStyle="#f9c",ot.arc(60,60,60,0,2*Math.PI,!0),ot.arc(60,60,20,0,2*Math.PI,!0),ot.fill("evenodd")})(Ct,Mt),A=Y(Ct))}else A=V="";return{winding:G,geometry:A,text:V}},touchSupport:function(){var A,V=navigator,G=0;V.maxTouchPoints!==void 0?G=z(V.maxTouchPoints):V.msMaxTouchPoints!==void 0&&(G=V.msMaxTouchPoints);try{document.createEvent("TouchEvent"),A=!0}catch{A=!1}return{maxTouchPoints:G,touchEvent:A,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var A=[],V=0,G=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];V<G.length;V++){var st=G[V],Ct=window[st];Ct&&typeof Ct=="object"&&A.push(st)}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 G=V[A];if(matchMedia("(color-gamut: ".concat(G,")")).matches)return G}},invertedColors:function(){return!!Se("inverted")||!Se("none")&&void 0},forcedColors:function(){return!!Ee("active")||!Ee("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 _e("no-preference")?0:_e("high")||_e("more")?1:_e("low")||_e("less")?-1:_e("forced")?10:void 0},reducedMotion:function(){return!!Ve("reduce")||!Ve("no-preference")&&void 0},hdr:function(){return!!Ie("high")||!Ie("standard")&&void 0},math:function(){var A,V=m.acos||k,G=m.acosh||k,st=m.asin||k,Ct=m.asinh||k,Mt=m.atanh||k,Ut=m.atan||k,kt=m.sin||k,ot=m.sinh||k,Kt=m.cos||k,he=m.cosh||k,ne=m.tan||k,oe=m.tanh||k,de=m.exp||k,fe=m.expm1||k,ue=m.log1p||k;return{acos:V(.12312423423423424),acosh:G(1e308),acoshPf:(A=1e154,m.log(A+m.sqrt(A*A-1))),asin:st(.12312423423423424),asinh:Ct(1),asinhPf:m.log(1+m.sqrt(2)),atanh:Mt(.5),atanhPf:m.log(3)/2,atan:Ut(.5),sin:kt(-1e300),sinh:ot(1),sinhPf:m.exp(1)-1/m.exp(1)/2,cos:Kt(10.000000000123),cosh:he(1),coshPf:(m.exp(1)+1/m.exp(1))/2,tan:ne(-1e300),tanh:oe(1),tanhPf:(m.exp(2)-1)/(m.exp(2)+1),exp:de(1),expm1:fe(1),expm1Pf:m.exp(1)-1,log1p:ue(10),log1pPf:m.log(11),powPI:m.pow(m.PI,-100)}},videoCard:function(){var A,V=document.createElement("canvas"),G=(A=V.getContext("webgl"))!==null&&A!==void 0?A:V.getContext("experimental-webgl");if(G&&"getExtension"in G){var st=G.getExtension("WEBGL_debug_renderer_info");if(st)return{vendor:(G.getParameter(st.UNMASKED_VENDOR_WEBGL)||"").toString(),renderer:(G.getParameter(st.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]}},yt="$ if upgrade to Pro: https://fpjs.dev/pro";function _t(A){return JSON.stringify(A,(function(V,G){return G instanceof Error?(st=G,(0,e.Cl)({name:st.name,message:st.message,stack:(Ct=st.stack)===null||Ct===void 0?void 0:Ct.split(`
|
|
14
|
+
`)},st)):G;var st,Ct}),2)}function Lt(A){return j((function(V){for(var G="",st=0,Ct=Object.keys(V).sort();st<Ct.length;st++){var Mt=Ct[st],Ut=V[Mt],kt=Ut.error?"error":JSON.stringify(Ut.value);G+="".concat(G?"|":"").concat(Mt.replace(/([:|\\])/g,"\\$1"),":").concat(kt)}return G})(A))}function zt(A){return A===void 0&&(A=50),(function(V,G){G===void 0&&(G=1/0);var st=window.requestIdleCallback;return st?new Promise((function(Ct){return st.call(window,(function(){return Ct()}),{timeout:G})})):a(Math.min(V,G))})(A,2*A)}function ee(A,V){var G=Date.now();return{get:function(st){return(0,e.sH)(this,void 0,void 0,(function(){var Ct,Mt,Ut;return(0,e.YH)(this,(function(kt){switch(kt.label){case 0:return Ct=Date.now(),[4,A()];case 1:return Mt=kt.sent(),Ut=(function(ot){var Kt,he=(function(ne){var oe=(function(fe){if(K())return .4;if(P())return d()?.5:.3;var ue=fe.platform.value||"";return/^Win/.test(ue)?.6:/^Mac/.test(ue)?.5:.7})(ne),de=(function(fe){return ht(.99+.01*fe,1e-4)})(oe);return{score:oe,comment:yt.replace(/\$/g,"".concat(de))}})(ot);return{get visitorId(){return Kt===void 0&&(Kt=Lt(this.components)),Kt},set visitorId(ne){Kt=ne},confidence:he,components:ot,version:u}})(Mt),(V||st?.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Ut.version,`
|
|
15
15
|
userAgent: `).concat(navigator.userAgent,`
|
|
16
|
-
timeBetweenLoadAndGet: `).concat(
|
|
17
|
-
visitorId: `).concat(
|
|
18
|
-
components: `).concat(Et(Bt),"\n```")),[2,Dt]}}))}))}}}function F(A){var V=A===void 0?{}:A,G=V.delayFallback,ot=V.debug,Lt=V.monitoring,Bt=Lt===void 0||Lt;return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(Dt){switch(Dt.label){case 0:return Bt&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var kt=new XMLHttpRequest;kt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(u,"/npm-monitoring"),!0),kt.send()}catch(it){console.error(it)}})(),[4,Wt(G)];case 1:return Dt.sent(),[2,ee(Rt(lt,{debug:ot},[]),ot)]}}))}))}var R={load:F,hashComponents:Ct,componentsToDebugString:Et},O=Y},526:function(t,n){n.byteLength=function(_){var T=g(_),C=T[0],N=T[1];return 3*(C+N)/4-N},n.toByteArray=function(_){var T,C,N=g(_),x=N[0],M=N[1],U=new u((function(J,Z,et){return 3*(Z+et)/4-et})(0,x,M)),Y=0,W=M>0?x-4:x;for(C=0;C<W;C+=4)T=e[_.charCodeAt(C)]<<18|e[_.charCodeAt(C+1)]<<12|e[_.charCodeAt(C+2)]<<6|e[_.charCodeAt(C+3)],U[Y++]=T>>16&255,U[Y++]=T>>8&255,U[Y++]=255&T;return M===2&&(T=e[_.charCodeAt(C)]<<2|e[_.charCodeAt(C+1)]>>4,U[Y++]=255&T),M===1&&(T=e[_.charCodeAt(C)]<<10|e[_.charCodeAt(C+1)]<<4|e[_.charCodeAt(C+2)]>>2,U[Y++]=T>>8&255,U[Y++]=255&T),U},n.fromByteArray=function(_){for(var T,C=_.length,N=C%3,x=[],M=16383,U=0,Y=C-N;U<Y;U+=M)x.push(l(_,U,U+M>Y?Y:U+M));return N===1?(T=_[C-1],x.push(r[T>>2]+r[T<<4&63]+"==")):N===2&&(T=(_[C-2]<<8)+_[C-1],x.push(r[T>>10]+r[T>>4&63]+r[T<<2&63]+"=")),x.join("")};for(var r=[],e=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0;d<64;++d)r[d]=a[d],e[a.charCodeAt(d)]=d;function g(_){var T=_.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var C=_.indexOf("=");return C===-1&&(C=T),[C,C===T?0:4-C%4]}function l(_,T,C){for(var N,x,M=[],U=T;U<C;U+=3)N=(_[U]<<16&16711680)+(_[U+1]<<8&65280)+(255&_[U+2]),M.push(r[(x=N)>>18&63]+r[x>>12&63]+r[x>>6&63]+r[63&x]);return M.join("")}e[45]=62,e[95]=63},287:function(t,n,r){const e=r(526),u=r(251),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.hp=l,n.IS=50;const d=2147483647;function g(m){if(m>d)throw new RangeError('The value "'+m+'" is invalid for option "size"');const k=new Uint8Array(m);return Object.setPrototypeOf(k,l.prototype),k}function l(m,k,H){if(typeof m=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return C(m)}return _(m,k,H)}function _(m,k,H){if(typeof m=="string")return(function(Et,Ct){if(typeof Ct=="string"&&Ct!==""||(Ct="utf8"),!l.isEncoding(Ct))throw new TypeError("Unknown encoding: "+Ct);const Wt=0|U(Et,Ct);let ee=g(Wt);const F=ee.write(Et,Ct);return F!==Wt&&(ee=ee.slice(0,F)),ee})(m,k);if(ArrayBuffer.isView(m))return(function(Et){if(Oe(Et,Uint8Array)){const Ct=new Uint8Array(Et);return x(Ct.buffer,Ct.byteOffset,Ct.byteLength)}return N(Et)})(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Oe(m,ArrayBuffer)||m&&Oe(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Oe(m,SharedArrayBuffer)||m&&Oe(m.buffer,SharedArrayBuffer)))return x(m,k,H);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const lt=m.valueOf&&m.valueOf();if(lt!=null&<!==m)return l.from(lt,k,H);const yt=(function(Et){if(l.isBuffer(Et)){const Ct=0|M(Et.length),Wt=g(Ct);return Wt.length===0||Et.copy(Wt,0,0,Ct),Wt}return Et.length!==void 0?typeof Et.length!="number"||_e(Et.length)?g(0):N(Et):Et.type==="Buffer"&&Array.isArray(Et.data)?N(Et.data):void 0})(m);if(yt)return yt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return l.from(m[Symbol.toPrimitive]("string"),k,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}function T(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function C(m){return T(m),g(m<0?0:0|M(m))}function N(m){const k=m.length<0?0:0|M(m.length),H=g(k);for(let lt=0;lt<k;lt+=1)H[lt]=255&m[lt];return H}function x(m,k,H){if(k<0||m.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<k+(H||0))throw new RangeError('"length" is outside of buffer bounds');let lt;return lt=k===void 0&&H===void 0?new Uint8Array(m):H===void 0?new Uint8Array(m,k):new Uint8Array(m,k,H),Object.setPrototypeOf(lt,l.prototype),lt}function M(m){if(m>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|m}function U(m,k){if(l.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Oe(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const H=m.length,lt=arguments.length>2&&arguments[2]===!0;if(!lt&&H===0)return 0;let yt=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return de(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return ye(m).length;default:if(yt)return lt?-1:de(m).length;k=(""+k).toLowerCase(),yt=!0}}function Y(m,k,H){let lt=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(k>>>=0))return"";for(m||(m="utf8");;)switch(m){case"hex":return f(this,k,H);case"utf8":case"utf-8":return ct(this,k,H);case"ascii":return wt(this,k,H);case"latin1":case"binary":return P(this,k,H);case"base64":return st(this,k,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,k,H);default:if(lt)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),lt=!0}}function W(m,k,H){const lt=m[k];m[k]=m[H],m[H]=lt}function J(m,k,H,lt,yt){if(m.length===0)return-1;if(typeof H=="string"?(lt=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),_e(H=+H)&&(H=yt?0:m.length-1),H<0&&(H=m.length+H),H>=m.length){if(yt)return-1;H=m.length-1}else if(H<0){if(!yt)return-1;H=0}if(typeof k=="string"&&(k=l.from(k,lt)),l.isBuffer(k))return k.length===0?-1:Z(m,k,H,lt,yt);if(typeof k=="number")return k&=255,typeof Uint8Array.prototype.indexOf=="function"?yt?Uint8Array.prototype.indexOf.call(m,k,H):Uint8Array.prototype.lastIndexOf.call(m,k,H):Z(m,[k],H,lt,yt);throw new TypeError("val must be string, number or Buffer")}function Z(m,k,H,lt,yt){let Et,Ct=1,Wt=m.length,ee=k.length;if(lt!==void 0&&((lt=String(lt).toLowerCase())==="ucs2"||lt==="ucs-2"||lt==="utf16le"||lt==="utf-16le")){if(m.length<2||k.length<2)return-1;Ct=2,Wt/=2,ee/=2,H/=2}function F(R,O){return Ct===1?R[O]:R.readUInt16BE(O*Ct)}if(yt){let R=-1;for(Et=H;Et<Wt;Et++)if(F(m,Et)===F(k,R===-1?0:Et-R)){if(R===-1&&(R=Et),Et-R+1===ee)return R*Ct}else R!==-1&&(Et-=Et-R),R=-1}else for(H+ee>Wt&&(H=Wt-ee),Et=H;Et>=0;Et--){let R=!0;for(let O=0;O<ee;O++)if(F(m,Et+O)!==F(k,O)){R=!1;break}if(R)return Et}return-1}function et(m,k,H,lt){H=Number(H)||0;const yt=m.length-H;lt?(lt=Number(lt))>yt&&(lt=yt):lt=yt;const Et=k.length;let Ct;for(lt>Et/2&&(lt=Et/2),Ct=0;Ct<lt;++Ct){const Wt=parseInt(k.substr(2*Ct,2),16);if(_e(Wt))return Ct;m[H+Ct]=Wt}return Ct}function ht(m,k,H,lt){return ge(de(k,m.length-H),m,H,lt)}function ut(m,k,H,lt){return ge((function(yt){const Et=[];for(let Ct=0;Ct<yt.length;++Ct)Et.push(255&yt.charCodeAt(Ct));return Et})(k),m,H,lt)}function At(m,k,H,lt){return ge(ye(k),m,H,lt)}function Rt(m,k,H,lt){return ge((function(yt,Et){let Ct,Wt,ee;const F=[];for(let R=0;R<yt.length&&!((Et-=2)<0);++R)Ct=yt.charCodeAt(R),Wt=Ct>>8,ee=Ct%256,F.push(ee),F.push(Wt);return F})(k,m.length-H),m,H,lt)}function st(m,k,H){return k===0&&H===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(k,H))}function ct(m,k,H){H=Math.min(m.length,H);const lt=[];let yt=k;for(;yt<H;){const Et=m[yt];let Ct=null,Wt=Et>239?4:Et>223?3:Et>191?2:1;if(yt+Wt<=H){let ee,F,R,O;switch(Wt){case 1:Et<128&&(Ct=Et);break;case 2:ee=m[yt+1],(192&ee)==128&&(O=(31&Et)<<6|63&ee,O>127&&(Ct=O));break;case 3:ee=m[yt+1],F=m[yt+2],(192&ee)==128&&(192&F)==128&&(O=(15&Et)<<12|(63&ee)<<6|63&F,O>2047&&(O<55296||O>57343)&&(Ct=O));break;case 4:ee=m[yt+1],F=m[yt+2],R=m[yt+3],(192&ee)==128&&(192&F)==128&&(192&R)==128&&(O=(15&Et)<<18|(63&ee)<<12|(63&F)<<6|63&R,O>65535&&O<1114112&&(Ct=O))}}Ct===null?(Ct=65533,Wt=1):Ct>65535&&(Ct-=65536,lt.push(Ct>>>10&1023|55296),Ct=56320|1023&Ct),lt.push(Ct),yt+=Wt}return(function(Et){const Ct=Et.length;if(Ct<=gt)return String.fromCharCode.apply(String,Et);let Wt="",ee=0;for(;ee<Ct;)Wt+=String.fromCharCode.apply(String,Et.slice(ee,ee+=gt));return Wt})(lt)}l.TYPED_ARRAY_SUPPORT=(function(){try{const m=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(m,k),m.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(m,k,H){return _(m,k,H)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(m,k,H){return(function(lt,yt,Et){return T(lt),lt<=0?g(lt):yt!==void 0?typeof Et=="string"?g(lt).fill(yt,Et):g(lt).fill(yt):g(lt)})(m,k,H)},l.allocUnsafe=function(m){return C(m)},l.allocUnsafeSlow=function(m){return C(m)},l.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==l.prototype},l.compare=function(m,k){if(Oe(m,Uint8Array)&&(m=l.from(m,m.offset,m.byteLength)),Oe(k,Uint8Array)&&(k=l.from(k,k.offset,k.byteLength)),!l.isBuffer(m)||!l.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===k)return 0;let H=m.length,lt=k.length;for(let yt=0,Et=Math.min(H,lt);yt<Et;++yt)if(m[yt]!==k[yt]){H=m[yt],lt=k[yt];break}return H<lt?-1:lt<H?1:0},l.isEncoding=function(m){switch(String(m).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(m,k){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return l.alloc(0);let H;if(k===void 0)for(k=0,H=0;H<m.length;++H)k+=m[H].length;const lt=l.allocUnsafe(k);let yt=0;for(H=0;H<m.length;++H){let Et=m[H];if(Oe(Et,Uint8Array))yt+Et.length>lt.length?(l.isBuffer(Et)||(Et=l.from(Et)),Et.copy(lt,yt)):Uint8Array.prototype.set.call(lt,Et,yt);else{if(!l.isBuffer(Et))throw new TypeError('"list" argument must be an Array of Buffers');Et.copy(lt,yt)}yt+=Et.length}return lt},l.byteLength=U,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const m=this.length;if(m%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<m;k+=2)W(this,k,k+1);return this},l.prototype.swap32=function(){const m=this.length;if(m%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<m;k+=4)W(this,k,k+3),W(this,k+1,k+2);return this},l.prototype.swap64=function(){const m=this.length;if(m%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<m;k+=8)W(this,k,k+7),W(this,k+1,k+6),W(this,k+2,k+5),W(this,k+3,k+4);return this},l.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?ct(this,0,m):Y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(m){if(!l.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m||l.compare(this,m)===0},l.prototype.inspect=function(){let m="";const k=n.IS;return m=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(m+=" ... "),"<Buffer "+m+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(m,k,H,lt,yt){if(Oe(m,Uint8Array)&&(m=l.from(m,m.offset,m.byteLength)),!l.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(k===void 0&&(k=0),H===void 0&&(H=m?m.length:0),lt===void 0&&(lt=0),yt===void 0&&(yt=this.length),k<0||H>m.length||lt<0||yt>this.length)throw new RangeError("out of range index");if(lt>=yt&&k>=H)return 0;if(lt>=yt)return-1;if(k>=H)return 1;if(this===m)return 0;let Et=(yt>>>=0)-(lt>>>=0),Ct=(H>>>=0)-(k>>>=0);const Wt=Math.min(Et,Ct),ee=this.slice(lt,yt),F=m.slice(k,H);for(let R=0;R<Wt;++R)if(ee[R]!==F[R]){Et=ee[R],Ct=F[R];break}return Et<Ct?-1:Ct<Et?1:0},l.prototype.includes=function(m,k,H){return this.indexOf(m,k,H)!==-1},l.prototype.indexOf=function(m,k,H){return J(this,m,k,H,!0)},l.prototype.lastIndexOf=function(m,k,H){return J(this,m,k,H,!1)},l.prototype.write=function(m,k,H,lt){if(k===void 0)lt="utf8",H=this.length,k=0;else if(H===void 0&&typeof k=="string")lt=k,H=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k>>>=0,isFinite(H)?(H>>>=0,lt===void 0&&(lt="utf8")):(lt=H,H=void 0)}const yt=this.length-k;if((H===void 0||H>yt)&&(H=yt),m.length>0&&(H<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");lt||(lt="utf8");let Et=!1;for(;;)switch(lt){case"hex":return et(this,m,k,H);case"utf8":case"utf-8":return ht(this,m,k,H);case"ascii":case"latin1":case"binary":return ut(this,m,k,H);case"base64":return At(this,m,k,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Rt(this,m,k,H);default:if(Et)throw new TypeError("Unknown encoding: "+lt);lt=(""+lt).toLowerCase(),Et=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const gt=4096;function wt(m,k,H){let lt="";H=Math.min(m.length,H);for(let yt=k;yt<H;++yt)lt+=String.fromCharCode(127&m[yt]);return lt}function P(m,k,H){let lt="";H=Math.min(m.length,H);for(let yt=k;yt<H;++yt)lt+=String.fromCharCode(m[yt]);return lt}function f(m,k,H){const lt=m.length;(!k||k<0)&&(k=0),(!H||H<0||H>lt)&&(H=lt);let yt="";for(let Et=k;Et<H;++Et)yt+=be[m[Et]];return yt}function S(m,k,H){const lt=m.slice(k,H);let yt="";for(let Et=0;Et<lt.length-1;Et+=2)yt+=String.fromCharCode(lt[Et]+256*lt[Et+1]);return yt}function D(m,k,H){if(m%1!=0||m<0)throw new RangeError("offset is not uint");if(m+k>H)throw new RangeError("Trying to access beyond buffer length")}function z(m,k,H,lt,yt,Et){if(!l.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>yt||k<Et)throw new RangeError('"value" argument is out of bounds');if(H+lt>m.length)throw new RangeError("Index out of range")}function q(m,k,H,lt,yt){pt(k,lt,yt,m,H,7);let Et=Number(k&BigInt(4294967295));m[H++]=Et,Et>>=8,m[H++]=Et,Et>>=8,m[H++]=Et,Et>>=8,m[H++]=Et;let Ct=Number(k>>BigInt(32)&BigInt(4294967295));return m[H++]=Ct,Ct>>=8,m[H++]=Ct,Ct>>=8,m[H++]=Ct,Ct>>=8,m[H++]=Ct,H}function nt(m,k,H,lt,yt){pt(k,lt,yt,m,H,7);let Et=Number(k&BigInt(4294967295));m[H+7]=Et,Et>>=8,m[H+6]=Et,Et>>=8,m[H+5]=Et,Et>>=8,m[H+4]=Et;let Ct=Number(k>>BigInt(32)&BigInt(4294967295));return m[H+3]=Ct,Ct>>=8,m[H+2]=Ct,Ct>>=8,m[H+1]=Ct,Ct>>=8,m[H]=Ct,H+8}function ft(m,k,H,lt,yt,Et){if(H+lt>m.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function K(m,k,H,lt,yt){return k=+k,H>>>=0,yt||ft(m,0,H,4),u.write(m,k,H,lt,23,4),H+4}function h(m,k,H,lt,yt){return k=+k,H>>>=0,yt||ft(m,0,H,8),u.write(m,k,H,lt,52,8),H+8}l.prototype.slice=function(m,k){const H=this.length;(m=~~m)<0?(m+=H)<0&&(m=0):m>H&&(m=H),(k=k===void 0?H:~~k)<0?(k+=H)<0&&(k=0):k>H&&(k=H),k<m&&(k=m);const lt=this.subarray(m,k);return Object.setPrototypeOf(lt,l.prototype),lt},l.prototype.readUintLE=l.prototype.readUIntLE=function(m,k,H){m>>>=0,k>>>=0,H||D(m,k,this.length);let lt=this[m],yt=1,Et=0;for(;++Et<k&&(yt*=256);)lt+=this[m+Et]*yt;return lt},l.prototype.readUintBE=l.prototype.readUIntBE=function(m,k,H){m>>>=0,k>>>=0,H||D(m,k,this.length);let lt=this[m+--k],yt=1;for(;k>0&&(yt*=256);)lt+=this[m+--k]*yt;return lt},l.prototype.readUint8=l.prototype.readUInt8=function(m,k){return m>>>=0,k||D(m,1,this.length),this[m]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(m,k){return m>>>=0,k||D(m,2,this.length),this[m]|this[m+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(m,k){return m>>>=0,k||D(m,2,this.length),this[m]<<8|this[m+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(m,k){return m>>>=0,k||D(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+16777216*this[m+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(m,k){return m>>>=0,k||D(m,4,this.length),16777216*this[m]+(this[m+1]<<16|this[m+2]<<8|this[m+3])},l.prototype.readBigUInt64LE=Ve((function(m){St(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Ht(m,this.length-8);const lt=k+256*this[++m]+65536*this[++m]+this[++m]*2**24,yt=this[++m]+256*this[++m]+65536*this[++m]+H*2**24;return BigInt(lt)+(BigInt(yt)<<BigInt(32))})),l.prototype.readBigUInt64BE=Ve((function(m){St(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Ht(m,this.length-8);const lt=k*2**24+65536*this[++m]+256*this[++m]+this[++m],yt=this[++m]*2**24+65536*this[++m]+256*this[++m]+H;return(BigInt(lt)<<BigInt(32))+BigInt(yt)})),l.prototype.readIntLE=function(m,k,H){m>>>=0,k>>>=0,H||D(m,k,this.length);let lt=this[m],yt=1,Et=0;for(;++Et<k&&(yt*=256);)lt+=this[m+Et]*yt;return yt*=128,lt>=yt&&(lt-=Math.pow(2,8*k)),lt},l.prototype.readIntBE=function(m,k,H){m>>>=0,k>>>=0,H||D(m,k,this.length);let lt=k,yt=1,Et=this[m+--lt];for(;lt>0&&(yt*=256);)Et+=this[m+--lt]*yt;return yt*=128,Et>=yt&&(Et-=Math.pow(2,8*k)),Et},l.prototype.readInt8=function(m,k){return m>>>=0,k||D(m,1,this.length),128&this[m]?-1*(255-this[m]+1):this[m]},l.prototype.readInt16LE=function(m,k){m>>>=0,k||D(m,2,this.length);const H=this[m]|this[m+1]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt16BE=function(m,k){m>>>=0,k||D(m,2,this.length);const H=this[m+1]|this[m]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt32LE=function(m,k){return m>>>=0,k||D(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},l.prototype.readInt32BE=function(m,k){return m>>>=0,k||D(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},l.prototype.readBigInt64LE=Ve((function(m){St(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Ht(m,this.length-8);const lt=this[m+4]+256*this[m+5]+65536*this[m+6]+(H<<24);return(BigInt(lt)<<BigInt(32))+BigInt(k+256*this[++m]+65536*this[++m]+this[++m]*2**24)})),l.prototype.readBigInt64BE=Ve((function(m){St(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Ht(m,this.length-8);const lt=(k<<24)+65536*this[++m]+256*this[++m]+this[++m];return(BigInt(lt)<<BigInt(32))+BigInt(this[++m]*2**24+65536*this[++m]+256*this[++m]+H)})),l.prototype.readFloatLE=function(m,k){return m>>>=0,k||D(m,4,this.length),u.read(this,m,!0,23,4)},l.prototype.readFloatBE=function(m,k){return m>>>=0,k||D(m,4,this.length),u.read(this,m,!1,23,4)},l.prototype.readDoubleLE=function(m,k){return m>>>=0,k||D(m,8,this.length),u.read(this,m,!0,52,8)},l.prototype.readDoubleBE=function(m,k){return m>>>=0,k||D(m,8,this.length),u.read(this,m,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(m,k,H,lt){m=+m,k>>>=0,H>>>=0,lt||z(this,m,k,H,Math.pow(2,8*H)-1,0);let yt=1,Et=0;for(this[k]=255&m;++Et<H&&(yt*=256);)this[k+Et]=m/yt&255;return k+H},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(m,k,H,lt){m=+m,k>>>=0,H>>>=0,lt||z(this,m,k,H,Math.pow(2,8*H)-1,0);let yt=H-1,Et=1;for(this[k+yt]=255&m;--yt>=0&&(Et*=256);)this[k+yt]=m/Et&255;return k+H},l.prototype.writeUint8=l.prototype.writeUInt8=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,1,255,0),this[k]=255&m,k+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,2,65535,0),this[k]=255&m,this[k+1]=m>>>8,k+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,2,65535,0),this[k]=m>>>8,this[k+1]=255&m,k+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,4,4294967295,0),this[k+3]=m>>>24,this[k+2]=m>>>16,this[k+1]=m>>>8,this[k]=255&m,k+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,4,4294967295,0),this[k]=m>>>24,this[k+1]=m>>>16,this[k+2]=m>>>8,this[k+3]=255&m,k+4},l.prototype.writeBigUInt64LE=Ve((function(m,k=0){return q(this,m,k,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Ve((function(m,k=0){return nt(this,m,k,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(m,k,H,lt){if(m=+m,k>>>=0,!lt){const Wt=Math.pow(2,8*H-1);z(this,m,k,H,Wt-1,-Wt)}let yt=0,Et=1,Ct=0;for(this[k]=255&m;++yt<H&&(Et*=256);)m<0&&Ct===0&&this[k+yt-1]!==0&&(Ct=1),this[k+yt]=(m/Et|0)-Ct&255;return k+H},l.prototype.writeIntBE=function(m,k,H,lt){if(m=+m,k>>>=0,!lt){const Wt=Math.pow(2,8*H-1);z(this,m,k,H,Wt-1,-Wt)}let yt=H-1,Et=1,Ct=0;for(this[k+yt]=255&m;--yt>=0&&(Et*=256);)m<0&&Ct===0&&this[k+yt+1]!==0&&(Ct=1),this[k+yt]=(m/Et|0)-Ct&255;return k+H},l.prototype.writeInt8=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,1,127,-128),m<0&&(m=255+m+1),this[k]=255&m,k+1},l.prototype.writeInt16LE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,2,32767,-32768),this[k]=255&m,this[k+1]=m>>>8,k+2},l.prototype.writeInt16BE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,2,32767,-32768),this[k]=m>>>8,this[k+1]=255&m,k+2},l.prototype.writeInt32LE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,4,2147483647,-2147483648),this[k]=255&m,this[k+1]=m>>>8,this[k+2]=m>>>16,this[k+3]=m>>>24,k+4},l.prototype.writeInt32BE=function(m,k,H){return m=+m,k>>>=0,H||z(this,m,k,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[k]=m>>>24,this[k+1]=m>>>16,this[k+2]=m>>>8,this[k+3]=255&m,k+4},l.prototype.writeBigInt64LE=Ve((function(m,k=0){return q(this,m,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Ve((function(m,k=0){return nt(this,m,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(m,k,H){return K(this,m,k,!0,H)},l.prototype.writeFloatBE=function(m,k,H){return K(this,m,k,!1,H)},l.prototype.writeDoubleLE=function(m,k,H){return h(this,m,k,!0,H)},l.prototype.writeDoubleBE=function(m,k,H){return h(this,m,k,!1,H)},l.prototype.copy=function(m,k,H,lt){if(!l.isBuffer(m))throw new TypeError("argument should be a Buffer");if(H||(H=0),lt||lt===0||(lt=this.length),k>=m.length&&(k=m.length),k||(k=0),lt>0&<<H&&(lt=H),lt===H||m.length===0||this.length===0)return 0;if(k<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),m.length-k<lt-H&&(lt=m.length-k+H);const yt=lt-H;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,H,lt):Uint8Array.prototype.set.call(m,this.subarray(H,lt),k),yt},l.prototype.fill=function(m,k,H,lt){if(typeof m=="string"){if(typeof k=="string"?(lt=k,k=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(m.length===1){const Et=m.charCodeAt(0);(lt==="utf8"&&Et<128||lt==="latin1")&&(m=Et)}}else typeof m=="number"?m&=255:typeof m=="boolean"&&(m=Number(m));if(k<0||this.length<k||this.length<H)throw new RangeError("Out of range index");if(H<=k)return this;let yt;if(k>>>=0,H=H===void 0?this.length:H>>>0,m||(m=0),typeof m=="number")for(yt=k;yt<H;++yt)this[yt]=m;else{const Et=l.isBuffer(m)?m:l.from(m,lt),Ct=Et.length;if(Ct===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(yt=0;yt<H-k;++yt)this[yt+k]=Et[yt%Ct]}return this};const b={};function j(m,k,H){b[m]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(lt){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:lt,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}function X(m){let k="",H=m.length;const lt=m[0]==="-"?1:0;for(;H>=lt+4;H-=3)k=`_${m.slice(H-3,H)}${k}`;return`${m.slice(0,H)}${k}`}function pt(m,k,H,lt,yt,Et){if(m>H||m<k){const Ct=typeof k=="bigint"?"n":"";let Wt;throw Wt=k===0||k===BigInt(0)?`>= 0${Ct} and < 2${Ct} ** ${8*(Et+1)}${Ct}`:`>= -(2${Ct} ** ${8*(Et+1)-1}${Ct}) and < 2 ** ${8*(Et+1)-1}${Ct}`,new b.ERR_OUT_OF_RANGE("value",Wt,m)}(function(Ct,Wt,ee){St(Wt,"offset"),Ct[Wt]!==void 0&&Ct[Wt+ee]!==void 0||Ht(Wt,Ct.length-(ee+1))})(lt,yt,Et)}function St(m,k){if(typeof m!="number")throw new b.ERR_INVALID_ARG_TYPE(k,"number",m)}function Ht(m,k,H){throw Math.floor(m)!==m?(St(m,H),new b.ERR_OUT_OF_RANGE("offset","an integer",m)):k<0?new b.ERR_BUFFER_OUT_OF_BOUNDS:new b.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${k}`,m)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(m,k){return`The "${m}" argument must be of type number. Received type ${typeof k}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(m,k,H){let lt=`The value of "${m}" is out of range.`,yt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?yt=X(String(H)):typeof H=="bigint"&&(yt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(yt=X(yt)),yt+="n"),lt+=` It must be ${k}. Received ${yt}`,lt}),RangeError);const Zt=/[^+/0-9A-Za-z-_]/g;function de(m,k){let H;k=k||1/0;const lt=m.length;let yt=null;const Et=[];for(let Ct=0;Ct<lt;++Ct){if(H=m.charCodeAt(Ct),H>55295&&H<57344){if(!yt){if(H>56319){(k-=3)>-1&&Et.push(239,191,189);continue}if(Ct+1===lt){(k-=3)>-1&&Et.push(239,191,189);continue}yt=H;continue}if(H<56320){(k-=3)>-1&&Et.push(239,191,189),yt=H;continue}H=65536+(yt-55296<<10|H-56320)}else yt&&(k-=3)>-1&&Et.push(239,191,189);if(yt=null,H<128){if((k-=1)<0)break;Et.push(H)}else if(H<2048){if((k-=2)<0)break;Et.push(H>>6|192,63&H|128)}else if(H<65536){if((k-=3)<0)break;Et.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;Et.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return Et}function ye(m){return e.toByteArray((function(k){if((k=(k=k.split("=")[0]).trim().replace(Zt,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k})(m))}function ge(m,k,H,lt){let yt;for(yt=0;yt<lt&&!(yt+H>=k.length||yt>=m.length);++yt)k[yt+H]=m[yt];return yt}function Oe(m,k){return m instanceof k||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===k.name}function _e(m){return m!=m}const be=(function(){const m="0123456789abcdef",k=new Array(256);for(let H=0;H<16;++H){const lt=16*H;for(let yt=0;yt<16;++yt)k[lt+yt]=m[H]+m[yt]}return k})();function Ve(m){return typeof BigInt>"u"?$t:m}function $t(){throw new Error("BigInt not supported")}},527:function(t,n,r){var e=r(188),u=r(539),a=r(682);for(var d in e)e[d]=a(g(d));function g(l){return e[l]}e._api=u,t.exports=e},539:function(t){t.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(t){t.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(t,n,r){var e=r(539),u={};function a(l){try{return g(l),!0}catch{return!1}}function d(l){try{return g(l)}catch{return!1}}function g(l){return new Function(l)()}u._api=e,t.exports=function l(_){if(_==="class"&&(_="classes"),u._api[_].dependencies){for(var T=0;T<u._api[_].dependencies.length;T++)if(l(u._api[_].dependencies[T])===!1)return!1}return u._api[_].passes?a(u._api[_].passes):u._api[_].fails?!a(u._api[_].fails):u._api[_].is?d(u._api[_].is):u._api[_].not?!d(u._api[_].not):void 0}},251:function(t,n){n.read=function(r,e,u,a,d){var g,l,_=8*d-a-1,T=(1<<_)-1,C=T>>1,N=-7,x=u?d-1:0,M=u?-1:1,U=r[e+x];for(x+=M,g=U&(1<<-N)-1,U>>=-N,N+=_;N>0;g=256*g+r[e+x],x+=M,N-=8);for(l=g&(1<<-N)-1,g>>=-N,N+=a;N>0;l=256*l+r[e+x],x+=M,N-=8);if(g===0)g=1-C;else{if(g===T)return l?NaN:1/0*(U?-1:1);l+=Math.pow(2,a),g-=C}return(U?-1:1)*l*Math.pow(2,g-a)},n.write=function(r,e,u,a,d,g){var l,_,T,C=8*g-d-1,N=(1<<C)-1,x=N>>1,M=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,U=a?0:g-1,Y=a?1:-1,W=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(_=isNaN(e)?1:0,l=N):(l=Math.floor(Math.log(e)/Math.LN2),e*(T=Math.pow(2,-l))<1&&(l--,T*=2),(e+=l+x>=1?M/T:M*Math.pow(2,1-x))*T>=2&&(l++,T/=2),l+x>=N?(_=0,l=N):l+x>=1?(_=(e*T-1)*Math.pow(2,d),l+=x):(_=e*Math.pow(2,x-1)*Math.pow(2,d),l=0));d>=8;r[u+U]=255&_,U+=Y,_/=256,d-=8);for(l=l<<d|_,C+=d;C>0;r[u+U]=255&l,U+=Y,l/=256,C-=8);r[u+U-Y]|=128*W}},943:function(t){function n(r){this.message=r}n.prototype=new Error,n.prototype.name="InvalidCharacterError",t.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(r){var e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var u,a,d=0,g=0,l="";a=e.charAt(g++);~a&&(u=d%4?64*u+a:a,d++%4)?l+=String.fromCharCode(255&u>>(-2*d&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return l}},863:function(t,n,r){var e=r(943);t.exports=function(u){var a=u.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return(function(d){return decodeURIComponent(e(d).replace(/(.)/g,(function(g,l){var _=l.charCodeAt(0).toString(16).toUpperCase();return _.length<2&&(_="0"+_),"%"+_})))})(a)}catch{return e(a)}}},127:function(t,n,r){var e=r(863);function u(a){this.message=a}u.prototype=new Error,u.prototype.name="InvalidTokenError",t.exports=function(a,d){if(typeof a!="string")throw new u("Invalid token specified");var g=(d=d||{}).header===!0?0:1;try{return JSON.parse(e(a.split(".")[g]))}catch(l){throw new u("Invalid token specified: "+l.message)}},t.exports.InvalidTokenError=u},471:function(t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(e,u){var a=u||0,d=n;return[d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],"-",d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]],d[e[a++]]].join("")}},814:function(t){var n=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var e=new Array(16);t.exports=function(){for(var u,a=0;a<16;a++)3&a||(u=4294967296*Math.random()),e[a]=u>>>((3&a)<<3)&255;return e}}},550:function(t,n,r){var e=r(814),u=r(471);t.exports=function(a,d,g){var l=d&&g||0;typeof a=="string"&&(d=a==="binary"?new Array(16):null,a=null);var _=(a=a||{}).random||(a.rng||e)();if(_[6]=15&_[6]|64,_[8]=63&_[8]|128,d)for(var T=0;T<16;++T)d[l+T]=_[T];return d||u(_)}},723:function(t){t.exports={version:"1.1.92",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(t,n,r){var e=r(287).hp;t.exports={toArray:function(u,a){if(!u||u.length!==36)return u;for(var d="",g=a?"0":"1",l=0;l<36;l+=1)d+=l>=26&&l<30?g:u[l];var _=(function(N){for(var x=255,M=255,U=0,Y=N.length;Y;){var W=Y>20?20:Y;Y-=W;do M+=x+=N[U++];while(--W);x=(255&x)+(x>>8),M=(255&M)+(M>>8)}return((M=(255&M)+(M>>8))<<8|(x=(255&x)+(x>>8))).toString(16)})(e.from(d));if(_){var T="";if(_.length===4)T+=_;else if(_.length<4){for(var C=0;C<4-_.length;C+=1)T+=g;T+=_}else T+=_.slice(-4)}return d.substring(0,26)+T+d.substring(26+T.length)}}},108:function(t){function n(){this.listeners={}}n.prototype.addEventListener=function(r,e){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push(e)},n.prototype.removeEventListener=function(r,e){if(r in this.listeners){for(var u=this.listeners[r],a=0,d=u.length;a<d;a++)if(u[a]===e)return void u.splice(a,1)}},n.prototype.dispatchEvent=function(r){if(!(r.type in this.listeners))return!0;for(var e=this.listeners[r.type].slice(),u=0,a=e.length;u<a;u++)e[u].call(this,r);return!r.defaultPrevented},t.exports=n},1:function(t){var n=null,r=null,e=0;function u(a,d){return encodeURIComponent(a)+"="+encodeURIComponent(d)}t.exports={init:function(a,d){n=a.errorServerUrl+"/reportSdkMsg",r=d.appId,e=typeof d.logMessageRate=="number"?d.logMessageRate:100},send:function(a){if(n&&!(100*Math.random()>e)){var d=n;d+="?"+u("appId",r),d+="&"+u("msg",JSON.stringify(a));var g=new Image;g.onerror=function(){},g.src=d}}}},611:function(t){var n=(function(){function r(u,a){this.method=u,this.url=a,this.headers={},this.data=null,this.timeout=1e4}r.prototype.set=function(u,a){if(typeof u=="object")for(var d in u)u.hasOwnProperty(d)&&(this.headers[d]=u[d]);else this.headers[u]=a;return this},r.prototype.send=function(u){return this.data=u,this},r.prototype.timeout=function(u){return this.timeout=u,this},r.prototype.end=function(u){var a=this,d={method:this.method,headers:this.headers};function g(N,x){return{ok:!1,status:x?x.status:400,response:N instanceof Error?N.message:N}}if(this.data&&(d.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,_=fetch(this.url,d).then((function(N){if(!N.ok)throw{response:N,message:N.statusText||"HTTP error "+N.status};return(function(x){var M=x.headers.get("content-type");return M&&M.includes("application/json")?x.json().then((function(U){return{ok:x.ok,status:x.status,body:U}})):x.text().then((function(U){return{ok:x.ok,status:x.status,body:U}}))})(N)}));_.catch((function(){}));var T=new Promise((function(N,x){l=setTimeout((function(){x(new Error("Request timeout"))}),a.timeout)}));Promise.race([_,T]).then((function(N){clearTimeout(l),N.ok?u(null,N):u(g(N.response,N))})).catch((function(N){clearTimeout(l),u(g(N.message,N&&N.response))}))}else{var C=new XMLHttpRequest;C.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(N){C.setRequestHeader(N,a.headers[N])})),C.timeout=this.timeout,C.onload=function(){var N={ok:C.status>=200&&C.status<300,status:C.status,body:C.responseText};try{N.body=JSON.parse(C.responseText)}catch{}N.ok?u(null,N):u(g("HTTP error "+C.status,N))},C.onerror=function(){u(g("Error",{status:400}))},C.ontimeout=function(){u(g("Timeout",{status:408}))},C.send(this.data?JSON.stringify(this.data):null)}};var e={};return["get","post","put","delete"].forEach((function(u){e[u]=function(a){return new r(u,a)}})),e})();t.exports=n},776:function(t,n,r){var e,u,a=r(611),d=r(723),g=r(884),l=d.serverUrl;function _(){e=e||{},u!==void 0&&(e[d.headers.sessionId]=u);var T={Accept:"application/json","Content-Type":"application/json"};return Object.keys(e).forEach((function(C){e[C]!==void 0&&(T[C]=e[C])})),T}t.exports={setSessionId:function(T){u=T},makeRequest:function(T,C){var N=T.path,x=T.data,M=T.method;(function U(Y){a[M](Y+"/"+N).set(_()).send(x).end((function(W,J){if(W){if(Y!==d.serverUrl)return void U(d.serverUrl);g.isFunction(C)&&C({ok:!1,status:W.status,response:W.response})}else g.isFunction(C)&&C(null,{ok:J.ok,status:J.status,response:J.body})}))})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:_,init:function(T,C){(function(N){e=N})(T),C.eventsReportUrl&&typeof C.eventsReportUrl=="string"&&(l=g.normalizePath(C.eventsReportUrl))}}},13:function(t,n,r){var e,u=r(723),a="getItem";function d(l,_){l&&l.contentWindow.postMessage(_,"*")}function g(l,_,T){l.removeEventListener?l.removeEventListener(_,T,!1):l.attachEvent&&l.detachEvent("on"+_,T)}t.exports={init:function(l){var _,T=(_=!1,function(){_||(_=!0,l())});(e=document.createElement("iframe")).id="storageIframe",e.width=e.height=e.frameBorder=0,e.style.display="none",e.setAttribute("src",u.storageIframeUrl),e.onload=T,e.onerror=T,document.body.appendChild(e),window.setTimeout(T,1e4)},getKey:function(l,_){var T,C,N,x,M,U;e||_(),T=window,C="message",x=function Y(W){if(W.data&&typeof W.data=="string")try{var J=JSON.parse(W.data);if(J.command===a){var Z=J.response;g(window,"message",Y),_(Z)}}catch{g(window,"message",Y),_()}},M=_,U=!1,window.setTimeout((function(){U||(U=!0,M())}),5e3),N=function(Y){U||(U=!0,x(Y))},T.addEventListener?T.addEventListener(C,N,!1):T.attachEvent&&T.attachEvent("on"+C,N),d(e,JSON.stringify({command:a,key:l}))},setKey:function(l,_){d(e,JSON.stringify({command:"setItem",key:l,value:_}))},cleanup:function(){e&&e.parentElement&&e.parentElement.removeChild&&(e.parentElement.removeChild(e),e=null)}}},528:function(t){var n,r={setItem:function(l,_){this[l]=_},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function e(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function u(){return n===void 0&&(n=e()),n?localStorage:r}function a(l,_){u().setItem(l,_)}function d(l){return u().getItem(l)}function g(l){return u().removeItem(l)}t.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:a,getItem:d,getBackwardCompatabilityItem:function(l,_){var T=d(l);return!T&&_&&(T=d(_))&&(a(l,T),g(_)),T},removeItem:g,hasAccessToLocalStorage:e,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return r.getItem(l)}},setSessionItem:function(l,_){try{return sessionStorage.setItem(l,_)}catch{return r.setItem(l,_)}}}},884:function(t){var n="nsure-app-cid";function r(e){var u=e;return u&&u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),u&&!/^https?:\/\//i.test(u)&&(u="https://"+u),u}t.exports={isFunction:function(e){return typeof e=="function"},loadScript:function(e,u){var a=!1,d=document.createElement("script");function g(){a||(a=!0,u())}d.onload=g,d.onreadystatechange=function(){a||d.readyState!=="complete"||g()},d.onerror=function(){a||(a=!0,u("Error loading script"))},d.src=e,document.body.appendChild(d)},loadImage:function(e){var u=document.createElement("img");u.src=e,u.style.height=0,u.style.width=0,u.style.display="none",u.style.visibility="hidden",document.body.appendChild(u)},randomInt:function(e,u){var a,d=u-e+1;return Math.floor(((a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?a(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*d+e)},isValidDate:function(e){return e instanceof Date&&!isNaN(e)},getAppContextId:function(){try{var e=sessionStorage.getItem(n);e?sessionStorage.removeItem(n):e=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(u=e,function(){try{sessionStorage.setItem(n,u)}catch{}}))}catch{e=0}var u;return e},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:r,getConfigBaseUrls:function(e,u){var a=null;if(typeof e.configBaseUrl=="string"&&e.configBaseUrl.length>0){var d=u.coreConfigFileUrl.indexOf("/core-config/"),g=d>0?u.coreConfigFileUrl.substring(d):"/core-config/config.json";a=r(e.configBaseUrl)+g}return{mainConfigBaseUrl:a||u.coreConfigFileUrl,altConfigBaseUrl:a===u.coreConfigFileUrl?null:u.coreConfigFileUrl}}}},543:function(t){var n="f8ad0f9b-",r="ns_install_reported",e=n+r,u=n+"ns_reportedFpInSession";t.exports={webType:"Web",oldInstallEventReportedKeyName:r,installEventReportedKeyName:e,fingerprintReportedInSessionKey:u,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(t){t.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(t){t.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(t,n,r){var e=r(723),u=r(776),a=r(387),d=r(733),g=r(472),l=r(376),_=r(120),T=r(142),C=r(636),N=r(496),x=r(1),M=r(336);t.exports={init:function(U){var Y=U.deviceId,W=U.linkedDevices,J={};J[e.headers.appId]=U.appId,J[e.headers.partnerId]=U.partnerId,J[e.headers.sdkClientVersion]=e.version,J[e.headers.sdkApiVersion]=e.sdkApiVersion,J[e.headers.sdkClientType]=e.sdkClientType,J[e.headers.appContextId]=U.appContextId,u.init(J,U),a.addMetadataProps(U),x.init(e,U),a.reportInitEvent(Y),N.init(U),M.init(U),d.installSdk(U,(function(Z){Z||l.manageFingerprint(Y,!0)})),d.reportLinkDevices(Y,W),g.manageSessionId({deviceId:Y,initModuleConfig:U}),_.manageDomEvents(Y),T.manageKeepAlive({deviceId:Y}),C.reportVersionUpgrade({deviceId:Y,initModuleVersion:U.clientVersion,coreModuleVersion:e.version})}}},143:function(t,n,r){var e=r(108),u=r(23).oneMinute,a=r(298);function d(){e.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function g(l){e.call(this),this.activityServiceId=l}d.prototype=Object.create(e.prototype),d.prototype.constructor=d,d.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach((function(_){document.addEventListener(_,l.activityEvents[_]=function(){l.activityHandler()})}))},d.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(a.activityEvent))},d.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach((function(_){document.removeEventListener(_,l.activityEvents[_])}))},g.prototype=Object.create(e.prototype),g.prototype.constructor=g,g.prototype.trackInactivity=function(l){var _,T=new d,C=this,N=!1;function x(){N||(clearTimeout(_),setTimeout((function(){C.trackInactivity(l)}),u))}T.addEventListener(a.activityEvent,x),T.observe(),_=setTimeout((function(){N=!0,T.stopActivityListeners(),T.removeEventListener(a.activityEvent,x),C.dispatchEvent(new Event(a.inactivityEvent))}),l)},t.exports=g},496:function(t,n,r){var e,u=r(120),a=r(776),d=r(376),g=r(23),l=r(723),_=r(38),T=r(543),C=r(336),N=r(884),x=[],M=[],U=null,Y=6e4,W=5e3,J=null,Z=N.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),et=0,ht=null,ut=Date.now(),At=0,Rt=null,st=!1,ct=!1,gt=!1,wt=!1,P=[];function f(){M=x,x=[],z(),S()}function S(){U&&clearTimeout(U),U=setTimeout(f,Y)}function D(){var X={device:{id:e,type:T.webType},metadata:{clientRequestId:g.getClientRequestId()}};return J&&J.fingerprintHash&&(X.device.fingerprint=J.fingerprintHash),X}function z(X){if(M.length)if(J!==null){var pt=Object.assign(D(),{events:M});a.makeRequest({path:"bulk",data:pt,method:a.methods.post},X)}else d.getFingerprint((function(St){J=St,z(X)}))}function q(X,pt){return x.push(X),pt?new Blob([JSON.stringify(x)]).size:0}function nt(){if(gt){var X=Date.now();X-ut>W&&(q({i:{dr:X-ut,ac:X-ut-At},metadata:{type:_.I,timestamp:X}},!1),At=0)}}function ft(){S(),M=x,x=[],z()}function K(X){nt(),(function(){if(wt&&Math.random()<.25){for(var pt=[],St=0;St<3;St++)pt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Ht=_.DY+pt[0],Zt={metadata:{type:Ht,timestamp:Date.now()}};Zt[Ht]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Zt[Ht][pt.join("")]=Math.floor(1e3*Math.random())+1,q(Zt,!1)}})(),(function(pt){C.triggerEventOnEvent(pt)})(X),q(Object.assign({metadata:{type:X.eventType,timestamp:Date.now()}},X.payload),!0)>32768&&ft(),X.eventType!==_.C&&X.eventType!==_.S&&X.eventType!==_.KD&&X.eventType!==_.MM||(ut=Date.now())}function h(){st&&ft()}function b(X){return window.addEventListener(X,h,!0),function(){window.removeEventListener(X,h,!0)}}function j(X,pt){return!X||X.indexOf(pt)>-1}t.exports={init:function(X){if(!st){var pt=X.bulkEvents&&X.bulkEvents.mask;if(!Array.isArray(pt)||pt.length!==0){var St=X.bulkEvents&&typeof X.bulkEvents.pct=="number"?X.bulkEvents.pct:100;if(!(St===0||Math.random()>St/100)){var Ht=X.bulkEvents&&X.bulkEvents.appMaskInclude;if(!Array.isArray(Ht)||Ht.indexOf(X.appId)!==-1){var Zt=X.bulkEvents&&X.bulkEvents.appMaskExclude;if(!Array.isArray(Zt)||Zt.indexOf(X.appId)===-1){var de=j(pt,_.C),ye=j(pt,_.KD),ge=j(pt,_.S),Oe=j(pt,_.PC),_e=j(pt,_.MM),be=j(pt,_.PL),Ve=j(pt,_.I),$t=j(pt,_.DY),m=Ve||be;e=X.deviceId,S(),de&&P.push(u.setClickListener(K)),ye&&P.push(u.setKeyDownListener(K)),ge&&P.push(u.setScrollListener(K)),Oe&&P.push(u.setPageChangeListener(K)),_e&&P.push(u.setMouseMoveListener(K)),ct=be,gt=Ve,wt=$t,m&&P.push((function(){function k(){if(document.hidden)ht=Date.now(),Rt=ht;else if(ht!==null){var H=Date.now();et+=H-ht,ht=null,At+=H-Rt}}return document.addEventListener("visibilitychange",k),function(){document.removeEventListener("visibilitychange",k)}})()),P.push((function(){function k(){if(nt(),(function(){if(ct){var Ct=Date.now(),Wt=Ct-Z;q({metadata:{type:_.PL,timestamp:Ct},pl:{dr:Wt,ac:Wt-et}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(x.length>0)try{var H=a.getRequestHeaders(),lt=Object.assign(D(),{events:x}),yt=new URLSearchParams;yt.append("data",JSON.stringify(lt)),yt.append("headers",JSON.stringify(H));var Et=new Blob([yt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",Et)}catch{}}else M=x,z()}return window.addEventListener("beforeunload",k),function(){window.removeEventListener("beforeunload",k)}})()),st=!0,x=[],de||P.push(b("click")),P.push(b("paste"))}}}}}},cleanup:function(){st&&(U&&clearTimeout(U),P.forEach((function(X){X()})),P=[],st=!1)},trigger:h}},120:function(t,n,r){var e=r(709),u=r(38),a=r(23);function d(){return"ontouchstart"in window}function g(l){var _={};if(l.nodeName){_.name=l.nodeName,l.className&&(_.className=String(l.className)),l.id&&(_.id=l.id);var T=l.getAttribute&&l.getAttribute("type");T&&(_.type=T),l.placeholder&&(_.placeholder=l.placeholder)}return _}t.exports={manageDomEvents:function(l){e.managePasteEvents(l)},getDomProperties:g,setClickListener:function(l){function _(C){var N={eventType:u.C,payload:{c:{d:g(C.target)}}},x=C.target.textContent||C.target.innerText||"";if(x){var M=a.transformDomNodeContent(x);N.payload[u.C].x={p:M.prefix,s:M.suffix,l:M.length}}l(N)}var T=d()?"touchend":"click";return window.addEventListener(T,_,!0),function(){window.removeEventListener(T,_,!0)}},setKeyDownListener:function(l){function _(T){l({eventType:u.KD,payload:{kd:{d:g(T.target),k:T.key||T.code||"na"}}})}return window.addEventListener("keydown",_,!0),function(){window.removeEventListener("keydown",_,!0)}},setScrollListener:function(l){var _=null,T=0,C=0,N={x:0,y:0},x=0,M=0,U=0,Y=0,W=0,J=0;function Z(ht){l({eventType:u.S,payload:{s:{d:g(ht.target),di:{x:N.x,y:N.y},t:M-x,sx:U,sy:Y,ex:W,ey:J}}}),T=0,C=0,N.x=0,N.y=0,_=null,x=0,M=0}function et(ht){var ut=ht.target.scrollingElement||ht.target;if(ut&&(ut===document&&(ut=document.documentElement),ut instanceof Element)){var At=ut.getBoundingClientRect(),Rt=-At.left+ut.scrollLeft,st=-At.top+ut.scrollTop;_?(clearTimeout(_),M=Date.now(),W=Rt,J=st):(x=Date.now(),M=x,W=U=Rt,J=Y=st),(N.x||N.y||T||C)&&(N.x+=Math.abs(Rt-T),N.y+=Math.abs(st-C)),T=Rt,C=st,_=setTimeout(Z.bind(null,ht),200)}}return window.addEventListener("scroll",et,!0),function(){_&&clearTimeout(_),window.removeEventListener("scroll",et,!0)}},setPageChangeListener:function(l){var _,T,C,N=null,x=null,M=0;function U(Z){var et;if(window.URL){var ht=new URL(Z,"http://example.com");et=ht.pathname+ht.hash}else et=Z.indexOf("?")>-1?Z.split("?")[0]:Z.indexOf("#")>-1?Z.split("#")[0]:Z;if(et!==N){var ut=Date.now()-C;l({eventType:u.PC,payload:{pc:{f:N,t:et,dr:ut,ac:ut-M}}}),N=et,C=Date.now()}}function Y(){if(document.hidden)x=Date.now();else if(x!==null){var Z=Date.now();M+=Z-x,x=null}}function W(Z){U(Z.newURL)}function J(){U(window.location.href)}return window.history?(N=window.location.pathname||"/",_=history.pushState,T=history.replaceState,C=Date.now(),window.addEventListener("hashchange",W),window.addEventListener("popstate",J),history.pushState=function(Z,et,ht){return U(ht),_.apply(history,arguments)},history.replaceState=function(Z,et,ht){return U(ht),T.apply(history,arguments)},document.addEventListener("visibilitychange",Y),function(){history.pushState=_,history.replaceState=T,window.removeEventListener("hashchange",W),window.removeEventListener("popstate",J),document.removeEventListener("visibilitychange",Y),N=null,M=0}):function(){}},setMouseMoveListener:function(l){var _=[],T=!1,C=null,N=0,x={x:0,y:0};function M(){_.length!==0&&(l({eventType:u.MM,payload:{mm:{s:_.slice(),l:T,di:x}}}),_=[])}function U(W){var J,Z;W.touches&&W.touches.length>0?(J=W.touches[0].clientX,Z=W.touches[0].clientY):(J=W.clientX,Z=W.clientY),J!==void 0&&Z!==void 0&&(_.length>0&&(x.x+=Math.abs(J-_[_.length-1][0]),x.y+=Math.abs(Z-_[_.length-1][1])),_.push([J,Z]),_.length>1e3&&(T=!0,(N+=2)>=1e3&&(N=2),_.splice(N,1)),C&&clearTimeout(C),C=setTimeout(M,200))}var Y=d()?"touchmove":"mousemove";return window.addEventListener(Y,U,!0),function(){C&&clearTimeout(C),window.removeEventListener(Y,U,!0)}}}},387:function(t,n,r){var e=r(776),u=r(23),a=r(287).hp,d=r(527),g=r(543),l=["storeInfo"],_={};function T(){var x={};for(var M in d)if(d.hasOwnProperty(M)){var U=M.charAt(0);U===U.toLowerCase()&&U!==U.toUpperCase()&&(x[M]=d[M])}return x}function C(x,M){var U=x.eventType,Y=x.deviceId,W=x.fingerprintProVisitorId,J=x.fingerprintProRequestId,Z=x.fingerprintHash,et=(function(gt){try{return a.from(JSON.stringify(gt)).toString("base64")}catch{return}})(x.fingerprintComponents),ht=x.deviceExtendedInfo,ut=x.payload,At={metadata:{type:U},device:{id:Y,fingerprint:Z,rawFingerprint:et,type:g.webType}};W&&(At.device.visitorId=W),J&&(At.device.fpRequestId=J);var Rt=Object.assign({},u.getClientMetadata(u.metadataType.payload),_);for(var st in Rt)Rt.hasOwnProperty(st)&&(At.metadata[st]=Rt[st]);for(var ct in ut)ut.hasOwnProperty(ct)&&(At[ct]=ut[ct]);ht&&(At.device.extendedInfo=ht),e.makeRequest({path:"events",data:At,method:e.methods.post},M)}function N(x){var M=x.type,U=x.deviceId,Y=x.fingerprintProVisitorId,W=x.fingerprintProRequestId,J=x.fingerprintHash,Z=x.fingerprintComponents,et=x.deviceExtendedInfo,ht=x.callback,ut={eventType:M,deviceId:U,fingerprintHash:J,fingerprintComponents:Z,deviceExtendedInfo:et};Y&&(ut.fingerprintProVisitorId=Y),W&&(ut.fingerprintProRequestId=W),C(ut,ht)}t.exports={addMetadataProps:function(x){for(var M=0;M<l.length;M+=1){var U=l[M];x.hasOwnProperty(U)&&(_[U]=x[U])}},reportEvent:C,reportAppInstallEvent:function(x,M,U,Y,W,J){N({type:"appInstall",deviceId:x,fingerprintProVisitorId:M,fingerprintProRequestId:U,fingerprintHash:Y,fingerprintComponents:W,deviceExtendedInfo:T(),callback:J})},reportFingerprintEvent:function(x,M,U,Y){N({type:"fingerprint",deviceId:x,fingerprintHash:M,fingerprintComponents:U,fingerprintProRequestId:Y})},reportInitEvent:function(x){N({type:"appInit",deviceId:x})}}},625:function(t,n,r){var e=r(269),u=r(1);t.exports={getFingerprint:function(a,d){if(e&&a)try{e.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",e.defaultEndpoint],modules:[e.makeIdentificationModule(),e.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",e.defaultScriptUrlPattern],remoteControlDetection:!0}).then((function(l){return l.get()})).then((function(l){typeof d=="function"&&d(l?{fingerprintVisitorId:l.visitorId,fingerprintRequestId:l.requestId}:{})})).catch((function(){typeof d=="function"&&d({})}))}catch(l){var g={msg:"FingerprintJS.load pro error",err:JSON.stringify(l)};u.send(g),typeof d=="function"&&d({})}else d({})}}},376:function(t,n,r){var e=r(568),u=r(528),a=r(387),d=r(1),g="ns_fp_hash";function l(T,C,N,x){a.reportFingerprintEvent(N,T,C,x)}function _(T){try{e.load({monitoring:!1}).then((function(N){N.get().then((function(x){T(x?{fingerprintHash:x.visitorId,fingerprintComponents:x.components}:{})})).catch((function(){typeof T=="function"&&T({})}))})).catch((function(){typeof T=="function"&&T({})}))}catch(N){var C={msg:"FingerprintJS.load error",err:JSON.stringify(N)};d.send(C),typeof T=="function"&&T({})}}t.exports={manageFingerprint:function(T,C,N){_((function(x){var M=x.fingerprintHash,U=x.fingerprintComponents;u.getItem(g)!==M&&(C&&l(M,U,T),u.setItem(g,M)),typeof N=="function"&&N({fingerprintHash:M,fingerprintComponents:U})}))},getFingerprint:_,reportFingerprintWithProInfo:function(T,C){_((function(N){l(N.fingerprintHash,N.fingerprintComponents,T,C)}))}}},733:function(t,n,r){var e=r(528),u=r(376),a=r(625),d=r(387),g=r(142),l=r(1),_=r(543),T="linkDevices";function C(x,M,U){u.getFingerprint((function(Y){var W=Y.fingerprintHash,J=Y.fingerprintComponents;d.reportEvent({eventType:T,deviceId:x,fingerprintHash:W,fingerprintComponents:J,payload:{linkedDevices:[M,U]}})}))}function N(x,M){if(M)for(var U=0,Y=M.length;U<Y;U+=1){var W=M[U];if(W&&W.length>1){var J=W[0],Z=W[1];J&&Z&&J!==Z&&C(x,J,Z)}}}t.exports={installSdk:function(x,M){var U=x.deviceId,Y=x.loadFingerprintJsPro,W=(x.supressInstallBackwardCompatibility||[]).indexOf(x.appId)===-1,J=(function(et,ht){var ut=ht?e.getBackwardCompatabilityItem(_.installEventReportedKeyName,_.oldInstallEventReportedKeyName):e.getItem(_.installEventReportedKeyName);return ut?(ut==="true"&&(e.setItem(_.installEventReportedKeyName,et),ut=et),et===ut?{isInstalled:!0,reportedDeviceId:et}:{isInstalled:!1,reportedDeviceId:ut}):{isInstalled:!1,reportedDeviceId:null}})(U,W);function Z(et,ht,ut){if(ut>3)M&&M(!1);else{var At=ht.fingerprintHash,Rt=ht.fingerprintComponents,st=et.fingerprintVisitorId,ct=et.fingerprintRequestId;d.reportAppInstallEvent(U,st,ct,At,Rt,(function(gt){if(gt){var wt={msg:"Failed sending appInstall",err:JSON.stringify(gt),deviceId:U,fingerprintHash:At,fingerprintRequestId:ct,numberOfRetry:ut};l.send(wt),Z(et,ht,ut+1)}else e.setItem(_.installEventReportedKeyName,U),e.setItem("ns_irts",Date.now()),g.manageKeepAlive({deviceId:U,fingerprintInfo:ht,setStartTimestamp:!0}),M&&M(!0)}))}}J.isInstalled?M&&M(!1):(J.reportedDeviceId&&J.reportedDeviceId!==U&&N(U,[[U,J.reportedDeviceId]]),a.getFingerprint(Y,(function(et){u.manageFingerprint(U,!1,(function(ht){Z(et,ht,1)}))})))},reportLinkDevices:N}},142:function(t,n,r){var e=r(528),u=r(884),a=r(387),d=r(376),g="ns_ka_ts",l="ns_ka_step_",_=[10,30,40,60];function T(M){return l+M}function C(){var M=parseInt(e.getItem(g),10);return u.isValidDate(new Date(M))?M:null}function N(M,U){var Y=(function(){var W=C();if(!W)return null;for(var J,Z=Math.floor((new Date().getTime()-W)/1e3),et=0;et<_.length;et+=1){var ht=_[et],ut=et<_.length-1?_[et+1]:null;if(Z>=ht&&(!ut||Z<ut)&&(J=ht,!e.getItem(T(J))))return{stepToReport:ht,timeToWaitInSeconds:0};if(Z<ht)return{stepToReport:ht,timeToWaitInSeconds:ht-Z}}return null})();Y&&(Y.timeToWaitInSeconds===0?((function(W,J,Z){var et=J.fingerprintHash,ht=J.fingerprintComponents;a.reportEvent({eventType:"keepAlive",deviceId:W,fingerprintHash:et,fingerprintComponents:ht,payload:{keepAlive:{step:Z}}}),e.setItem(T(Z),!0)})(M,U,Y.stepToReport),N(M,U)):Y.timeToWaitInSeconds>0&&setTimeout((function(){N(M,U)}),1e3*Y.timeToWaitInSeconds))}var x={manageKeepAlive:function(M){var U=M.deviceId,Y=M.fingerprintInfo;M.setStartTimestamp&&!C()&&e.setItem(g,new Date().getTime()),Y?N(U,Y):d.getFingerprint((function(W){N(U,W)}))}};t.exports=x},709:function(t,n,r){var e=r(387),u=r(376),a=r(23);function d(_){var T,C=_?_.value||_.innerText:null;return{nodeContent:C,normalizedNodeContent:(T=C,a.removeWhitespaces(T))}}function g(_){var T=a.transformDomNodeContent(_),C=_||"";return T.onlyDigits=/^[0-9]+$/.test(C),T.containsWhitespace=/\s/.test(C),T.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(C),T}var l={managePasteEvents:function(_){document.addEventListener("paste",(function(T){var C=d(T.target);setTimeout((function(){(function(N){var x=N.deviceId,M=N.contentBeforePaste,U=M.nodeContent,Y=M.normalizedNodeContent,W=N.domNode,J={paste:{domNode:{}}};if(W.nodeName){J.paste.domNode.name=W.nodeName,W.className&&(J.paste.domNode.className=W.className),W.id&&(J.paste.domNode.id=W.id);var Z=W.getAttribute&&W.getAttribute("type");Z&&(J.paste.domNode.type=Z),J.paste.domNode.content={};var et=d(W),ht=et.nodeContent,ut=et.normalizedNodeContent;J.paste.domNode.content.beforePaste=g(U),J.paste.domNode.content.afterPaste=g(ht),J.paste.domNode.normalizedContent={},J.paste.domNode.normalizedContent.beforePaste=g(Y),J.paste.domNode.normalizedContent.afterPaste=g(ut),W.placeholder&&(J.paste.domNode.placeholder=W.placeholder),J.paste.url=window.location.href}u.getFingerprint((function(At){var Rt=At.fingerprintHash;e.reportEvent({eventType:"paste",deviceId:x,fingerprintHash:Rt,payload:J})}))})({deviceId:_,contentBeforePaste:C,domNode:T.target})}),0)}))}};t.exports=l},472:function(t,n,r){var e=r(127),u=r(108),a=r(884),d=r(23),g=r(776),l=r(528),_=r(298).inactivityEvent,T=r(143),C=r(387),N=r(376),x="ns_sid";function M(){u.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function U(W){var J=W.deviceId,Z=W.initModuleConfig,et=W.jwtSessionId,ht=W.callback,ut=1e4;try{ut=e(et).inactivityTimeout}catch{ut=1e4}var At=new T(new Date().getTime());At.addEventListener(_,(function Rt(){At.removeEventListener(_,Rt),Y({deviceId:J,initModuleConfig:Z,forceRenewSessionDueToInactivity:!0,callback:ht})})),At.trackInactivity(ut)}function Y(W){var J,Z=W.deviceId,et=W.initModuleConfig,ht=!!W.forceRenewSessionDueToInactivity,ut=W.callback,At=l.getItem(x);try{J=e(At),g.setSessionId(At)}catch{J=null}ht||!J||1e3*((J||{}).exp||0)<new Date().getTime()?(function(Rt,st){var ct=Rt.deviceId,gt=(Rt.initModuleConfig||{}).storeInfo,wt=new M;wt.addEventListener(wt.eventTypes.fetchComplete,(function P(f){wt.removeEventListener(wt.eventTypes.fetchComplete,P),st(f.detail)})),wt.fetchSessionId(ct,gt)})({deviceId:Z,initModuleConfig:et},(function(Rt){At=Rt,l.setItem(x,At),g.setSessionId(At),(function(st){try{var ct=st.deviceId,gt=e(st.jwtSessionId).ets;if(!gt)return;N.getFingerprint((function(wt){var P=wt.fingerprintHash,f=wt.fingerprintComponents;C.reportEvent({eventType:"ping",deviceId:ct,fingerprintHash:P,fingerprintComponents:f,payload:{ping:{ets:gt}}})}))}catch{}})({deviceId:Z,jwtSessionId:At}),U({deviceId:Z,initModuleConfig:et,jwtSessionId:At,callback:ut}),a.isFunction(ut)&&ut(At)})):(U({deviceId:Z,initModuleConfig:et,jwtSessionId:At,callback:ut}),a.isFunction(ut)&&ut(At))}M.prototype=Object.create(u.prototype),M.prototype.constructor=M,M.prototype.fetchSessionId=function(W,J){var Z=this,et="session?"+d.getClientMetadata(d.metadataType.queryString)+"&deviceId="+W;J&&(J.id&&(et+="&storeId="+J.id),J.type&&(et+="&storeType="+J.type)),(function ht(){var ut;ut=function(At,Rt){!At&&Rt&&Rt.ok?Z.dispatchEvent(new CustomEvent(Z.eventTypes.fetchComplete,{detail:Rt.response})):setTimeout(ht,a.randomInt(4e4,6e4))},g.makeRequest({path:et,method:g.methods.get},ut)})()},t.exports={manageSessionId:Y,setRetrySessionTimeout:function(W){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(t,n,r){var e=r(23),u=r(376),a=r(625),d=r(528),g=r(543).fingerprintReportedInSessionKey,l=r(543).eventTriggers,_={},T=null,C=!1,N=!1;function x(U){var Y=U||{};Object.keys(Y).forEach((function(W){W===l.fingerPrint&&N&&(d.getSessionItem(g)||(a.getFingerprint(C,(function(J){u.reportFingerprintWithProInfo(T,J.fingerprintRequestId)})),d.setSessionItem(g,!0)))}))}function M(U,Y,W){for(var J=0;J<Y.payload.length;J++){var Z=Y.payload[J];Z&&Z.event&&Z.action&&e.isSubObject(Z.event,U.payload)&&(W[Z.action]=!0)}}t.exports={init:function(U){if(U.eventTrigger){try{var Y=atob(U.eventTrigger),W=JSON.parse(Y);if(!W||!(_=W[U.appId]))return}catch{return}T=U.deviceId,C=U.loadFingerprintJsPro,N=!0,(function(){if(N&&_.init&&Array.isArray(_.init)){for(var J={},Z=0;Z<_.init.length;Z++){var et=_.init[Z];et&&et.url&&et.action&&new RegExp(_.init[Z].url).test(window.location.href)&&(J[_.init[Z].action]=!0)}x(J)}})()}},triggerEventOnEvent:function(U){if(N){var Y=_[U.eventType];if(Array.isArray(Y)){for(var W={},J=0;J<Y.length;J++){var Z=Y[J];Z&&Z.url&&Z.payload&&new RegExp(Z.url).test(window.location.href)&&M(U,Z,W)}x(W)}}}}},636:function(t,n,r){var e=r(528),u=r(387),a=r(376),d="ns_c_ver",g="c";function l(T){e.setItem(d,JSON.stringify(T))}function _(T,C,N,x){var M=C.fingerprintHash,U=C.fingerprintComponents;u.reportEvent({eventType:"sdkVersionUpgrade",deviceId:T,fingerprintHash:M,fingerprintComponents:U,payload:{versionUpgrade:{version:N,prevVersion:x||""}}}),l(N)}t.exports={reportVersionUpgrade:function(T){var C=T.initModuleVersion,N=T.coreModuleVersion,x={};x.i=C,x[g]=N;var M=T.deviceId,U=T.fingerprintInfo,Y=(function(){var W=e.getItem(d);if(W){try{var J=JSON.parse(W);if(typeof J=="object")return J}catch{}return{i:W}}return null})();Y&&Y.i?Y.i!==C||Y[g]&&Y[g]!==N?(Y[g]||(Y[g]=N),U?_(M,U,x,Y):a.getFingerprint((function(W){_(M,W,x,Y)}))):Y[g]||l(x):l(x)}}},23:function(t,n,r){var e=r(550),u={payload:"payload",queryString:"queryString"};function a(){return e()}function d(l,_){for(var T in l)if(l.hasOwnProperty(T)&&(!_.hasOwnProperty(T)||!g(l[T],_[T])))return!1;return!0}function g(l,_){if(l===_)return!0;if(typeof l!=typeof _)return!1;if(Array.isArray(l)&&Array.isArray(_)){if(l.length!==_.length)return!1;for(var T=0;T<l.length;T++)if(!g(l[T],_[T]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof _=="object"&&_!==null&&d(l,_)}t.exports={metadataType:u,getClientMetadata:function(l){var _=new Date().getTime(),T=a();return l===u.queryString?"timestamp="+_+"&clientRequestId="+T:{timestamp:_,clientRequestId:T}},oneMinute:6e4,getClientRequestId:a,transformDomNodeContent:function(l){var _,T,C=l||"",N=C.length;return N<=1?(_="",T=""):N===2?(_=C.slice(0,1),T=""):N===3?(_=C.slice(0,1),T=C.slice(N-1)):N===4?(_=C.slice(0,2),T=C.slice(N-1)):N===5?(_=C.slice(0,2),T=C.slice(N-2)):N===6?(_=C.slice(0,3),T=C.slice(N-2)):N===7?(_=C.slice(0,3),T=C.slice(N-3)):N===8?(_=C.slice(0,4),T=C.slice(N-3)):N===9?(_=C.slice(0,5),T=C.slice(N-3)):N===10?(_=C.slice(0,5),T=C.slice(N-4)):N>10&&(_=C.slice(0,6),T=C.slice(N-4)),{length:N,prefix:_,suffix:T}},isSubObject:d,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(t,n,r){var e,u=r(723),a=r(115),d=r(884);function g(){return a.getDeviceId()}t.exports={getDeviceId:function(){return e||(e=g()),e},getCoreModuleParams:function(l,_){var T=_||{},C=!!T.isFingerprintJsProOff,N=[];e&&e!==g()&&N.push([e,g()]);var x=d.getAppContextId(),M=T.bulkEvents||{},U=T.supressInstallBackwardCompatibility||[],Y=typeof T.logMessageRate=="number"?T.logMessageRate:100,W=T.eventTrigger||"";return Object.assign(l,{deviceId:g(),linkedDevices:N,loadFingerprintJsPro:!C,clientVersion:u.version,appContextId:x,bulkEvents:M,supressInstallBackwardCompatibility:U,logMessageRate:Y,eventTrigger:W,eventsReportUrl:T.eventsReportUrl})},parseInitParams:function(l,_){return typeof(T=l)=="string"||T instanceof String?{appId:l,partnerId:_}:l;var T},internalGetDeviceId:g}},342:function(t,n,r){var e=r(723),u=r(242),a=r(1),d=r(102),g=r(651),l=r(884),_=r(884);t.exports={version:e.version,init:l.isBrowser()?function(T,C){var N=g.parseInitParams(T,C),x=N.appId;a.init(e,{appId:x});var M=_.getConfigBaseUrls(N,e),U=M.mainConfigBaseUrl,Y=M.altConfigBaseUrl;function W(Z,et){u.getCoreModuleLoadingInfo({appId:x,url:Z},(function(ht,ut){!ht&&ut||e.errorServerUrl&&a.send({msg:"Core loading error",reason:"config-file-load-fail",url:e.coreConfigFileUrl,errorDescription:ht}),et(ut)}))}function J(Z){typeof Z.onPercentage=="number"&&l.randomInt(0,100)>Z.onPercentage||(function(et,ht){var ut=g.getCoreModuleParams(et,ht);d.init(ut)})(N,Z)}return W(U,(function(Z){if(Z)J(Z);else{if(!Y)return;W(Y,(function(et){et&&J(et)}))}})),g.getDeviceId()}:function(T,C){return null},getDeviceId:l.isBrowser()?function(){return g.getDeviceId()}:function(){return null}}},242:function(t,n,r){var e=r(611),u=r(528),a=r(884),d="ns_group";function g(l,_){(function(T,C){e.get(T).end((function(N,x){N?a.isFunction(C)&&C({ok:!1,errorDescription:JSON.stringify({err:N,res:x})}):a.isFunction(C)&&C(null,{ok:x.ok,status:x.status,response:x.body})}))})(l.url,(function(T,C){!T&&C&&C.response?a.isFunction(_)&&_(null,(function(N,x){var M,U=x||{},Y=U.configurations||{},W=Y[N];if(W){var J=(function(){var At=u.getItem(d);return At||(At=a.randomInt(1,100),u.setItem(d,At)),At})(),Z=(function(At){var Rt=[],st=0;for(var ct in At)if(At.hasOwnProperty(ct)){var gt=At[ct],wt=st;st+=gt.percentage,Rt.push({from:wt,to:st,url:gt.url})}return Rt})(W.groups),et=(function(At,Rt){for(var st=0,ct=At.length;st<ct;st++){var gt=At[st];if(Rt>gt.from&&Rt<=gt.to)return gt}return null})(Z,J)||{};if(et)for(M in et)et.hasOwnProperty(M)&&(W[M]=et[M]);var ht=Y.default||{};for(M in ht)ht.hasOwnProperty(M)&&!W.hasOwnProperty(M)&&(W[M]=ht[M])}else W=Y.default||{};var ut={};for(M in U)U.hasOwnProperty(M)&&M!=="configurations"&&(ut[M]=U[M]);for(M in W)W.hasOwnProperty(M)&&["groups","from","to"].indexOf(M)===-1&&(ut[M]=W[M]);return ut})(l.appId,C.response)):a.isFunction(_)&&_(T.errorDescription)}))}t.exports={getCoreModuleLoadingInfo:function(l,_){var T=0;l&&l.url?g(l,(function C(N,x){N?(T+=1)<=3?g(l,C):a.isFunction(_)&&_(N):a.isFunction(_)&&_(null,x)})):a.isFunction(_)&&_("config url is not configured")}}},115:function(t,n,r){var e,u=r(550),a=r(528),d=r(13),g=r(884),l=r(616),_="ns_dev_id",T=[];function C(){var N=a.getItem(_);e||(e=N||l.toArray(u(),a.hasAccessToLocalStorage()),a.setItem(_,e))}t.exports={init:function(){d.init((function(){d.getKey(_,(function(N){N?(e=N,a.setItem(_,e),d.cleanup()):(C(),d.setKey(_,e),setTimeout(d.cleanup,2e3));for(var x=0,M=T.length;x<M;x+=1){var U=T[x];g.isFunction(U)&&U()}T=[]}))}))},addOnReadyListener:function(N){T.push(N)},getDeviceId:function(){return C(),e},reset:function(){throw new Error("Cannot call reset!")}}},635:function(t,n,r){r.d(n,{C6:function(){return u},Cl:function(){return a},Tt:function(){return d},YH:function(){return l},fX:function(){return _},sH:function(){return g}});var e=function(T,C){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,x){N.__proto__=x}||function(N,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(N[M]=x[M])},e(T,C)};function u(T,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function N(){this.constructor=T}e(T,C),T.prototype=C===null?Object.create(C):(N.prototype=C.prototype,new N)}var a=function(){return a=Object.assign||function(T){for(var C,N=1,x=arguments.length;N<x;N++)for(var M in C=arguments[N])Object.prototype.hasOwnProperty.call(C,M)&&(T[M]=C[M]);return T},a.apply(this,arguments)};function d(T,C){var N={};for(var x in T)Object.prototype.hasOwnProperty.call(T,x)&&C.indexOf(x)<0&&(N[x]=T[x]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function"){var M=0;for(x=Object.getOwnPropertySymbols(T);M<x.length;M++)C.indexOf(x[M])<0&&Object.prototype.propertyIsEnumerable.call(T,x[M])&&(N[x[M]]=T[x[M]])}return N}function g(T,C,N,x){return new(N||(N=Promise))((function(M,U){function Y(Z){try{J(x.next(Z))}catch(et){U(et)}}function W(Z){try{J(x.throw(Z))}catch(et){U(et)}}function J(Z){var et;Z.done?M(Z.value):(et=Z.value,et instanceof N?et:new N((function(ht){ht(et)}))).then(Y,W)}J((x=x.apply(T,C||[])).next())}))}function l(T,C){var N,x,M,U,Y={label:0,sent:function(){if(1&M[0])throw M[1];return M[1]},trys:[],ops:[]};return U={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(U[Symbol.iterator]=function(){return this}),U;function W(J){return function(Z){return(function(et){if(N)throw new TypeError("Generator is already executing.");for(;U&&(U=0,et[0]&&(Y=0)),Y;)try{if(N=1,x&&(M=2&et[0]?x.return:et[0]?x.throw||((M=x.return)&&M.call(x),0):x.next)&&!(M=M.call(x,et[1])).done)return M;switch(x=0,M&&(et=[2&et[0],M.value]),et[0]){case 0:case 1:M=et;break;case 4:return Y.label++,{value:et[1],done:!1};case 5:Y.label++,x=et[1],et=[0];continue;case 7:et=Y.ops.pop(),Y.trys.pop();continue;default:if(!((M=(M=Y.trys).length>0&&M[M.length-1])||et[0]!==6&&et[0]!==2)){Y=0;continue}if(et[0]===3&&(!M||et[1]>M[0]&&et[1]<M[3])){Y.label=et[1];break}if(et[0]===6&&Y.label<M[1]){Y.label=M[1],M=et;break}if(M&&Y.label<M[2]){Y.label=M[2],Y.ops.push(et);break}M[2]&&Y.ops.pop(),Y.trys.pop();continue}et=C.call(T,Y)}catch(ht){et=[6,ht],x=0}finally{N=M=0}if(5&et[0])throw et[1];return{value:et[0]?et[1]:void 0,done:!0}})([J,Z])}}}function _(T,C,N){if(N||arguments.length===2)for(var x,M=0,U=C.length;M<U;M++)!x&&M in C||(x||(x=Array.prototype.slice.call(C,0,M)),x[M]=C[M]);return T.concat(x||Array.prototype.slice.call(C))}typeof SuppressedError=="function"&&SuppressedError}},mf={};function br(t){var n=mf[t];if(n!==void 0)return n.exports;var r=mf[t]={exports:{}};return Ym[t](r,r.exports,br),r.exports}br.d=function(t,n){for(var r in n)br.o(n,r)&&!br.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},br.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},br.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var li={};br.d(li,{IP:function(){return di.getDeviceId},Ts:function(){return di.init},rE:function(){return di.version}});var di=br(342);const Wm={version:di.version,init:di.init,getDeviceId:di.getDeviceId};li.Ay=Wm;var wa=li.Ay;li.IP,li.Ts,li.rE;function Ea(){if(typeof window<"u"){const t=new URLSearchParams(window.location.search).get("deviceId");if(t)return t}return wa?wa.getDeviceId():null}class An{env;url;constructor(n){this.env=n??"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(n){return fetch(this.url+`/merchant/view/${n}`).then(r=>r.json()).then(r=>r.nSureSettings?.nSurePartnerId||r.nSurePartnerId).catch(r=>{console.error(r)})}static getCoinflowBaseUrl(n){return!n||n==="prod"?"https://coinflow.cash":n==="ngrok"?"https://coinflow.ngrok.app":n==="local"?"http://localhost:3000":`https://${n}.coinflow.cash`}static getCoinflowAppBaseUrl(n){return!n||n==="prod"?"https://app.coinflow.cash":n==="ngrok"?"https://coinflow.ngrok.app":n==="local"?"http://localhost:3003":`https://app-${n}.coinflow.cash`}static getCoinflowApiUrl(n){return!n||n==="prod"?"https://api.coinflow.cash":n==="local"?"http://localhost:5000":`https://api-${n}.coinflow.cash`}static getCoinflowUrl({walletPubkey:n,sessionKey:r,route:e,routePrefix:u,env:a,subtotal:d,presentment:g,transaction:l,blockchain:_="solana",webhookInfo:T,email:C,loaderBackground:N,handleHeightChangeId:x,bankAccountLinkRedirect:M,additionalWallets:U,chargebackProtectionData:Y,chargebackProtectionAccountType:W,merchantCss:J,color:Z,rent:et,lockDefaultToken:ht,tokens:ut,planCode:At,disableApplePay:Rt,disableGooglePay:st,customerInfo:ct,settlementType:gt,lockAmount:wt,nativeSolToConvert:P,theme:f,usePermit:S,transactionSigner:D,authOnly:z,deviceId:q,jwtToken:nt,origins:ft,threeDsChallengePreference:K,supportEmail:h,destinationAuthKey:b,allowedPaymentMethods:j,accountFundingTransaction:X,partialUsdcChecked:pt,redemptionCheck:St,allowedWithdrawSpeeds:Ht,isZeroAuthorization:Zt,zeroAuthorizationConfig:de,userLocation:ye,appReturnUrl:ge,depositAmounts:Oe,ownerOverride:_e,baseUrl:be}){const Ve=u?`/${u}/${_}`:`/${_}`,$t=new URL(Ve+e,be??An.getCoinflowBaseUrl(a));if(n&&$t.searchParams.append("pubkey",n),_e&&$t.searchParams.append("ownerOverride",_e),r&&$t.searchParams.append("sessionKey",r),l&&$t.searchParams.append("transaction",l),d&&("cents"in d?($t.searchParams.append("cents",d.cents.toString()),"currency"in d?$t.searchParams.append("currency",d.currency.toString()):$t.searchParams.append("currency",ya.USD)):($t.searchParams.append("token",d.address.toString()),$t.searchParams.append("amount",d.amount.toString()))),g&&$t.searchParams.append("presentment",g),T&&$t.searchParams.append("webhookInfo",Rn.compressToEncodedURIComponent(JSON.stringify(T))),f&&$t.searchParams.append("theme",Rn.compressToEncodedURIComponent(JSON.stringify(f))),ct&&$t.searchParams.append("customerInfo",Rn.compressToEncodedURIComponent(JSON.stringify(ct))),C&&$t.searchParams.append("email",C),h&&$t.searchParams.append("supportEmail",h),ut&&$t.searchParams.append("tokens",ut.toString()),N&&$t.searchParams.append("loaderBackground",N),x&&$t.searchParams.append("useHeightChange",x.toString()),M&&$t.searchParams.append("bankAccountLinkRedirect",M),U&&$t.searchParams.append("additionalWallets",Rn.compressToEncodedURIComponent(JSON.stringify(U))),Y&&$t.searchParams.append("chargebackProtectionData",Rn.compressToEncodedURIComponent(JSON.stringify(Y))),W&&$t.searchParams.append("chargebackProtectionAccountType",W),q)$t.searchParams.append("deviceId",q);else{const m=Ea();m&&$t.searchParams.append("deviceId",m)}return J&&$t.searchParams.append("merchantCss",J),Z&&$t.searchParams.append("color",Z),et&&$t.searchParams.append("rent",et.lamports.toString()),St&&$t.searchParams.append("redemptionCheck","true"),P&&$t.searchParams.append("nativeSolToConvert",P.lamports.toString()),ht&&$t.searchParams.append("lockDefaultToken","true"),At&&$t.searchParams.append("planCode",At),Rt&&$t.searchParams.append("disableApplePay","true"),st&&$t.searchParams.append("disableGooglePay","true"),gt&&$t.searchParams.append("settlementType",gt),wt&&$t.searchParams.append("lockAmount","true"),S===!1&&$t.searchParams.append("usePermit","false"),D&&$t.searchParams.append("transactionSigner",D),z===!0&&$t.searchParams.append("authOnly","true"),de?$t.searchParams.append("zeroAuthorizationConfig",JSON.stringify(de)):Zt===!0&&$t.searchParams.append("isZeroAuthorization","true"),pt===!0&&$t.searchParams.append("partialUsdcChecked","true"),nt&&$t.searchParams.append("jwtToken",nt),ft&&$t.searchParams.append("origins",Rn.compressToEncodedURIComponent(JSON.stringify(ft))),j&&$t.searchParams.append("allowedPaymentMethods",j.join(",")),Oe&&$t.searchParams.append("depositAmounts",Oe.join(",")),K&&$t.searchParams.append("threeDsChallengePreference",K),b&&$t.searchParams.append("destinationAuthKey",b),X&&$t.searchParams.append("accountFundingTransaction",Rn.compressToEncodedURIComponent(JSON.stringify(X))),Ht&&$t.searchParams.append("allowedWithdrawSpeeds",Ht.join(",")),ye&&($t.searchParams.append("lat",ye.lat.toString()),$t.searchParams.append("lng",ye.lng.toString())),ge&&$t.searchParams.append("appReturnUrl",ge),$t.toString()}static getCoinflowIntentsUrl({baseUrl:n,route:r,color:e,theme:u,env:a,origins:d,deviceId:g,merchantCss:l,loaderBackground:_,handleHeightChangeId:T}){const C=new URL(r,n??An.getCoinflowBaseUrl(a));if(d&&C.searchParams.append("origins",Rn.compressToEncodedURIComponent(JSON.stringify(d))),g)C.searchParams.append("deviceId",g);else{const N=Ea();N&&C.searchParams.append("deviceId",N)}return l&&C.searchParams.append("merchantCss",l),e&&C.searchParams.append("color",e),_&&C.searchParams.append("loaderBackground",_),T&&C.searchParams.append("useHeightChange",T.toString()),u&&C.searchParams.append("theme",Rn.compressToEncodedURIComponent(JSON.stringify(u))),C.toString()}static getTransaction(n){if(n.blockchain)return this.byBlockchain(n.blockchain,{solana:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(!Yo)throw new Error("@solana/web3.js dependency is required for Solana");if(!_r)throw new Error("bs58 dependency is required for Solana");if(r)return _r.encode(Uint8Array.from(r.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},eth:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},base:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},arbitrum:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},stellar:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(r)return r},monad:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},tempo:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return Rn.compressToEncodedURIComponent(JSON.stringify(r))},user:()=>{}})()}static byBlockchain(n,r){switch(n){case"solana":return r.solana;case"polygon":return r.polygon;case"eth":return r.eth;case"base":return r.base;case"arbitrum":return r.arbitrum;case"stellar":return r.stellar;case"monad":return r.monad;case"tempo":return r.tempo;case"user":return r.user;default:throw new Error("blockchain not supported!")}}}function zm(t){if(!t)return;let n,r;if("name"in t&&t.name&&(n=t.name.split(" ")[0],r=t.name.split(" ").slice(1).join(" ")),"firstName"in t&&t.firstName&&(n=t.firstName),"lastName"in t&&t.lastName&&(r=t.lastName),n&&r)return{firstName:n,lastName:r}}function Wo({event:t,error:n,env:r,merchantId:e}){const u=n instanceof Error,a=u?n.message:n,d=u?n.stack:"";fetch(`${An.getCoinflowApiUrl(r)}/api/telemetry/frontend-error`,{method:"POST",body:JSON.stringify({message:a,stackTrace:d,merchantId:e,event:t}),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var Ui=(t=>(t.SignMessage="signMessage",t.SignTransaction="signTransaction",t.SendTransaction="sendTransaction",t.HeightChange="heightChange",t.Success="success",t.AuthDeclined="authDeclined",t.Loaded="loaded",t.AccountLinked="accountLinked",t.Redirect="redirect",t.Overlay="overlay",t))(Ui||{});function zo(t){let n;if("signer"in t&&typeof t.signer=="object"&&t.signer&&"wallet"in t.signer?n=t.signer.wallet:"wallet"in t&&t.wallet&&(n=t.wallet),!!n){if(typeof n=="string")return n;if(typeof n=="object"){if("publicKey"in n)return n.publicKey?n.publicKey.toString():void 0;if("address"in n)return n.address?n.address:void 0}return null}}function gf(t,n,r){let e;try{if(e=JSON.parse(t),!("method"in e)||!("data"in e))return}catch(d){console.error("handleIFrameMessage JSON parse",d);return}const{data:u,method:a}=e;switch(a){case"signMessage":return n.handleSignMessage?n.handleSignMessage(u):void 0;case"signTransaction":return n.handleSignTransaction?n.handleSignTransaction(u):void 0;case"sendTransaction":return n.handleSendTransaction(u);case"heightChange:"+r:return n.handleHeightChange?n.handleHeightChange(u):void 0;case"success":if(!n.onSuccess)return;n.onSuccess(e.info);return;case"authDeclined":if(!n.onAuthDeclined)return;n.onAuthDeclined(e.info);return;case"loaded":return;case"accountLinked":return;case"redirect":window.open(u,"_blank");return;case"overlay":if(!n.handleOverlay)return;n.handleOverlay(u);return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${a} is not one of ${Object.values(Ui)}`)}function Ko(t){let n,r;return"signer"in t&&typeof t.signer=="object"&&t.signer&&"blockchain"in t.signer&&"wallet"in t.signer?(n=t.signer.blockchain,r=t.signer.wallet):"blockchain"in t&&t.blockchain&&(n=t.blockchain,r=t.wallet),n?An.byBlockchain(n,{solana:()=>Km({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),eth:()=>hi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),polygon:()=>hi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),base:()=>hi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),arbitrum:()=>hi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),stellar:()=>Zm({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),monad:()=>hi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),tempo:()=>hi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}),user:()=>Xm(t)})():{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined}}function Km({wallet:t,onSuccess:n,onAuthDeclined:r}){return{handleSendTransaction:async e=>{const u=yf(e);return await t.sendTransaction(u)},handleSignMessage:async e=>{const u=t.signMessage;if(!u)throw new Error("signMessage is not supported by this wallet");const a=await u(new TextEncoder().encode(e));if(!_r)throw new Error("bs58 dependency is required");return _r.encode(a)},handleSignTransaction:async e=>{const u=t.signTransaction;if(!u)throw new Error("signTransaction is not supported by this wallet");const a=yf(e),d=await u(a);if(!_r)throw new Error("bs58 dependency is required");return _r.encode(Uint8Array.from(d.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:n,onAuthDeclined:r}}function yf(t){if(!Yo)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!_r)throw new Error("bs58 is not defined. Please install bs58 into your project");const n=_r.decode(t),r=Yo.VersionedTransaction.deserialize(n);return r.version==="legacy"?Yo.Transaction.from(n):r}function hi({wallet:t,onSuccess:n,onAuthDeclined:r}){return{handleSendTransaction:async e=>{const u=JSON.parse(Buffer.from(e,"base64").toString()),{hash:a}=await t.sendTransaction(u);return a},handleSignMessage:async e=>t.signMessage(e),onSuccess:n,onAuthDeclined:r}}function Zm({wallet:t,onSuccess:n,onAuthDeclined:r}){return{handleSendTransaction:async e=>{throw new Error(`sendTransaction is not supported on stellar, error when sending: ${e}`)},handleSignMessage:async e=>{if(!t.signMessage)throw new Error("signMessage is not supported by this wallet");return await t.signMessage(e)},handleSignTransaction:async e=>{if(!t.signTransaction)throw new Error("signTransaction is not supported by this wallet");return await t.signTransaction(e)},onSuccess:n,onAuthDeclined:r}}function Xm({onSuccess:t,onAuthDeclined:n}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:t,onAuthDeclined:n}}class $m{static on(n,r){document.addEventListener(n,r)}static dispatch(n,r){document.dispatchEvent(new CustomEvent(n,{detail:r}))}static remove(n,r){document.removeEventListener(n,r)}}const Pi="tokenExCardNumber",pi="tokenExCardCvv",wf={[$r.VISA]:"visa",[$r.MASTERCARD]:"masterCard",[$r.AMEX]:"americanExpress",[$r.DISCOVER]:"discover"};async function Ef(t){const{token:n,origins:r,env:e}=t;return new Promise((u,a)=>{fetch(new An(e).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:r,token:n,merchantId:"merchantId"in t?t.merchantId:void 0,checkoutJwt:"checkoutJwt"in t?t.checkoutJwt:void 0})}).then(async d=>{u(await d.json())}).catch(d=>a(d))})}function _a({env:t,setTokenExScriptLoaded:n}){const r="tokenex-script";document.head.querySelector(`#${r}`)&&n(!0);const e=document.createElement("script");e.src=t==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",e.id=r,document.head.appendChild(e),document.getElementById(r).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),n(!0)})}function qm({iframe:t,setCachedToken:n,setLoaded:r}){const e=async()=>(t.tokenize(),await new Promise((u,a)=>{t.on("tokenize",d=>{n(d.token),u(d)}),t.on("validate",d=>{(!d.isValid||d.isCvvValid===!1)&&a(d)})}));return t.on("change",()=>n(void 0)),t.on("cvvChange",()=>n(void 0)),t.on("load",()=>{setTimeout(()=>r(!0),350);const u=document.querySelector("#tx_iframe_tokenExCardNumber");u&&(u.scrolling="no")}),t.on("focus",()=>{t.focus()}),t.on("cvvFocus",()=>{t.cvvFocus()}),r(!1),t.load(),{...t,tokenize:e}}async function _f(t){const{token:n,cardType:r}=t;return await ba(pi,t,{cvvOnly:!0,cvv:!0,cvvContainerID:pi,placeholder:"CVV",token:n,cardType:wf[r]})}async function bf(t){return await ba(Pi,t,{cvv:!0,cvvContainerID:pi,cvvPlaceholder:"CVV"})}async function Rf(t){return await ba(Pi,t,{cvv:!1})}async function ba(t,n,r){const{tokenExScriptLoaded:e,css:u,debug:a,font:d,setCachedToken:g,setLoaded:l}=n;if(!e&&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 _=await Ef({...n,token:r.token}),{styles:T}=Jm(u),C={..._,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:T,font:d,debug:a??!1,...r},N=TokenEx.Iframe(t,C);return qm({iframe:N,setCachedToken:g,setLoaded:l})}function Jm(t){const n=JSON.parse(t);return{styles:{base:Rr(n.base),focus:Rr(n.focus),error:Rr(n.error),placeholder:Rr(n.placeholder),cvv:{base:Rr(n.cvv?.base),focus:Rr(n.cvv?.focus),error:Rr(n.cvv?.error),placeholder:Rr(n?.placeholder)}}}}function Rr(t){if(!t)return"";if(typeof t=="string")return t;let n="";for(const[r,e]of Object.entries(t)){let u="";r.split("").forEach(a=>{a.toUpperCase()===a?u+="-"+a.toLowerCase():u+=a}),n+=u+":"+e+";"}return n}const Af={"card-number":180,expiration:96,cvv:80},Sf=8,Fi="3rem",Ra=48,Aa=1,Zo=1,Sa=2,Qm={"card-number":"1fr",expiration:"96px",cvv:"80px"},If={"card-number":"card",expiration:"exp",cvv:"cvv"};function Hi(t,n){return t.includes(n)}function tg(t){const n=t.reduce((e,u)=>e+Af[u],0),r=Math.max(0,t.length-1)*Sf;return n+r}function eg({inputs:t,hasIcon:n}){const r=[],e=[],u=(a,d)=>{r.length>0&&(r.push(`d${a.toUpperCase()}`),e.push("1px")),r.push(a),e.push(d)};n&&Hi(t,"card-number")&&u("icon","auto");for(const a of t)u(If[a],Qm[a]);return`"${r.join(" ")}" ${Fi} / ${e.join(" ")}`}function ng({inputs:t,hasIcon:n}){const r=Hi(t,"card-number"),e=Hi(t,"expiration"),u=Hi(t,"cvv");if(!r||!e&&!u)return null;const a=`${Fi} ${Aa}px ${Fi}`;if(e&&u)return{template:Of(n?'"icon card card card" "dHR dHR dHR dHR" "exp exp dEV cvv"':'"card card card" "dHR dHR dHR" "exp dEV cvv"',a,n?"auto minmax(0, 1fr) 1px minmax(0, 1fr)":"minmax(0, 1fr) 1px minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"},{area:"dEV",orientation:"v"}]};const d=e?"exp":"cvv",g=n?`"icon card" "dHR dHR" "${d} ${d}"`:`"card" "dHR" "${d}"`;return{template:Of(g,a,n?"auto minmax(0, 1fr)":"minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"}]}}function Of(t,n,r){const e=t.match(/"[^"]*"/g)??[],u=n.split(/\s+/);return`${e.map((d,g)=>`${d} ${u[g]??""}`.trim()).join(" ")} / ${r}`}function Xo({inputs:t,hasIcon:n=!1,allowTwoRow:r=!0}){const e=t.map(g=>If[g]);if(t.length===1)return{inline:`"${e[0]}" ${Fi} / 1fr`,twoRow:null,breakpointPx:null,fieldAreas:e,hasIconArea:!1,twoRowDividers:[]};const u=n&&Hi(t,"card-number"),a=eg({inputs:t,hasIcon:u}),d=r?ng({inputs:t,hasIcon:u}):null;return{inline:a,twoRow:d?.template??null,breakpointPx:d?tg(t)+2*Zo:null,fieldAreas:e,hasIconArea:u,twoRowDividers:d?.dividers??[]}}function Tf({gridSelector:t,layout:n,containerName:r,extraBaseRules:e="",extraCompactRules:u=""}){const a=`${t} { display: grid; grid-template: ${n.inline}; }
|
|
19
|
-
${e}`;if(!n.twoRow||n.breakpointPx===null)return a;const
|
|
20
|
-
@container ${
|
|
16
|
+
timeBetweenLoadAndGet: `).concat(Ct-G,`
|
|
17
|
+
visitorId: `).concat(Ut.visitorId,`
|
|
18
|
+
components: `).concat(_t(Mt),"\n```")),[2,Ut]}}))}))}}}function F(A){var V=A===void 0?{}:A,G=V.delayFallback,st=V.debug,Ct=V.monitoring,Mt=Ct===void 0||Ct;return(0,e.sH)(this,void 0,void 0,(function(){return(0,e.YH)(this,(function(Ut){switch(Ut.label){case 0:return Mt&&(function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var kt=new XMLHttpRequest;kt.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(u,"/npm-monitoring"),!0),kt.send()}catch(ot){console.error(ot)}})(),[4,zt(G)];case 1:return Ut.sent(),[2,ee(bt(Q,{debug:st},[]),st)]}}))}))}var b={load:F,hashComponents:Lt,componentsToDebugString:_t},O=j},526:function(t,n){n.byteLength=function(E){var T=g(E),L=T[0],N=T[1];return 3*(L+N)/4-N},n.toByteArray=function(E){var T,L,N=g(E),x=N[0],B=N[1],D=new u((function(J,Z,nt){return 3*(Z+nt)/4-nt})(0,x,B)),j=0,z=B>0?x-4:x;for(L=0;L<z;L+=4)T=e[E.charCodeAt(L)]<<18|e[E.charCodeAt(L+1)]<<12|e[E.charCodeAt(L+2)]<<6|e[E.charCodeAt(L+3)],D[j++]=T>>16&255,D[j++]=T>>8&255,D[j++]=255&T;return B===2&&(T=e[E.charCodeAt(L)]<<2|e[E.charCodeAt(L+1)]>>4,D[j++]=255&T),B===1&&(T=e[E.charCodeAt(L)]<<10|e[E.charCodeAt(L+1)]<<4|e[E.charCodeAt(L+2)]>>2,D[j++]=T>>8&255,D[j++]=255&T),D},n.fromByteArray=function(E){for(var T,L=E.length,N=L%3,x=[],B=16383,D=0,j=L-N;D<j;D+=B)x.push(l(E,D,D+B>j?j:D+B));return N===1?(T=E[L-1],x.push(r[T>>2]+r[T<<4&63]+"==")):N===2&&(T=(E[L-2]<<8)+E[L-1],x.push(r[T>>10]+r[T>>4&63]+r[T<<2&63]+"=")),x.join("")};for(var r=[],e=[],u=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0;f<64;++f)r[f]=a[f],e[a.charCodeAt(f)]=f;function g(E){var T=E.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");return L===-1&&(L=T),[L,L===T?0:4-L%4]}function l(E,T,L){for(var N,x,B=[],D=T;D<L;D+=3)N=(E[D]<<16&16711680)+(E[D+1]<<8&65280)+(255&E[D+2]),B.push(r[(x=N)>>18&63]+r[x>>12&63]+r[x>>6&63]+r[63&x]);return B.join("")}e[45]=62,e[95]=63},287:function(t,n,r){const e=r(526),u=r(251),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.hp=l,n.IS=50;const f=2147483647;function g(m){if(m>f)throw new RangeError('The value "'+m+'" is invalid for option "size"');const k=new Uint8Array(m);return Object.setPrototypeOf(k,l.prototype),k}function l(m,k,H){if(typeof m=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(m)}return E(m,k,H)}function E(m,k,H){if(typeof m=="string")return(function(_t,Lt){if(typeof Lt=="string"&&Lt!==""||(Lt="utf8"),!l.isEncoding(Lt))throw new TypeError("Unknown encoding: "+Lt);const zt=0|D(_t,Lt);let ee=g(zt);const F=ee.write(_t,Lt);return F!==zt&&(ee=ee.slice(0,F)),ee})(m,k);if(ArrayBuffer.isView(m))return(function(_t){if(Se(_t,Uint8Array)){const Lt=new Uint8Array(_t);return x(Lt.buffer,Lt.byteOffset,Lt.byteLength)}return N(_t)})(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Se(m,ArrayBuffer)||m&&Se(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Se(m,SharedArrayBuffer)||m&&Se(m.buffer,SharedArrayBuffer)))return x(m,k,H);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Q=m.valueOf&&m.valueOf();if(Q!=null&&Q!==m)return l.from(Q,k,H);const yt=(function(_t){if(l.isBuffer(_t)){const Lt=0|B(_t.length),zt=g(Lt);return zt.length===0||_t.copy(zt,0,0,Lt),zt}return _t.length!==void 0?typeof _t.length!="number"||Ee(_t.length)?g(0):N(_t):_t.type==="Buffer"&&Array.isArray(_t.data)?N(_t.data):void 0})(m);if(yt)return yt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return l.from(m[Symbol.toPrimitive]("string"),k,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}function T(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function L(m){return T(m),g(m<0?0:0|B(m))}function N(m){const k=m.length<0?0:0|B(m.length),H=g(k);for(let Q=0;Q<k;Q+=1)H[Q]=255&m[Q];return H}function x(m,k,H){if(k<0||m.byteLength<k)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<k+(H||0))throw new RangeError('"length" is outside of buffer bounds');let Q;return Q=k===void 0&&H===void 0?new Uint8Array(m):H===void 0?new Uint8Array(m,k):new Uint8Array(m,k,H),Object.setPrototypeOf(Q,l.prototype),Q}function B(m){if(m>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|m}function D(m,k){if(l.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Se(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const H=m.length,Q=arguments.length>2&&arguments[2]===!0;if(!Q&&H===0)return 0;let yt=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return le(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*H;case"hex":return H>>>1;case"base64":return we(m).length;default:if(yt)return Q?-1:le(m).length;k=(""+k).toLowerCase(),yt=!0}}function j(m,k,H){let Q=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0)<=(k>>>=0))return"";for(m||(m="utf8");;)switch(m){case"hex":return d(this,k,H);case"utf8":case"utf-8":return lt(this,k,H);case"ascii":return wt(this,k,H);case"latin1":case"binary":return P(this,k,H);case"base64":return at(this,k,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,k,H);default:if(Q)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),Q=!0}}function z(m,k,H){const Q=m[k];m[k]=m[H],m[H]=Q}function J(m,k,H,Q,yt){if(m.length===0)return-1;if(typeof H=="string"?(Q=H,H=0):H>2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),Ee(H=+H)&&(H=yt?0:m.length-1),H<0&&(H=m.length+H),H>=m.length){if(yt)return-1;H=m.length-1}else if(H<0){if(!yt)return-1;H=0}if(typeof k=="string"&&(k=l.from(k,Q)),l.isBuffer(k))return k.length===0?-1:Z(m,k,H,Q,yt);if(typeof k=="number")return k&=255,typeof Uint8Array.prototype.indexOf=="function"?yt?Uint8Array.prototype.indexOf.call(m,k,H):Uint8Array.prototype.lastIndexOf.call(m,k,H):Z(m,[k],H,Q,yt);throw new TypeError("val must be string, number or Buffer")}function Z(m,k,H,Q,yt){let _t,Lt=1,zt=m.length,ee=k.length;if(Q!==void 0&&((Q=String(Q).toLowerCase())==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(m.length<2||k.length<2)return-1;Lt=2,zt/=2,ee/=2,H/=2}function F(b,O){return Lt===1?b[O]:b.readUInt16BE(O*Lt)}if(yt){let b=-1;for(_t=H;_t<zt;_t++)if(F(m,_t)===F(k,b===-1?0:_t-b)){if(b===-1&&(b=_t),_t-b+1===ee)return b*Lt}else b!==-1&&(_t-=_t-b),b=-1}else for(H+ee>zt&&(H=zt-ee),_t=H;_t>=0;_t--){let b=!0;for(let O=0;O<ee;O++)if(F(m,_t+O)!==F(k,O)){b=!1;break}if(b)return _t}return-1}function nt(m,k,H,Q){H=Number(H)||0;const yt=m.length-H;Q?(Q=Number(Q))>yt&&(Q=yt):Q=yt;const _t=k.length;let Lt;for(Q>_t/2&&(Q=_t/2),Lt=0;Lt<Q;++Lt){const zt=parseInt(k.substr(2*Lt,2),16);if(Ee(zt))return Lt;m[H+Lt]=zt}return Lt}function ht(m,k,H,Q){return ge(le(k,m.length-H),m,H,Q)}function ft(m,k,H,Q){return ge((function(yt){const _t=[];for(let Lt=0;Lt<yt.length;++Lt)_t.push(255&yt.charCodeAt(Lt));return _t})(k),m,H,Q)}function At(m,k,H,Q){return ge(we(k),m,H,Q)}function bt(m,k,H,Q){return ge((function(yt,_t){let Lt,zt,ee;const F=[];for(let b=0;b<yt.length&&!((_t-=2)<0);++b)Lt=yt.charCodeAt(b),zt=Lt>>8,ee=Lt%256,F.push(ee),F.push(zt);return F})(k,m.length-H),m,H,Q)}function at(m,k,H){return k===0&&H===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(k,H))}function lt(m,k,H){H=Math.min(m.length,H);const Q=[];let yt=k;for(;yt<H;){const _t=m[yt];let Lt=null,zt=_t>239?4:_t>223?3:_t>191?2:1;if(yt+zt<=H){let ee,F,b,O;switch(zt){case 1:_t<128&&(Lt=_t);break;case 2:ee=m[yt+1],(192&ee)==128&&(O=(31&_t)<<6|63&ee,O>127&&(Lt=O));break;case 3:ee=m[yt+1],F=m[yt+2],(192&ee)==128&&(192&F)==128&&(O=(15&_t)<<12|(63&ee)<<6|63&F,O>2047&&(O<55296||O>57343)&&(Lt=O));break;case 4:ee=m[yt+1],F=m[yt+2],b=m[yt+3],(192&ee)==128&&(192&F)==128&&(192&b)==128&&(O=(15&_t)<<18|(63&ee)<<12|(63&F)<<6|63&b,O>65535&&O<1114112&&(Lt=O))}}Lt===null?(Lt=65533,zt=1):Lt>65535&&(Lt-=65536,Q.push(Lt>>>10&1023|55296),Lt=56320|1023&Lt),Q.push(Lt),yt+=zt}return(function(_t){const Lt=_t.length;if(Lt<=mt)return String.fromCharCode.apply(String,_t);let zt="",ee=0;for(;ee<Lt;)zt+=String.fromCharCode.apply(String,_t.slice(ee,ee+=mt));return zt})(Q)}l.TYPED_ARRAY_SUPPORT=(function(){try{const m=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(m,k),m.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(m,k,H){return E(m,k,H)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(m,k,H){return(function(Q,yt,_t){return T(Q),Q<=0?g(Q):yt!==void 0?typeof _t=="string"?g(Q).fill(yt,_t):g(Q).fill(yt):g(Q)})(m,k,H)},l.allocUnsafe=function(m){return L(m)},l.allocUnsafeSlow=function(m){return L(m)},l.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==l.prototype},l.compare=function(m,k){if(Se(m,Uint8Array)&&(m=l.from(m,m.offset,m.byteLength)),Se(k,Uint8Array)&&(k=l.from(k,k.offset,k.byteLength)),!l.isBuffer(m)||!l.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===k)return 0;let H=m.length,Q=k.length;for(let yt=0,_t=Math.min(H,Q);yt<_t;++yt)if(m[yt]!==k[yt]){H=m[yt],Q=k[yt];break}return H<Q?-1:Q<H?1:0},l.isEncoding=function(m){switch(String(m).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(m,k){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return l.alloc(0);let H;if(k===void 0)for(k=0,H=0;H<m.length;++H)k+=m[H].length;const Q=l.allocUnsafe(k);let yt=0;for(H=0;H<m.length;++H){let _t=m[H];if(Se(_t,Uint8Array))yt+_t.length>Q.length?(l.isBuffer(_t)||(_t=l.from(_t)),_t.copy(Q,yt)):Uint8Array.prototype.set.call(Q,_t,yt);else{if(!l.isBuffer(_t))throw new TypeError('"list" argument must be an Array of Buffers');_t.copy(Q,yt)}yt+=_t.length}return Q},l.byteLength=D,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const m=this.length;if(m%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<m;k+=2)z(this,k,k+1);return this},l.prototype.swap32=function(){const m=this.length;if(m%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<m;k+=4)z(this,k,k+3),z(this,k+1,k+2);return this},l.prototype.swap64=function(){const m=this.length;if(m%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<m;k+=8)z(this,k,k+7),z(this,k+1,k+6),z(this,k+2,k+5),z(this,k+3,k+4);return this},l.prototype.toString=function(){const m=this.length;return m===0?"":arguments.length===0?lt(this,0,m):j.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(m){if(!l.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m||l.compare(this,m)===0},l.prototype.inspect=function(){let m="";const k=n.IS;return m=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(m+=" ... "),"<Buffer "+m+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(m,k,H,Q,yt){if(Se(m,Uint8Array)&&(m=l.from(m,m.offset,m.byteLength)),!l.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(k===void 0&&(k=0),H===void 0&&(H=m?m.length:0),Q===void 0&&(Q=0),yt===void 0&&(yt=this.length),k<0||H>m.length||Q<0||yt>this.length)throw new RangeError("out of range index");if(Q>=yt&&k>=H)return 0;if(Q>=yt)return-1;if(k>=H)return 1;if(this===m)return 0;let _t=(yt>>>=0)-(Q>>>=0),Lt=(H>>>=0)-(k>>>=0);const zt=Math.min(_t,Lt),ee=this.slice(Q,yt),F=m.slice(k,H);for(let b=0;b<zt;++b)if(ee[b]!==F[b]){_t=ee[b],Lt=F[b];break}return _t<Lt?-1:Lt<_t?1:0},l.prototype.includes=function(m,k,H){return this.indexOf(m,k,H)!==-1},l.prototype.indexOf=function(m,k,H){return J(this,m,k,H,!0)},l.prototype.lastIndexOf=function(m,k,H){return J(this,m,k,H,!1)},l.prototype.write=function(m,k,H,Q){if(k===void 0)Q="utf8",H=this.length,k=0;else if(H===void 0&&typeof k=="string")Q=k,H=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k>>>=0,isFinite(H)?(H>>>=0,Q===void 0&&(Q="utf8")):(Q=H,H=void 0)}const yt=this.length-k;if((H===void 0||H>yt)&&(H=yt),m.length>0&&(H<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");let _t=!1;for(;;)switch(Q){case"hex":return nt(this,m,k,H);case"utf8":case"utf-8":return ht(this,m,k,H);case"ascii":case"latin1":case"binary":return ft(this,m,k,H);case"base64":return At(this,m,k,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,m,k,H);default:if(_t)throw new TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),_t=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const mt=4096;function wt(m,k,H){let Q="";H=Math.min(m.length,H);for(let yt=k;yt<H;++yt)Q+=String.fromCharCode(127&m[yt]);return Q}function P(m,k,H){let Q="";H=Math.min(m.length,H);for(let yt=k;yt<H;++yt)Q+=String.fromCharCode(m[yt]);return Q}function d(m,k,H){const Q=m.length;(!k||k<0)&&(k=0),(!H||H<0||H>Q)&&(H=Q);let yt="";for(let _t=k;_t<H;++_t)yt+=_e[m[_t]];return yt}function S(m,k,H){const Q=m.slice(k,H);let yt="";for(let _t=0;_t<Q.length-1;_t+=2)yt+=String.fromCharCode(Q[_t]+256*Q[_t+1]);return yt}function U(m,k,H){if(m%1!=0||m<0)throw new RangeError("offset is not uint");if(m+k>H)throw new RangeError("Trying to access beyond buffer length")}function K(m,k,H,Q,yt,_t){if(!l.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>yt||k<_t)throw new RangeError('"value" argument is out of bounds');if(H+Q>m.length)throw new RangeError("Index out of range")}function q(m,k,H,Q,yt){pt(k,Q,yt,m,H,7);let _t=Number(k&BigInt(4294967295));m[H++]=_t,_t>>=8,m[H++]=_t,_t>>=8,m[H++]=_t,_t>>=8,m[H++]=_t;let Lt=Number(k>>BigInt(32)&BigInt(4294967295));return m[H++]=Lt,Lt>>=8,m[H++]=Lt,Lt>>=8,m[H++]=Lt,Lt>>=8,m[H++]=Lt,H}function rt(m,k,H,Q,yt){pt(k,Q,yt,m,H,7);let _t=Number(k&BigInt(4294967295));m[H+7]=_t,_t>>=8,m[H+6]=_t,_t>>=8,m[H+5]=_t,_t>>=8,m[H+4]=_t;let Lt=Number(k>>BigInt(32)&BigInt(4294967295));return m[H+3]=Lt,Lt>>=8,m[H+2]=Lt,Lt>>=8,m[H+1]=Lt,Lt>>=8,m[H]=Lt,H+8}function ct(m,k,H,Q,yt,_t){if(H+Q>m.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function W(m,k,H,Q,yt){return k=+k,H>>>=0,yt||ct(m,0,H,4),u.write(m,k,H,Q,23,4),H+4}function h(m,k,H,Q,yt){return k=+k,H>>>=0,yt||ct(m,0,H,8),u.write(m,k,H,Q,52,8),H+8}l.prototype.slice=function(m,k){const H=this.length;(m=~~m)<0?(m+=H)<0&&(m=0):m>H&&(m=H),(k=k===void 0?H:~~k)<0?(k+=H)<0&&(k=0):k>H&&(k=H),k<m&&(k=m);const Q=this.subarray(m,k);return Object.setPrototypeOf(Q,l.prototype),Q},l.prototype.readUintLE=l.prototype.readUIntLE=function(m,k,H){m>>>=0,k>>>=0,H||U(m,k,this.length);let Q=this[m],yt=1,_t=0;for(;++_t<k&&(yt*=256);)Q+=this[m+_t]*yt;return Q},l.prototype.readUintBE=l.prototype.readUIntBE=function(m,k,H){m>>>=0,k>>>=0,H||U(m,k,this.length);let Q=this[m+--k],yt=1;for(;k>0&&(yt*=256);)Q+=this[m+--k]*yt;return Q},l.prototype.readUint8=l.prototype.readUInt8=function(m,k){return m>>>=0,k||U(m,1,this.length),this[m]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(m,k){return m>>>=0,k||U(m,2,this.length),this[m]|this[m+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(m,k){return m>>>=0,k||U(m,2,this.length),this[m]<<8|this[m+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(m,k){return m>>>=0,k||U(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+16777216*this[m+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(m,k){return m>>>=0,k||U(m,4,this.length),16777216*this[m]+(this[m+1]<<16|this[m+2]<<8|this[m+3])},l.prototype.readBigUInt64LE=Ve((function(m){It(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Vt(m,this.length-8);const Q=k+256*this[++m]+65536*this[++m]+this[++m]*2**24,yt=this[++m]+256*this[++m]+65536*this[++m]+H*2**24;return BigInt(Q)+(BigInt(yt)<<BigInt(32))})),l.prototype.readBigUInt64BE=Ve((function(m){It(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Vt(m,this.length-8);const Q=k*2**24+65536*this[++m]+256*this[++m]+this[++m],yt=this[++m]*2**24+65536*this[++m]+256*this[++m]+H;return(BigInt(Q)<<BigInt(32))+BigInt(yt)})),l.prototype.readIntLE=function(m,k,H){m>>>=0,k>>>=0,H||U(m,k,this.length);let Q=this[m],yt=1,_t=0;for(;++_t<k&&(yt*=256);)Q+=this[m+_t]*yt;return yt*=128,Q>=yt&&(Q-=Math.pow(2,8*k)),Q},l.prototype.readIntBE=function(m,k,H){m>>>=0,k>>>=0,H||U(m,k,this.length);let Q=k,yt=1,_t=this[m+--Q];for(;Q>0&&(yt*=256);)_t+=this[m+--Q]*yt;return yt*=128,_t>=yt&&(_t-=Math.pow(2,8*k)),_t},l.prototype.readInt8=function(m,k){return m>>>=0,k||U(m,1,this.length),128&this[m]?-1*(255-this[m]+1):this[m]},l.prototype.readInt16LE=function(m,k){m>>>=0,k||U(m,2,this.length);const H=this[m]|this[m+1]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt16BE=function(m,k){m>>>=0,k||U(m,2,this.length);const H=this[m+1]|this[m]<<8;return 32768&H?4294901760|H:H},l.prototype.readInt32LE=function(m,k){return m>>>=0,k||U(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},l.prototype.readInt32BE=function(m,k){return m>>>=0,k||U(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},l.prototype.readBigInt64LE=Ve((function(m){It(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Vt(m,this.length-8);const Q=this[m+4]+256*this[m+5]+65536*this[m+6]+(H<<24);return(BigInt(Q)<<BigInt(32))+BigInt(k+256*this[++m]+65536*this[++m]+this[++m]*2**24)})),l.prototype.readBigInt64BE=Ve((function(m){It(m>>>=0,"offset");const k=this[m],H=this[m+7];k!==void 0&&H!==void 0||Vt(m,this.length-8);const Q=(k<<24)+65536*this[++m]+256*this[++m]+this[++m];return(BigInt(Q)<<BigInt(32))+BigInt(this[++m]*2**24+65536*this[++m]+256*this[++m]+H)})),l.prototype.readFloatLE=function(m,k){return m>>>=0,k||U(m,4,this.length),u.read(this,m,!0,23,4)},l.prototype.readFloatBE=function(m,k){return m>>>=0,k||U(m,4,this.length),u.read(this,m,!1,23,4)},l.prototype.readDoubleLE=function(m,k){return m>>>=0,k||U(m,8,this.length),u.read(this,m,!0,52,8)},l.prototype.readDoubleBE=function(m,k){return m>>>=0,k||U(m,8,this.length),u.read(this,m,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(m,k,H,Q){m=+m,k>>>=0,H>>>=0,Q||K(this,m,k,H,Math.pow(2,8*H)-1,0);let yt=1,_t=0;for(this[k]=255&m;++_t<H&&(yt*=256);)this[k+_t]=m/yt&255;return k+H},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(m,k,H,Q){m=+m,k>>>=0,H>>>=0,Q||K(this,m,k,H,Math.pow(2,8*H)-1,0);let yt=H-1,_t=1;for(this[k+yt]=255&m;--yt>=0&&(_t*=256);)this[k+yt]=m/_t&255;return k+H},l.prototype.writeUint8=l.prototype.writeUInt8=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,1,255,0),this[k]=255&m,k+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,2,65535,0),this[k]=255&m,this[k+1]=m>>>8,k+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,2,65535,0),this[k]=m>>>8,this[k+1]=255&m,k+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,4,4294967295,0),this[k+3]=m>>>24,this[k+2]=m>>>16,this[k+1]=m>>>8,this[k]=255&m,k+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,4,4294967295,0),this[k]=m>>>24,this[k+1]=m>>>16,this[k+2]=m>>>8,this[k+3]=255&m,k+4},l.prototype.writeBigUInt64LE=Ve((function(m,k=0){return q(this,m,k,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Ve((function(m,k=0){return rt(this,m,k,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(m,k,H,Q){if(m=+m,k>>>=0,!Q){const zt=Math.pow(2,8*H-1);K(this,m,k,H,zt-1,-zt)}let yt=0,_t=1,Lt=0;for(this[k]=255&m;++yt<H&&(_t*=256);)m<0&&Lt===0&&this[k+yt-1]!==0&&(Lt=1),this[k+yt]=(m/_t|0)-Lt&255;return k+H},l.prototype.writeIntBE=function(m,k,H,Q){if(m=+m,k>>>=0,!Q){const zt=Math.pow(2,8*H-1);K(this,m,k,H,zt-1,-zt)}let yt=H-1,_t=1,Lt=0;for(this[k+yt]=255&m;--yt>=0&&(_t*=256);)m<0&&Lt===0&&this[k+yt+1]!==0&&(Lt=1),this[k+yt]=(m/_t|0)-Lt&255;return k+H},l.prototype.writeInt8=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,1,127,-128),m<0&&(m=255+m+1),this[k]=255&m,k+1},l.prototype.writeInt16LE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,2,32767,-32768),this[k]=255&m,this[k+1]=m>>>8,k+2},l.prototype.writeInt16BE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,2,32767,-32768),this[k]=m>>>8,this[k+1]=255&m,k+2},l.prototype.writeInt32LE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,4,2147483647,-2147483648),this[k]=255&m,this[k+1]=m>>>8,this[k+2]=m>>>16,this[k+3]=m>>>24,k+4},l.prototype.writeInt32BE=function(m,k,H){return m=+m,k>>>=0,H||K(this,m,k,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[k]=m>>>24,this[k+1]=m>>>16,this[k+2]=m>>>8,this[k+3]=255&m,k+4},l.prototype.writeBigInt64LE=Ve((function(m,k=0){return q(this,m,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Ve((function(m,k=0){return rt(this,m,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(m,k,H){return W(this,m,k,!0,H)},l.prototype.writeFloatBE=function(m,k,H){return W(this,m,k,!1,H)},l.prototype.writeDoubleLE=function(m,k,H){return h(this,m,k,!0,H)},l.prototype.writeDoubleBE=function(m,k,H){return h(this,m,k,!1,H)},l.prototype.copy=function(m,k,H,Q){if(!l.isBuffer(m))throw new TypeError("argument should be a Buffer");if(H||(H=0),Q||Q===0||(Q=this.length),k>=m.length&&(k=m.length),k||(k=0),Q>0&&Q<H&&(Q=H),Q===H||m.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),m.length-k<Q-H&&(Q=m.length-k+H);const yt=Q-H;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,H,Q):Uint8Array.prototype.set.call(m,this.subarray(H,Q),k),yt},l.prototype.fill=function(m,k,H,Q){if(typeof m=="string"){if(typeof k=="string"?(Q=k,k=0,H=this.length):typeof H=="string"&&(Q=H,H=this.length),Q!==void 0&&typeof Q!="string")throw new TypeError("encoding must be a string");if(typeof Q=="string"&&!l.isEncoding(Q))throw new TypeError("Unknown encoding: "+Q);if(m.length===1){const _t=m.charCodeAt(0);(Q==="utf8"&&_t<128||Q==="latin1")&&(m=_t)}}else typeof m=="number"?m&=255:typeof m=="boolean"&&(m=Number(m));if(k<0||this.length<k||this.length<H)throw new RangeError("Out of range index");if(H<=k)return this;let yt;if(k>>>=0,H=H===void 0?this.length:H>>>0,m||(m=0),typeof m=="number")for(yt=k;yt<H;++yt)this[yt]=m;else{const _t=l.isBuffer(m)?m:l.from(m,Q),Lt=_t.length;if(Lt===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(yt=0;yt<H-k;++yt)this[yt+k]=_t[yt%Lt]}return this};const R={};function Y(m,k,H){R[m]=class extends H{constructor(){super(),Object.defineProperty(this,"message",{value:k.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(Q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Q,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}function $(m){let k="",H=m.length;const Q=m[0]==="-"?1:0;for(;H>=Q+4;H-=3)k=`_${m.slice(H-3,H)}${k}`;return`${m.slice(0,H)}${k}`}function pt(m,k,H,Q,yt,_t){if(m>H||m<k){const Lt=typeof k=="bigint"?"n":"";let zt;throw zt=k===0||k===BigInt(0)?`>= 0${Lt} and < 2${Lt} ** ${8*(_t+1)}${Lt}`:`>= -(2${Lt} ** ${8*(_t+1)-1}${Lt}) and < 2 ** ${8*(_t+1)-1}${Lt}`,new R.ERR_OUT_OF_RANGE("value",zt,m)}(function(Lt,zt,ee){It(zt,"offset"),Lt[zt]!==void 0&&Lt[zt+ee]!==void 0||Vt(zt,Lt.length-(ee+1))})(Q,yt,_t)}function It(m,k){if(typeof m!="number")throw new R.ERR_INVALID_ARG_TYPE(k,"number",m)}function Vt(m,k,H){throw Math.floor(m)!==m?(It(m,H),new R.ERR_OUT_OF_RANGE("offset","an integer",m)):k<0?new R.ERR_BUFFER_OUT_OF_BOUNDS:new R.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${k}`,m)}Y("ERR_BUFFER_OUT_OF_BOUNDS",(function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Y("ERR_INVALID_ARG_TYPE",(function(m,k){return`The "${m}" argument must be of type number. Received type ${typeof k}`}),TypeError),Y("ERR_OUT_OF_RANGE",(function(m,k,H){let Q=`The value of "${m}" is out of range.`,yt=H;return Number.isInteger(H)&&Math.abs(H)>2**32?yt=$(String(H)):typeof H=="bigint"&&(yt=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(yt=$(yt)),yt+="n"),Q+=` It must be ${k}. Received ${yt}`,Q}),RangeError);const Zt=/[^+/0-9A-Za-z-_]/g;function le(m,k){let H;k=k||1/0;const Q=m.length;let yt=null;const _t=[];for(let Lt=0;Lt<Q;++Lt){if(H=m.charCodeAt(Lt),H>55295&&H<57344){if(!yt){if(H>56319){(k-=3)>-1&&_t.push(239,191,189);continue}if(Lt+1===Q){(k-=3)>-1&&_t.push(239,191,189);continue}yt=H;continue}if(H<56320){(k-=3)>-1&&_t.push(239,191,189),yt=H;continue}H=65536+(yt-55296<<10|H-56320)}else yt&&(k-=3)>-1&&_t.push(239,191,189);if(yt=null,H<128){if((k-=1)<0)break;_t.push(H)}else if(H<2048){if((k-=2)<0)break;_t.push(H>>6|192,63&H|128)}else if(H<65536){if((k-=3)<0)break;_t.push(H>>12|224,H>>6&63|128,63&H|128)}else{if(!(H<1114112))throw new Error("Invalid code point");if((k-=4)<0)break;_t.push(H>>18|240,H>>12&63|128,H>>6&63|128,63&H|128)}}return _t}function we(m){return e.toByteArray((function(k){if((k=(k=k.split("=")[0]).trim().replace(Zt,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k})(m))}function ge(m,k,H,Q){let yt;for(yt=0;yt<Q&&!(yt+H>=k.length||yt>=m.length);++yt)k[yt+H]=m[yt];return yt}function Se(m,k){return m instanceof k||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===k.name}function Ee(m){return m!=m}const _e=(function(){const m="0123456789abcdef",k=new Array(256);for(let H=0;H<16;++H){const Q=16*H;for(let yt=0;yt<16;++yt)k[Q+yt]=m[H]+m[yt]}return k})();function Ve(m){return typeof BigInt>"u"?Ie:m}function Ie(){throw new Error("BigInt not supported")}},527:function(t,n,r){var e=r(188),u=r(539),a=r(682);for(var f in e)e[f]=a(g(f));function g(l){return e[l]}e._api=u,t.exports=e},539:function(t){t.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(t){t.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(t,n,r){var e=r(539),u={};function a(l){try{return g(l),!0}catch{return!1}}function f(l){try{return g(l)}catch{return!1}}function g(l){return new Function(l)()}u._api=e,t.exports=function l(E){if(E==="class"&&(E="classes"),u._api[E].dependencies){for(var T=0;T<u._api[E].dependencies.length;T++)if(l(u._api[E].dependencies[T])===!1)return!1}return u._api[E].passes?a(u._api[E].passes):u._api[E].fails?!a(u._api[E].fails):u._api[E].is?f(u._api[E].is):u._api[E].not?!f(u._api[E].not):void 0}},251:function(t,n){n.read=function(r,e,u,a,f){var g,l,E=8*f-a-1,T=(1<<E)-1,L=T>>1,N=-7,x=u?f-1:0,B=u?-1:1,D=r[e+x];for(x+=B,g=D&(1<<-N)-1,D>>=-N,N+=E;N>0;g=256*g+r[e+x],x+=B,N-=8);for(l=g&(1<<-N)-1,g>>=-N,N+=a;N>0;l=256*l+r[e+x],x+=B,N-=8);if(g===0)g=1-L;else{if(g===T)return l?NaN:1/0*(D?-1:1);l+=Math.pow(2,a),g-=L}return(D?-1:1)*l*Math.pow(2,g-a)},n.write=function(r,e,u,a,f,g){var l,E,T,L=8*g-f-1,N=(1<<L)-1,x=N>>1,B=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=a?0:g-1,j=a?1:-1,z=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(E=isNaN(e)?1:0,l=N):(l=Math.floor(Math.log(e)/Math.LN2),e*(T=Math.pow(2,-l))<1&&(l--,T*=2),(e+=l+x>=1?B/T:B*Math.pow(2,1-x))*T>=2&&(l++,T/=2),l+x>=N?(E=0,l=N):l+x>=1?(E=(e*T-1)*Math.pow(2,f),l+=x):(E=e*Math.pow(2,x-1)*Math.pow(2,f),l=0));f>=8;r[u+D]=255&E,D+=j,E/=256,f-=8);for(l=l<<f|E,L+=f;L>0;r[u+D]=255&l,D+=j,l/=256,L-=8);r[u+D-j]|=128*z}},943:function(t){function n(r){this.message=r}n.prototype=new Error,n.prototype.name="InvalidCharacterError",t.exports=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(r){var e=String(r).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var u,a,f=0,g=0,l="";a=e.charAt(g++);~a&&(u=f%4?64*u+a:a,f++%4)?l+=String.fromCharCode(255&u>>(-2*f&6)):0)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a);return l}},863:function(t,n,r){var e=r(943);t.exports=function(u){var a=u.replace(/-/g,"+").replace(/_/g,"/");switch(a.length%4){case 0:break;case 2:a+="==";break;case 3:a+="=";break;default:throw"Illegal base64url string!"}try{return(function(f){return decodeURIComponent(e(f).replace(/(.)/g,(function(g,l){var E=l.charCodeAt(0).toString(16).toUpperCase();return E.length<2&&(E="0"+E),"%"+E})))})(a)}catch{return e(a)}}},127:function(t,n,r){var e=r(863);function u(a){this.message=a}u.prototype=new Error,u.prototype.name="InvalidTokenError",t.exports=function(a,f){if(typeof a!="string")throw new u("Invalid token specified");var g=(f=f||{}).header===!0?0:1;try{return JSON.parse(e(a.split(".")[g]))}catch(l){throw new u("Invalid token specified: "+l.message)}},t.exports.InvalidTokenError=u},471:function(t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(e,u){var a=u||0,f=n;return[f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],"-",f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]],f[e[a++]]].join("")}},814:function(t){var n=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var e=new Array(16);t.exports=function(){for(var u,a=0;a<16;a++)3&a||(u=4294967296*Math.random()),e[a]=u>>>((3&a)<<3)&255;return e}}},550:function(t,n,r){var e=r(814),u=r(471);t.exports=function(a,f,g){var l=f&&g||0;typeof a=="string"&&(f=a==="binary"?new Array(16):null,a=null);var E=(a=a||{}).random||(a.rng||e)();if(E[6]=15&E[6]|64,E[8]=63&E[8]|128,f)for(var T=0;T<16;++T)f[l+T]=E[T];return f||u(E)}},723:function(t){t.exports={version:"1.1.92",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(t,n,r){var e=r(287).hp;t.exports={toArray:function(u,a){if(!u||u.length!==36)return u;for(var f="",g=a?"0":"1",l=0;l<36;l+=1)f+=l>=26&&l<30?g:u[l];var E=(function(N){for(var x=255,B=255,D=0,j=N.length;j;){var z=j>20?20:j;j-=z;do B+=x+=N[D++];while(--z);x=(255&x)+(x>>8),B=(255&B)+(B>>8)}return((B=(255&B)+(B>>8))<<8|(x=(255&x)+(x>>8))).toString(16)})(e.from(f));if(E){var T="";if(E.length===4)T+=E;else if(E.length<4){for(var L=0;L<4-E.length;L+=1)T+=g;T+=E}else T+=E.slice(-4)}return f.substring(0,26)+T+f.substring(26+T.length)}}},108:function(t){function n(){this.listeners={}}n.prototype.addEventListener=function(r,e){r in this.listeners||(this.listeners[r]=[]),this.listeners[r].push(e)},n.prototype.removeEventListener=function(r,e){if(r in this.listeners){for(var u=this.listeners[r],a=0,f=u.length;a<f;a++)if(u[a]===e)return void u.splice(a,1)}},n.prototype.dispatchEvent=function(r){if(!(r.type in this.listeners))return!0;for(var e=this.listeners[r.type].slice(),u=0,a=e.length;u<a;u++)e[u].call(this,r);return!r.defaultPrevented},t.exports=n},1:function(t){var n=null,r=null,e=0;function u(a,f){return encodeURIComponent(a)+"="+encodeURIComponent(f)}t.exports={init:function(a,f){n=a.errorServerUrl+"/reportSdkMsg",r=f.appId,e=typeof f.logMessageRate=="number"?f.logMessageRate:100},send:function(a){if(n&&!(100*Math.random()>e)){var f=n;f+="?"+u("appId",r),f+="&"+u("msg",JSON.stringify(a));var g=new Image;g.onerror=function(){},g.src=f}}}},611:function(t){var n=(function(){function r(u,a){this.method=u,this.url=a,this.headers={},this.data=null,this.timeout=1e4}r.prototype.set=function(u,a){if(typeof u=="object")for(var f in u)u.hasOwnProperty(f)&&(this.headers[f]=u[f]);else this.headers[u]=a;return this},r.prototype.send=function(u){return this.data=u,this},r.prototype.timeout=function(u){return this.timeout=u,this},r.prototype.end=function(u){var a=this,f={method:this.method,headers:this.headers};function g(N,x){return{ok:!1,status:x?x.status:400,response:N instanceof Error?N.message:N}}if(this.data&&(f.body=JSON.stringify(this.data)),typeof fetch=="function"){var l,E=fetch(this.url,f).then((function(N){if(!N.ok)throw{response:N,message:N.statusText||"HTTP error "+N.status};return(function(x){var B=x.headers.get("content-type");return B&&B.includes("application/json")?x.json().then((function(D){return{ok:x.ok,status:x.status,body:D}})):x.text().then((function(D){return{ok:x.ok,status:x.status,body:D}}))})(N)}));E.catch((function(){}));var T=new Promise((function(N,x){l=setTimeout((function(){x(new Error("Request timeout"))}),a.timeout)}));Promise.race([E,T]).then((function(N){clearTimeout(l),N.ok?u(null,N):u(g(N.response,N))})).catch((function(N){clearTimeout(l),u(g(N.message,N&&N.response))}))}else{var L=new XMLHttpRequest;L.open(this.method,this.url,!0),Object.keys(this.headers).forEach((function(N){L.setRequestHeader(N,a.headers[N])})),L.timeout=this.timeout,L.onload=function(){var N={ok:L.status>=200&&L.status<300,status:L.status,body:L.responseText};try{N.body=JSON.parse(L.responseText)}catch{}N.ok?u(null,N):u(g("HTTP error "+L.status,N))},L.onerror=function(){u(g("Error",{status:400}))},L.ontimeout=function(){u(g("Timeout",{status:408}))},L.send(this.data?JSON.stringify(this.data):null)}};var e={};return["get","post","put","delete"].forEach((function(u){e[u]=function(a){return new r(u,a)}})),e})();t.exports=n},776:function(t,n,r){var e,u,a=r(611),f=r(723),g=r(884),l=f.serverUrl;function E(){e=e||{},u!==void 0&&(e[f.headers.sessionId]=u);var T={Accept:"application/json","Content-Type":"application/json"};return Object.keys(e).forEach((function(L){e[L]!==void 0&&(T[L]=e[L])})),T}t.exports={setSessionId:function(T){u=T},makeRequest:function(T,L){var N=T.path,x=T.data,B=T.method;(function D(j){a[B](j+"/"+N).set(E()).send(x).end((function(z,J){if(z){if(j!==f.serverUrl)return void D(f.serverUrl);g.isFunction(L)&&L({ok:!1,status:z.status,response:z.response})}else g.isFunction(L)&&L(null,{ok:J.ok,status:J.status,response:J.body})}))})(l)},methods:{get:"get",post:"post",put:"put",delete:"delete"},getRequestHeaders:E,init:function(T,L){(function(N){e=N})(T),L.eventsReportUrl&&typeof L.eventsReportUrl=="string"&&(l=g.normalizePath(L.eventsReportUrl))}}},13:function(t,n,r){var e,u=r(723),a="getItem";function f(l,E){l&&l.contentWindow.postMessage(E,"*")}function g(l,E,T){l.removeEventListener?l.removeEventListener(E,T,!1):l.attachEvent&&l.detachEvent("on"+E,T)}t.exports={init:function(l){var E,T=(E=!1,function(){E||(E=!0,l())});(e=document.createElement("iframe")).id="storageIframe",e.width=e.height=e.frameBorder=0,e.style.display="none",e.setAttribute("src",u.storageIframeUrl),e.onload=T,e.onerror=T,document.body.appendChild(e),window.setTimeout(T,1e4)},getKey:function(l,E){var T,L,N,x,B,D;e||E(),T=window,L="message",x=function j(z){if(z.data&&typeof z.data=="string")try{var J=JSON.parse(z.data);if(J.command===a){var Z=J.response;g(window,"message",j),E(Z)}}catch{g(window,"message",j),E()}},B=E,D=!1,window.setTimeout((function(){D||(D=!0,B())}),5e3),N=function(j){D||(D=!0,x(j))},T.addEventListener?T.addEventListener(L,N,!1):T.attachEvent&&T.attachEvent("on"+L,N),f(e,JSON.stringify({command:a,key:l}))},setKey:function(l,E){f(e,JSON.stringify({command:"setItem",key:l,value:E}))},cleanup:function(){e&&e.parentElement&&e.parentElement.removeChild&&(e.parentElement.removeChild(e),e=null)}}},528:function(t){var n,r={setItem:function(l,E){this[l]=E},getItem:function(l){return this[l]},removeItem:function(l){delete this[l]}};function e(){try{return localStorage.setItem("di",1),localStorage.removeItem("di"),!0}catch{return!1}}function u(){return n===void 0&&(n=e()),n?localStorage:r}function a(l,E){u().setItem(l,E)}function f(l){return u().getItem(l)}function g(l){return u().removeItem(l)}t.exports={reset:function(){throw new Error("Cannot call reset!")},setItem:a,getItem:f,getBackwardCompatabilityItem:function(l,E){var T=f(l);return!T&&E&&(T=f(E))&&(a(l,T),g(E)),T},removeItem:g,hasAccessToLocalStorage:e,getSessionItem:function(l){try{return sessionStorage.getItem(l)}catch{return r.getItem(l)}},setSessionItem:function(l,E){try{return sessionStorage.setItem(l,E)}catch{return r.setItem(l,E)}}}},884:function(t){var n="nsure-app-cid";function r(e){var u=e;return u&&u.charAt(u.length-1)==="/"&&(u=u.slice(0,-1)),u&&!/^https?:\/\//i.test(u)&&(u="https://"+u),u}t.exports={isFunction:function(e){return typeof e=="function"},loadScript:function(e,u){var a=!1,f=document.createElement("script");function g(){a||(a=!0,u())}f.onload=g,f.onreadystatechange=function(){a||f.readyState!=="complete"||g()},f.onerror=function(){a||(a=!0,u("Error loading script"))},f.src=e,document.body.appendChild(f)},loadImage:function(e){var u=document.createElement("img");u.src=e,u.style.height=0,u.style.width=0,u.style.display="none",u.style.visibility="hidden",document.body.appendChild(u)},randomInt:function(e,u){var a,f=u-e+1;return Math.floor(((a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&window.msCrypto.getRandomValues.bind(window.msCrypto))?a(new Uint32Array(1))[0]/Math.pow(2,32):Math.random())*f+e)},isValidDate:function(e){return e instanceof Date&&!isNaN(e)},getAppContextId:function(){try{var e=sessionStorage.getItem(n);e?sessionStorage.removeItem(n):e=String(Math.floor(1e6*Math.random())),window.addEventListener("beforeunload",(u=e,function(){try{sessionStorage.setItem(n,u)}catch{}}))}catch{e=0}var u;return e},isBrowser:function(){return typeof document<"u"&&typeof navigator<"u"&&typeof document.createElement=="function"},normalizePath:r,getConfigBaseUrls:function(e,u){var a=null;if(typeof e.configBaseUrl=="string"&&e.configBaseUrl.length>0){var f=u.coreConfigFileUrl.indexOf("/core-config/"),g=f>0?u.coreConfigFileUrl.substring(f):"/core-config/config.json";a=r(e.configBaseUrl)+g}return{mainConfigBaseUrl:a||u.coreConfigFileUrl,altConfigBaseUrl:a===u.coreConfigFileUrl?null:u.coreConfigFileUrl}}}},543:function(t){var n="f8ad0f9b-",r="ns_install_reported",e=n+r,u=n+"ns_reportedFpInSession";t.exports={webType:"Web",oldInstallEventReportedKeyName:r,installEventReportedKeyName:e,fingerprintReportedInSessionKey:u,eventTriggers:{fingerPrint:"fingerprint"}}},38:function(t){t.exports={C:"c",KD:"kd",S:"s",MM:"mm",I:"i",PC:"pc",PL:"pl",DY:"dy"}},298:function(t){t.exports={activityEvent:"activity",inactivityEvent:"inactivity"}},102:function(t,n,r){var e=r(723),u=r(776),a=r(387),f=r(733),g=r(472),l=r(376),E=r(120),T=r(142),L=r(636),N=r(496),x=r(1),B=r(336);t.exports={init:function(D){var j=D.deviceId,z=D.linkedDevices,J={};J[e.headers.appId]=D.appId,J[e.headers.partnerId]=D.partnerId,J[e.headers.sdkClientVersion]=e.version,J[e.headers.sdkApiVersion]=e.sdkApiVersion,J[e.headers.sdkClientType]=e.sdkClientType,J[e.headers.appContextId]=D.appContextId,u.init(J,D),a.addMetadataProps(D),x.init(e,D),a.reportInitEvent(j),N.init(D),B.init(D),f.installSdk(D,(function(Z){Z||l.manageFingerprint(j,!0)})),f.reportLinkDevices(j,z),g.manageSessionId({deviceId:j,initModuleConfig:D}),E.manageDomEvents(j),T.manageKeepAlive({deviceId:j}),L.reportVersionUpgrade({deviceId:j,initModuleVersion:D.clientVersion,coreModuleVersion:e.version})}}},143:function(t,n,r){var e=r(108),u=r(23).oneMinute,a=r(298);function f(){e.call(this),this.activityEvents={mousedown:void 0,mouseup:void 0,click:void 0,mousemove:void 0,keydown:void 0,keyup:void 0}}function g(l){e.call(this),this.activityServiceId=l}f.prototype=Object.create(e.prototype),f.prototype.constructor=f,f.prototype.observe=function(){var l=this;Object.keys(this.activityEvents).forEach((function(E){document.addEventListener(E,l.activityEvents[E]=function(){l.activityHandler()})}))},f.prototype.activityHandler=function(){this.stopActivityListeners(),this.dispatchEvent(new Event(a.activityEvent))},f.prototype.stopActivityListeners=function(){var l=this;Object.keys(this.activityEvents).forEach((function(E){document.removeEventListener(E,l.activityEvents[E])}))},g.prototype=Object.create(e.prototype),g.prototype.constructor=g,g.prototype.trackInactivity=function(l){var E,T=new f,L=this,N=!1;function x(){N||(clearTimeout(E),setTimeout((function(){L.trackInactivity(l)}),u))}T.addEventListener(a.activityEvent,x),T.observe(),E=setTimeout((function(){N=!0,T.stopActivityListeners(),T.removeEventListener(a.activityEvent,x),L.dispatchEvent(new Event(a.inactivityEvent))}),l)},t.exports=g},496:function(t,n,r){var e,u=r(120),a=r(776),f=r(376),g=r(23),l=r(723),E=r(38),T=r(543),L=r(336),N=r(884),x=[],B=[],D=null,j=6e4,z=5e3,J=null,Z=N.isBrowser()?Math.floor(window.performance&&(window.performance.timeOrigin||window.performance.navigationStart)||Date.now()):Date.now(),nt=0,ht=null,ft=Date.now(),At=0,bt=null,at=!1,lt=!1,mt=!1,wt=!1,P=[];function d(){B=x,x=[],K(),S()}function S(){D&&clearTimeout(D),D=setTimeout(d,j)}function U(){var $={device:{id:e,type:T.webType},metadata:{clientRequestId:g.getClientRequestId()}};return J&&J.fingerprintHash&&($.device.fingerprint=J.fingerprintHash),$}function K($){if(B.length)if(J!==null){var pt=Object.assign(U(),{events:B});a.makeRequest({path:"bulk",data:pt,method:a.methods.post},$)}else f.getFingerprint((function(It){J=It,K($)}))}function q($,pt){return x.push($),pt?new Blob([JSON.stringify(x)]).size:0}function rt(){if(mt){var $=Date.now();$-ft>z&&(q({i:{dr:$-ft,ac:$-ft-At},metadata:{type:E.I,timestamp:$}},!1),At=0)}}function ct(){S(),B=x,x=[],K()}function W($){rt(),(function(){if(wt&&Math.random()<.25){for(var pt=[],It=0;It<3;It++)pt.push(String.fromCharCode(Math.floor(26*Math.random())+97));var Vt=E.DY+pt[0],Zt={metadata:{type:Vt,timestamp:Date.now()}};Zt[Vt]={sx:Math.floor(1e3*Math.random())+1,sy:Math.floor(1e3*Math.random())+1},Zt[Vt][pt.join("")]=Math.floor(1e3*Math.random())+1,q(Zt,!1)}})(),(function(pt){L.triggerEventOnEvent(pt)})($),q(Object.assign({metadata:{type:$.eventType,timestamp:Date.now()}},$.payload),!0)>32768&&ct(),$.eventType!==E.C&&$.eventType!==E.S&&$.eventType!==E.KD&&$.eventType!==E.MM||(ft=Date.now())}function h(){at&&ct()}function R($){return window.addEventListener($,h,!0),function(){window.removeEventListener($,h,!0)}}function Y($,pt){return!$||$.indexOf(pt)>-1}t.exports={init:function($){if(!at){var pt=$.bulkEvents&&$.bulkEvents.mask;if(!Array.isArray(pt)||pt.length!==0){var It=$.bulkEvents&&typeof $.bulkEvents.pct=="number"?$.bulkEvents.pct:100;if(!(It===0||Math.random()>It/100)){var Vt=$.bulkEvents&&$.bulkEvents.appMaskInclude;if(!Array.isArray(Vt)||Vt.indexOf($.appId)!==-1){var Zt=$.bulkEvents&&$.bulkEvents.appMaskExclude;if(!Array.isArray(Zt)||Zt.indexOf($.appId)===-1){var le=Y(pt,E.C),we=Y(pt,E.KD),ge=Y(pt,E.S),Se=Y(pt,E.PC),Ee=Y(pt,E.MM),_e=Y(pt,E.PL),Ve=Y(pt,E.I),Ie=Y(pt,E.DY),m=Ve||_e;e=$.deviceId,S(),le&&P.push(u.setClickListener(W)),we&&P.push(u.setKeyDownListener(W)),ge&&P.push(u.setScrollListener(W)),Se&&P.push(u.setPageChangeListener(W)),Ee&&P.push(u.setMouseMoveListener(W)),lt=_e,mt=Ve,wt=Ie,m&&P.push((function(){function k(){if(document.hidden)ht=Date.now(),bt=ht;else if(ht!==null){var H=Date.now();nt+=H-ht,ht=null,At+=H-bt}}return document.addEventListener("visibilitychange",k),function(){document.removeEventListener("visibilitychange",k)}})()),P.push((function(){function k(){if(rt(),(function(){if(lt){var Lt=Date.now(),zt=Lt-Z;q({metadata:{type:E.PL,timestamp:Lt},pl:{dr:zt,ac:zt-nt}},!1)}})(),navigator.sendBeacon&&window.URLSearchParams){if(x.length>0)try{var H=a.getRequestHeaders(),Q=Object.assign(U(),{events:x}),yt=new URLSearchParams;yt.append("data",JSON.stringify(Q)),yt.append("headers",JSON.stringify(H));var _t=new Blob([yt.toString()],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(l.serverUrl+"/bulk",_t)}catch{}}else B=x,K()}return window.addEventListener("beforeunload",k),function(){window.removeEventListener("beforeunload",k)}})()),at=!0,x=[],le||P.push(R("click")),P.push(R("paste"))}}}}}},cleanup:function(){at&&(D&&clearTimeout(D),P.forEach((function($){$()})),P=[],at=!1)},trigger:h}},120:function(t,n,r){var e=r(709),u=r(38),a=r(23);function f(){return"ontouchstart"in window}function g(l){var E={};if(l.nodeName){E.name=l.nodeName,l.className&&(E.className=String(l.className)),l.id&&(E.id=l.id);var T=l.getAttribute&&l.getAttribute("type");T&&(E.type=T),l.placeholder&&(E.placeholder=l.placeholder)}return E}t.exports={manageDomEvents:function(l){e.managePasteEvents(l)},getDomProperties:g,setClickListener:function(l){function E(L){var N={eventType:u.C,payload:{c:{d:g(L.target)}}},x=L.target.textContent||L.target.innerText||"";if(x){var B=a.transformDomNodeContent(x);N.payload[u.C].x={p:B.prefix,s:B.suffix,l:B.length}}l(N)}var T=f()?"touchend":"click";return window.addEventListener(T,E,!0),function(){window.removeEventListener(T,E,!0)}},setKeyDownListener:function(l){function E(T){l({eventType:u.KD,payload:{kd:{d:g(T.target),k:T.key||T.code||"na"}}})}return window.addEventListener("keydown",E,!0),function(){window.removeEventListener("keydown",E,!0)}},setScrollListener:function(l){var E=null,T=0,L=0,N={x:0,y:0},x=0,B=0,D=0,j=0,z=0,J=0;function Z(ht){l({eventType:u.S,payload:{s:{d:g(ht.target),di:{x:N.x,y:N.y},t:B-x,sx:D,sy:j,ex:z,ey:J}}}),T=0,L=0,N.x=0,N.y=0,E=null,x=0,B=0}function nt(ht){var ft=ht.target.scrollingElement||ht.target;if(ft&&(ft===document&&(ft=document.documentElement),ft instanceof Element)){var At=ft.getBoundingClientRect(),bt=-At.left+ft.scrollLeft,at=-At.top+ft.scrollTop;E?(clearTimeout(E),B=Date.now(),z=bt,J=at):(x=Date.now(),B=x,z=D=bt,J=j=at),(N.x||N.y||T||L)&&(N.x+=Math.abs(bt-T),N.y+=Math.abs(at-L)),T=bt,L=at,E=setTimeout(Z.bind(null,ht),200)}}return window.addEventListener("scroll",nt,!0),function(){E&&clearTimeout(E),window.removeEventListener("scroll",nt,!0)}},setPageChangeListener:function(l){var E,T,L,N=null,x=null,B=0;function D(Z){var nt;if(window.URL){var ht=new URL(Z,"http://example.com");nt=ht.pathname+ht.hash}else nt=Z.indexOf("?")>-1?Z.split("?")[0]:Z.indexOf("#")>-1?Z.split("#")[0]:Z;if(nt!==N){var ft=Date.now()-L;l({eventType:u.PC,payload:{pc:{f:N,t:nt,dr:ft,ac:ft-B}}}),N=nt,L=Date.now()}}function j(){if(document.hidden)x=Date.now();else if(x!==null){var Z=Date.now();B+=Z-x,x=null}}function z(Z){D(Z.newURL)}function J(){D(window.location.href)}return window.history?(N=window.location.pathname||"/",E=history.pushState,T=history.replaceState,L=Date.now(),window.addEventListener("hashchange",z),window.addEventListener("popstate",J),history.pushState=function(Z,nt,ht){return D(ht),E.apply(history,arguments)},history.replaceState=function(Z,nt,ht){return D(ht),T.apply(history,arguments)},document.addEventListener("visibilitychange",j),function(){history.pushState=E,history.replaceState=T,window.removeEventListener("hashchange",z),window.removeEventListener("popstate",J),document.removeEventListener("visibilitychange",j),N=null,B=0}):function(){}},setMouseMoveListener:function(l){var E=[],T=!1,L=null,N=0,x={x:0,y:0};function B(){E.length!==0&&(l({eventType:u.MM,payload:{mm:{s:E.slice(),l:T,di:x}}}),E=[])}function D(z){var J,Z;z.touches&&z.touches.length>0?(J=z.touches[0].clientX,Z=z.touches[0].clientY):(J=z.clientX,Z=z.clientY),J!==void 0&&Z!==void 0&&(E.length>0&&(x.x+=Math.abs(J-E[E.length-1][0]),x.y+=Math.abs(Z-E[E.length-1][1])),E.push([J,Z]),E.length>1e3&&(T=!0,(N+=2)>=1e3&&(N=2),E.splice(N,1)),L&&clearTimeout(L),L=setTimeout(B,200))}var j=f()?"touchmove":"mousemove";return window.addEventListener(j,D,!0),function(){L&&clearTimeout(L),window.removeEventListener(j,D,!0)}}}},387:function(t,n,r){var e=r(776),u=r(23),a=r(287).hp,f=r(527),g=r(543),l=["storeInfo"],E={};function T(){var x={};for(var B in f)if(f.hasOwnProperty(B)){var D=B.charAt(0);D===D.toLowerCase()&&D!==D.toUpperCase()&&(x[B]=f[B])}return x}function L(x,B){var D=x.eventType,j=x.deviceId,z=x.fingerprintProVisitorId,J=x.fingerprintProRequestId,Z=x.fingerprintHash,nt=(function(mt){try{return a.from(JSON.stringify(mt)).toString("base64")}catch{return}})(x.fingerprintComponents),ht=x.deviceExtendedInfo,ft=x.payload,At={metadata:{type:D},device:{id:j,fingerprint:Z,rawFingerprint:nt,type:g.webType}};z&&(At.device.visitorId=z),J&&(At.device.fpRequestId=J);var bt=Object.assign({},u.getClientMetadata(u.metadataType.payload),E);for(var at in bt)bt.hasOwnProperty(at)&&(At.metadata[at]=bt[at]);for(var lt in ft)ft.hasOwnProperty(lt)&&(At[lt]=ft[lt]);ht&&(At.device.extendedInfo=ht),e.makeRequest({path:"events",data:At,method:e.methods.post},B)}function N(x){var B=x.type,D=x.deviceId,j=x.fingerprintProVisitorId,z=x.fingerprintProRequestId,J=x.fingerprintHash,Z=x.fingerprintComponents,nt=x.deviceExtendedInfo,ht=x.callback,ft={eventType:B,deviceId:D,fingerprintHash:J,fingerprintComponents:Z,deviceExtendedInfo:nt};j&&(ft.fingerprintProVisitorId=j),z&&(ft.fingerprintProRequestId=z),L(ft,ht)}t.exports={addMetadataProps:function(x){for(var B=0;B<l.length;B+=1){var D=l[B];x.hasOwnProperty(D)&&(E[D]=x[D])}},reportEvent:L,reportAppInstallEvent:function(x,B,D,j,z,J){N({type:"appInstall",deviceId:x,fingerprintProVisitorId:B,fingerprintProRequestId:D,fingerprintHash:j,fingerprintComponents:z,deviceExtendedInfo:T(),callback:J})},reportFingerprintEvent:function(x,B,D,j){N({type:"fingerprint",deviceId:x,fingerprintHash:B,fingerprintComponents:D,fingerprintProRequestId:j})},reportInitEvent:function(x){N({type:"appInit",deviceId:x})}}},625:function(t,n,r){var e=r(269),u=r(1);t.exports={getFingerprint:function(a,f){if(e&&a)try{e.load({apiKey:"KxV6sLn9nXBGBzPtzicI",endpoint:["https://metrics.nsureapi.com",e.defaultEndpoint],modules:[e.makeIdentificationModule(),e.makeBotdModule()],scriptUrlPattern:["https://metrics.nsureapi.com/web/v<version>/<apiKey>/loader_v<loaderVersion>.js",e.defaultScriptUrlPattern],remoteControlDetection:!0}).then((function(l){return l.get()})).then((function(l){typeof f=="function"&&f(l?{fingerprintVisitorId:l.visitorId,fingerprintRequestId:l.requestId}:{})})).catch((function(){typeof f=="function"&&f({})}))}catch(l){var g={msg:"FingerprintJS.load pro error",err:JSON.stringify(l)};u.send(g),typeof f=="function"&&f({})}else f({})}}},376:function(t,n,r){var e=r(568),u=r(528),a=r(387),f=r(1),g="ns_fp_hash";function l(T,L,N,x){a.reportFingerprintEvent(N,T,L,x)}function E(T){try{e.load({monitoring:!1}).then((function(N){N.get().then((function(x){T(x?{fingerprintHash:x.visitorId,fingerprintComponents:x.components}:{})})).catch((function(){typeof T=="function"&&T({})}))})).catch((function(){typeof T=="function"&&T({})}))}catch(N){var L={msg:"FingerprintJS.load error",err:JSON.stringify(N)};f.send(L),typeof T=="function"&&T({})}}t.exports={manageFingerprint:function(T,L,N){E((function(x){var B=x.fingerprintHash,D=x.fingerprintComponents;u.getItem(g)!==B&&(L&&l(B,D,T),u.setItem(g,B)),typeof N=="function"&&N({fingerprintHash:B,fingerprintComponents:D})}))},getFingerprint:E,reportFingerprintWithProInfo:function(T,L){E((function(N){l(N.fingerprintHash,N.fingerprintComponents,T,L)}))}}},733:function(t,n,r){var e=r(528),u=r(376),a=r(625),f=r(387),g=r(142),l=r(1),E=r(543),T="linkDevices";function L(x,B,D){u.getFingerprint((function(j){var z=j.fingerprintHash,J=j.fingerprintComponents;f.reportEvent({eventType:T,deviceId:x,fingerprintHash:z,fingerprintComponents:J,payload:{linkedDevices:[B,D]}})}))}function N(x,B){if(B)for(var D=0,j=B.length;D<j;D+=1){var z=B[D];if(z&&z.length>1){var J=z[0],Z=z[1];J&&Z&&J!==Z&&L(x,J,Z)}}}t.exports={installSdk:function(x,B){var D=x.deviceId,j=x.loadFingerprintJsPro,z=(x.supressInstallBackwardCompatibility||[]).indexOf(x.appId)===-1,J=(function(nt,ht){var ft=ht?e.getBackwardCompatabilityItem(E.installEventReportedKeyName,E.oldInstallEventReportedKeyName):e.getItem(E.installEventReportedKeyName);return ft?(ft==="true"&&(e.setItem(E.installEventReportedKeyName,nt),ft=nt),nt===ft?{isInstalled:!0,reportedDeviceId:nt}:{isInstalled:!1,reportedDeviceId:ft}):{isInstalled:!1,reportedDeviceId:null}})(D,z);function Z(nt,ht,ft){if(ft>3)B&&B(!1);else{var At=ht.fingerprintHash,bt=ht.fingerprintComponents,at=nt.fingerprintVisitorId,lt=nt.fingerprintRequestId;f.reportAppInstallEvent(D,at,lt,At,bt,(function(mt){if(mt){var wt={msg:"Failed sending appInstall",err:JSON.stringify(mt),deviceId:D,fingerprintHash:At,fingerprintRequestId:lt,numberOfRetry:ft};l.send(wt),Z(nt,ht,ft+1)}else e.setItem(E.installEventReportedKeyName,D),e.setItem("ns_irts",Date.now()),g.manageKeepAlive({deviceId:D,fingerprintInfo:ht,setStartTimestamp:!0}),B&&B(!0)}))}}J.isInstalled?B&&B(!1):(J.reportedDeviceId&&J.reportedDeviceId!==D&&N(D,[[D,J.reportedDeviceId]]),a.getFingerprint(j,(function(nt){u.manageFingerprint(D,!1,(function(ht){Z(nt,ht,1)}))})))},reportLinkDevices:N}},142:function(t,n,r){var e=r(528),u=r(884),a=r(387),f=r(376),g="ns_ka_ts",l="ns_ka_step_",E=[10,30,40,60];function T(B){return l+B}function L(){var B=parseInt(e.getItem(g),10);return u.isValidDate(new Date(B))?B:null}function N(B,D){var j=(function(){var z=L();if(!z)return null;for(var J,Z=Math.floor((new Date().getTime()-z)/1e3),nt=0;nt<E.length;nt+=1){var ht=E[nt],ft=nt<E.length-1?E[nt+1]:null;if(Z>=ht&&(!ft||Z<ft)&&(J=ht,!e.getItem(T(J))))return{stepToReport:ht,timeToWaitInSeconds:0};if(Z<ht)return{stepToReport:ht,timeToWaitInSeconds:ht-Z}}return null})();j&&(j.timeToWaitInSeconds===0?((function(z,J,Z){var nt=J.fingerprintHash,ht=J.fingerprintComponents;a.reportEvent({eventType:"keepAlive",deviceId:z,fingerprintHash:nt,fingerprintComponents:ht,payload:{keepAlive:{step:Z}}}),e.setItem(T(Z),!0)})(B,D,j.stepToReport),N(B,D)):j.timeToWaitInSeconds>0&&setTimeout((function(){N(B,D)}),1e3*j.timeToWaitInSeconds))}var x={manageKeepAlive:function(B){var D=B.deviceId,j=B.fingerprintInfo;B.setStartTimestamp&&!L()&&e.setItem(g,new Date().getTime()),j?N(D,j):f.getFingerprint((function(z){N(D,z)}))}};t.exports=x},709:function(t,n,r){var e=r(387),u=r(376),a=r(23);function f(E){var T,L=E?E.value||E.innerText:null;return{nodeContent:L,normalizedNodeContent:(T=L,a.removeWhitespaces(T))}}function g(E){var T=a.transformDomNodeContent(E),L=E||"";return T.onlyDigits=/^[0-9]+$/.test(L),T.containsWhitespace=/\s/.test(L),T.emailPattern=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(L),T}var l={managePasteEvents:function(E){document.addEventListener("paste",(function(T){var L=f(T.target);setTimeout((function(){(function(N){var x=N.deviceId,B=N.contentBeforePaste,D=B.nodeContent,j=B.normalizedNodeContent,z=N.domNode,J={paste:{domNode:{}}};if(z.nodeName){J.paste.domNode.name=z.nodeName,z.className&&(J.paste.domNode.className=z.className),z.id&&(J.paste.domNode.id=z.id);var Z=z.getAttribute&&z.getAttribute("type");Z&&(J.paste.domNode.type=Z),J.paste.domNode.content={};var nt=f(z),ht=nt.nodeContent,ft=nt.normalizedNodeContent;J.paste.domNode.content.beforePaste=g(D),J.paste.domNode.content.afterPaste=g(ht),J.paste.domNode.normalizedContent={},J.paste.domNode.normalizedContent.beforePaste=g(j),J.paste.domNode.normalizedContent.afterPaste=g(ft),z.placeholder&&(J.paste.domNode.placeholder=z.placeholder),J.paste.url=window.location.href}u.getFingerprint((function(At){var bt=At.fingerprintHash;e.reportEvent({eventType:"paste",deviceId:x,fingerprintHash:bt,payload:J})}))})({deviceId:E,contentBeforePaste:L,domNode:T.target})}),0)}))}};t.exports=l},472:function(t,n,r){var e=r(127),u=r(108),a=r(884),f=r(23),g=r(776),l=r(528),E=r(298).inactivityEvent,T=r(143),L=r(387),N=r(376),x="ns_sid";function B(){u.call(this),this.eventTypes={fetchComplete:"fetchComplete"}}function D(z){var J=z.deviceId,Z=z.initModuleConfig,nt=z.jwtSessionId,ht=z.callback,ft=1e4;try{ft=e(nt).inactivityTimeout}catch{ft=1e4}var At=new T(new Date().getTime());At.addEventListener(E,(function bt(){At.removeEventListener(E,bt),j({deviceId:J,initModuleConfig:Z,forceRenewSessionDueToInactivity:!0,callback:ht})})),At.trackInactivity(ft)}function j(z){var J,Z=z.deviceId,nt=z.initModuleConfig,ht=!!z.forceRenewSessionDueToInactivity,ft=z.callback,At=l.getItem(x);try{J=e(At),g.setSessionId(At)}catch{J=null}ht||!J||1e3*((J||{}).exp||0)<new Date().getTime()?(function(bt,at){var lt=bt.deviceId,mt=(bt.initModuleConfig||{}).storeInfo,wt=new B;wt.addEventListener(wt.eventTypes.fetchComplete,(function P(d){wt.removeEventListener(wt.eventTypes.fetchComplete,P),at(d.detail)})),wt.fetchSessionId(lt,mt)})({deviceId:Z,initModuleConfig:nt},(function(bt){At=bt,l.setItem(x,At),g.setSessionId(At),(function(at){try{var lt=at.deviceId,mt=e(at.jwtSessionId).ets;if(!mt)return;N.getFingerprint((function(wt){var P=wt.fingerprintHash,d=wt.fingerprintComponents;L.reportEvent({eventType:"ping",deviceId:lt,fingerprintHash:P,fingerprintComponents:d,payload:{ping:{ets:mt}}})}))}catch{}})({deviceId:Z,jwtSessionId:At}),D({deviceId:Z,initModuleConfig:nt,jwtSessionId:At,callback:ft}),a.isFunction(ft)&&ft(At)})):(D({deviceId:Z,initModuleConfig:nt,jwtSessionId:At,callback:ft}),a.isFunction(ft)&&ft(At))}B.prototype=Object.create(u.prototype),B.prototype.constructor=B,B.prototype.fetchSessionId=function(z,J){var Z=this,nt="session?"+f.getClientMetadata(f.metadataType.queryString)+"&deviceId="+z;J&&(J.id&&(nt+="&storeId="+J.id),J.type&&(nt+="&storeType="+J.type)),(function ht(){var ft;ft=function(At,bt){!At&&bt&&bt.ok?Z.dispatchEvent(new CustomEvent(Z.eventTypes.fetchComplete,{detail:bt.response})):setTimeout(ht,a.randomInt(4e4,6e4))},g.makeRequest({path:nt,method:g.methods.get},ft)})()},t.exports={manageSessionId:j,setRetrySessionTimeout:function(z){throw new Error("Cannot call setRetrySessionTimeout!")}}},336:function(t,n,r){var e=r(23),u=r(376),a=r(625),f=r(528),g=r(543).fingerprintReportedInSessionKey,l=r(543).eventTriggers,E={},T=null,L=!1,N=!1;function x(D){var j=D||{};Object.keys(j).forEach((function(z){z===l.fingerPrint&&N&&(f.getSessionItem(g)||(a.getFingerprint(L,(function(J){u.reportFingerprintWithProInfo(T,J.fingerprintRequestId)})),f.setSessionItem(g,!0)))}))}function B(D,j,z){for(var J=0;J<j.payload.length;J++){var Z=j.payload[J];Z&&Z.event&&Z.action&&e.isSubObject(Z.event,D.payload)&&(z[Z.action]=!0)}}t.exports={init:function(D){if(D.eventTrigger){try{var j=atob(D.eventTrigger),z=JSON.parse(j);if(!z||!(E=z[D.appId]))return}catch{return}T=D.deviceId,L=D.loadFingerprintJsPro,N=!0,(function(){if(N&&E.init&&Array.isArray(E.init)){for(var J={},Z=0;Z<E.init.length;Z++){var nt=E.init[Z];nt&&nt.url&&nt.action&&new RegExp(E.init[Z].url).test(window.location.href)&&(J[E.init[Z].action]=!0)}x(J)}})()}},triggerEventOnEvent:function(D){if(N){var j=E[D.eventType];if(Array.isArray(j)){for(var z={},J=0;J<j.length;J++){var Z=j[J];Z&&Z.url&&Z.payload&&new RegExp(Z.url).test(window.location.href)&&B(D,Z,z)}x(z)}}}}},636:function(t,n,r){var e=r(528),u=r(387),a=r(376),f="ns_c_ver",g="c";function l(T){e.setItem(f,JSON.stringify(T))}function E(T,L,N,x){var B=L.fingerprintHash,D=L.fingerprintComponents;u.reportEvent({eventType:"sdkVersionUpgrade",deviceId:T,fingerprintHash:B,fingerprintComponents:D,payload:{versionUpgrade:{version:N,prevVersion:x||""}}}),l(N)}t.exports={reportVersionUpgrade:function(T){var L=T.initModuleVersion,N=T.coreModuleVersion,x={};x.i=L,x[g]=N;var B=T.deviceId,D=T.fingerprintInfo,j=(function(){var z=e.getItem(f);if(z){try{var J=JSON.parse(z);if(typeof J=="object")return J}catch{}return{i:z}}return null})();j&&j.i?j.i!==L||j[g]&&j[g]!==N?(j[g]||(j[g]=N),D?E(B,D,x,j):a.getFingerprint((function(z){E(B,z,x,j)}))):j[g]||l(x):l(x)}}},23:function(t,n,r){var e=r(550),u={payload:"payload",queryString:"queryString"};function a(){return e()}function f(l,E){for(var T in l)if(l.hasOwnProperty(T)&&(!E.hasOwnProperty(T)||!g(l[T],E[T])))return!1;return!0}function g(l,E){if(l===E)return!0;if(typeof l!=typeof E)return!1;if(Array.isArray(l)&&Array.isArray(E)){if(l.length!==E.length)return!1;for(var T=0;T<l.length;T++)if(!g(l[T],E[T]))return!1;return!0}return typeof l=="object"&&l!==null&&typeof E=="object"&&E!==null&&f(l,E)}t.exports={metadataType:u,getClientMetadata:function(l){var E=new Date().getTime(),T=a();return l===u.queryString?"timestamp="+E+"&clientRequestId="+T:{timestamp:E,clientRequestId:T}},oneMinute:6e4,getClientRequestId:a,transformDomNodeContent:function(l){var E,T,L=l||"",N=L.length;return N<=1?(E="",T=""):N===2?(E=L.slice(0,1),T=""):N===3?(E=L.slice(0,1),T=L.slice(N-1)):N===4?(E=L.slice(0,2),T=L.slice(N-1)):N===5?(E=L.slice(0,2),T=L.slice(N-2)):N===6?(E=L.slice(0,3),T=L.slice(N-2)):N===7?(E=L.slice(0,3),T=L.slice(N-3)):N===8?(E=L.slice(0,4),T=L.slice(N-3)):N===9?(E=L.slice(0,5),T=L.slice(N-3)):N===10?(E=L.slice(0,5),T=L.slice(N-4)):N>10&&(E=L.slice(0,6),T=L.slice(N-4)),{length:N,prefix:E,suffix:T}},isSubObject:f,removeWhitespaces:function(l){return l&&(l instanceof String||typeof l=="string")?l.replace(/\s/g,""):l}}},651:function(t,n,r){var e,u=r(723),a=r(115),f=r(884);function g(){return a.getDeviceId()}t.exports={getDeviceId:function(){return e||(e=g()),e},getCoreModuleParams:function(l,E){var T=E||{},L=!!T.isFingerprintJsProOff,N=[];e&&e!==g()&&N.push([e,g()]);var x=f.getAppContextId(),B=T.bulkEvents||{},D=T.supressInstallBackwardCompatibility||[],j=typeof T.logMessageRate=="number"?T.logMessageRate:100,z=T.eventTrigger||"";return Object.assign(l,{deviceId:g(),linkedDevices:N,loadFingerprintJsPro:!L,clientVersion:u.version,appContextId:x,bulkEvents:B,supressInstallBackwardCompatibility:D,logMessageRate:j,eventTrigger:z,eventsReportUrl:T.eventsReportUrl})},parseInitParams:function(l,E){return typeof(T=l)=="string"||T instanceof String?{appId:l,partnerId:E}:l;var T},internalGetDeviceId:g}},342:function(t,n,r){var e=r(723),u=r(242),a=r(1),f=r(102),g=r(651),l=r(884),E=r(884);t.exports={version:e.version,init:l.isBrowser()?function(T,L){var N=g.parseInitParams(T,L),x=N.appId;a.init(e,{appId:x});var B=E.getConfigBaseUrls(N,e),D=B.mainConfigBaseUrl,j=B.altConfigBaseUrl;function z(Z,nt){u.getCoreModuleLoadingInfo({appId:x,url:Z},(function(ht,ft){!ht&&ft||e.errorServerUrl&&a.send({msg:"Core loading error",reason:"config-file-load-fail",url:e.coreConfigFileUrl,errorDescription:ht}),nt(ft)}))}function J(Z){typeof Z.onPercentage=="number"&&l.randomInt(0,100)>Z.onPercentage||(function(nt,ht){var ft=g.getCoreModuleParams(nt,ht);f.init(ft)})(N,Z)}return z(D,(function(Z){if(Z)J(Z);else{if(!j)return;z(j,(function(nt){nt&&J(nt)}))}})),g.getDeviceId()}:function(T,L){return null},getDeviceId:l.isBrowser()?function(){return g.getDeviceId()}:function(){return null}}},242:function(t,n,r){var e=r(611),u=r(528),a=r(884),f="ns_group";function g(l,E){(function(T,L){e.get(T).end((function(N,x){N?a.isFunction(L)&&L({ok:!1,errorDescription:JSON.stringify({err:N,res:x})}):a.isFunction(L)&&L(null,{ok:x.ok,status:x.status,response:x.body})}))})(l.url,(function(T,L){!T&&L&&L.response?a.isFunction(E)&&E(null,(function(N,x){var B,D=x||{},j=D.configurations||{},z=j[N];if(z){var J=(function(){var At=u.getItem(f);return At||(At=a.randomInt(1,100),u.setItem(f,At)),At})(),Z=(function(At){var bt=[],at=0;for(var lt in At)if(At.hasOwnProperty(lt)){var mt=At[lt],wt=at;at+=mt.percentage,bt.push({from:wt,to:at,url:mt.url})}return bt})(z.groups),nt=(function(At,bt){for(var at=0,lt=At.length;at<lt;at++){var mt=At[at];if(bt>mt.from&&bt<=mt.to)return mt}return null})(Z,J)||{};if(nt)for(B in nt)nt.hasOwnProperty(B)&&(z[B]=nt[B]);var ht=j.default||{};for(B in ht)ht.hasOwnProperty(B)&&!z.hasOwnProperty(B)&&(z[B]=ht[B])}else z=j.default||{};var ft={};for(B in D)D.hasOwnProperty(B)&&B!=="configurations"&&(ft[B]=D[B]);for(B in z)z.hasOwnProperty(B)&&["groups","from","to"].indexOf(B)===-1&&(ft[B]=z[B]);return ft})(l.appId,L.response)):a.isFunction(E)&&E(T.errorDescription)}))}t.exports={getCoreModuleLoadingInfo:function(l,E){var T=0;l&&l.url?g(l,(function L(N,x){N?(T+=1)<=3?g(l,L):a.isFunction(E)&&E(N):a.isFunction(E)&&E(null,x)})):a.isFunction(E)&&E("config url is not configured")}}},115:function(t,n,r){var e,u=r(550),a=r(528),f=r(13),g=r(884),l=r(616),E="ns_dev_id",T=[];function L(){var N=a.getItem(E);e||(e=N||l.toArray(u(),a.hasAccessToLocalStorage()),a.setItem(E,e))}t.exports={init:function(){f.init((function(){f.getKey(E,(function(N){N?(e=N,a.setItem(E,e),f.cleanup()):(L(),f.setKey(E,e),setTimeout(f.cleanup,2e3));for(var x=0,B=T.length;x<B;x+=1){var D=T[x];g.isFunction(D)&&D()}T=[]}))}))},addOnReadyListener:function(N){T.push(N)},getDeviceId:function(){return L(),e},reset:function(){throw new Error("Cannot call reset!")}}},635:function(t,n,r){r.d(n,{C6:function(){return u},Cl:function(){return a},Tt:function(){return f},YH:function(){return l},fX:function(){return E},sH:function(){return g}});var e=function(T,L){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,x){N.__proto__=x}||function(N,x){for(var B in x)Object.prototype.hasOwnProperty.call(x,B)&&(N[B]=x[B])},e(T,L)};function u(T,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function N(){this.constructor=T}e(T,L),T.prototype=L===null?Object.create(L):(N.prototype=L.prototype,new N)}var a=function(){return a=Object.assign||function(T){for(var L,N=1,x=arguments.length;N<x;N++)for(var B in L=arguments[N])Object.prototype.hasOwnProperty.call(L,B)&&(T[B]=L[B]);return T},a.apply(this,arguments)};function f(T,L){var N={};for(var x in T)Object.prototype.hasOwnProperty.call(T,x)&&L.indexOf(x)<0&&(N[x]=T[x]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function"){var B=0;for(x=Object.getOwnPropertySymbols(T);B<x.length;B++)L.indexOf(x[B])<0&&Object.prototype.propertyIsEnumerable.call(T,x[B])&&(N[x[B]]=T[x[B]])}return N}function g(T,L,N,x){return new(N||(N=Promise))((function(B,D){function j(Z){try{J(x.next(Z))}catch(nt){D(nt)}}function z(Z){try{J(x.throw(Z))}catch(nt){D(nt)}}function J(Z){var nt;Z.done?B(Z.value):(nt=Z.value,nt instanceof N?nt:new N((function(ht){ht(nt)}))).then(j,z)}J((x=x.apply(T,L||[])).next())}))}function l(T,L){var N,x,B,D,j={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return D={next:z(0),throw:z(1),return:z(2)},typeof Symbol=="function"&&(D[Symbol.iterator]=function(){return this}),D;function z(J){return function(Z){return(function(nt){if(N)throw new TypeError("Generator is already executing.");for(;D&&(D=0,nt[0]&&(j=0)),j;)try{if(N=1,x&&(B=2&nt[0]?x.return:nt[0]?x.throw||((B=x.return)&&B.call(x),0):x.next)&&!(B=B.call(x,nt[1])).done)return B;switch(x=0,B&&(nt=[2&nt[0],B.value]),nt[0]){case 0:case 1:B=nt;break;case 4:return j.label++,{value:nt[1],done:!1};case 5:j.label++,x=nt[1],nt=[0];continue;case 7:nt=j.ops.pop(),j.trys.pop();continue;default:if(!((B=(B=j.trys).length>0&&B[B.length-1])||nt[0]!==6&&nt[0]!==2)){j=0;continue}if(nt[0]===3&&(!B||nt[1]>B[0]&&nt[1]<B[3])){j.label=nt[1];break}if(nt[0]===6&&j.label<B[1]){j.label=B[1],B=nt;break}if(B&&j.label<B[2]){j.label=B[2],j.ops.push(nt);break}B[2]&&j.ops.pop(),j.trys.pop();continue}nt=L.call(T,j)}catch(ht){nt=[6,ht],x=0}finally{N=B=0}if(5&nt[0])throw nt[1];return{value:nt[0]?nt[1]:void 0,done:!0}})([J,Z])}}}function E(T,L,N){if(N||arguments.length===2)for(var x,B=0,D=L.length;B<D;B++)!x&&B in L||(x||(x=Array.prototype.slice.call(L,0,B)),x[B]=L[B]);return T.concat(x||Array.prototype.slice.call(L))}typeof SuppressedError=="function"&&SuppressedError}},Rf={};function br(t){var n=Rf[t];if(n!==void 0)return n.exports;var r=Rf[t]={exports:{}};return D3[t](r,r.exports,br),r.exports}br.d=function(t,n){for(var r in n)br.o(n,r)&&!br.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},br.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},br.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var hi={};br.d(hi,{IP:function(){return pi.getDeviceId},Ts:function(){return pi.init},rE:function(){return pi.version}});var pi=br(342);const P3={version:pi.version,init:pi.init,getDeviceId:pi.getDeviceId};hi.Ay=P3;var Ra=hi.Ay;hi.IP,hi.Ts,hi.rE;function ba(){if(typeof window<"u"){const t=new URLSearchParams(window.location.search).get("deviceId");if(t)return t}return Ra?Ra.getDeviceId():null}class On{env;url;constructor(n){this.env=n??"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(n){return fetch(this.url+`/merchant/view/${n}`).then(r=>r.json()).then(r=>r.nSureSettings?.nSurePartnerId||r.nSurePartnerId).catch(r=>{console.error(r)})}static getCoinflowBaseUrl(n){return!n||n==="prod"?"https://coinflow.cash":n==="ngrok"?"https://coinflow.ngrok.app":n==="local"?"http://localhost:3000":`https://${n}.coinflow.cash`}static getCoinflowAppBaseUrl(n){return!n||n==="prod"?"https://app.coinflow.cash":n==="ngrok"?"https://coinflow.ngrok.app":n==="local"?"http://localhost:3003":`https://app-${n}.coinflow.cash`}static isCoinflowMessageOrigin({url:n,fallbackUrl:r,env:e}){const u=n||r;if(!u)return!1;let a;try{a=new URL(u).hostname}catch{return!1}return e==="local"?a==="localhost":e==="ngrok"?a==="coinflow.ngrok.app":a==="coinflow.cash"||a.endsWith(".coinflow.cash")}static getCoinflowApiUrl(n){return!n||n==="prod"?"https://api.coinflow.cash":n==="local"?"http://localhost:5000":`https://api-${n}.coinflow.cash`}static getCoinflowUrl({walletPubkey:n,sessionKey:r,route:e,routePrefix:u,env:a,subtotal:f,useNativeSubtotal:g,presentment:l,transaction:E,blockchain:T="solana",webhookInfo:L,email:N,loaderBackground:x,handleHeightChangeId:B,bankAccountLinkRedirect:D,additionalWallets:j,chargebackProtectionData:z,chargebackProtectionAccountType:J,merchantCss:Z,color:nt,rent:ht,lockDefaultToken:ft,tokens:At,planCode:bt,disableApplePay:at,disableGooglePay:lt,customerInfo:mt,settlementType:wt,amount:P,lockAmount:d,nativeSolToConvert:S,theme:U,usePermit:K,transactionSigner:q,authOnly:rt,deviceId:ct,jwtToken:W,origins:h,threeDsChallengePreference:R,supportEmail:Y,destinationAuthKey:$,allowedPaymentMethods:pt,accountFundingTransaction:It,partialUsdcChecked:Vt,redemptionCheck:Zt,allowedWithdrawSpeeds:le,isZeroAuthorization:we,zeroAuthorizationConfig:ge,userLocation:Se,appReturnUrl:Ee,depositAmounts:_e,ownerOverride:Ve,bridgeId:Ie,bankLinkOnly:m,baseUrl:k}){const H=u?`/${u}/${T}`:`/${T}`,Q=new URL(H+e,k??On.getCoinflowBaseUrl(a));if(n&&Q.searchParams.append("pubkey",n),Ve&&Q.searchParams.append("ownerOverride",Ve),r&&Q.searchParams.append("sessionKey",r),E&&Q.searchParams.append("transaction",E),f&&("cents"in f?(Q.searchParams.append("cents",f.cents.toString()),"currency"in f?Q.searchParams.append("currency",f.currency.toString()):Q.searchParams.append("currency",Ea.USD)):(Q.searchParams.append("token",f.address.toString()),Q.searchParams.append("amount",f.amount.toString()))),g&&Q.searchParams.append("useNativeSubtotal","true"),Ie&&Q.searchParams.append("bridgeId",Ie),l&&Q.searchParams.append("presentment",l),L&&Q.searchParams.append("webhookInfo",In.compressToEncodedURIComponent(JSON.stringify(L))),U&&Q.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(U))),mt&&Q.searchParams.append("customerInfo",In.compressToEncodedURIComponent(JSON.stringify(mt))),N&&Q.searchParams.append("email",N),Y&&Q.searchParams.append("supportEmail",Y),At&&Q.searchParams.append("tokens",At.toString()),x&&Q.searchParams.append("loaderBackground",x),B&&Q.searchParams.append("useHeightChange",B.toString()),D&&Q.searchParams.append("bankAccountLinkRedirect",D),m&&Q.searchParams.append("bankLinkOnly","true"),j&&Q.searchParams.append("additionalWallets",In.compressToEncodedURIComponent(JSON.stringify(j))),z&&Q.searchParams.append("chargebackProtectionData",In.compressToEncodedURIComponent(JSON.stringify(z))),J&&Q.searchParams.append("chargebackProtectionAccountType",J),ct)Q.searchParams.append("deviceId",ct);else{const yt=ba();yt&&Q.searchParams.append("deviceId",yt)}return Z&&Q.searchParams.append("merchantCss",Z),nt&&Q.searchParams.append("color",nt),ht&&Q.searchParams.append("rent",ht.lamports.toString()),Zt&&Q.searchParams.append("redemptionCheck","true"),S&&Q.searchParams.append("nativeSolToConvert",S.lamports.toString()),ft&&Q.searchParams.append("lockDefaultToken","true"),bt&&Q.searchParams.append("planCode",bt),at&&Q.searchParams.append("disableApplePay","true"),lt&&Q.searchParams.append("disableGooglePay","true"),wt&&Q.searchParams.append("settlementType",wt),P!==void 0&&!Q.searchParams.has("amount")&&Q.searchParams.append("amount",P.toString()),d&&Q.searchParams.append("lockAmount","true"),K===!1&&Q.searchParams.append("usePermit","false"),q&&Q.searchParams.append("transactionSigner",q),rt===!0&&Q.searchParams.append("authOnly","true"),ge?Q.searchParams.append("zeroAuthorizationConfig",JSON.stringify(ge)):we===!0&&Q.searchParams.append("isZeroAuthorization","true"),Vt===!0&&Q.searchParams.append("partialUsdcChecked","true"),W&&Q.searchParams.append("jwtToken",W),h&&Q.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(h))),pt&&Q.searchParams.append("allowedPaymentMethods",pt.join(",")),_e&&Q.searchParams.append("depositAmounts",_e.join(",")),R&&Q.searchParams.append("threeDsChallengePreference",R),$&&Q.searchParams.append("destinationAuthKey",$),It&&Q.searchParams.append("accountFundingTransaction",In.compressToEncodedURIComponent(JSON.stringify(It))),le&&Q.searchParams.append("allowedWithdrawSpeeds",le.join(",")),Se&&(Q.searchParams.append("lat",Se.lat.toString()),Q.searchParams.append("lng",Se.lng.toString())),Ee&&Q.searchParams.append("appReturnUrl",Ee),Q.toString()}static getCoinflowIntentsUrl({baseUrl:n,route:r,color:e,theme:u,env:a,origins:f,deviceId:g,merchantCss:l,loaderBackground:E,handleHeightChangeId:T}){const L=new URL(r,n??On.getCoinflowBaseUrl(a));if(f&&L.searchParams.append("origins",In.compressToEncodedURIComponent(JSON.stringify(f))),g)L.searchParams.append("deviceId",g);else{const N=ba();N&&L.searchParams.append("deviceId",N)}return l&&L.searchParams.append("merchantCss",l),e&&L.searchParams.append("color",e),E&&L.searchParams.append("loaderBackground",E),T&&L.searchParams.append("useHeightChange",T.toString()),u&&L.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(u))),L.toString()}static getTransaction(n){if(n.blockchain)return this.byBlockchain(n.blockchain,{solana:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(!$o)throw new Error("@solana/web3.js dependency is required for Solana");if(!Rr)throw new Error("bs58 dependency is required for Solana");if(r)return Rr.encode(Uint8Array.from(r.serialize({requireAllSignatures:!1,verifySignatures:!1})))},polygon:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return In.compressToEncodedURIComponent(JSON.stringify(r))},eth:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return In.compressToEncodedURIComponent(JSON.stringify(r))},base:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return In.compressToEncodedURIComponent(JSON.stringify(r))},arbitrum:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return In.compressToEncodedURIComponent(JSON.stringify(r))},stellar:()=>{if(!("transaction"in n))return;const{transaction:r}=n;if(r)return r},monad:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return In.compressToEncodedURIComponent(JSON.stringify(r))},tempo:()=>{if(!("transaction"in n))return;const{transaction:r}=n;return In.compressToEncodedURIComponent(JSON.stringify(r))},user:()=>{}})()}static byBlockchain(n,r){switch(n){case"solana":return r.solana;case"polygon":return r.polygon;case"eth":return r.eth;case"base":return r.base;case"arbitrum":return r.arbitrum;case"stellar":return r.stellar;case"monad":return r.monad;case"tempo":return r.tempo;case"user":return r.user;default:throw new Error("blockchain not supported!")}}}function F3(t){if(!t)return;let n,r;if("name"in t&&t.name&&(n=t.name.split(" ")[0],r=t.name.split(" ").slice(1).join(" ")),"firstName"in t&&t.firstName&&(n=t.firstName),"lastName"in t&&t.lastName&&(r=t.lastName),n&&r)return{firstName:n,lastName:r}}function Xo({event:t,error:n,env:r,merchantId:e}){const u=n instanceof Error,a=u?n.message:n,f=u?n.stack:"";fetch(`${On.getCoinflowApiUrl(r)}/api/telemetry/frontend-error`,{method:"POST",body:JSON.stringify({message:a,stackTrace:f,merchantId:e,event:t}),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var vi=(t=>(t.SignMessage="signMessage",t.SignTransaction="signTransaction",t.SendTransaction="sendTransaction",t.HeightChange="heightChange",t.Success="success",t.AuthDeclined="authDeclined",t.InputError="inputError",t.InputValid="inputValid",t.Loaded="loaded",t.AccountLinked="accountLinked",t.AccountNotLinked="accountNotLinked",t.AccountLinkError="accountLinkError",t.Redirect="redirect",t.Overlay="overlay",t.UpdateSubtotal="updateSubtotal",t))(vi||{});function qo(t){let n;if("signer"in t&&typeof t.signer=="object"&&t.signer&&"wallet"in t.signer?n=t.signer.wallet:"wallet"in t&&t.wallet&&(n=t.wallet),!!n){if(typeof n=="string")return n;if(typeof n=="object"){if("publicKey"in n)return n.publicKey?n.publicKey.toString():void 0;if("address"in n)return n.address?n.address:void 0}return null}}function bf(t,n,r){let e;try{if(e=JSON.parse(t),!("method"in e)||!("data"in e))return}catch(f){console.error("handleIFrameMessage JSON parse",f);return}const{data:u,method:a}=e;switch(a){case"signMessage":return n.handleSignMessage?n.handleSignMessage(u):void 0;case"signTransaction":return n.handleSignTransaction?n.handleSignTransaction(u):void 0;case"sendTransaction":return n.handleSendTransaction(u);case"heightChange:"+r:return n.handleHeightChange?n.handleHeightChange(u):void 0;case"success":if(!n.onSuccess)return;n.onSuccess(e.info);return;case"authDeclined":if(!n.onAuthDeclined)return;n.onAuthDeclined(e.info);return;case"inputError":if(!n.onInputError)return;n.onInputError(e.info);return;case"inputValid":if(!n.onInputValid)return;n.onInputValid(e.info);return;case"loaded":return;case"accountLinked":if(!n.onAccountLinked)return;n.onAccountLinked(e.info);return;case"accountNotLinked":if(!n.onAccountNotLinked)return;n.onAccountNotLinked(e.info);return;case"accountLinkError":if(!n.onAccountLinkError)return;n.onAccountLinkError(e.info);return;case"redirect":window.open(u,"_blank");return;case"overlay":if(!n.handleOverlay)return;n.handleOverlay(u);return}console.warn(`Didn't expect to get here, handleIFrameMessage method:${a} is not one of ${Object.values(vi)}`)}function Jo(t){let n,r;return"signer"in t&&typeof t.signer=="object"&&t.signer&&"blockchain"in t.signer&&"wallet"in t.signer?(n=t.signer.blockchain,r=t.signer.wallet):"blockchain"in t&&t.blockchain&&(n=t.blockchain,r=t.wallet),n?{...On.byBlockchain(n,{solana:()=>H3({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),eth:()=>gi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),polygon:()=>gi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),base:()=>gi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),arbitrum:()=>gi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),stellar:()=>V3({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),monad:()=>gi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),tempo:()=>gi({wallet:r,onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid}),user:()=>G3(t)})(),onAccountLinked:t.onAccountLinked,onAccountNotLinked:t.onAccountNotLinked,onAccountLinkError:t.onAccountLinkError}:{handleSendTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignMessage:()=>{throw new Error("handleSendTransaction Not Implemented")},handleSignTransaction:()=>{throw new Error("handleSendTransaction Not Implemented")},onSuccess:t.onSuccess,onAuthDeclined:t.onAuthDeclined,onInputError:t.onInputError,onInputValid:t.onInputValid,onAccountLinked:t.onAccountLinked,onAccountNotLinked:t.onAccountNotLinked,onAccountLinkError:t.onAccountLinkError}}function H3({wallet:t,onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}){return{handleSendTransaction:async a=>{const f=Af(a);return await t.sendTransaction(f)},handleSignMessage:async a=>{const f=t.signMessage;if(!f)throw new Error("signMessage is not supported by this wallet");const g=await f(new TextEncoder().encode(a));if(!Rr)throw new Error("bs58 dependency is required");return Rr.encode(g)},handleSignTransaction:async a=>{const f=t.signTransaction;if(!f)throw new Error("signTransaction is not supported by this wallet");const g=Af(a),l=await f(g);if(!Rr)throw new Error("bs58 dependency is required");return Rr.encode(Uint8Array.from(l.serialize({requireAllSignatures:!1,verifySignatures:!1})))},onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}}function Af(t){if(!$o)throw new Error("@solana/web3.js is not defined. Please install @solana/web3.js into your project");if(!Rr)throw new Error("bs58 is not defined. Please install bs58 into your project");const n=Rr.decode(t),r=$o.VersionedTransaction.deserialize(n);return r.version==="legacy"?$o.Transaction.from(n):r}function gi({wallet:t,onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}){return{handleSendTransaction:async a=>{const f=JSON.parse(Buffer.from(a,"base64").toString()),{hash:g}=await t.sendTransaction(f);return g},handleSignMessage:async a=>t.signMessage(a),onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}}function V3({wallet:t,onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}){return{handleSendTransaction:async a=>{throw new Error(`sendTransaction is not supported on stellar, error when sending: ${a}`)},handleSignMessage:async a=>{if(!t.signMessage)throw new Error("signMessage is not supported by this wallet");return await t.signMessage(a)},handleSignTransaction:async a=>{if(!t.signTransaction)throw new Error("signTransaction is not supported by this wallet");return await t.signTransaction(a)},onSuccess:n,onAuthDeclined:r,onInputError:e,onInputValid:u}}function G3({onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:e}){return{handleSendTransaction:async()=>Promise.resolve(""),onSuccess:t,onAuthDeclined:n,onInputError:r,onInputValid:e}}class Y3{static on(n,r){document.addEventListener(n,r)}static dispatch(n,r){document.dispatchEvent(new CustomEvent(n,{detail:r}))}static remove(n,r){document.removeEventListener(n,r)}}const Fi="tokenExCardNumber",mi="tokenExCardCvv",Sf={[qr.VISA]:"visa",[qr.MASTERCARD]:"masterCard",[qr.AMEX]:"americanExpress",[qr.DISCOVER]:"discover"};async function If(t){const{token:n,origins:r,env:e}=t;return new Promise((u,a)=>{fetch(new On(e).url+"/api/tokenize/iframe/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({origins:r,token:n,merchantId:"merchantId"in t?t.merchantId:void 0,checkoutJwt:"checkoutJwt"in t?t.checkoutJwt:void 0})}).then(async f=>{u(await f.json())}).catch(f=>a(f))})}function Aa({env:t,setTokenExScriptLoaded:n}){const r="tokenex-script";document.head.querySelector(`#${r}`)&&n(!0);const e=document.createElement("script");e.src=t==="prod"?"https://htp.tokenex.com/iframe/iframe-v3.min.js":"https://test-htp.tokenex.com/iframe/iframe-v3.min.js",e.id=r,document.head.appendChild(e),document.getElementById(r).addEventListener("load",()=>{console.log("Setting tokenExScriptLoaded to true!"),n(!0)})}function j3({iframe:t,setCachedToken:n,setLoaded:r}){const e=async()=>(t.tokenize(),await new Promise((u,a)=>{t.on("tokenize",f=>{n(f.token),u(f)}),t.on("validate",f=>{(!f.isValid||f.isCvvValid===!1)&&a(f)})}));return t.on("change",()=>n(void 0)),t.on("cvvChange",()=>n(void 0)),t.on("load",()=>{setTimeout(()=>r(!0),350);const u=document.querySelector("#tx_iframe_tokenExCardNumber");u&&(u.scrolling="no")}),t.on("focus",()=>{t.focus()}),t.on("cvvFocus",()=>{t.cvvFocus()}),r(!1),t.load(),{...t,tokenize:e}}async function Of(t){const{token:n,cardType:r}=t;return await Sa(mi,t,{cvvOnly:!0,cvv:!0,cvvContainerID:mi,placeholder:"CVV",token:n,cardType:Sf[r]})}async function Nf(t){return await Sa(Fi,t,{cvv:!0,cvvContainerID:mi,cvvPlaceholder:"CVV"})}async function Tf(t){return await Sa(Fi,t,{cvv:!1})}async function Sa(t,n,r){const{tokenExScriptLoaded:e,css:u,debug:a,font:f,setCachedToken:g,setLoaded:l}=n;if(!e&&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 E=await If({...n,token:r.token}),{styles:T}=z3(u),L={...E,placeholder:"0000 0000 0000 0000",enablePrettyFormat:!0,styles:T,font:f,debug:a??!1,...r},N=TokenEx.Iframe(t,L);return j3({iframe:N,setCachedToken:g,setLoaded:l})}function z3(t){const n=JSON.parse(t);return{styles:{base:Ar(n.base),focus:Ar(n.focus),error:Ar(n.error),placeholder:Ar(n.placeholder),cvv:{base:Ar(n.cvv?.base),focus:Ar(n.cvv?.focus),error:Ar(n.cvv?.error),placeholder:Ar(n?.placeholder)}}}}function Ar(t){if(!t)return"";if(typeof t=="string")return t;let n="";for(const[r,e]of Object.entries(t)){let u="";r.split("").forEach(a=>{a.toUpperCase()===a?u+="-"+a.toLowerCase():u+=a}),n+=u+":"+e+";"}return n}const xf={"card-number":180,expiration:96,cvv:80},Lf=8,Hi="3rem",Ia=48,Oa=1,Qo=1,Na=2,K3={"card-number":"1fr",expiration:"96px",cvv:"80px"},Cf={"card-number":"card",expiration:"exp",cvv:"cvv"};function Vi(t,n){return t.includes(n)}function W3(t){const n=t.reduce((e,u)=>e+xf[u],0),r=Math.max(0,t.length-1)*Lf;return n+r}function Z3({inputs:t,hasIcon:n}){const r=[],e=[],u=(a,f)=>{r.length>0&&(r.push(`d${a.toUpperCase()}`),e.push("1px")),r.push(a),e.push(f)};n&&Vi(t,"card-number")&&u("icon","auto");for(const a of t)u(Cf[a],K3[a]);return`"${r.join(" ")}" ${Hi} / ${e.join(" ")}`}function $3({inputs:t,hasIcon:n}){const r=Vi(t,"card-number"),e=Vi(t,"expiration"),u=Vi(t,"cvv");if(!r||!e&&!u)return null;const a=`${Hi} ${Oa}px ${Hi}`;if(e&&u)return{template:Mf(n?'"icon card card card" "dHR dHR dHR dHR" "exp exp dEV cvv"':'"card card card" "dHR dHR dHR" "exp dEV cvv"',a,n?"auto minmax(0, 1fr) 1px minmax(0, 1fr)":"minmax(0, 1fr) 1px minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"},{area:"dEV",orientation:"v"}]};const f=e?"exp":"cvv",g=n?`"icon card" "dHR dHR" "${f} ${f}"`:`"card" "dHR" "${f}"`;return{template:Mf(g,a,n?"auto minmax(0, 1fr)":"minmax(0, 1fr)"),dividers:[{area:"dHR",orientation:"h"}]}}function Mf(t,n,r){const e=t.match(/"[^"]*"/g)??[],u=n.split(/\s+/);return`${e.map((f,g)=>`${f} ${u[g]??""}`.trim()).join(" ")} / ${r}`}function ts({inputs:t,hasIcon:n=!1,allowTwoRow:r=!0}){const e=t.map(g=>Cf[g]);if(t.length===1)return{inline:`"${e[0]}" ${Hi} / 1fr`,twoRow:null,breakpointPx:null,fieldAreas:e,hasIconArea:!1,twoRowDividers:[]};const u=n&&Vi(t,"card-number"),a=Z3({inputs:t,hasIcon:u}),f=r?$3({inputs:t,hasIcon:u}):null;return{inline:a,twoRow:f?.template??null,breakpointPx:f?W3(t)+2*Qo:null,fieldAreas:e,hasIconArea:u,twoRowDividers:f?.dividers??[]}}function Bf({gridSelector:t,layout:n,containerName:r,extraBaseRules:e="",extraCompactRules:u=""}){const a=`${t} { display: grid; grid-template: ${n.inline}; }
|
|
19
|
+
${e}`;if(!n.twoRow||n.breakpointPx===null)return a;const f=r?`${r} `:"";return`${a}
|
|
20
|
+
@container ${f}(width < ${n.breakpointPx}px) {
|
|
21
21
|
${t} { grid-template: ${n.twoRow}; }
|
|
22
22
|
${u}
|
|
23
|
-
}`}const
|
|
24
|
-
${r}`}const kf=Sa+Zo,Df={minWidth:"0",margin:"1px",borderRadius:"4px",opacity:"1",animation:`${Na} 1.5s ease-in-out infinite`},ig={backdrop:"rgba(255, 255, 255, 0.05)",box:"rgba(255, 255, 255, 0.30)"},og={backdrop:"rgba(0, 0, 0, 0.04)",box:"rgba(0, 0, 0, 0.30)"},sg={backdrop:"rgba(128, 128, 128, 0.08)",box:"rgba(128, 128, 128, 0.38)"};function ag(t){const n=t.trim().toLowerCase();let r=n.startsWith("#")?n.slice(1):"";if(r&&/^[0-9a-f]+$/.test(r)&&(r.length===3&&(r=r.split("").map(u=>u+u).join("")),r.length===8&&(r=r.slice(0,6)),r.length===6))return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)];const e=n.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);return e?[Number(e[1]),Number(e[2]),Number(e[3])]:null}function Uf(t){const n=t?.background?ag(t.background):null;if(!n)return sg;const[r,e,u]=n;return(.299*r+.587*e+.114*u)/255<.5?ig:og}Yt.nftCartItem=void 0,(t=>{(n=>{n.NFT="nft"})(t.itemClass||(t.itemClass={})),(n=>{n.IN_GAME_PRODUCT="inGameProduct",n.GAME_OF_SKILL="gameOfSkill",n.DATA_STORAGE="dataStorage",n.COMPUTING_RESOURCES="computingResources",n.SPORTS_TICKET="sportsTicket",n.E_SPORTS_TICKET="eSportsTicket",n.MUSIC_TICKET="musicTicket",n.CONFERENCE_TICKET="conferenceTicket",n.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",n.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",n.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",n.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",n.ALCOHOL="alcohol",n.DLC="DLC",n.SUBSCRIPTION="subscription",n.FUND_ACAUSE="fundACause",n.REAL_ESTATE="realEstate",n.COMPUTING_CONTRACT="computingContract",n.DIGITAL_ART="digitalArt",n.TOP_UP="topUp",n.OWNERSHIP_CONTRACT="ownershipContract",n.IN_GAME_CURRENCY="inGameCurrency",n.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(t.productType||(t.productType={}))})(Yt.nftCartItem||(Yt.nftCartItem={}));let Ca=null;async function ug({merchantId:t,env:n}){if(!Ca&&typeof window<"u")try{const r=await window.Verisoul?.session();r?.session_id&&(Ca=r.session_id)}catch(r){console.error(r),Wo({event:"ProtectionInit",env:n,merchantId:t,error:r})}}function cg(){return Ca}const fg="forterToken",lg=1024,dg=/[\x00-\x1F\x7F]/;let Jo=null,Pf=!1,La=!1;function Ba(t){if(!t)return null;let n=t;try{n=decodeURIComponent(t)}catch{}return!n||n.length>lg||dg.test(n)?null:n}function Ff(){if(typeof document>"u"||!document.cookie)return null;let t=null;for(const n of document.cookie.split(";")){const r=n.indexOf("=");if(r===-1)continue;const e=n.slice(0,r).trim(),u=n.slice(r+1);if(e===fg)return u;const a=e.toLowerCase();a.includes("forter")&&a.includes("token")&&(t=u)}return t}function Vi(){return Jo??Ba(Ff())}const hg="ftr:tokenReady";function pg(t){const n=t.detail,r=typeof n=="string"?Ba(n):null;r&&(Jo=r,Pf=!0)}function vg({timeoutMs:t=15e3,intervalMs:n=250}={}){if(typeof window>"u"||(typeof document<"u"&&document.addEventListener(hg,pg),La))return;La=!0;const r=Date.now(),e=()=>{if(!Pf){const u=Ba(Ff());u&&(Jo=u)}if(Date.now()-r>=t){La=!1,Jo||mg();return}window.setTimeout(e,n)};e()}function mg(){if(typeof document>"u")return;const t=(document.cookie||"").split(";").map(r=>r.split("=")[0].trim()).filter(Boolean),n=typeof window<"u"?Object.keys(window).filter(r=>/ftr|forter/i.test(r)):[];console.warn("[forter] token never surfaced after init.","cookieNames:",t,"forterGlobals:",n)}async function gg({timeoutMs:t=2e3,intervalMs:n=100}={}){const r=Vi();return r||(typeof window>"u"?null:new Promise(e=>{const u=Date.now(),a=()=>{const d=Vi();if(d)return e(d);if(Date.now()-u>=t)return e(Vi());window.setTimeout(a,n)};window.setTimeout(a,n)}))}const Hf="x-device-id",Vf="x-session-id",Gf="x-coinflow-referrer",jf="x-forter-token";function Yf(){return{[Hf]:Ea(),[Vf]:cg(),[jf]:Vi()}}function yg(){try{return document.referrer||null}catch{return null}}function wg(){return{...Yf(),[Gf]:yg()}}const Eg="9JBW2RHC7JNJN8ZQ",Wf={prod:"315da543-c486-435a-aa21-53844c469822",sandbox:"e9f629c4-80ee-4c6d-967e-62af47d8679e"};async function zf({coinflowEnv:t,merchantId:n}){const r=t==="prod"?"prod":"sandbox";if(!(typeof window<"u"&&new URLSearchParams(window.location.search).has("deviceId"))){const u=await new An(t).getNSurePartnerId(n);if(u){const a=Eg;try{wa.init(a,u)}catch(d){console.error("Failed to initialize nSure SDK:",d),Wo({event:"NSureInit",error:d,env:t,merchantId:n})}}}if(typeof document<"u"&&!document.querySelector("script[verisoul-project-id]")){const a=Wf[r]??Wf.sandbox;a&&await new Promise(d=>{const g=document.createElement("script");g.src=`https://js.v.coinflow.sh/${r}/bundle.js`,g.async=!0,g.setAttribute("verisoul-project-id",a),g.onload=()=>{ug({merchantId:n,env:t}).then(d)},g.onerror=l=>{Wo({event:"ProtectionError",error:l,env:t,merchantId:n}),d()},document.head.appendChild(g)})}}const _g=Ut.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return An.getCoinflowUrl(this.args)}},emits:{onMessage(t){return!0}},methods:{sendMessage(t){const n=this.$refs.iframeRef;if(!n?.contentWindow)throw new Error("Iframe not defined");n.contentWindow.postMessage(t,"*")},handleIframeMessages({data:t,origin:n}){const r=new URL(An.getCoinflowBaseUrl(this.args.env)).origin;if(n!==r||typeof t!="string")return;this.$emit("onMessage",{data:t,origin:n});const e=gf(t,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(u=>{console.error(u),this.sendMessage("ERROR "+u.message)})},async listenForMessage(t){let n;return new Promise((r,e)=>{if(n=({data:u,origin:a})=>{const d=new URL(An.getCoinflowBaseUrl(this.args.env)).origin;if(a===d&&typeof u=="string"){if(u.startsWith("ERROR")){e(new Error(u.replace("ERROR","")));return}t(u)&&r(u)}},!window)throw new Error("Window not defined");window.addEventListener("message",n)}).finally(()=>{window.removeEventListener("message",n)})},async sendAndReceiveMessage(t,n){return this.sendMessage(t),this.listenForMessage(n)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),Ma=(t,n)=>{const r=t.__vccOpts||t;for(const[e,u]of n)r[e]=u;return r},bg=["src","scrolling"];function Rg(t,n,r,e,u,a){return Ut.openBlock(),Ut.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write;geolocation",title:"withdraw",frameBorder:"0",src:t.url,scrolling:t.args.handleHeightChange?"no":"yes",onLoad:n[0]||(n[0]=()=>{const d=t.$refs.iframeRef;d&&(d.style.opacity="1")})},null,40,bg)}const Qo=Ma(_g,[["render",Rg]]),Ag=Ut.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:Qo},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=zo(this.args);return{...this.args,walletPubkey:t,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...Ko(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Sg(t,n,r,e,u,a){const d=Ut.resolveComponent("coinflow-i-frame");return Ut.openBlock(),Ut.createBlock(d,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const Ig=Ma(Ag,[["render",Sg]]),Og=Ut.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:Qo},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=zo(this.args);return{...this.args,walletPubkey:t,route:`/purchase-v2/${this.args.merchantId}`,transaction:An.getTransaction(this.args)}},messageHandlers(){return{...Ko(this.args),handleHeightChange:this.args.handleHeightChange}}}});function Tg(t,n,r,e,u,a){const d=Ut.resolveComponent("coinflow-i-frame");return Ut.openBlock(),Ut.createBlock(d,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const Ng=Ma(Og,[["render",Tg]]),ka=t=>{const n=Ut.ref(!1),r=Ut.ref(!1),e=Ut.ref(void 0),u=Ut.ref(void 0);Ut.onMounted(()=>{_a({env:t.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),r.value=!0}})});const a=C=>u.value=C,d=()=>n.value=!0,g=C=>e.value=C,l=async C=>{const N=await _f({...t,...C,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:d});return g(N),N},_=async C=>{const N=await bf({...t,...C,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:d});return g(N),N},T=async C=>{const N=await Rf({...t,...C,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:d});return g(N),N};return Ut.watchEffect(C=>{e.value&&(e.value.load(),C(()=>e.value?.remove()))}),{tokenExIframe:e,initializeTokenExIframe:_,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:T,loaded:n,cachedToken:u,setTokenExScriptTag:_a,tokenExScriptLoaded:r}},xg=["id"],Kf=Ut.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeTokenExIframe:r,tokenExIframe:e}=ka(t.args);async function u(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Ut.watchEffect(()=>{r({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(d,g)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(Pi)},null,8,xg))}}),Cg=["id"],Zf=Ut.defineComponent({__name:"CoinflowCvvInput",setup(t){return(n,r)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(pi)},null,8,Cg))}}),Lg=["id"],Xf=Ut.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeCvvOnlyTokenExIframe:r,tokenExIframe:e}=ka(t.args);async function u(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Ut.watchEffect(()=>{r({...t.args,origins:t.args.origins??[],css:a(),font:t.args.font})},{}),(d,g)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(pi)},null,8,Lg))}}),Bg=Ut.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(t){return Ut.onMounted(()=>{zf({coinflowEnv:t.args.env,merchantId:t.args.merchantId})}),(n,r)=>null}}),Mg=["id"],$f=Ut.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{tokenExIframe:r,initializeTokenExCardOnlyIframe:e}=ka(t.args);async function u(){if(!r.value)throw new Error("Unable to get token");return r.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Ut.watchEffect(()=>{e({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(d,g)=>(Ut.openBlock(),Ut.createElementBlock("div",{id:Ut.unref(Pi)},null,8,Mg))}}),kg=["src"],qf=Ut.defineComponent({__name:"CoinflowCardFormV2",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const r=Ut.ref(null),e=Ut.ref(null),u=Ut.ref(!1),a=Ut.ref(null),d=qo[t.args.variant],g=d.areas,l=Ut.ref(Oa),_=Ut.ref(d.inline),T=Ut.ref(!0),C=Ut.computed(()=>u.value&&a.value?`${a.value}px`:`${l.value}px`),N=Ut.computed(()=>Uf(t.args.theme));function x(Z){return{...Df,background:N.value.box,gridArea:Z}}const M=Ut.computed(()=>{const Z=An.getCoinflowBaseUrl(t.args.env),et=new URL(`/form/v2/${t.args.variant}`,Z);return et.searchParams.append("merchantId",t.args.merchantId),et.searchParams.append("useHeightChange","true"),t.args.theme&&et.searchParams.append("theme",Rn.compressToEncodedURIComponent(JSON.stringify(t.args.theme))),t.args.token&&et.searchParams.append("token",t.args.token),et.toString()});function U(Z){const{data:et,origin:ht,source:ut}=Z;if(ut!==r.value?.contentWindow)return;const At=new URL(An.getCoinflowBaseUrl(t.args.env)).origin;if(ht===At)try{const Rt=JSON.parse(et);if(Rt.method===Ui.Loaded)u.value=!0,t.args.onLoad?.();else if(Rt.method===Ui.HeightChange){const st=Number(Rt.data);Number.isFinite(st)&&st>0&&(a.value=st)}}catch{}}function Y(Z){Z.propertyName==="opacity"&&u.value&&(T.value=!1)}Ut.watch(u,(Z,et,ht)=>{if(!Z)return;const ut=setTimeout(()=>T.value=!1,Cf);ht(()=>clearTimeout(ut))});let W=null;Ut.onMounted(()=>{window.addEventListener("message",U);const Z=e.value;if(!Z||!d.compact)return;const et=()=>{const ht=Z.clientWidth;l.value=Lf({variant:t.args.variant,width:ht}),_.value=Bf({variant:t.args.variant,width:ht})};et(),W=new ResizeObserver(et),W.observe(Z)}),Ut.onUnmounted(()=>{window.removeEventListener("message",U),W?.disconnect()});async function J(){return new Promise((Z,et)=>{if(!r.value?.contentWindow){et(new Error("Card form iframe not loaded"));return}const ht=({data:At,origin:Rt})=>{const st=new URL(An.getCoinflowBaseUrl(t.args.env)).origin;if(Rt===st)try{const ct=JSON.parse(At);if(ct.method!=="tokenize")return;if(window.removeEventListener("message",ht),typeof ct.data=="string"&&ct.data.startsWith("ERROR")){et(new Error(ct.data.replace("ERROR ","")));return}const gt=typeof ct.data=="string"?JSON.parse(ct.data):ct.data;Z(gt)}catch{}};window.addEventListener("message",ht);const ut=new URL(An.getCoinflowBaseUrl(t.args.env)).origin;r.value.contentWindow.postMessage("tokenize",ut)})}return n({tokenize:J}),(Z,et)=>(Ut.openBlock(),Ut.createElementBlock("div",{ref_key:"wrapperRef",ref:e,style:Ut.normalizeStyle({position:"relative",width:"100%",height:C.value})},[T.value?(Ut.openBlock(),Ut.createElementBlock("div",{key:0,role:"status","aria-label":"Loading card form",onTransitionend:Y,style:Ut.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",pointerEvents:"none",flexDirection:"column",gap:"8px",padding:`${Ut.unref(kf)}px`,boxSizing:"border-box",borderRadius:"8px",background:N.value.backdrop,opacity:u.value?"0%":"100%",transition:"opacity 300ms linear, height 150ms ease-out"})},[Ut.createElementVNode("div",{style:Ut.normalizeStyle({display:"grid",gap:0,flex:1,width:"100%",gridTemplate:_.value})},[(Ut.openBlock(!0),Ut.createElementBlock(Ut.Fragment,null,Ut.renderList(Ut.unref(g),ht=>(Ut.openBlock(),Ut.createElementBlock("div",{key:ht,style:Ut.normalizeStyle(x(ht))},null,4))),128))],4)],36)):Ut.createCommentVNode("",!0),Ut.createElementVNode("iframe",{ref_key:"iframeRef",ref:r,src:M.value,title:"Card Form",frameBorder:"0",allow:"payment",style:Ut.normalizeStyle({width:"100%",height:C.value,border:"none",opacity:u.value?1:0,transition:"opacity 300ms linear, height 150ms ease-out"})},null,12,kg)],4))}}),Dg={style:{position:"relative",height:"100%"}},Ug={style:{position:"relative",zIndex:10,height:"100%"}},Jf=Ut.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(t){const{onSuccess:n}=t.args;function r(){const l=zo(t.args);return{...t.args,walletPubkey:l,transaction:void 0,routePrefix:"form",route:`/${t.route}/${t.args.merchantId}`}}function e(){return{...Ko(t.args),handleHeightChange:t.args.handleHeightChange}}const u=Ut.ref(.8),a=Ut.ref("flex"),d=Math.random().toString(16).substring(2);function g({data:l}){try{const _=JSON.parse(l);if("method"in _&&_.method==="loaded"&&(u.value=1,a.value="none"),"method"in _&&typeof _.data=="string"&&_.data.startsWith("ERROR"))return t.args?.onError?.(_.info),!1;if(!("method"in _)||_.method!=="getToken")return}catch{return}n?.(l)}return(l,_)=>(Ut.openBlock(),Ut.createElementBlock("div",Dg,[Ut.createElementVNode("div",{style:Ut.normalizeStyle({backgroundColor:t.args.color,display:t.overlayDisplayOverride??a.value,opacity:u.value,alignItems:t.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[Ut.renderSlot(l.$slots,"default")],4),Ut.createElementVNode("div",Ug,[Ut.createVNode(Qo,{onOnMessage:g,args:{...r(),...e(),handleHeightChangeId:Ut.unref(d)}},null,8,["args"])])]))}}),Pg={id:"svg-logo",viewBox:"0 0 35 15"},Fg={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"},Hg={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Vg=["fill"],Gg=Ut.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(t){const n=t.color==="white"?"#000":"#FFF";return(r,e)=>(Ut.openBlock(),Ut.createElementBlock("svg",Pg,[(Ut.openBlock(),Ut.createElementBlock("svg",Fg,[e[1]||(e[1]=Ut.createElementVNode("title",null,"Apple Logo",-1)),Ut.createElementVNode("g",Hg,[Ut.createElementVNode("g",{fill:Ut.unref(n)},[...e[0]||(e[0]=[Ut.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,Vg)])]))]))}}),jg=Ut.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Ut.openBlock(),Ut.createBlock(Jf,{route:"apple-pay",args:t.args},{default:Ut.withCtx(()=>[Ut.createVNode(Gg,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Yg={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},Wg={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},zg=Ut.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(t){return(n,r)=>(Ut.openBlock(),Ut.createElementBlock(Ut.Fragment,null,[t.color==="white"?(Ut.openBlock(),Ut.createElementBlock("svg",Yg,[...r[0]||(r[0]=[Ut.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)])])):Ut.createCommentVNode("",!0),t.color==="black"?(Ut.openBlock(),Ut.createElementBlock("svg",Wg,[...r[1]||(r[1]=[Ut.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)])])):Ut.createCommentVNode("",!0)],64))}}),Kg=Ut.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Ut.openBlock(),Ut.createBlock(Jf,{route:"google-pay",args:t.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:Ut.withCtx(()=>[Ut.createVNode(zg,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),Zg=qf,Xg=Kf,$g=Zf,qg=Xf,Jg=$f;Yt.BankingCurrencies=vf,Yt.CARD_ENTRY_BORDER_PX=Zo,Yt.CARD_ENTRY_DIVIDER_PX=Aa,Yt.CARD_ENTRY_MARGIN_PX=Sa,Yt.CARD_ENTRY_MIN_WIDTHS=Af,Yt.CARD_ENTRY_ROW_HEIGHT=Fi,Yt.CARD_ENTRY_ROW_HEIGHT_PX=Ra,Yt.CARD_ENTRY_SLOT_GAP_PX=Sf,Yt.CARD_TYPE_MAPPING=wf,Yt.COMPACT_SKELETON_HEIGHT_PX=xf,Yt.CardType=$r,Yt.ChargebackProtectionAccountType=mu,Yt.CoinflowApplePayButton=jg,Yt.CoinflowCardForm=Zg,Yt.CoinflowCardFormV2=qf,Yt.CoinflowCardNumberInput=Kf,Yt.CoinflowCardNumberOnlyInput=$f,Yt.CoinflowCvvInput=Zf,Yt.CoinflowCvvOnlyInput=Xf,Yt.CoinflowGooglePayButton=Kg,Yt.CoinflowIframe=Qo,Yt.CoinflowLegacyCardNumberInput=Xg,Yt.CoinflowLegacyCardNumberOnlyInput=Jg,Yt.CoinflowLegacyCvvInput=$g,Yt.CoinflowLegacyCvvOnlyInput=qg,Yt.CoinflowPurchase=Ng,Yt.CoinflowPurchaseProtection=Bg,Yt.CoinflowUtils=An,Yt.CoinflowWithdraw=Ig,Yt.Currency=ya,Yt.CurrencyToISO4217=km,Yt.DEVICE_ID_HEADER=Hf,Yt.EventBus=$m,Yt.FORTER_TOKEN_HEADER=jf,Yt.IFrameMessageMethods=Ui,Yt.INLINE_SKELETON_HEIGHT_PX=Oa,Yt.MerchantStyle=vu,Yt.PaymentMethods=yu,Yt.REFERRER_HEADER=Gf,Yt.RN_REDIRECT_MESSAGE_NAME=Id,Yt.SESSION_ID_HEADER=Vf,Yt.SKELETON_BOX_STYLE=Df,Yt.SKELETON_FADE_MS=Cf,Yt.SKELETON_LAYOUTS=qo,Yt.SKELETON_PULSE_ANIMATION_NAME=Na,Yt.SKELETON_ROOT_PADDING_PX=kf,Yt.SettlementType=pu,Yt.ThreeDsChallengePreference=gu,Yt.TokenExCardNumberIframeId=Pi,Yt.TokenExCvvContainerID=pi,Yt.WithdrawCategory=du,Yt.WithdrawCurrencies=pf,Yt.WithdrawSpeed=hu,Yt.awaitForterToken=gg,Yt.buildCardEntryGridCss=Tf,Yt.buildCardEntryLayout=Xo,Yt.buildSkeletonCss=rg,Yt.captureForterToken=vg,Yt.doInitializeCvvOnlyTokenExIframe=_f,Yt.doInitializeTokenExCardOnlyIframe=Rf,Yt.doInitializeTokenExIframe=bf,Yt.getCoinflowProtectionHeaders=Yf,Yt.getCoinflowPurchaseHeaders=wg,Yt.getCurrencyDecimals=Vm,Yt.getCustomerName=zm,Yt.getForterToken=Vi,Yt.getHandlers=Ko,Yt.getIframeConfig=Ef,Yt.getSkeletonColors=Uf,Yt.getSkeletonGridClass=Mf,Yt.getSkeletonGridTemplate=Bf,Yt.getWalletPubkey=zo,Yt.guessSkeletonHeightPx=Lf,Yt.handleIFrameMessage=gf,Yt.initCoinflowProtection=zf,Yt.invertRate=jm,Yt.isBankingCurrency=Um,Yt.isTypedCurrencyCents=Gm,Yt.isWithdrawCurrency=Dm,Yt.isZeroAuthSavedPaymentMethods=Ad,Yt.isZeroAuthVerifyCard=Rd,Yt.paymentMethodLabels=Sd,Yt.recordFrontendError=Wo,Yt.setTokenExScriptTag=_a,Yt.shouldStackSkeleton=xa,Object.defineProperty(Yt,Symbol.toStringTag,{value:"Module"})}));
|
|
23
|
+
}`}const Ta={"card-form":["card-number","expiration","cvv"],"card-number-form":["card-number","expiration"],"cvv-form":["cvv"]},es={"card-form":ts({inputs:Ta["card-form"]}),"card-number-form":ts({inputs:Ta["card-number-form"]}),"cvv-form":ts({inputs:Ta["cvv-form"]})},kf=2*Qo+2*Na,xa=Ia+kf,Uf=2*Ia+Oa+kf;function La(t){return{inline:t.inline,compact:t.twoRow??void 0,compactMaxWidthPx:t.breakpointPx??void 0,areas:t.fieldAreas}}const ns={"card-form":La(es["card-form"]),"card-number-form":La(es["card-number-form"]),"cvv-form":La(es["cvv-form"])},Ca="coinflow-card-form-skeleton-pulse",Df=300;function Ma({variant:t,width:n}){const{compact:r,compactMaxWidthPx:e}=ns[t];return r!==void 0&&e!==void 0&&n>0&&n<e}function Pf({variant:t,width:n}){return Ma({variant:t,width:n})?Uf:xa}function Ff({variant:t,width:n}){const{inline:r,compact:e}=ns[t];return e&&Ma({variant:t,width:n})?e:r}function Hf(t){return`coinflow-card-form-skeleton-grid--${t}`}function X3(t){const n=Hf(t),r=Bf({gridSelector:`.${n}`,layout:es[t],extraBaseRules:`.${n} { gap: 0; flex: 1; }`});return`@keyframes ${Ca} {0%,100%{opacity:1}50%{opacity:0.4}}
|
|
24
|
+
${r}`}const Vf=Na+Qo,Gf={minWidth:"0",margin:"1px",borderRadius:"4px",opacity:"1",animation:`${Ca} 1.5s ease-in-out infinite`},q3={backdrop:"rgba(255, 255, 255, 0.05)",box:"rgba(255, 255, 255, 0.30)"},J3={backdrop:"rgba(0, 0, 0, 0.04)",box:"rgba(0, 0, 0, 0.30)"},Q3={backdrop:"rgba(128, 128, 128, 0.08)",box:"rgba(128, 128, 128, 0.38)"};function t5(t){const n=t.trim().toLowerCase();let r=n.startsWith("#")?n.slice(1):"";if(r&&/^[0-9a-f]+$/.test(r)&&(r.length===3&&(r=r.split("").map(u=>u+u).join("")),r.length===8&&(r=r.slice(0,6)),r.length===6))return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)];const e=n.match(/rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/);return e?[Number(e[1]),Number(e[2]),Number(e[3])]:null}function Yf(t){const n=t?.background?t5(t.background):null;if(!n)return Q3;const[r,e,u]=n;return(.299*r+.587*e+.114*u)/255<.5?q3:J3}const Gi={cardNumber:"Card number is invalid. Please double check information.",expiration:"Expiration is invalid. Please double check information.",cvv:"CVV is invalid. Please double check information.",cvvEmpty:"Please enter your CVV to proceed."};function e5({cardError:t,expirationError:n,cvvError:r,cvvEmpty:e,isCvvOnly:u}){return t?{field:"card-number",message:Gi.cardNumber}:n?{field:"expiration",message:Gi.expiration}:r?u&&e?{field:"cvv",message:Gi.cvvEmpty}:{field:"cvv",message:Gi.cvv}:null}function n5({previous:t,current:n}){return n?t?t.field===n.field?t.message===n.message?[]:[{kind:"error",info:n}]:[{kind:"valid",info:{field:t.field}},{kind:"error",info:n}]:[{kind:"error",info:n}]:t?[{kind:"valid",info:{field:t.field}}]:[]}Pt.nftCartItem=void 0,(t=>{(n=>{n.NFT="nft"})(t.itemClass||(t.itemClass={})),(n=>{n.IN_GAME_PRODUCT="inGameProduct",n.GAME_OF_SKILL="gameOfSkill",n.DATA_STORAGE="dataStorage",n.COMPUTING_RESOURCES="computingResources",n.SPORTS_TICKET="sportsTicket",n.E_SPORTS_TICKET="eSportsTicket",n.MUSIC_TICKET="musicTicket",n.CONFERENCE_TICKET="conferenceTicket",n.VIRTUAL_SPORTS_TICKET="virtualSportsTicket",n.VIRTUAL_ESPORTS_TICKET="virtualESportsTicket",n.VIRTUAL_MUSIC_TICKET="virtualMusicTicket",n.VIRTUAL_CONFERENCE_TICKET="virtualConferenceTicket",n.ALCOHOL="alcohol",n.DLC="DLC",n.SUBSCRIPTION="subscription",n.FUND_ACAUSE="fundACause",n.REAL_ESTATE="realEstate",n.COMPUTING_CONTRACT="computingContract",n.DIGITAL_ART="digitalArt",n.TOP_UP="topUp",n.OWNERSHIP_CONTRACT="ownershipContract",n.IN_GAME_CURRENCY="inGameCurrency",n.MONEY_TOP_UP_CART_ITEM="moneyTopUpCartItem"})(t.productType||(t.productType={}))})(Pt.nftCartItem||(Pt.nftCartItem={}));let Ba=null;async function r5({merchantId:t,env:n}){if(!Ba&&typeof window<"u")try{const r=await window.Verisoul?.session();r?.session_id&&(Ba=r.session_id)}catch(r){console.error(r),Xo({event:"ProtectionInit",env:n,merchantId:t,error:r})}}function i5(){return Ba}const o5="forterToken",s5=1024,a5=/[\x00-\x1F\x7F]/;let rs=null,jf=!1,ka=!1;function Ua(t){if(!t)return null;let n=t;try{n=decodeURIComponent(t)}catch{}return!n||n.length>s5||a5.test(n)?null:n}function zf(){if(typeof document>"u"||!document.cookie)return null;let t=null;for(const n of document.cookie.split(";")){const r=n.indexOf("=");if(r===-1)continue;const e=n.slice(0,r).trim(),u=n.slice(r+1);if(e===o5)return u;const a=e.toLowerCase();a.includes("forter")&&a.includes("token")&&(t=u)}return t}function Yi(){return rs??Ua(zf())}const u5="ftr:tokenReady";function c5(t){const n=t.detail,r=typeof n=="string"?Ua(n):null;r&&(rs=r,jf=!0)}function f5({timeoutMs:t=15e3,intervalMs:n=250}={}){if(typeof window>"u"||(typeof document<"u"&&document.addEventListener(u5,c5),ka))return;ka=!0;const r=Date.now(),e=()=>{if(!jf){const u=Ua(zf());u&&(rs=u)}if(Date.now()-r>=t){ka=!1,rs||l5();return}window.setTimeout(e,n)};e()}function l5(){if(typeof document>"u")return;const t=(document.cookie||"").split(";").map(r=>r.split("=")[0].trim()).filter(Boolean),n=typeof window<"u"?Object.keys(window).filter(r=>/ftr|forter/i.test(r)):[];console.warn("[forter] token never surfaced after init.","cookieNames:",t,"forterGlobals:",n)}async function d5({timeoutMs:t=2e3,intervalMs:n=100}={}){const r=Yi();return r||(typeof window>"u"?null:new Promise(e=>{const u=Date.now(),a=()=>{const f=Yi();if(f)return e(f);if(Date.now()-u>=t)return e(Yi());window.setTimeout(a,n)};window.setTimeout(a,n)}))}const Kf="x-device-id",Wf="x-session-id",Zf="x-coinflow-referrer",$f="x-forter-token";function Xf(){return{[Kf]:ba(),[Wf]:i5(),[$f]:Yi()}}function h5(){try{return document.referrer||null}catch{return null}}function p5(){return{...Xf(),[Zf]:h5()}}const v5="9JBW2RHC7JNJN8ZQ",qf={prod:"315da543-c486-435a-aa21-53844c469822",sandbox:"e9f629c4-80ee-4c6d-967e-62af47d8679e"};async function Jf({coinflowEnv:t,merchantId:n}){const r=t==="prod"?"prod":"sandbox";if(!(typeof window<"u"&&new URLSearchParams(window.location.search).has("deviceId"))){const u=await new On(t).getNSurePartnerId(n);if(u){const a=v5;try{Ra.init(a,u)}catch(f){console.error("Failed to initialize nSure SDK:",f),Xo({event:"NSureInit",error:f,env:t,merchantId:n})}}}if(typeof document<"u"&&!document.querySelector("script[verisoul-project-id]")){const a=qf[r]??qf.sandbox;a&&await new Promise(f=>{const g=document.createElement("script");g.src=`https://js.v.coinflow.sh/${r}/bundle.js`,g.async=!0,g.setAttribute("verisoul-project-id",a),g.onload=()=>{r5({merchantId:n,env:t}).then(f)},g.onerror=l=>{Xo({event:"ProtectionError",error:l,env:t,merchantId:n}),f()},document.head.appendChild(g)})}}function g5(t){return JSON.stringify(t)}function m5(t){if(!t)return null;try{const n=JSON.parse(t);return typeof n?.token!="string"||!n.token?null:{token:n.token,country:typeof n.country=="string"?n.country:void 0}}catch{return{token:t}}}function y5({cached:t,country:n}){return t?n?t.country===n:!0:!1}const Qf="bankLinkStatus";function w5({status:t}){return{[Qf]:t}}function _5({bankLinkOnly:t,hasCallbackRedirect:n,isReactNativeLink:r}){return t?"emit":n?"redirect":r?"returnToApp":"returnToCheckout"}const E5=500,R5=Dt.defineComponent({name:"CoinflowIFrame",props:{args:{type:Object,required:!0}},computed:{url(){return On.getCoinflowUrl(this.args)}},emits:{onMessage(t){return!0}},methods:{sendMessage(t){const n=this.$refs.iframeRef;if(!n?.contentWindow)throw new Error("Iframe not defined");n.contentWindow.postMessage(t,"*")},handleIframeMessages({data:t,origin:n}){const r=new URL(On.getCoinflowBaseUrl(this.args.env)).origin;if(n!==r||typeof t!="string")return;this.$emit("onMessage",{data:t,origin:n});const e=bf(t,this.args,this.args.handleHeightChangeId);e&&e.then(this.sendMessage).catch(u=>{console.error(u),this.sendMessage("ERROR "+u.message)})},async listenForMessage(t){let n;return new Promise((r,e)=>{if(n=({data:u,origin:a})=>{const f=new URL(On.getCoinflowBaseUrl(this.args.env)).origin;if(a===f&&typeof u=="string"){if(u.startsWith("ERROR")){e(new Error(u.replace("ERROR","")));return}t(u)&&r(u)}},!window)throw new Error("Window not defined");window.addEventListener("message",n)}).finally(()=>{window.removeEventListener("message",n)})},async sendAndReceiveMessage(t,n){return this.sendMessage(t),this.listenForMessage(n)}},mounted(){if(!window)throw new Error("Window not defined");return window.addEventListener("message",this.handleIframeMessages),()=>{window.removeEventListener("message",this.handleIframeMessages)}}}),Da=(t,n)=>{const r=t.__vccOpts||t;for(const[e,u]of n)r[e]=u;return r},b5=["src","scrolling"];function A5(t,n,r,e,u,a){return Dt.openBlock(),Dt.createElementBlock("iframe",{credentialless:"",style:{height:"100%",width:"100%"},ref:"iframeRef",allow:"payment;camera;clipboard-write;geolocation",title:"withdraw",frameBorder:"0",src:t.url,scrolling:t.args.handleHeightChange?"no":"yes",onLoad:n[0]||(n[0]=()=>{const f=t.$refs.iframeRef;f&&(f.style.opacity="1")})},null,40,b5)}const is=Da(R5,[["render",A5]]),S5=Dt.defineComponent({name:"CoinflowWithdraw",components:{CoinflowIFrame:is},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=qo(this.args);return{...this.args,walletPubkey:t,route:`/withdraw/${this.args.merchantId}`,transaction:void 0}},messageHandlers(){return{...Jo(this.args),handleHeightChange:this.args.handleHeightChange}}}});function I5(t,n,r,e,u,a){const f=Dt.resolveComponent("coinflow-i-frame");return Dt.openBlock(),Dt.createBlock(f,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const O5=Da(S5,[["render",I5]]),N5=Dt.defineComponent({name:"CoinflowPurchase",components:{CoinflowIFrame:is},props:{args:{type:Object,required:!0}},computed:{handleHeightChangeId(){return Math.random().toString(16).substring(2)},iframeProps(){const t=qo(this.args);return{...this.args,walletPubkey:t,route:`/purchase-v2/${this.args.merchantId}`,transaction:On.getTransaction(this.args)}},messageHandlers(){return{...Jo(this.args),handleHeightChange:this.args.handleHeightChange}}}});function T5(t,n,r,e,u,a){const f=Dt.resolveComponent("coinflow-i-frame");return Dt.openBlock(),Dt.createBlock(f,{args:{...t.iframeProps,...t.messageHandlers,handleHeightChangeId:t.handleHeightChangeId}},null,8,["args"])}const x5=Da(N5,[["render",T5]]),Pa=t=>{const n=Dt.ref(!1),r=Dt.ref(!1),e=Dt.ref(void 0),u=Dt.ref(void 0);Dt.onMounted(()=>{Aa({env:t.env,setTokenExScriptLoaded:()=>{console.log("tokenExScriptLoaded.value = true"),r.value=!0}})});const a=L=>u.value=L,f=()=>n.value=!0,g=L=>e.value=L,l=async L=>{const N=await Of({...t,...L,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:f});return g(N),N},E=async L=>{const N=await Nf({...t,...L,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:f});return g(N),N},T=async L=>{const N=await Tf({...t,...L,tokenExScriptLoaded:r.value,setCachedToken:a,setLoaded:f});return g(N),N};return Dt.watchEffect(L=>{e.value&&(e.value.load(),L(()=>e.value?.remove()))}),{tokenExIframe:e,initializeTokenExIframe:E,initializeCvvOnlyTokenExIframe:l,initializeTokenExCardOnlyIframe:T,loaded:n,cachedToken:u,setTokenExScriptTag:Aa,tokenExScriptLoaded:r}},L5=["id"],t0=Dt.defineComponent({__name:"CoinflowCardNumberInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeTokenExIframe:r,tokenExIframe:e}=Pa(t.args);async function u(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Dt.watchEffect(()=>{r({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(f,g)=>(Dt.openBlock(),Dt.createElementBlock("div",{id:Dt.unref(Fi)},null,8,L5))}}),C5=["id"],e0=Dt.defineComponent({__name:"CoinflowCvvInput",setup(t){return(n,r)=>(Dt.openBlock(),Dt.createElementBlock("div",{id:Dt.unref(mi)},null,8,C5))}}),M5=["id"],n0=Dt.defineComponent({__name:"CoinflowCvvOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{initializeCvvOnlyTokenExIframe:r,tokenExIframe:e}=Pa(t.args);async function u(){if(!e.value)throw new Error("Unable to get token");return e.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Dt.watchEffect(()=>{r({...t.args,origins:t.args.origins??[],css:a(),font:t.args.font})},{}),(f,g)=>(Dt.openBlock(),Dt.createElementBlock("div",{id:Dt.unref(mi)},null,8,M5))}}),B5=Dt.defineComponent({__name:"CoinflowPurchaseProtection",props:{args:{type:Object,required:!0}},setup(t){return Dt.onMounted(()=>{Jf({coinflowEnv:t.args.env,merchantId:t.args.merchantId})}),(n,r)=>null}}),k5=["id"],r0=Dt.defineComponent({__name:"CoinflowCardNumberOnlyInput",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const{tokenExIframe:r,initializeTokenExCardOnlyIframe:e}=Pa(t.args);async function u(){if(!r.value)throw new Error("Unable to get token");return r.value.tokenize()}n({getToken:u});function a(){return JSON.stringify(t.args.css)}return Dt.watchEffect(()=>{e({css:a(),debug:t.args.debug,origins:t.args.origins,font:t.args.font})},{}),(f,g)=>(Dt.openBlock(),Dt.createElementBlock("div",{id:Dt.unref(Fi)},null,8,k5))}}),U5=["src"],i0=Dt.defineComponent({__name:"CoinflowCardFormV2",props:{args:{type:Object,required:!0}},setup(t,{expose:n}){const r=Dt.ref(null),e=Dt.ref(null),u=Dt.ref(!1),a=Dt.ref(null),f=ns[t.args.variant],g=f.areas,l=Dt.ref(xa),E=Dt.ref(f.inline),T=Dt.ref(!0),L=Dt.computed(()=>u.value&&a.value?`${a.value}px`:`${l.value}px`),N=Dt.computed(()=>Yf(t.args.theme));function x(Z){return{...Gf,background:N.value.box,gridArea:Z}}const B=Dt.computed(()=>{const Z=On.getCoinflowBaseUrl(t.args.env),nt=new URL(`/form/v2/${t.args.variant}`,Z);return nt.searchParams.append("merchantId",t.args.merchantId),nt.searchParams.append("useHeightChange","true"),t.args.theme&&nt.searchParams.append("theme",In.compressToEncodedURIComponent(JSON.stringify(t.args.theme))),t.args.token&&nt.searchParams.append("token",t.args.token),nt.toString()});function D(Z){const{data:nt,origin:ht,source:ft}=Z;if(ft!==r.value?.contentWindow)return;const At=new URL(On.getCoinflowBaseUrl(t.args.env)).origin;if(ht===At)try{const bt=JSON.parse(nt);if(bt.method===vi.Loaded)u.value=!0,t.args.onLoad?.();else if(bt.method===vi.HeightChange){const at=Number(bt.data);Number.isFinite(at)&&at>0&&(a.value=at)}}catch{}}function j(Z){Z.propertyName==="opacity"&&u.value&&(T.value=!1)}Dt.watch(u,(Z,nt,ht)=>{if(!Z)return;const ft=setTimeout(()=>T.value=!1,Df);ht(()=>clearTimeout(ft))});let z=null;Dt.onMounted(()=>{window.addEventListener("message",D);const Z=e.value;if(!Z||!f.compact)return;const nt=()=>{const ht=Z.clientWidth;l.value=Pf({variant:t.args.variant,width:ht}),E.value=Ff({variant:t.args.variant,width:ht})};nt(),z=new ResizeObserver(nt),z.observe(Z)}),Dt.onUnmounted(()=>{window.removeEventListener("message",D),z?.disconnect()});async function J(){return new Promise((Z,nt)=>{if(!r.value?.contentWindow){nt(new Error("Card form iframe not loaded"));return}const ht=({data:At,origin:bt})=>{const at=new URL(On.getCoinflowBaseUrl(t.args.env)).origin;if(bt===at)try{const lt=JSON.parse(At);if(lt.method!=="tokenize")return;if(window.removeEventListener("message",ht),typeof lt.data=="string"&<.data.startsWith("ERROR")){nt(new Error(lt.data.replace("ERROR ","")));return}const mt=typeof lt.data=="string"?JSON.parse(lt.data):lt.data;Z(mt)}catch{}};window.addEventListener("message",ht);const ft=new URL(On.getCoinflowBaseUrl(t.args.env)).origin;r.value.contentWindow.postMessage("tokenize",ft)})}return n({tokenize:J}),(Z,nt)=>(Dt.openBlock(),Dt.createElementBlock("div",{ref_key:"wrapperRef",ref:e,style:Dt.normalizeStyle({position:"relative",width:"100%",height:L.value})},[T.value?(Dt.openBlock(),Dt.createElementBlock("div",{key:0,role:"status","aria-label":"Loading card form",onTransitionend:j,style:Dt.normalizeStyle({position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",pointerEvents:"none",flexDirection:"column",gap:"8px",padding:`${Dt.unref(Vf)}px`,boxSizing:"border-box",borderRadius:"8px",background:N.value.backdrop,opacity:u.value?"0%":"100%",transition:"opacity 300ms linear, height 150ms ease-out"})},[Dt.createElementVNode("div",{style:Dt.normalizeStyle({display:"grid",gap:0,flex:1,width:"100%",gridTemplate:E.value})},[(Dt.openBlock(!0),Dt.createElementBlock(Dt.Fragment,null,Dt.renderList(Dt.unref(g),ht=>(Dt.openBlock(),Dt.createElementBlock("div",{key:ht,style:Dt.normalizeStyle(x(ht))},null,4))),128))],4)],36)):Dt.createCommentVNode("",!0),Dt.createElementVNode("iframe",{ref_key:"iframeRef",ref:r,src:B.value,title:"Card Form",frameBorder:"0",allow:"payment",style:Dt.normalizeStyle({width:"100%",height:L.value,border:"none",opacity:u.value?1:0,transition:"opacity 300ms linear, height 150ms ease-out"})},null,12,U5)],4))}}),D5={style:{position:"relative",height:"100%"}},P5={style:{position:"relative",zIndex:10,height:"100%"}},o0=Dt.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(t){const{onSuccess:n}=t.args,r=t.args.subtotal;function e(){const N=qo(t.args);return{...t.args,subtotal:r,walletPubkey:N,transaction:void 0,routePrefix:"form",route:`/${t.route}/${t.args.merchantId}`}}function u(){return{...Jo(t.args),handleHeightChange:t.args.handleHeightChange}}const a=Dt.ref(.8),f=Dt.ref("flex"),g=Math.random().toString(16).substring(2),l=Dt.ref(null),E=Dt.ref(!1);let T=JSON.stringify(r);Dt.watch([E,()=>t.args.subtotal],([N,x])=>{if(!N||!x)return;const B=JSON.stringify(x);T!==B&&(T=B,l.value?.sendMessage(`${vi.UpdateSubtotal}:${B}`))});function L({data:N}){try{const x=JSON.parse(N);if("method"in x&&x.method==="loaded"&&(a.value=1,f.value="none",E.value=!0),"method"in x&&typeof x.data=="string"&&x.data.startsWith("ERROR"))return t.args?.onError?.(x.info),!1;if(!("method"in x)||x.method!=="getToken")return}catch{return}n?.(N)}return(N,x)=>(Dt.openBlock(),Dt.createElementBlock("div",D5,[Dt.createElementVNode("div",{style:Dt.normalizeStyle({backgroundColor:t.args.color,display:t.overlayDisplayOverride??f.value,opacity:a.value,alignItems:t.alignItems,width:"100%",height:"40px",position:"absolute",top:0,bottom:0,left:0,zIndex:20,justifyContent:"center",pointerEvents:"none"})},[Dt.renderSlot(N.$slots,"default")],4),Dt.createElementVNode("div",P5,[Dt.createVNode(is,{ref_key:"iframeRef",ref:l,onOnMessage:L,args:{...e(),...u(),handleHeightChangeId:Dt.unref(g)}},null,8,["args"])])]))}}),F5={id:"svg-logo",viewBox:"0 0 35 15"},H5={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"},V5={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},G5=["fill"],Y5=Dt.defineComponent({__name:"ApplePayOverlay",props:{color:{type:String,required:!0}},setup(t){const n=t.color==="white"?"#000":"#FFF";return(r,e)=>(Dt.openBlock(),Dt.createElementBlock("svg",F5,[(Dt.openBlock(),Dt.createElementBlock("svg",H5,[e[1]||(e[1]=Dt.createElementVNode("title",null,"Apple Logo",-1)),Dt.createElementVNode("g",V5,[Dt.createElementVNode("g",{fill:Dt.unref(n)},[...e[0]||(e[0]=[Dt.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,G5)])]))]))}}),j5=Dt.defineComponent({__name:"CoinflowApplePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Dt.openBlock(),Dt.createBlock(o0,{route:"apple-pay",args:t.args},{default:Dt.withCtx(()=>[Dt.createVNode(Y5,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),z5={key:0,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},K5={key:1,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"17"},W5=Dt.defineComponent({__name:"GooglePayOverlay",props:{color:{type:String,required:!0}},setup(t){return(n,r)=>(Dt.openBlock(),Dt.createElementBlock(Dt.Fragment,null,[t.color==="white"?(Dt.openBlock(),Dt.createElementBlock("svg",z5,[...r[0]||(r[0]=[Dt.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)])])):Dt.createCommentVNode("",!0),t.color==="black"?(Dt.openBlock(),Dt.createElementBlock("svg",K5,[...r[1]||(r[1]=[Dt.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)])])):Dt.createCommentVNode("",!0)],64))}}),Z5=Dt.defineComponent({__name:"CoinflowGooglePayButton",props:{args:{type:Object,required:!0}},setup(t){return(n,r)=>(Dt.openBlock(),Dt.createBlock(o0,{route:"google-pay",args:t.args,overlayDisplayOverride:"flex",alignItems:"center"},{default:Dt.withCtx(()=>[Dt.createVNode(W5,{color:t.args.color},null,8,["color"])]),_:1},8,["args"]))}}),$5=i0,X5=t0,q5=e0,J5=n0,Q5=r0;Pt.BANK_LINK_REVEAL_DELAY_MS=E5,Pt.BANK_LINK_STATUS_PARAM=Qf,Pt.BankingCurrencies=Ef,Pt.CARD_ENTRY_BORDER_PX=Qo,Pt.CARD_ENTRY_DIVIDER_PX=Oa,Pt.CARD_ENTRY_MARGIN_PX=Na,Pt.CARD_ENTRY_MIN_WIDTHS=xf,Pt.CARD_ENTRY_ROW_HEIGHT=Hi,Pt.CARD_ENTRY_ROW_HEIGHT_PX=Ia,Pt.CARD_ENTRY_SLOT_GAP_PX=Lf,Pt.CARD_FIELD_ERROR_MESSAGES=Gi,Pt.CARD_TYPE_MAPPING=Sf,Pt.COMPACT_SKELETON_HEIGHT_PX=Uf,Pt.CardType=qr,Pt.ChargebackProtectionAccountType=wu,Pt.CoinflowApplePayButton=j5,Pt.CoinflowCardForm=$5,Pt.CoinflowCardFormV2=i0,Pt.CoinflowCardNumberInput=t0,Pt.CoinflowCardNumberOnlyInput=r0,Pt.CoinflowCvvInput=e0,Pt.CoinflowCvvOnlyInput=n0,Pt.CoinflowGooglePayButton=Z5,Pt.CoinflowIframe=is,Pt.CoinflowLegacyCardNumberInput=X5,Pt.CoinflowLegacyCardNumberOnlyInput=Q5,Pt.CoinflowLegacyCvvInput=q5,Pt.CoinflowLegacyCvvOnlyInput=J5,Pt.CoinflowPurchase=x5,Pt.CoinflowPurchaseProtection=B5,Pt.CoinflowUtils=On,Pt.CoinflowWithdraw=O5,Pt.Currency=Ea,Pt.CurrencyToISO4217=N3,Pt.DEVICE_ID_HEADER=Kf,Pt.EventBus=Y3,Pt.FORTER_TOKEN_HEADER=$f,Pt.IFrameMessageMethods=vi,Pt.INLINE_SKELETON_HEIGHT_PX=xa,Pt.MerchantStyle=yu,Pt.PaymentMethods=Eu,Pt.REFERRER_HEADER=Zf,Pt.RN_REDIRECT_MESSAGE_NAME=Md,Pt.SESSION_ID_HEADER=Wf,Pt.SKELETON_BOX_STYLE=Gf,Pt.SKELETON_FADE_MS=Df,Pt.SKELETON_LAYOUTS=ns,Pt.SKELETON_PULSE_ANIMATION_NAME=Ca,Pt.SKELETON_ROOT_PADDING_PX=Vf,Pt.SettlementType=mu,Pt.ThreeDsChallengePreference=_u,Pt.TokenExCardNumberIframeId=Fi,Pt.TokenExCvvContainerID=mi,Pt.WithdrawCategory=vu,Pt.WithdrawCurrencies=_f,Pt.WithdrawSpeed=gu,Pt.awaitForterToken=d5,Pt.bankLinkCallbackParams=w5,Pt.buildCardEntryGridCss=Bf,Pt.buildCardEntryLayout=ts,Pt.buildSkeletonCss=X3,Pt.canReuseLinkToken=y5,Pt.captureForterToken=f5,Pt.doInitializeCvvOnlyTokenExIframe=Of,Pt.doInitializeTokenExCardOnlyIframe=Tf,Pt.doInitializeTokenExIframe=Nf,Pt.getCardFieldInputEvents=n5,Pt.getCardFieldValidationError=e5,Pt.getCoinflowProtectionHeaders=Xf,Pt.getCoinflowPurchaseHeaders=p5,Pt.getCurrencyDecimals=B3,Pt.getCustomerName=F3,Pt.getForterToken=Yi,Pt.getHandlers=Jo,Pt.getIframeConfig=If,Pt.getSkeletonColors=Yf,Pt.getSkeletonGridClass=Hf,Pt.getSkeletonGridTemplate=Ff,Pt.getWalletPubkey=qo,Pt.guessSkeletonHeightPx=Pf,Pt.handleIFrameMessage=bf,Pt.initCoinflowProtection=Jf,Pt.invertRate=U3,Pt.isBankingCurrency=x3,Pt.isTypedCurrencyCents=k3,Pt.isWithdrawCurrency=T3,Pt.isZeroAuthSavedPaymentMethods=Ld,Pt.isZeroAuthVerifyCard=xd,Pt.parseCachedLinkToken=m5,Pt.paymentMethodLabels=Cd,Pt.recordFrontendError=Xo,Pt.resolveBankLinkCompletion=_5,Pt.serializeCachedLinkToken=g5,Pt.setTokenExScriptTag=Aa,Pt.shouldStackSkeleton=Ma,Object.defineProperty(Pt,Symbol.toStringTag,{value:"Module"})}));
|