PageSourceSearch

https://nftx.io/_next/static/chunks/0xoc3cow8qxv1.js?dpl=dpl_6hdXWyXe945jQ889bSE7YjK8yoXB

js nftx.io collected 2026-09-25 19:08:53 UTC 206,459 bytes, 187 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,602973,e=>{"use strict";var t;let r=["error","invalid_request_arguments","wallet_not_on_device","invalid_recovery_pin","insufficient_funds","mfa_timeout","missing_or_invalid_mfa","mfa_verification_max_attempts_reached"];(t={}).MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",t.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",t.INVALID_DATA="invalid_data",t.LINKED_TO_ANOTHER_USER="linked_to_another_user",t.ALLOWLIST_REJECTED="allowlist_rejected",t.OAUTH_USER_DENIED="oauth_user_denied",t.UNKNOWN_AUTH_ERROR="unknown_auth_error",t.USER_EXITED_AUTH_FLOW="exited_auth_flow",t.MUST_BE_AUTHENTICATED="must_be_authenticated",t.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",t.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",t.CLIENT_REQUEST_TIMEOUT="client_request_timeout",t.INVALID_CREDENTIALS="invalid_credentials";class n extends Error{toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:""}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}}e.s(["EmbeddedProviderError",0,class extends Error{constructor(e,t,r){super(e),this.code=t,this.data=r}},"PrivyConnectorError",0,class extends n{constructor(e,t,r){super(e,t,r),this.type="connector_error"}},"PrivyIframeError",0,class extends Error{constructor(e,t){super(t),this.type=e}},"ProviderErrors",0,{UNKNOWN_ERROR:{eipCode:0,message:"Unknown error",detail:"Unknown error",retryable:!0},E4001_DEFAULT_USER_REJECTED_REQUEST:{eipCode:4001,message:"User Rejected Request",detail:"The user rejected the request.",default:!0,retryable:!0},E4100_DEFAULT_UNAUTHORIZED:{eipCode:4100,message:"Unauthorized",detail:"The requested method and/or account has not been authorized by the user.",default:!0,retryable:!1},E4200_DEFAULT_UNSUPPORTED_METHOD:{eipCode:4200,message:"Unsupported Method",detail:"The Provider does not support the requested method.",default:!0,retryable:!1},E4900_DEFAULT_DISCONNECTED:{eipCode:4900,message:"Disconnected",detail:"The Provider is disconnected from all chains.",default:!0,retryable:!0},E4901_DEFAULT_CHAIN_DISCONNECTED:{eipCode:4901,message:"Chain Disconnected",detail:"The Provider is not connected to the requested chain.",default:!0,retryable:!0},E32700_DEFAULT_PARSE_ERROR:{eipCode:-32700,message:"Parse error",detail:"Invalid JSON",default:!0,retryable:!1},E32600_DEFAULT_INVALID_REQUEST:{eipCode:-32600,message:"Invalid request",detail:"JSON is not a valid request object",default:!0,retryable:!1},E32601_DEFAULT_METHOD_NOT_FOUND:{eipCode:-32601,message:"Method not found",detail:"Method does not exist",default:!0,retryable:!1},E32602_DEFAULT_INVALID_PARAMS:{eipCode:-32602,message:"Invalid params",detail:"Invalid method parameters",default:!0,retryable:!1},E32603_DEFAULT_INTERNAL_ERROR:{eipCode:-32603,message:"Internal error",detail:"Internal JSON-RPC error",default:!0,retryable:!0},E32000_DEFAULT_INVALID_INPUT:{eipCode:-32e3,message:"Invalid input",detail:"Missing or invalid parameters",default:!0,retryable:!1},E32001_DEFAULT_RESOURCE_NOT_FOUND:{eipCode:-32001,message:"Resource not found",detail:"Requested resource not found",default:!0,retryable:!1},E32002_DEFAULT_RESOURCE_UNAVAILABLE:{eipCode:-32002,message:"Resource unavailable",detail:"Requested resource not available",default:!0,retryable:!0},E32003_DEFAULT_TRANSACTION_REJECTED:{eipCode:-32003,message:"Transaction rejected",detail:"Transaction creation failed",default:!0,retryable:!0},E32004_DEFAULT_METHOD_NOT_SUPPORTED:{eipCode:-32004,message:"Method not supported",detail:"Method is not implemented",default:!0,retryable:!1},E32005_DEFAULT_LIMIT_EXCEEDED:{eipCode:-32005,message:"Limit exceeded",detail:"Request exceeds defined limit",default:!0,retryable:!1},E32006_DEFAULT_JSON_RPC_VERSION_NOT_SUPPORTED:{eipCode:-32006,message:"JSON-RPC version not supported",detail:"Version of JSON-RPC protocol is not supported",default:!0,retryable:!1},E32002_CONNECTION_ALREADY_PENDING:{eipCode:-32002,message:"Connection request already pending",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E32002_REQUEST_ALREADY_PENDING:{eipCode:-32002,message:"Resource request already pending",detail:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E32002_WALLET_LOCKED:{eipCode:-32002,message:"Wallet might be locked",detail
1:"Don’t see your wallet? Check your other browser windows.",retryable:!1},E4001_USER_REJECTED_REQUEST:{eipCode:4001,message:"Signature rejected",detail:"Please try signing again.",retryable:!0}},"errorIndicatesRecoveryIsNeeded",0,function(e){let t;return"string"==typeof(t=e.type)&&r.includes(t)&&"wallet_not_on_device"===e.type}],602973)},140328,812741,376131,9963,e=>{"use strict";var t=e.i(837474),r=e.i(256591),n=e.i(708842),i=e.i(789694),a=e.i(132610);let o=(0,i.Field)(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),s=o.create(BigInt("-3")),l=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),c=(0,r.createCurve)({a:s,b:l,Fp:o,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},t.sha256),u=(0,a.mapToCurveSimpleSWU)(o,{A:s,B:l,Z:o.create(BigInt("-10"))});(0,n.createHasher)(c.ProjectivePoint,e=>u(e[0]),{DST:"P256_XMD:SHA-256_SSWU_RO_",encodeDST:"P256_XMD:SHA-256_SSWU_NU_",p:o.ORDER,m:1,k:128,expand:"xmd",hash:t.sha256});let d=(0,i.Field)(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff")),p=d.create(BigInt("-3")),f=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");(0,r.createCurve)({a:p,b:f,Fp:d,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},t.sha384),(0,a.mapToCurveSimpleSWU)(d,{A:p,B:f,Z:d.create(BigInt("-12"))});let h=(0,i.Field)(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")),m=h.create(BigInt("-3")),y=BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");(0,r.createCurve)({a:m,b:y,Fp:h,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},t.sha512),(0,a.mapToCurveSimpleSWU)(h,{A:m,B:y,Z:h.create(BigInt("-4"))});var b=e.i(352493),g=e.i(376563);e.s(["verify",0,function(e){let{hash:t,payload:r,publicKey:n,signature:i}=e;return c.verify(i,r instanceof Uint8Array?r:b.fromHex(r),g.toHex(n).substring(2),{lowS:!0,...t?{prehash:!0}:{}})}],140328);let w=new TextEncoder,v=new TextDecoder,_=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[t,e.charCodeAt(0)])),x={...Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((e,t)=>[e.charCodeAt(0),t])),61:0,45:62,95:63};function A(e,t={}){let{pad:r=!0,url:n=!1}=t,i=new Uint8Array(4*Math.ceil(e.length/3));for(let t=0,r=0;r<e.length;t+=4,r+=3){let n=(e[r]<<16)+(e[r+1]<<8)+(0|e[r+2]);i[t]=_[n>>18],i[t+1]=_[n>>12&63],i[t+2]=_[n>>6&63],i[t+3]=_[63&n]}let a=e.length%3,o=4*Math.floor(e.length/3)+(a&&a+1),s=v.decode(new Uint8Array(i.buffer,0,o));return r&&1===a&&(s+="=="),r&&2===a&&(s+="="),n&&(s=s.replaceAll("+","-").replaceAll("/","_")),s}function E(e){let t=e.replace(/=+$/,""),r=t.length,n=new Uint8Array(r+3);w.encodeInto(t+"===",n);for(let e=0,r=0;e<t.length;e+=4,r+=3){let t=(x[n[e]]<<18)+(x[n[e+1]]<<12)+(x[n[e+2]]<<6)+x[n[e+3]];n[r]=t>>16,n[r+1]=t>>8&255,n[r+2]=255&t}return new Uint8Array(n.buffer,0,(r>>2)*3+(r%4&&r%4-1))}e.s(["fromBytes",0,A,"fromHex",0,function(e,t={}){return A(b.fromHex(e),t)},"toBytes",0,E],812741),e.s(["parseAsn1Signature",()=>N,"parseCredentialPublicKey",()=>O],9963),e.s(["CreateFailedError",()=>P,"create",()=>C,"createChallenge",()=>T,"getOptions",()=>I],376131);var k=e.i(247329),S=e.i(848180);let T=Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);async function C(e){let{createFn:t=e=>window.navigator.credentials.create(e),...r}=e,n="publicKey"in r?r:I(r);try{let e=await t(n);if(!e)throw new P;let r=e.response,i=r.attestationObject,a=r.clientDataJSON,o=e.id,s=await O(r,i);return{attestationObject:i,clientDataJSON:a,id:o,publicKey:s,raw:e}}catch(e){throw new P({cause:e})}}function I(e){let{attestation:t="none",authenticatorSelection:r={residentKey:"preferred",requireResidentKey:!1,userVerification:"required"},challenge:n=T,excludeCredentialIds:i,extensions:a,name:o,rp:s={id:window.location.hostname,name:window.document.title},user:l}=e,c=l?.name??o;return{publicKey:{attestation:t,authenticatorSelection:r,challenge:"string"==typeof n?b.fromHex(n):n,...i?{excludeCredentials:i?.map(e=>({id:E(e),type:"public-key"}))}:{},pubKeyCredParams:[{type:"public-key",alg:-7}],rp:s,user:{id:l?.id??S.keccak256(b.fromString(c),{as:"Bytes"}),name:c,displayName:l?.displayName??c},...a&&{extensions:a}}}}k.BaseError;class P extends k.BaseError{constructor({cause:e}={}){super("Failed to create credential.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Registration.CreateFailedError"})}}function N(e){let t=c.Signature.fromDER(e).normalizeS();return{r:t.r,s:t.s}}async function O(e,t){try{let t=e.getPublicKey();if(!t)throw new P;let r=new Uint8Array(t),n=await crypto.subtle.importKey("spki",new Uint8Array(r),{name:"ECDSA",namedCurve:"P-256",hash:"SHA-256"},!0,["verify"]),i=new Uint8Array(await crypto.subtle.exportKey("raw",n));return g.from(i)}catch(o){if("Permission denied to access object"!==o.message)throw o;let r=new Uint8Array(t??e.attestationObject),n=e=>{let t=new Uint8Array([e,88,32]);for(let e=0;e<r.length-t.length;e++)if(t.every((t,n)=>r[e+n]===t))return e+t.length;throw new P},i=n(33),a=n(34);return g.from(new Uint8Array([4,...r.slice(i,i+32),...r.slice(a,a+32)]))}}},584623,e=>{"use strict";var t,r=e.i(352493),n=e.i(247329),i=e.i(30832),a=e.i(793832);class o extends n.BaseError{constructor({majorType:e}){super(`Invalid CBOR major type: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidMajorTypeError"})}}class s extends n.BaseError{constructor({additionalInfo:e}){super(`Invalid CBOR additional info: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidAdditionalInfoError"})}}class l extends n.BaseError{constructor(){super("64-bit integers are not supported in CBOR decoding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.Unsupported64BitIntegerError"})}}class c extends n.BaseError{constructor({tag:e}){super(`CBOR tagged data (tag ${e}) is not yet supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnsupportedTagError"})}}class u extends n.BaseError{constructor({type:e}){super(`Invalid chunk type in indefinite-length ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidIndefiniteLengthChunkError"})}}class d extends n.BaseError{constructor({value:e}){super(`Invalid CBOR simple value: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.InvalidSimpleValueError"})}}class p extends n.BaseError{constructor(){super("BigInt values are not supported in CBOR encoding."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnsupportedBigIntError"})}}class f extends n.BaseError{constructor({token:e}){super(`Unexpected token: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.UnexpectedTokenError"})}}class h extends n.BaseError{constructor({number:e}){super(`Number exceeds maximum safe integer (${Number.MAX_SAFE_INTEGER}): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.NumberTooLargeError"})}}class m extends n.BaseError{constructor({size:e}){super(`String length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.StringTooLargeError"})}}class y extends n.BaseError{constructor({size:e}){super(`Array length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ArrayTooLargeError"})}}class b extends n.BaseError{constructor({size:e}){super(`Object size exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ObjectTooLargeError"})}}class g extends n.BaseError{constructor({size:e}){super(`Byte string length exceeds maximum (4294967295): ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cbor.ByteStringTooLargeError"})}}function w(e){if(void 0===e)return{length:1,encode:e=>e.pushUint8(247)};if(null===e)return{length:1,encode:e=>e.pushUint8(246)};if("boolean"==typeof e)return{length:1,encode:t=>t.pushUint8(e?245:244)};if("number"==typeof e)return w.number(e);if("bigint"==typeof e)throw new p;if("string"==typeof e)return w.string(e);if(Array.isArray(e))return w.array(e);if(e instanceof Uint8Array)return w.byteString(e);if(e instanceof ArrayBuffer)return w.byteString(new Uint8Array(e));if(ArrayBuffer.isView(e))return w.byteString(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));if(e instanceof Map)return w.map(e);if("object"==typeof e)return w.object(e);throw new f({token:String(e)})}function v(e){let t=e.readUint8(),r=t>>5,n=31&t;switch(r){case 0:return v.readUnsignedInteger(e,n);case 1:return v.readNegativeInteger(e,n);case 2:return v.readByteString(e,n);case 3:return v.readTextString(e,n);case 4:return v.readArray(e,n);case 5:return v.readMap(e,n);case 6:throw new c({tag:n});case 7:return v.readSimpleOrFloat(e,n);default:throw new o({majorType:r})}}(t=w||(w={})).number=function(e){if(!Number.isSafeInteger(e)){let t=Math.fround(e);return Number.isNaN(e)||e===t?{length:5,encode(t){t.pushUint8(250),t.dataView.setFloat32(t.position,e,!1),t.position+=4}}:{length:9,encode(t){t.pushUint8(251),t.dataView.setFloat64(t.position,e,!1),t.position+=8}}}if(e>=0){if(e<=23)return{length:1,encode:t=>t.pushUint8(e)};if(e<=255)return{length:2,encode:t=>{t.pushUint8(24),t.pushUint8(e)}};if(e<=65535)return{length:3,encode:t=>{t.pushUint8(25),t.pushUint16(e)}};if(e<=0xffffffff)return{length:5,encode:t=>{t.pushUint8(26),t.pushUint32(e)}};throw new h({number:e.toString(10)})}let t=-1-e;if(e>=-24)return{length:1,encode:e=>e.pushUint8(32+t)};if(t<=255)return{length:2,encode:e=>{e.pushUint8(56),e.pushUint8(t)}};if(t<=65535)return{length:3,encode:e=>{e.pushUint8(57),e.pushUint16(t)}};if(t<=0xffffffff)return{length:5,encode:e=>{e.pushUint8(58),e.pushUint32(t)}};throw new h({number:e.toString(10)})},t.string=function(e){let t=r.fromString(e),n=t.length;if(n<=23)return{length:1+n,encode(e){e.pushUint8(96+n),n>0&&e.pushBytes(t)}};if(n<=255)return{length:2+n,encode(e){e.pushUint8(120),e.pushUint8(n),e.pushBytes(t)}};if(n<=65535)return{length:3+n,encode(e){e.pushUint8(121),e.pushUint16(n),e.pushBytes(t)}};if(n<=0xffffffff)return{length:5+n,encode(e){e.pushUint8(122),e.pushUint32(n),e.pushBytes(t)}};
1throw new m({size:n})},t.array=function(e){let r=e.map(e=>t(e)),n=r.reduce((e,t)=>e+t.length,0),i=e.length;if(i<=23)return{length:1+n,encode(e){for(let t of(e.pushUint8(128+i),r))t.encode(e)}};if(i<=255)return{length:2+n,encode(e){for(let t of(e.pushUint8(152),e.pushUint8(i),r))t.encode(e)}};if(i<=65535)return{length:3+n,encode(e){for(let t of(e.pushUint8(153),e.pushUint16(i),r))t.encode(e)}};if(i<=0xffffffff)return{length:5+n,encode(e){for(let t of(e.pushUint8(154),e.pushUint32(i),r))t.encode(e)}};throw new y({size:i})},t.byteString=function(e){let t=e.byteLength;if(t<=23)return{length:1+t,encode(r){r.pushUint8(64+t),r.pushBytes(e)}};if(t<=255)return{length:2+t,encode(r){r.pushUint8(88),r.pushUint8(t),r.pushBytes(e)}};if(t<=65535)return{length:3+t,encode(r){r.pushUint8(89),r.pushUint16(t),r.pushBytes(e)}};if(t<=0xffffffff)return{length:5+t,encode(r){r.pushUint8(90),r.pushUint32(t),r.pushBytes(e)}};throw new g({size:t})},t.object=function(e){let r=Object.keys(e),n=r.map(r=>({key:t(r),value:t(e[r])})),i=n.reduce((e,t)=>e+t.key.length+t.value.length,0),a=r.length;if(a<=23)return{length:1+i,encode(e){for(let t of(e.pushUint8(160+a),n))t.key.encode(e),t.value.encode(e)}};if(a<=255)return{length:2+i,encode(e){for(let t of(e.pushUint8(184),e.pushUint8(a),n))t.key.encode(e),t.value.encode(e)}};if(a<=65535)return{length:3+i,encode(e){for(let t of(e.pushUint8(185),e.pushUint16(a),n))t.key.encode(e),t.value.encode(e)}};if(a<=0xffffffff)return{length:5+i,encode(e){for(let t of(e.pushUint8(186),e.pushUint32(a),n))t.key.encode(e),t.value.encode(e)}};throw new b({size:a})},t.map=function(e){let r=[];for(let[n,i]of e)r.push({key:t(n),value:t(i)});let n=r.reduce((e,t)=>e+t.key.length+t.value.length,0),i=e.size;if(i<=23)return{length:1+n,encode(e){for(let t of(e.pushUint8(160+i),r))t.key.encode(e),t.value.encode(e)}};if(i<=255)return{length:2+n,encode(e){for(let t of(e.pushUint8(184),e.pushUint8(i),r))t.key.encode(e),t.value.encode(e)}};if(i<=65535)return{length:3+n,encode(e){for(let t of(e.pushUint8(185),e.pushUint16(i),r))t.key.encode(e),t.value.encode(e)}};if(i<=0xffffffff)return{length:5+n,encode(e){for(let t of(e.pushUint8(186),e.pushUint32(i),r))t.key.encode(e),t.value.encode(e)}};throw new b({size:i})};var _=v||(v={});function x(e,t){if(t<24)return t;if(24===t)return e.readUint8();if(25===t)return e.readUint16();if(26===t)return e.readUint32();if(27===t)throw new l;throw new s({additionalInfo:t})}_.readUnsignedInteger=function(e,t){return x(e,t)},_.readNegativeInteger=function(e,t){return -1-x(e,t)},_.readByteString=function(e,t){if(31===t){let t=[],r=0;for(;;){if(255===e.inspectUint8()){e.readUint8();break}let n=_(e);if(!(n instanceof Uint8Array))throw new u({type:"byte string"});t.push(n),r+=n.length}let n=new Uint8Array(r),i=0;for(let e of t)n.set(e,i),i+=e.length;return n}let r=x(e,t);return e.readBytes(r)},_.readTextString=function(e,t){if(31===t){let t=[];for(;;){if(255===e.inspectUint8()){e.readUint8();break}let r=_(e);if("string"!=typeof r)throw new u({type:"text string"});t.push(r)}return t.join("")}let n=x(e,t),i=e.readBytes(n);return r.toString(i)},_.readArray=function(e,t){if(31===t){let t=[];for(;;){if(255===e.inspectUint8()){e.readUint8();break}t.push(_(e))}return t}let r=x(e,t),n=[];for(let t=0;t<r;t++)n.push(_(e));return n},_.readMap=function(e,t){if(31===t){let t={};for(;;){if(255===e.inspectUint8()){e.readUint8();break}let r=_(e),n="string"==typeof r?r:String(r),i=_(e);t[n]=i}return t}let r=x(e,t),n={};for(let t=0;t<r;t++){let t=_(e),r="string"==typeof t?t:String(t),i=_(e);n[r]=i}return n},_.readSimpleOrFloat=function(e,t){if(20===t)return!1;if(21===t)return!0;if(22===t)return null;if(23!==t){if(25===t)return function(e){let t=e>>15&1,r=e>>10&31,n=1023&e;if(0===r){if(0===n)return t?-0:0;let e=n/1024*6103515625e-14;return t?-e:e}if(31===r)return 0===n?t?-1/0:1/0:NaN;let i=2**(r-15)*(1+n/1024);return t?-i:i}(e.readUint16());if(26===t){let t=e.dataView.getFloat32(e.position,!1);return e.position+=4,t}if(27===t){let t=e.dataView.getFloat64(e.position,!1);return e.position+=8,t}if(24===t){let t=e.readUint8();if(t<32)throw new d({value:t});return}throw new s({additionalInfo:t})}},e.s(["decode",0,function(e){let t=(()=>
1{if("string"==typeof e){if(e.length>3&&e.length%2!=0)throw new i.InvalidLengthError(e);return r.fromHex(e)}return e})(),n=a.create(t);return v(n)},"encode",0,function(e,t={}){let{as:r="Hex"}=t,n=w(e),o=a.create(new Uint8Array(n.length));return(n.encode(o),"Hex"===r)?i.fromBytes(o.bytes):o.bytes}])},816895,627569,e=>{"use strict";var t,r,n=e.i(30832),i=e.i(741004),a=e.i(247329),o=e.i(67112),s=e.i(140328),l=e.i(55378),c=e.i(983975),u=e.i(812741),d=e.i(352493),p=e.i(848180);e.i(9963),e.i(584623);var f=e.i(376563);a.BaseError,a.BaseError;var h=e.i(376131);h.createChallenge,h.getOptions;let m="0x01",y="0x02",b="0x03",g="0x04",w="0x7777777777777777777777777777777777777777777777777777777777777777";function v(e){let t=S(e);if("secp256k1"===t)return void c.assert(e.signature);if("p256"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),"boolean"!=typeof e.prehash&&t.push("prehash"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new P({envelope:e,missing:t,type:"p256"});return}if("webAuthn"===t){let t=[];if("bigint"!=typeof e.signature?.r&&t.push("signature.r"),"bigint"!=typeof e.signature?.s&&t.push("signature.s"),e.metadata?(e.metadata.authenticatorData||t.push("metadata.authenticatorData"),e.metadata.clientDataJSON||t.push("metadata.clientDataJSON")):t.push("metadata"),e.publicKey?("bigint"!=typeof e.publicKey.x&&t.push("publicKey.x"),"bigint"!=typeof e.publicKey.y&&t.push("publicKey.y")):t.push("publicKey"),t.length>0)throw new P({envelope:e,missing:t,type:"webAuthn"});return}if("keychain"===t)return void v(e.inner)}function _(e){let{signature:t,root:r}=e;return"keychain"===t.type?r?t.userAddress:_({...e,signature:t.inner}):i.fromPublicKey(x(e))}function x(e){let{payload:t,signature:r}=e;switch(r.type){case"secp256k1":return l.recoverPublicKey({payload:t,signature:r.signature});case"p256":case"webAuthn":return r.publicKey;case"keychain":return x({payload:t,signature:r.inner})}}function A(e){let t=e.endsWith(w.slice(2))?n.slice(e,0,-n.size(w)):e;if(65===n.size(t)){let e=c.fromHex(t);return c.assert(e),{signature:e,type:"secp256k1"}}let r=n.slice(t,0,1),i=n.slice(t,1),a=n.size(i);if(r===m){if(129!==a)throw new N({reason:`Invalid P256 signature envelope size: expected 129 bytes, got ${a} bytes`,serialized:t});return{publicKey:{prefix:4,x:n.toBigInt(n.slice(i,64,96)),y:n.toBigInt(n.slice(i,96,128))},prehash:0!==n.toNumber(n.slice(i,128,129)),signature:{r:n.toBigInt(n.slice(i,0,32)),s:n.toBigInt(n.slice(i,32,64))},type:"p256"}}if(r===y){let e,r;if(a<128)throw new N({reason:`Invalid WebAuthn signature envelope size: expected at least 128 bytes, got ${a} bytes`,serialized:t});let o=a-128,s=n.slice(i,0,o);for(let t=37;t<o;t++){let i=n.toString(n.slice(s,t));if(i.startsWith("{")&&i.endsWith("}"))try{JSON.parse(i),e=n.slice(s,0,t),r=i;break}catch{}}if(!e||!r)throw new N({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:t});return{publicKey:{prefix:4,x:n.toBigInt(n.slice(i,o+64,o+96)),y:n.toBigInt(n.slice(i,o+96,o+128))},metadata:{authenticatorData:e,clientDataJSON:r},signature:{r:n.toBigInt(n.slice(i,o,o+32)),s:n.toBigInt(n.slice(i,o+32,o+64))},type:"webAuthn"}}if(r===b||r===g)return{userAddress:n.slice(i,0,20),inner:A(n.slice(i,20)),type:"keychain",version:r===g?"v2":"v1"};throw new N({reason:`Unknown signature type identifier: ${r}. Expected ${m} (P256), ${y} (WebAuthn), ${b} (Keychain V1), or ${g} (Keychain V2)`,serialized:t})}function E(e,t){let r;if("string"==typeof e)return A(e);if("object"==typeof e&&null!==e&&"r"in e&&"s"in e&&"yParity"in e)return{signature:e,type:"secp256k1"};let n=S(e);return{...e,..."p256"===n?{prehash:e.prehash}:{},..."keychain"===n?{...!("object"==typeof e&&null!==e&&"version"in e&&e.version)?{version:"v2"}:{},...!("object"==typeof e&&"keyId"in e&&e.keyId)?"p256"===(r=e.inner).type||"webAuthn"===r.type?{keyId:i.fromPublicKey(r.publicKey)}:"secp256k1"===r.type&&t?.payload?{keyId:i.fromPublicKey(l.recoverPublicKey({payload:t.payload,signature:r.signature}))}:{}:{}}:{},type:n}}function k(e){if("secp256k1"===e.type)return{signature:c.fromRpc(e),type:"secp256k1"};if("p256"===e.type)return{prehash:e.preHash,publicKey:{prefix:4,x:n.toBigInt(e.pubKeyX),y:n.toBigInt(e.pubKeyY)},signature:{r:n.toBigInt(e.r),s:n.toBigInt(e.s)},type:"p256"};if("webAuthn"===e.type){let t,r,i=e.webauthnData,a=n.size(i);for(let e=37;e<a;e++){let a=n.toString(n.slice(i,e));if(a.startsWith("{")&&a.endsWith("}"))try{JSON.parse(a),t=n.slice(i,0,e),r=a;break}catch{}}if(!t||!r)throw new N({reason:"Unable to parse WebAuthn metadata: could not extract valid authenticatorData and clientDataJSON",serialized:i});return{metadata:{authenticatorData:t,clientDataJSON:r},publicKey:{prefix:4,x:n.toBigInt(e.pubKeyX),y:n.toBigInt(e.pubKeyY)},signature:{r:n.toBigInt(e.r),s:n.toBigInt(e.s)},type:"webAuthn"}}if("keychain"===e.type||"userAddress"in e&&"signature"in e)return{type:"keychain",userAddress:e.userAddress,inner:k(e.signature),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};throw new I({envelope:e})}function S(e){if("object"!=typeof e||null===e)throw new I({envelope:e});if("type"in e&&e.type)return e.type;if("signature"in e&&!("publicKey"in e)&&"object"==typeof e.signature&&null!==e.signature&&"r"in e.signature&&"s"in e.signature&&"yParity"in e.signature||"r"in e&&"s"in e&&"yParity"in e)return"secp256k1";if("signature"in e&&"prehash"in e&&"publicKey"in e&&"boolean"==typeof e.prehash)return"p256";if("signature"in e&&"metadata"in e&&"publicKey"in e)return"webAuthn";if("userAddress"in e&&"inner"in e)return"keychain";throw new I({envelope:e})}function T(e,t={}){let r=S(e);if("secp256k1"===r)return n.concat(c.toHex(e.signature),t.magic?w:"0x");if("p256"===r)return n.concat(m,n.fromNumber(e.signature.r,{size:32}),n.fromNumber(e.signature.s,{size:32}),n.fromNumber(e.publicKey.x,{size:32}),n.fromNumber(e.publicKey.y,{size:32}),n.fromNumber(+!!e.prehash,{size:1}),t.magic?w:"0x");if("webAuthn"===r){let r=n.concat(e.metadata.authenticatorData,n.fromString(e.metadata.clientDataJSON));return n.concat(y,r,n.fromNumber(e.signature.r,{size:32}),n.fromNumber(e.signature.s,{size:32}),n.fromNumber(e.publicKey.x,{size:32}),n.fromNumber(e.publicKey.y,{size:32}),t.magic?w:"0x")}if("keychain"===r){let r="v1"===e.version?b:g;return n.concat(r,e.userAddress,T(e.inner),t.magic?w:"0x")}throw new I({envelope:e})}function C(e){let t=S(e);if("secp256k1"===t)return{...c.toRpc(e.signature),type:"secp256k1"};if("p256"===t)return{preHash:e.prehash,pubKeyX:n.fromNumber(e.publicKey.x,{size:32}),pubKeyY:n.fromNumber(e.publicKey.y,{size:32}),r:n.fromNumber(e.signature.r,{size:32}),s:n.fromNumber(e.signature.s,{size:32}),type:"p256"};if("webAuthn"===t){let t=n.concat(e.metadata.authenticatorData,n.fromString(e.metadata.clientDataJSON));return{pubKeyX:n.fromNumber(e.publicKey.x,{size:32}),pubKeyY:n.fromNumber(e.publicKey.y,{size:32}),r:n.fromNumber(e.signature.r,{size:32}),s:n.fromNumber(e.signature.s,{size:32}),type:"webAuthn",webauthnData:t}}if("keychain"===t)return{type:"keychain",userAddress:e.userAddress,signature:C(e.inner),...e.keyId?{keyId:e.keyId}:{},...e.version?{version:e.version}:{}};throw new I({envelope:e})}class I extends a.BaseError{constructor({envelope:e}){super(`Unable to coerce value (\`${o.stringify(e)}\`) to a valid signature envelope.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.CoercionError"})}}class P extends a.BaseError{constructor({envelope:e,missing:t,type:r}){super(`Signature envelope of type "${r}" is missing required properties: ${t.map(e=>`\`${e}\``).join(", ")}.
2
3Provided: ${o.stringify(e)}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.MissingPropertiesError"})}}class N extends a.BaseError{constructor({reason:e,serialized:t}
3){super(`Unable to deserialize signature envelope: ${e}`,{metaMessages:[`Serialized: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.InvalidSerializedError"})}}class O extends a.BaseError{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureEnvelope.VerificationError"})}}e.s(["CoercionError",0,I,"InvalidSerializedError",0,N,"MissingPropertiesError",0,P,"VerificationError",0,O,"assert",0,v,"deserialize",0,A,"extractAddress",0,_,"extractPublicKey",0,x,"from",0,E,"fromRpc",0,k,"getType",0,S,"magicBytes",0,w,"serialize",0,T,"toRpc",0,C,"types",0,["secp256k1","p256","webAuthn"],"validate",0,function(e){try{return v(e),!0}catch{return!1}},"verify",0,function(e,t){let{payload:r}=t,a=t.address?t.address:t.publicKey?i.fromPublicKey(t.publicKey):void 0;if(!a)return!1;let o=E(e);if("secp256k1"===o.type)return!!a&&l.verify({address:a,payload:r,signature:o.signature});if("p256"===o.type){let e=i.fromPublicKey(o.publicKey);return!!i.isEqual(e,a)&&s.verify({hash:o.prehash,publicKey:o.publicKey,payload:r,signature:o.signature})}if("webAuthn"===o.type){let e=i.fromPublicKey(o.publicKey);return!!i.isEqual(e,a)&&function(e){let{challenge:t,metadata:r,origin:i,publicKey:a,rpId:o,signature:l}=e,{authenticatorData:c,clientDataJSON:f,userVerificationRequired:h}=r,m=d.fromHex(c);if(m.length<37)return!1;if(void 0!==o){let e=m.slice(0,32),t=p.sha256(n.fromString(o),{as:"Bytes"});if(!d.isEqual(e,t))return!1}let y=m[32];if((1&y)!=1||h&&(4&y)!=4||(8&y)!=8&&(16&y)==16)return!1;let b=JSON.parse(f);if("webauthn.get"!==b.type||!b.challenge||n.fromBytes(u.toBytes(b.challenge))!==t||void 0!==i&&!(Array.isArray(i)?i:[i]).includes(b.origin))return!1;let g=p.sha256(d.fromString(f),{as:"Bytes"}),w=d.concat(m,g);return s.verify({hash:!0,payload:w,publicKey:a,signature:l})}({challenge:n.from(r),metadata:o.metadata,publicKey:o.publicKey,signature:o.signature})}throw new O(`Unable to verify signature envelope of type "${o.type}".`)}],884930);var R=e.i(884930),R=R,U=e.i(570622),j=e.i(455067),L=e.i(43497),W=e.i(71145),z=e.i(212160),B=e.i(947356),D=e.i(360850),M=e.i(723242),F=e.i(557340),$=e.i(123564),K=e.i(26712),V=e.i(509527),G=e.i(423015),q=e.i(58327),H=e.i(769300);let Y=[{name:"recover",type:"function",stateMutability:"view",inputs:[{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"address",name:"signer"}]},{name:"verify",type:"function",stateMutability:"view",inputs:[{type:"address",name:"signer"},{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"bool"}]},{name:"verifyKeychain",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"bool"}]},{name:"verifyKeychainAdmin",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"hash"},{type:"bytes",name:"signature"}],outputs:[{type:"bool"}]},{name:"InvalidFormat",type:"error",inputs:[]},{name:"InvalidSignature",type:"error",inputs:[]}],J=[{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"}]}],outputs:[]},{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"tuple",name:"config",components:[{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"},{type:"uint64",name:"period"}]},{type:"bool",name:"allowAnyCalls"},{type:"tuple[]",name:"allowedCalls",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]}],outputs:[]},{name:"authorizeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"tuple",name:"config",components:[{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"tuple[]",name:"limits",components:[{type:"address",name:"token"},{type:"uint256",name:"amount"},{type:"uint64",name:"period"}]},{type:"bool",name:"allowAnyCalls"},{type:"tuple[]",name:"allowedCalls",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]},{type:"bytes32",name:"witness"}],outputs:[]},{name:"authorizeAdminKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"uint8",name:"signatureType"},{type:"bytes32",name:"witness"}],outputs:[]},{name:"burnKeyAuthorizationWitness",type:"function",stateMutability:"nonpayable",inputs:[{type:"bytes32",name:"witness"}],outputs:[]},{name:"revokeKey",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"}],outputs:[]},{name:"updateSpendingLimit",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"address",name:"token"},{type:"uint256",name:"newLimit"}],outputs:[]},{name:"setAllowedCalls",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"tuple[]",name:"scopes",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}],outputs:[]},{name:"removeAllowedCalls",type:"function",stateMutability:"nonpayable",inputs:[{type:"address",name:"keyId"},{type:"address",name:"target"}],outputs:[]},{name:"getKey",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"tuple",components:[{type:"uint8",name:"signatureType"},{type:"address",name:"keyId"},{type:"uint64",name:"expiry"},{type:"bool",name:"enforceLimits"},{type:"bool",name:"isRevoked"}]}]},{name:"getRemainingLimit",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"},{type:"address",name:"token"}],outputs:[{type:"uint256",name:"remaining"}]},{name:"getRemainingLimitWithPeriod",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"},{type:"address",name:"token"}],outputs:[{type:"uint256",name:"remaining"},{type:"uint64",name:"periodEnd"}]},{name:"getAllowedCalls",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"bool",name:"isScoped"},{type:"tuple[]",name:"scopes",components:[{type:"address",name:"target"},{type:"tuple[]",name:"selectorRules",components:[{type:"bytes4",name:"selector"},{type:"address[]",name:"recipients"}]}]}]},{name:"isKeyAuthorizationWitnessBurned",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"bytes32",name:"witness"}],outputs:[{type:"bool"}]},{name:"isAdminKey",type:"function",stateMutability:"view",inputs:[{type:"address",name:"account"},{type:"address",name:"keyId"}],outputs:[{type:"bool"}]},{name:"getTransactionKey",type:"function",stateMutability:"view",inputs:[],outputs:[{type:"address"}]},{name:"KeyAuthorized",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0},{type:"uint8",name:"signatureType"},{type:"uint64",name:"expiry"}]},{name:"AdminKeyAuthorized",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}]},{name:"KeyRevoked",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}]},{name:"SpendingLimitUpdated",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0}
3,{type:"address",name:"token",indexed:!0},{type:"uint256",name:"newLimit"}]},{name:"AccessKeySpend",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"address",name:"publicKey",indexed:!0},{type:"address",name:"token",indexed:!0},{type:"uint256",name:"amount"},{type:"uint256",name:"remainingLimit"}]},{name:"KeyAuthorizationWitness",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"bytes32",name:"witness",indexed:!0}]},{name:"KeyAuthorizationWitnessBurned",type:"event",inputs:[{type:"address",name:"account",indexed:!0},{type:"bytes32",name:"witness",indexed:!0}]},{name:"UnauthorizedCaller",type:"error",inputs:[]},{name:"KeyAlreadyExists",type:"error",inputs:[]},{name:"KeyNotFound",type:"error",inputs:[]},{name:"KeyExpired",type:"error",inputs:[]},{name:"SpendingLimitExceeded",type:"error",inputs:[]},{name:"InvalidSpendingLimit",type:"error",inputs:[]},{name:"InvalidSignatureType",type:"error",inputs:[]},{name:"ZeroPublicKey",type:"error",inputs:[]},{name:"ExpiryInPast",type:"error",inputs:[]},{name:"KeyAlreadyRevoked",type:"error",inputs:[]},{name:"SignatureTypeMismatch",type:"error",inputs:[{type:"uint8",name:"expected"},{type:"uint8",name:"actual"}]},{name:"CallNotAllowed",type:"error",inputs:[]},{name:"InvalidCallScope",type:"error",inputs:[]},{name:"InvalidKeyId",type:"error",inputs:[]},{name:"InvalidKeyAuthorizationWitness",type:"error",inputs:[]},{name:"KeyAuthorizationWitnessAlreadyBurned",type:"error",inputs:[]},{name:"LegacyAuthorizeKeySelectorChanged",type:"error",inputs:[{type:"bytes4",name:"newSelector"}]}];[...Y,...J];var X=e.i(881157),Z=e.i(28003),Q=a;function ee(e){return e.startsWith("tempo")?function(e){if(!e.startsWith("tempox"))throw new et({address:e});let t=e.slice(6);return n.assert(t,{strict:!0}),{address:i.checksum(t)}}(e).address:e}class et extends Q.BaseError{constructor({address:e}){super(`Tempo address "${e}" has an invalid prefix. Expected "tempox".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TempoAddress.InvalidPrefixError"})}}function er(e,t={}){if("keyId"in e)return en(e);void 0!==e.witness&&ep(e.witness);let r={...e,address:ee(e.address),...e.limits?{limits:e.limits.map(e=>({...e,token:ee(e.token)}))}:{},...e.scopes?{scopes:e.scopes.map(e=>({...e,address:ee(e.address),selector:ed(e.selector),...e.recipients?{recipients:e.recipients.map(e=>ee(e))}:{}}))}:{}};return t.signature?{...r,signature:E(t.signature)}:r}function en(e){let{allowedCalls:t,chainId:r,keyId:i,expiry:a,limits:o,keyType:s}=e,l=e.witness??void 0,c=e.isAdmin??void 0,u=e.account??void 0,d=k(e.signature);void 0!==l&&ep(l);let p=t?t.flatMap(e=>e.selectorRules&&0!==e.selectorRules.length?e.selectorRules.map(t=>{var r;return{address:e.target,selector:"string"==typeof(r=t.selector)?r:Array.isArray(r)?n.fromBytes(new Uint8Array(r)):r,...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
3}):[{address:e.target}]):void 0;return{address:i,chainId:"0x"===r?0n:n.toBigInt(r),...null!=a?{expiry:Number(a)}:{},limits:o?.map(e=>({token:e.token,limit:BigInt(e.limit),...e.period&&eu(e.period)>0?{period:eu(e.period)}:{}})),...p?{scopes:p}:{},signature:d,type:s,...void 0!==l?{witness:l}:{},...c?{isAdmin:!0}:{},...void 0!==u?{account:u}:{}}}function ei(e){let[t,r]=e,[i,a,o,...s]=t,l=(()=>{switch(a){case"0x":case"0x00":return"secp256k1";case"0x01":return"p256";case"0x02":return"webAuthn";default:throw Error(`Invalid key type: ${a}`)}})(),[c,u,d,p,f,h]=s,m=ef(c)?void 0:eu(c)||void 0,y=Array.isArray(u)&&u.length>0?u.map(e=>{var t;let[r,n,i]=e;return{token:r,limit:"0x"===(t=n)?0n:BigInt(t),...void 0!==i?{period:eu(i)}:{}}}):void 0,b=Array.isArray(d)?d.flatMap(e=>{let[t,r]=e;return Array.isArray(r)&&0!==r.length?r.map(e=>{let[r,n]=e;return{address:t,selector:r,...Array.isArray(n)&&n.length>0?{recipients:n}:{}}}):[{address:t}]}):void 0,g=ef(p)?void 0:p;void 0!==g&&ep(g);let w=(()=>{if(!ef(f)){if("0x01"!==f)throw new em(f);return!0}})(),v=ef(h)?void 0:h,_={address:o,chainId:"0x"===i?0n:n.toBigInt(i),type:l,...void 0!==m?{expiry:m}:{},...void 0!==y?{limits:y}:{},...void 0!==b?{scopes:b}:{},...void 0!==g?{witness:g}:{},...void 0!==v&&w?{account:v,isAdmin:!0}:{}};return r&&(_.signature=A(r)),er(_)}function ea(e){let[t]=es(e),r=Z.fromHex(t);return p.keccak256(r)}function eo(e){let{address:t,scopes:r,chainId:i,expiry:a,limits:o,type:s,signature:l,witness:c,isAdmin:u,account:d}=e;void 0!==c&&ep(c);let p=(()=>{if(!r)return;let e=new Map;for(let t of r){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push({selector:ed(t.selector),...t.recipients&&t.recipients.length>0?{recipients:t.recipients}:{}}
3)}return[...e.entries()].map(([e,t])=>({target:e,...t.length>0?{selectorRules:t}:{}}))})();return{chainId:0n===i?"0x":n.fromNumber(i),expiry:"number"==typeof a?n.fromNumber(a):null,keyId:ee(t),keyType:s,limits:o?.map(({token:e,limit:t,period:r})=>({token:e,limit:n.fromNumber(t),...r?{period:ec(r)}:{}})),signature:C(l),...p?{allowedCalls:p}:{},...void 0!==c?{witness:c}:{},...u?{isAdmin:!0}:{},...void 0!==d?{account:d}:{}}}function es(e){let{address:t,chainId:r,scopes:n,expiry:i,limits:a,witness:o,isAdmin:s,account:l}=e;void 0!==o&&ep(o);let c=e.signature?T(e.signature):void 0,u=(()=>{switch(e.type){case"secp256k1":return"0x";case"p256":return"0x01";case"webAuthn":return"0x02";default:throw Error(`Invalid key type: ${e.type}`)}})(),d=a?.map(e=>{let t=[e.token,el(e.limit)];return e.period&&e.period>0&&t.push(ec(e.period)),t}),p=(()=>{if(!n)return;let e=new Map;for(let t of n){let r=t.address;e.has(r)||e.set(r,[]),t.selector&&e.get(r).push([ed(t.selector),t.recipients??[]])}return[...e.entries()].map(([e,t])=>[e,t.map(([e,t])=>[e,t])])})(),f=void 0!==o||s||void 0!==l,h=[{value:null!=i&&0!==i?ec(i):void 0,placeholder:"0x"},{value:d,placeholder:f?"0x":[]},{value:p,placeholder:"0x"},{value:o,placeholder:"0x"},{value:s?"0x01":void 0,placeholder:"0x"},{value:l,placeholder:"0x"}],m=-1;for(let e=h.length-1;e>=0;e--)if(void 0!==h[e].value){m=e;break}let y=h.slice(0,m+1).map(({value:e,placeholder:t})=>e??t);return[[el(r),u,t,...y],...c?[c]:[]]}function el(e){return 0n===e?"0x":n.fromNumber(e)}function ec(e){return 0===e?"0x":n.fromNumber(e)}function eu(e){return"0x"===e?0:n.toNumber(e)}function ed(e){if(e)return e.startsWith("0x")?e:X.getSelector(e)}function ep(e){if(32!==n.size(e))throw new eh(e)}function ef(e){return void 0===e||"0x"===e}class eh extends Error{constructor(e){super(`Witness \`${e}\` must be exactly 32 bytes (got ${n.size(e)} bytes).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidWitnessSizeError"})}}class em extends Error{constructor(e){super(`Admin marker \`${e}\` is invalid; expected \`0x01\` (TIP-1049).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"KeyAuthorization.InvalidAdminMarkerError"})}}e.s(["InvalidAdminMarkerError",0,em,"InvalidWitnessSizeError",0,eh,"deserialize",0,function(e){return ei(Z.toHex(e))},"from",0,er,"fromRpc",0,en,"fromTuple",0,ei,"getSignPayload",0,function(e){return ea(e)},"hash",0,ea,"serialize",0,function(e){let t=es(e);return Z.fromHex(t)},"toRpc",0,eo,"toTuple",0,es],949347);var ey=e.i(949347),ey=ey,R=R;async function eb(e,t){var r;let{chainId:n,key:a,expiry:o,limits:s,scopes:l,witness:c,admin:u}=t,{accessKeyAddress:d,keyType:p}="accessKeyAddress"in(r=a)?{accessKeyAddress:r.accessKeyAddress,keyType:r.keyType}:"publicKey"in r&&r.publicKey?{accessKeyAddress:i.fromPublicKey(f.fromHex(r.publicKey)),keyType:r.type}:{accessKeyAddress:r.address,keyType:r.type},h="accessKey"===e.source&&"accessKeyAddress"in e,m=h?{account:e.address}:{},y=u?{}:{expiry:o,limits:s,scopes:l},b=ey.getSignPayload({address:d,chainId:n,type:p,witness:c,...u?{isAdmin:!0}:{},...m,...y}),g=h?await e.sign({hash:b,raw:!0}):await e.sign({hash:b});return ey.from({address:d,chainId:n,signature:R.from(g),type:p,...c?{witness:c}:{},...u?{isAdmin:!0}:{},...m,...y})}let eg="0xaAAAaaAA00000000000000000000000000000000",ew=["genesis","t0","t1","t1a","t1b","t1c","t2","t3","t4","t5","t6"];var ev=e.i(957018);function e_(e){return{...e,data:(0,ev.encodeFunctionData)(e),to:e.address}}let ex={0:"secp256k1",1:"p256",2:"webAuthn"}
3,eA={true:"limited",false:"unlimited"};async function eE(e,t){return eE.inner(G.sendTransaction,e,t)}async function ek(e,t){return ek.inner(q.writeContract,e,t)}(t=eE||(eE={})).inner=async function(e,t,r){let{accessKey:n,admin:i,chainId:a=t.chain?.id,expiry:o,limits:s,scopes:l,witness:c,...u}=r,d=u.account??t.account;if(!d)throw Error("account is required.");if(!a)throw Error("chainId is required.");let p=(0,K.parseAccount)(d),f=await eb(p,{chainId:BigInt(a),key:n,admin:i,expiry:o,limits:s,scopes:l,witness:c});return await e(t,{...u,keyAuthorization:f})},t.extractEvent=function(e){let[t]=(0,H.parseEventLogs)({abi:J,logs:e,eventName:"KeyAuthorized",strict:!0});if(!t)throw Error("`KeyAuthorized` event not found.");return t};var eS=ek||(ek={});async function eT(e,t,r){let{witness:n,...i}=r,a=eS.call({witness:n});return await e(t,{...i,...a})}async function eC(e,t){let{account:r=e.account,accessKey:n,...i}=t;if(!r)throw Error("account is required.");let a=(0,K.parseAccount)(r),o=await (0,V.readContract)(e,{...i,account:null,...eC.call({account:a.address,accessKey:n})});return{address:o.keyId,keyType:ex[o.signatureType]??"secp256k1",expiry:o.expiry,spendPolicy:eA[`${o.enforceLimits}`],isRevoked:o.isRevoked}}async function eI(e,t){let{account:r=e.account,accessKey:n,token:i,...a}=t;if(!r)throw Error("account is required.");let o=(0,K.parseAccount)(r),s=e.chain?.hardfork;if(s&&ew.indexOf(s)<ew.indexOf("t3"))return{remaining:await (0,V.readContract)(e,{...a,...eI.call({account:o.address,accessKey:n,token:i})}),periodEnd:void 0};let[l,c]=await (0,V.readContract)(e,{...a,...eI.callWithPeriod({account:o.address,accessKey:n,token:i})});return{remaining:l,periodEnd:c}}async function eP(e,t){let{account:r=e.account,accessKey:n,...i}=t;if(!r)throw Error("account is required.");let a=(0,K.parseAccount)(r);return(0,V.readContract)(e,{...i,account:null,...eP.call({account:a.address,accessKey:n})})}async function eN(e,t){let{account:r=e.account,witness:n,...i}=t;if(!r)throw Error("account is required.");let a=(0,K.parseAccount)(r);return(0,V.readContract)(e,{...i,account:null,...eN.call({account:a.address,witness:n})})}async function eO(e,t){return eO.inner(q.writeContract,e,t)}eS.inner=eT,eS.call=function(e){let{witness:t}=e;return e_({address:eg,abi:J,functionName:"burnKeyAuthorizationWitness",args:[t]})},eS.extractEvent=function(e){let[t]=(0,H.parseEventLogs)({abi:J,logs:e,eventName:"KeyAuthorizationWitnessBurned",strict:!0});if(!t)throw Error("`KeyAuthorizationWitnessBurned` event not found.");return t},(eC||(eC={})).call=function(e){let{account:t,accessKey:r}=e;return e_({address:eg,abi:J,functionName:"getKey",args:[t,eB(r)]})},(r=eI||(eI={})).call=function(e){let{account:t,accessKey:r,token:n}=e;return e_({address:eg,abi:J,functionName:"getRemainingLimit",args:[t,eB(r),n]})},r.callWithPeriod=function(e){let{account:t,accessKey:r,token:n}=e;return e_({address:eg,abi:J,functionName:"getRemainingLimitWithPeriod",args:[t,eB(r),n]})},(eP||(eP={})).call=function(e){let{account:t,accessKey:r}=e;return e_({address:eg,abi:J,functionName:"isAdminKey",args:[t,eB(r)]})},(eN||(eN={})).call=function(e){let{account:t,witness:r}=e;return e_({address:eg,abi:J,functionName:"isKeyAuthorizationWitnessBurned",args:[t,r]})};var eR=eO||(eO={});async function eU(e,t,r){let{accessKey:n,...i}=r,a=eR.call({accessKey:n});return await e(t,{...i,...a})}async function ej(e,t){return ej.inner(q.writeContract,e,t)}eR.inner=eU,eR.call=function(e){let{accessKey:t}=e;return e_({address:eg,abi:J,functionName:"revokeKey",args:[eB(t)]})},eR.extractEvent=function(e){let[t]=(0,H.parseEventLogs)({abi:J,logs:e,eventName:"KeyRevoked",strict:!0});if(!t)throw Error("`KeyRevoked` event not found.");return t};var eL=ej||(ej={});async function eW(e,t,r){let{accessKey:n,token:i,limit:a,...o}=r,s=eL.call({accessKey:n,token:i,limit:a});return await e(t,{...o,...s})}async function ez(e,t){let{account:r,admin:n,hash:i,signature:a,...o}=t;return(0,V.readContract)(e,{...o,...ez.call({account:r,admin:n,hash:i,signature:a})})}function eB(e){return"string"==typeof e?e:e.accessKeyAddress}eL.inner=eW,eL.call=function(e){let{accessKey:t,token:r,limit:n}=e;return e_({address:eg,abi:J,functionName:"updateSpendingLimit",args:[eB(t),r,n]})},eL.extractEvent=function(e){let[t]=(0,H.parseEventLogs)({abi:J,logs:e,eventName:"SpendingLimitUpdated",strict:!0});if(!t)throw Error("`SpendingLimitUpdated` event not found.");return t},(ez||(ez={})).call=function(e){let{account:t,admin:r=!0,hash:n,signature:i}=e;return e_({address:"0x5165300000000000000000000000000000000000",abi:Y,functionName:r?"verifyKeychainAdmin":"verifyKeychain",args:[t,n,i]})};var eD=e.i(280732);let eM={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"},eF={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function e$(e){let{address:t,chainId:r,nonce:n}=e,i=k(e.signature);return{address:t,chainId:Number(r),nonce:BigInt(n),signature:i}}function eK(e){return e.map(e=>e$(e))}function eV(e){return e.map(e=>(function(e){let{address:t,chainId:r,nonce:i,signature:a}=e;return{address:t,chainId:n.fromNumber(r),nonce:n.fromNumber(i),signature:C(a)}})(e))}let eG={...eM,tempo:"0x76"},eq={...eF,"0x76":"tempo"};e.s(["fromRpc",0,function(e,t={}){if(!e)return null;let r=function(e,t={}){if(!e)return null;let r=c.extract(e),n={...e,...r};return n.blockNumber=e.blockNumber?BigInt(e.blockNumber):null,"blockTimestamp"in e&&(n.blockTimestamp=e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0),n.data=e.input,n.gas=BigInt(e.gas??0n),n.nonce=BigInt(e.nonce??0n),n.transactionIndex=e.transactionIndex?Number(e.transactionIndex):null,n.value=
3BigInt(e.value??0n),e.authorizationList&&(n.authorizationList=eD.fromRpcList(e.authorizationList)),e.chainId&&(n.chainId=Number(e.chainId)),e.gasPrice&&(n.gasPrice=BigInt(e.gasPrice)),e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=BigInt(e.maxFeePerBlobGas)),e.maxFeePerGas&&(n.maxFeePerGas=BigInt(e.maxFeePerGas)),e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=BigInt(e.maxPriorityFeePerGas)),e.type&&(n.type=eF[e.type]??e.type),r&&(n.v=c.yParityToV(r.yParity)),n}(e);return r.type=eq[e.type],e.aaAuthorizationList&&(r.authorizationList=eK(e.aaAuthorizationList),delete r.aaAuthorizationList),e.calls&&(r.calls=e.calls.map(e=>({to:e.to,value:e.value&&"0x"!==e.value?BigInt(e.value):void 0,data:e.input||e.data||"0x"}))),e.feeToken&&(r.feeToken=e.feeToken),e.nonceKey&&(r.nonceKey=BigInt(e.nonceKey)),e.signature&&(r.signature=k(e.signature)),e.validAfter&&(r.validAfter=Number(e.validAfter)),e.validBefore&&(r.validBefore=Number(e.validBefore)),e.keyAuthorization&&(r.keyAuthorization=en(e.keyAuthorization)),e.feePayerSignature&&(r.feePayerSignature=c.fromRpc(e.feePayerSignature),r.feePayerSignature.v=c.yParityToV(r.feePayerSignature.yParity)),r},"fromRpcType",0,eq,"toRpc",0,function(e,t){let r,i=((r={}).blockHash=e.blockHash,r.blockNumber="bigint"==typeof e.blockNumber?n.fromNumber(e.blockNumber):null,"bigint"==typeof e.blockTimestamp?r.blockTimestamp=n.fromNumber(e.blockTimestamp):null===e.blockTimestamp&&(r.blockTimestamp=null),r.from=e.from,r.gas=n.fromNumber(e.gas??0n),r.hash=e.hash,r.input=e.input,r.nonce=n.fromNumber(e.nonce??0n),r.to=e.to,r.transactionIndex=e.transactionIndex?n.fromNumber(e.transactionIndex):null,r.type=eM[e.type]??e.type,r.value=n.fromNumber(e.value??0n),e.accessList&&(r.accessList=e.accessList),e.authorizationList&&(r.authorizationList=eD.toRpcList(e.authorizationList)),e.blobVersionedHashes&&(r.blobVersionedHashes=e.blobVersionedHashes),e.chainId&&(r.chainId=n.fromNumber(e.chainId)),"bigint"==typeof e.gasPrice&&(r.gasPrice=n.fromNumber(e.gasPrice)),"bigint"==typeof e.maxFeePerBlobGas&&(r.maxFeePerBlobGas=n.fromNumber(e.maxFeePerBlobGas)),"bigint"==typeof e.maxFeePerGas&&(r.maxFeePerGas=n.fromNumber(e.maxFeePerGas)),"bigint"==typeof e.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=n.fromNumber(e.maxPriorityFeePerGas)),"bigint"==typeof e.r&&(r.r=n.fromNumber(e.r,{size:32})),"bigint"==typeof e.s&&(r.s=n.fromNumber(e.s,{size:32})),"number"==typeof e.v&&(r.v=n.fromNumber(e.v,{size:1})),"number"==typeof e.yParity&&(r.yParity=0===e.yParity?"0x0":"0x1"),r);return i.type=eG[e.type],e.authorizationList&&(i.aaAuthorizationList=eV(e.authorizationList)),e.calls&&(i.calls=e.calls.map(e=>({to:e.to,value:e.value?n.fromNumber(e.value):void 0,data:e.data}))),e.feeToken&&(i.feeToken=e.feeToken),e.keyAuthorization&&(i.keyAuthorization=eo(e.keyAuthorization)),e.feePayerSignature&&(i.feePayerSignature=c.toRpc(e.feePayerSignature),i.feePayerSignature.v=n.fromNumber(c.yParityToV(e.feePayerSignature?.yParity))),e.signature&&(i.signature=C(e.signature)),"number"==typeof e.validAfter&&(i.validAfter=n.fromNumber(e.validAfter)),"number"==typeof e.validBefore&&(i.validBefore=n.fromNumber(e.validBefore)),i},"toRpcType",0,eG],514119);var eH=e.i(514119),eH=eH;function eY(e){if("string"==typeof e){let t=ee(e);return i.assert(t),t}let t=n.fromNumber(e,{size:18});return n.concat("0x20c0",t)}e.s(["fromRpc",0,function(e){let{authorizationList:t,...r}=e,i=(void 0!==r.authorizationList&&(r.authorizationList=eD.fromRpcList(r.authorizationList)),void 0!==r.chainId&&(r.chainId=n.toNumber(r.chainId)),void 0!==r.gas&&(r.gas=n.toBigInt(r.gas)),void 0!==r.gasPrice&&(r.gasPrice=n.toBigInt(r.gasPrice)),void 0!==r.maxFeePerBlobGas&&(r.maxFeePerBlobGas=n.toBigInt(r.maxFeePerBlobGas)),void 0!==r.maxFeePerGas&&(r.maxFeePerGas=n.toBigInt(r.maxFeePerGas)),void 0!==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=n.toBigInt(r.maxPriorityFeePerGas)),void 0!==r.nonce&&(r.nonce=n.toBigInt(r.nonce)),void 0!==r.type&&(r.type=eF[r.type]||r.type),void 0!==r.value&&(r.value=n.toBigInt(r.value)),r);return void 0!==e.type&&(i.type=eq[e.type]||i.type),e.authorizationList&&(i.authorizationList=eK(e.authorizationList)),e.calls&&(i.calls=e.calls.map(e=>{let t={to:e.to,data:e.data};return e.value&&"0x"!==e.value&&(t.value=n.toBigInt(e.value)),t}
3)),void 0!==e.feeToken&&(i.feeToken=e.feeToken),e.keyAuthorization&&(i.keyAuthorization=en(e.keyAuthorization)),void 0!==e.validBefore&&(i.validBefore=n.toNumber(e.validBefore)),void 0!==e.validAfter&&(i.validAfter=n.toNumber(e.validAfter)),void 0!==e.nonceKey&&(i.nonceKey=n.toBigInt(e.nonceKey)),i},"toRpc",0,function(e){var t;let r,i=(t={...e,authorizationList:void 0},r={},void 0!==t.accessList&&(r.accessList=t.accessList),void 0!==t.authorizationList&&(r.authorizationList=eD.toRpcList(t.authorizationList)),void 0!==t.blobVersionedHashes&&(r.blobVersionedHashes=t.blobVersionedHashes),void 0!==t.blobs&&(r.blobs=t.blobs),void 0!==t.chainId&&(r.chainId=n.fromNumber(t.chainId)),void 0!==t.data?(r.data=t.data,r.input=t.data):void 0!==t.input&&(r.data=t.input,r.input=t.input),void 0!==t.from&&(r.from=t.from),void 0!==t.gas&&(r.gas=n.fromNumber(t.gas)),void 0!==t.gasPrice&&(r.gasPrice=n.fromNumber(t.gasPrice)),void 0!==t.maxFeePerBlobGas&&(r.maxFeePerBlobGas=n.fromNumber(t.maxFeePerBlobGas)),void 0!==t.maxFeePerGas&&(r.maxFeePerGas=n.fromNumber(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=n.fromNumber(t.maxPriorityFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=n.fromNumber(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(r.nonce=n.fromNumber(t.nonce)),void 0!==t.to&&(r.to=t.to),void 0!==t.type&&(r.type=eM[t.type]||t.type),void 0!==t.value&&(r.value=n.fromNumber(t.value)),r);e.authorizationList&&(i.authorizationList=eV(e.authorizationList)),e.calls?i.calls=e.calls.map(e=>({to:e.to?ee(e.to):e.to,value:e.value?n.fromNumber(e.value):"0x",data:e.data??"0x"})):(e.to||e.data||e.value)&&(i.calls=[{to:e.to?ee(e.to):void 0,value:e.value?n.fromNumber(e.value):"0x",data:e.data??"0x"}]),void 0!==e.feeToken&&(i.feeToken=eY(e.feeToken)),e.keyAuthorization&&(i.keyAuthorization=eo(e.keyAuthorization)),void 0!==e.validBefore&&(i.validBefore=n.fromNumber(e.validBefore)),void 0!==e.validAfter&&(i.validAfter=n.fromNumber(e.validAfter));let a="random"===e.nonceKey?n.random(6):"bigint"==typeof e.nonceKey?n.fromNumber(e.nonceKey):void 0;return a&&(i.nonceKey=a),(void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feeToken||void 0!==e.ke
3yAuthorization||void 0!==e.nonceKey||void 0!==e.validBefore||void 0!==e.validAfter||"tempo"===e.type)&&(i.type=eG.tempo,delete i.data,delete i.input,delete i.to,delete i.value),i}],483751);var eJ=e.i(483751),eJ=eJ,R=R,eX=a;class eZ extends eX.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${n.size(e)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccessList.InvalidStorageKeySizeError"})}}var eQ=a,e0=a;let e1={wei:0,gwei:9,szabo:12,finney:15,ether:18};function e2(e,t="wei"){return function(e,t=0){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}(e,e1.gwei-e1[t])}a.BaseError;class e3 extends e0.BaseError{constructor({feeCap:e}={}){super(`The fee cap (\`maxFeePerGas\`/\`maxPriorityFeePerGas\`${e?` = ${e2(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.FeeCapTooHighError"})}}e0.BaseError;class e5 extends e0.BaseError{constructor({chainId:e}){super(void 0!==e?`Chain ID "${e}
3" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidChainIdError"})}}class e6 extends e0.BaseError{constructor({attributes:e,serialized:t,type:r}){const n=Object.entries(e).map(([e,t])=>void 0===t?e:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${t}"`,n.length>0?`Missing Attributes: ${n.join(", ")}`:""].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.InvalidSerializedError"})}}class e4 extends e0.BaseError{constructor({maxPriorityFeePerGas:e,maxFeePerGas:t}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${e2(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t?` = ${e2(t)} gwei`:""}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionEnvelope.TipAboveFeeCapError"})}}let e8="0x78",e9="0x76",e7="tempo";function te(e){let{calls:t,chainId:r,maxFeePerGas:n,maxPriorityFeePerGas:a,validBefore:o,validAfter:s}=e;if(!t||0===t.length)throw new ts;if("number"==typeof o&&"number"==typeof s&&o<=s)throw new tl({validBefore:o,validAfter:s});if(t)for(let e of t)e.to&&i.assert(e.to,{strict:!1});if(r<=0)throw new e5({chainId:r});if(n&&BigInt(n)>2n**256n-1n)throw new e3({feeCap:n});if(a&&n&&a>n)throw new e4({maxFeePerGas:n,maxPriorityFeePerGas:a})}function tt(e){let t=Z.toHex(n.slice(e,1)),[r,a,o,s,l,u,d,f,h,m,y,b,g,w,v]=t,x=Array.isArray(w)?w:void 0,E=x?v:w;if(13!==t.length&&14!==t.length&&15!==t.length)throw new e6({attributes:{authorizationList:g,chainId:r,maxPriorityFeePerGas:a,maxFeePerGas:o,gas:s,calls:l,accessList:u,keyAuthorization:x,nonceKey:d,nonce:f,validBefore:h,validAfter:m,feeToken:y,feePayerSignatureOrSender:b,...t.length>12?{signature:E}:{}},serialized:e,type:e7});let k={chainId:Number(r),type:e7};n.validate(s)&&"0x"!==s&&(k.gas=BigInt(s)),n.validate(f)&&(k.nonce="0x"===f?0n:BigInt(f)),n.validate(o)&&"0x"!==o&&(k.maxFeePerGas=BigInt(o)),n.validate(a)&&"0x"!==a&&(k.maxPriorityFeePerGas=BigInt(a)),n.validate(d)&&(k.nonceKey="0x"===d?0n:BigInt(d)),n.validate(h)&&"0x"!==h&&(k.validBefore=Number(h)),n.val
3idate(m)&&"0x"!==m&&(k.validAfter=Number(m)),n.validate(y)&&"0x"!==y&&(k.feeToken=y),l&&"0x"!==l&&(k.calls=l.map(e=>{let[t,r,n]=e,i={};return t&&"0x"!==t&&(i.to=t),r&&"0x"!==r&&(i.value=BigInt(r)),n&&"0x"!==n&&(i.data=n),i})),u?.length!==0&&"0x"!==u&&(k.accessList=function(e){let t=[];for(let r=0;r<e.length;r++){let[a,o]=e[r];a&&i.assert(a,{strict:!1}),t.push({address:a,storageKeys:o.map(e=>p.validate(e)?e:n.trimLeft(e))})}return t}(u)),g?.length!==0&&"0x"!==g&&(k.authorizationList=function(e){let t=[];for(let r of e)t.push(function(e){let[t,r,n,i]=e,a={address:r,chainId:"0x"===t?0:Number(t),nonce:"0x"===n?0n:BigInt(n)};return i&&(a.signature=A(i)),function(e,t={}){if("string"==typeof e.chainId)return e$(e);let r={...e,address:ee(e.address)};return t.signature?{...r,signature:t.signature}:r}(a)}(r));return t}(g)),"0x"!==b&&void 0!==b&&("0x00"===b||i.validate(b)?(k.feePayerSignature=null,i.validate(b)&&(k.from=b)):k.feePayerSignature=c.fromTuple(b)),x&&(k.keyAuthorization=ei(x));let S=E?A(E):void 0;if(S&&(k={...k,signature:S}),!k.from&&S)try{k.from=_({payload:ta(tr(k)),signature:S,root:!0})}catch{}return te(k),k}function tr(e,t={}){let{feePayerSignature:r,signature:n}=t,i="string"==typeof e?tt(e):e;return i.from&&(i.from=ee(i.from)),i.calls&&(i.calls=i.calls.map(e=>({...e,...e.to?{to:ee(e.to)}:{}}))),te(i),{...i,...n?{signature:E(n)}:{},...r?{feePayerSignature:c.from(r)}:{},type:"tempo"}}function tn(e,t={}){let{accessList:r,authorizationList:a,calls:o,chainId:s,feeToken:u,gas:d,keyAuthorization:p,nonce:f,nonceKey:h,maxFeePerGas:m,maxPriorityFeePerGas:y,validBefore:b,validAfter:g}=e;te(e);let w=function(e){if(!e||0===e.length)return[];let t=[];for(let{address:r,storageKeys:a}of e){for(let e=0;e<a.length;e++)if(32!==n.size(a[e]))throw new eZ({storageKey:a[e]});r&&i.assert(r,{strict:!1}),t.push([r,a])}return t}(r),v=t.signature||e.signature,_=function(e){if(!e||0===e.length)return[];let t=[];for(let r of e)t.push(function(e){let{address:t,chainId:r,nonce:i}=e,a=e.signature?T(e.signature):void 0;return[r?n.fromNumber(r):"0x",t,i?n.fromNumber(i):"0x",...a?[a]:[]]}(r));return t}(a),x=o.map(e=>[e.to?ee(e.to):"0x",e.value?n.fromNumber(e.value):"0x",e.data??"0x"]),A=!1,k=(()=>{if(t.sender)return t.sender;if("feePayer"===t.format&&v){let t=E(v);if("keychain"===t.type)return t.userAddress;if("p256"===t.type||"webAuthn"===t.type)return i.fromPublicKey(t.publicKey);if("secp256k1"===t.type)return l.recoverAddress({payload:ta(tr(e)),signature:t.signature})}let r=void 0!==t.feePayerSignature?t.feePayerSignature:e.feePayerSignature;return null===r?(A=!0,"0x00"):r?c.toTuple(r):"0x"})(),S=[n.fromNumber(s),y?n.fromNumber(y):"0x",m?n.fromNumber(m):"0x",d?n.fromNumber(d):"0x",x,w,h?n.fromNumber(h):"0x",f?n.fromNumber(f):"0x","number"==typeof b?n.fromNumber(b):"0x","number"==typeof g?n.fromNumber(g):"0x",A||"bigint"!=typeof u&&"string"!=typeof u?"0x":eY(u),k,_,...p?[es(p)]:[],...v?[T(E(v))]:[]];return n.concat("feePayer"===t.format?e8:e9,Z.fromHex(S))}function ti(e){return tn({...e,signature:void 0,...void 0!==e.feePayerSignature?{feePayerSignature:null}:{}})}function ta(e,t={}){let r=to(e,{presign:!0});return t.from?p.keccak256(n.concat("0x04",r,ee(t.from))):r}function to(e,t={}){let r=t.presign?ti(e):tn(e);return p.keccak256(r)}class ts extends eQ.BaseError{constructor(){super("Calls list cannot be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.CallsEmptyError"})}}class tl extends eQ.BaseError{constructor({validBefore:e,validAfter:t}){super(`validBefore (${e}) must be greater than validAfter (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TxEnvelopeTempo.InvalidValidityWindowError"})}}e.s(["CallsEmptyError",0,ts,"InvalidValidityWindowError",0,tl,"assert",0,te,"deserialize",0,tt,"encodeForSigning",0,ti,"feePayerMagic",0,e8,"from",0,tr,"getFeePayerSignPayload",0,function(e,t){let r=ee(t.sender),n=tn({...e,signature:void 0},{sender:r,format:"feePayer"});return p.keccak256(n)},"getSignPayload",0,ta,"hash",0,to,"serialize",0,tn,"serializedType",0,e9,"type",0,e7,"validate",0,function(e){try{return te(e),!0}catch{return!1}}],931520);var tc=e.i(931520),tc=tc,tu=e.i(753819),td=e.i(542922);function tp(e){let t=e.account;return t?.keyType&&"secp256k1"!==t.keyType||t?.source==="accessKey"||void 0!==e.calls||void 0!==e.feePayer||void 0!==e.feeToken||void 0!==e.ke
3yAuthorization||void 0!==e.nonceKey||void 0!==e.signature||void 0!==e.validBefore||void 0!==e.validAfter?"tempo":e.type?e.type:(0,tu.getTransactionType)(e)}function tf(e){try{let t=tp(e);return"tempo"===t}catch{return!1}}async function th(e,t){if(!tf(e)){if(t&&"type"in t&&"secp256k1"!==t.type)throw Error("Unsupported signature type. Expected `secp256k1` but got `"+t.type+"`.");if(t&&"type"in t){let{r,s:i,yParity:a}=t?.signature;return(0,td.serializeTransaction)(e,{r:n.fromNumber(r,{size:32}),s:n.fromNumber(i,{size:32}),yParity:a})}return(0,td.serializeTransaction)(e,t)}if("tempo"===tp(e))return tm(e,t);throw Error("Unsupported transaction type")}async function tm(e,t){let r,n=e.signature?e.signature:t&&"type"in t?t:t?R.from({r:BigInt(t.r),s:BigInt(t.s),yParity:Number(t.yParity)}):void 0,{chainId:i,feePayer:a,nonce:o,...s}=e,u=(r=e.feePayerSignature)?{r:BigInt(r.r),s:BigInt(r.s),yParity:Number(r.yParity)}:null===r||a?null:void 0,d=void 0!==e.feePayerSignature&&null!==e.feePayerSignature,p=!0===a&&(!n||!u)||!n&&d,f={...s,calls:s.calls?.length?s.calls:[{to:s.to||(s.data&&"0x"!==s.data?void 0:"0x0000000000000000000000000000000000000000"),value:s.value,data:s.data}],chainId:Number(i),feePayerSignature:u,type:"tempo",...o?{nonce:BigInt(o)}:{}};if(p&&delete f.feeToken,n&&"object"==typeof e.feePayer){let t=tc.from(f,{signature:n}),r=(()=>{if(e.from)return e.from;if("secp256k1"===n.type)return l.recoverAddress({payload:tc.getSignPayload(t),signature:n.signature});throw Error("Unable to extract sender from transaction or signature.")})(),i=tc.getFeePayerSignPayload(t,{sender:r}),a=await e.feePayer.sign({hash:i});return tc.serialize(t,{feePayerSignature:c.from(a)})}return!0===a||!n&&d?n&&u?tc.serialize(f,{signature:n}):n?tc.serialize(f,{format:"feePayer",sender:e.from,signature:n}):tc.serialize(f,{feePayerSignature:null}):tc.serialize({...f,...a&&!u?{feeToken:void 0}:{}},{feePayerSignature:void 0,signature:n})}function ty(e){if(!e)return e;let t=(e.length-2)/2;return t<=4?e:n.fromNumber(t,{size:2})}let tb=new Map;async function tg(e){tb.set(e,(tb.get(e)??0)+1),await Promise.resolve();let t=(tb.get(e)??0)>1;return queueMicrotask(()=>{let t=tb.get(e)??0;t<=1?tb.delete(e):tb.set(e,t-1)}),t}let tw={blockTime:1e3,extendSchema:(0,z.extendSchema)(),formatters:{transaction:(0,B.defineTransaction)({exclude:["aaAuthorizationList"],format:function(e){if(!tf(e))return(0,B.formatTransaction)(e);let t=null==e.blockTimestamp?void 0:BigInt(e.blockTimestamp),{feePayerSignature:r,gasPrice:i,nonce:a,...o}=eH.fromRpc(e);return{...o,accessList:o.accessList,...void 0!==t&&{blockTimestamp:t},feePayerSignature:r?{r:n.fromNumber(r.r,{size:32}),s:n.fromNumber(r.s,{size:32}),v:BigInt(r.v??27),yParity:r.yParity}:void 0,nonce:Number(a),typeHex:eH.toRpcType[o.type],type:o.type}}}),transactionReceipt:(0,D.defineTransactionReceipt)({format:function(e){return(0,D.formatTransactionReceipt)(e)}}),transactionRequest:(0,M.defineTransactionRequest)({format:function(e,t){let r,n=e.account?(0,K.parseAccount)(e.account):void 0;if(!tf(e))return(0,M.formatTransactionRequest)(e,t);t&&(e.calls=e.calls??[{to:e.to||(e.data&&"0x"!==e.data?void 0:"0x0000000000000000000000000000000000000000"),value:e.value,data:e.data}]),!0!==e.feePayer||e.feePayerSignature||delete e.feeToken;let i=eJ.toRpc({...e,type:"tempo"});"estimateGas"===t&&(i.maxFeePerGas=void 0,i.maxPriorityFeePerGas=void 0),i.to=void 0,i.data=void 0,i.value=void 0;let[a,o]=(r=n&&"keyType"in n?n.keyType:n?.source)?"webAuthn"===r?["webAuthn","0x0578"]:["p256","secp256k1"].includes(r)?[r,void 0]:[e.keyType,ty(e.keyData)]:[e.keyType,ty(e.keyData)],s=n&&"accessKeyAddress"in n?n.accessKeyAddress:e.keyId;return n&&(i.from=n.address),{...i,...e.capabilities?{capabilities:e.capabilities}:{},...o?{keyData:o}:{},...s?{keyId:s}:{},...a?{keyType:a}:{},...void 0!==e.feePayer?{feePayer:"object"==typeof e.feePayer?(0,K.parseAccount)(e.feePayer):e.feePayer}:{},..."feePayerSignature"in e&&void 0!==e.feePayerSignature?{feePayerSignature:e.feePayerSignature}:{}}}})},prepareTransactionRequest:[async(e,{client:t,phase:r})=>{if("afterFillParameters"===r)return e.feePayer&&(e.keyAuthorization?.signature.type==="webAuthn"?e.gas=(e.gas??0n)+20000n:e.account?.source==="accessKey"&&(e.gas=(e.gas??0n)+10000n)),e;
3if(!e.keyAuthorization&&e.account?.source==="accessKey"){let r=e.account.keyAuthorizationManager;if(r){let n=e.chainId??e.chain?.id;if(void 0!==n){let i=e.account.address,a=e.account.accessKeyAddress,o={address:i,accessKey:a,chainId:n},s=await r.get(o);if(s){let n=BigInt(Math.floor(Date.now()/1e3));if(null!=s.expiry&&BigInt(s.expiry)<=n)await r.remove(o);else{let l=await (0,F.getAction)(t,eC,"getMetadata")({account:i,accessKey:a});(0,W.isAddressEqual)(l.address,a)&&!l.isRevoked&&l.expiry>n?await r.remove(o):e.keyAuthorization=s}}}}}return await (async()=>{if("expiring"===e.nonceKey||e.feePayer&&void 0===e.nonceKey)return!0;let t=e.account?.address;return!!t&&void 0===e.nonceKey&&await tg(t)})()?(e.nonceKey=L.maxUint256,e.nonce=0,void 0===e.validBefore&&(e.validBefore=Math.floor(Date.now()/1e3)+25)):void 0!==e.nonceKey&&(e.nonce="number"==typeof e.nonce?e.nonce:0),!e.feeToken&&e.chain?.feeToken&&(e.feeToken=e.chain.feeToken),e},{runAt:["beforeFillTransaction","afterFillParameters"]}],serializers:{transaction:(e,t)=>th(e,t)},async verifyHash(e,t){let{address:r,hash:i,signature:a,mode:o}=t,s=(()=>{if("string"==typeof a)try{return R.deserialize(a)}catch{return}})();if(s){if(s?.type==="keychain"&&"allowAccessKey"===o){let a="v2"===s.version?(0,$.keccak256)(n.concat("0x04",i,r)):i,o=(()=>{try{return R.extractAddress({payload:a,signature:s.inner})}catch{return}})();if(!o)return!1;let l=await eC(e,{account:r,accessKey:o,blockNumber:t.blockNumber,blockTag:t.blockTag});return!(l.isRevoked||l.expiry<=BigInt(Math.floor(Date.now()/1e3)))&&R.verify(s.inner,{address:o,payload:a})}if("p256"===s.type||"webAuthn"===s.type){let n=await (0,U.getCode)(e,{address:r,blockNumber:t.blockNumber,blockTag:t.blockTag});if(!n||"0xef01007702c00000000000000000000000000000000000"===n)return R.verify(s,{address:r,payload:i})}}return await (0,F.getAction)(e,j.verifyHash,"verifyHash")({...t,chain:null})}},tv=(0,z.defineChain)({...tw,id:4217,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.tempo.xyz"}},name:"Tempo Mainnet",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.tempo.xyz"],webSocket:["wss://rpc.tempo.xyz"]}}});e.s(["tempo",0,tv],816895);let t_=(0,z.defineChain)({...tw,id:42431,blockExplorers:{default:{name:"Tempo Explorer",url:"https://explore.testnet.tempo.xyz"}},name:"Tempo Testnet (Moderato)",nativeCurrency:{name:"USD",symbol:"USD",decimals:6},rpcUrls:{default:{http:["https://rpc.moderato.tempo.xyz"],webSocket:["wss://rpc.moderato.tempo.xyz"]}},testnet:!0});e.s(["tempoModerato",0,t_],627569)},664761,e=>{"use strict";var t=e.i(739566);e.s(["areAddressesEqual",0,(e,r)=>e===r||!(!e.startsWith("0x")||!r.startsWith("0x"))&&42===e.length&&42===r.length&&(0,t.getAddress)(e)===(0,t.getAddress)(r)])},801088,e=>{"use strict";var t=e.i(794189);let r=()=>{throw Error("You need to wrap your application with the <PrivyProvider> initialized with your app id.")},n=(0,t.createContext)({setAuthenticated:r,setUser:r,setIsNewUser:r,isNewUserThisSession:!1,walletConnectionStatus:null,setWalletConnectionStatus:r,connectors:[],rpcConfig:{rpcUrls:{}},showFiatPrices:!0,chains:[],clientAnalyticsId:null,pendingTransaction:null,client:null,privy:null,appId:"notAdded",hideWalletUIs:{current:!1},nativeTokenSymbolForChainId:r,initializeWalletProxy:r,getAuthMeta:r,getAuthFlow:r,closePrivyModal:r,openPrivyModal:r,connectWallet:r,initLoginWithWallet:r,loginWithWallet:r,initLoginWithFarcaster:r,loginWithFarcaster:r,loginWithCode:r,initLoginWithEmail:r,initLoginWithSms:r,initUpdateEmail:r,initUpdatePhone:r,resendEmailCode:r,resendSmsCode:r,initLoginWithHeadlessOAuth:r,loginWithHeadlessOAuth:r,crossAppAuthFlow:r,initLoginWithOAuth:r,loginWithOAuth:r,passkeyAuthState:{status:"initial"},setPasskeyAuthState:r,initSignupWithPasskey:r,signupWithPasskey:r,initLoginWithPasskey:r,loginWithPasskey:r,initLinkWithPasskey:r,linkWithPasskey:r,refreshSessionAndUser:r,walletProxy:null,createAnalyticsEvent:r,acceptTerms:r,getUsdTokenPrice:r,getUsdPriceForSol:r,getSplTokenMetadata:r,recoverEmbeddedWallet:r,updateWallets:r,fundWallet:r,openModal:r,setReadyToTrue:r,requestFarcasterSignerStatus:r,initLoginWithTelegram:r,loginWithTelegram:r,generateSiweMessage:r,generateSiweMessageForSmartWallet:r,loginWithSiwe:r,linkWithSiwe:r,linkSmartWallet:r,delegateWallet:r,revokeDelegatedWallets:r,connectCoinbaseSmartWallet:r,connectBaseAccount:r,initiateAccountTransfer:r,emailOtpState:{status:"initial"},setEmailOtpState:r,smsOtpState:{status:"initial"},setSmsOtpState:r,siweState:{status:"initial"},setSiweState:r,oAuthState:{status:"initial"},setOAuthState:r,telegramAuthState:{status:"initial"},setTelegramAuthState:r,isHeadlessOAuthLoading:!1,isHeadlessSigning:r,inProgressAuthFlowRef:{current:null},inProgressLoginOrLinkMethodRef:{current:null},baseAccountSdk:void 0,setBaseAccountSdk:r});e.s(["I",0,n,"a",0,()=>{},"b",0,e=>()=>{throw Error(e.trim())},"n",0,r,"u",0,()=>(0,t.useContext)(n)])},908058,e=>{"use strict";var t=e.i(664761),r=e.i(794189),n=e.i(801088);function i(e){return"string"==typeof e&&/^custom:[a-zA-Z0-9_-]+$/i.test(e)}let a=e=>!!e.id&&"privy-v2"===e.recoveryMethod;function o(e){return e?new Date(1e3*e):null}function s(e,t){return e.slice().sort((e,t)=>
3(e.firstVerifiedAt?.getTime()??0)-(t.firstVerifiedAt?.getTime()??0)).find(e=>e.type===t)}let l=e=>e?c(e).find(e=>0===e.walletIndex)??null:null,c=e=>e?u(e,"ethereum"):[],u=(e,t)=>e.linkedAccounts.filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&!e.imported&&e.chainType===t),d=e=>e?u(e,"solana"):[],p=e=>e?d(e).find(e=>0===e.walletIndex)??null:null,f=(0,r.createContext)({ready:!1,authenticated:!1,user:null,error:null,walletConnectors:null,connectWallet:n.n,login:n.n,connectOrCreateWallet:n.n,linkEmail:n.n,linkPhone:n.n,linkFarcaster:n.n,linkWallet:n.n,linkGoogle:n.n,linkTwitter:n.n,linkTwitch:n.n,linkDiscord:n.n,linkGithub:n.n,linkSpotify:n.n,linkInstagram:n.n,linkTelegram:n.n,linkTiktok:n.n,linkLine:n.n,linkLinkedIn:n.n,linkApple:n.n,linkPasskey:n.n,linkOAuth:n.n,updateEmail:n.n,updatePhone:n.n,logout:n.n,getAccessToken:n.n,signMessage:n.n,signTypedData:n.n,enrollInMfa:n.n,initEnrollmentWithSms:n.n,initEnrollmentWithTotp:n.n,initEnrollmentWithPasskey:n.n,promptMfa:n.n,init:n.n,submitEnrollmentWithSms:n.n,submitEnrollmentWithTotp:n.n,submitEnrollmentWithPasskey:n.n,unenroll:n.n,submit:n.n,cancel:n.n,sendTransaction:n.n,signTransaction:n.n,setWalletPassword:n.n,setWalletRecovery:n.n,isModalOpen:!1,mfaMethods:[]});e.s(["P",0,f,"a",0,a,"b",0,l,"c",0,e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&e.imported&&"ethereum"===e.chainType),"d",0,p,"e",0,e=>(e?.linkedAccounts??[]).filter(e=>"wallet"===e.type&&e.imported&&"privy"===e.walletClientType&&"solana"===e.chainType),"f",0,(e,r)=>e?.linkedAccounts.find(e=>"wallet"===e.type&&"privy"===e.walletClientType&&(0,t.areAddressesEqual)(e.address,r))||null,"g",0,e=>{let t=l(e),r=p(e);return t&&r&&!a(r)&&a(t)?r:l(e)??p(e)},"h",0,(e,r)=>e.find(e=>(0,t.areAddressesEqual)(e.address,r))||null,"i",0,i,"j",0,function(e){if(!e)return null;let t=function(e){let t=[];for(let r of e){let e=r.type;switch(r.type){case"wallet":let n={id:r.id,address:r.address,type:r.type,imported:r.imported,delegated:r.delegated,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at),chainType:r.chain_type,walletClientType:r.wallet_client_type,connectorType:r.connector_type,recoveryMethod:r.recovery_method,walletIndex:r.wallet_index,publicKey:r.public_key};t.push(n);break;case"smart_wallet":let a={address:r.address,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at),smartWalletType:r.smart_wallet_type,smartWalletVersion:r.smart_wallet_version};t.push(a);break;case"cross_app":let s={type:r.type,subject:r.subject,embeddedWallets:r.embedded_wallets,smartWallets:r.smart_wallets,providerApp:{id:r.provider_app_id},firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(s);break;case"email":let l={address:r.address,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(l);break;case"phone":let c={number:r.phoneNumber,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(c);break;case"google_oauth":let u={subject:r.subject,email:r.email,name:r.name,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(u);break;case"spotify_oauth":let d={subject:r.subject,email:r.email,name:r.name,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(d);break;case"instagram_oauth":let p={subject:r.subject,username:r.username,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(p);break;case"twitter_oauth":let f={subject:r.subject,username:r.username,name:r.name,type:r.type,profilePictureUrl:r.profile_picture_url,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(f);break;case"discord_oauth":let h={subject:r.subject,username:r.username,email:r.email,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(h);break;case"github_oauth":let m={subject:r.subject,username:r.username,name:r.name,email:r.email,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(m);break;case"tiktok_oauth":let y={subject:r.subject,username:r.username,name:r.name,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(y);break;case"line_oauth":let b={subject:r.subject,name:r.name,email:r.email,profilePictureUrl:r.profile_picture_url,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(b);break;case"twitch_oauth":let g={subject:r.subject,username:r.username,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(g);break;case"linkedin_oauth":let w={subject:r.subject,name:r.name,email:r.email,vanityName:r.vanity_name,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(w);break;case"apple_oauth":let v={subject:r.subject,email:r.email,type:r.type,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(v);break;case"custom_auth":t.push({type:r.type,customUserId:r.custom_user_id,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)});break;case"farcaster":let _={type:r.type,fid:r.fid,ownerAddress:r.owner_address,displayName:r.display_name,username:r.username,bio:r.bio,pfp:r.profile_picture_url,url:r.homepage_url,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at),signerPublicKey:r.signer_public_key};t.push(_);break;case"passkey":let x={type:r.type,enrolledInMfa:r.enrolled_in_mfa,credentialId:r.credential_id,publicKey:r.public_key,authenticatorName:r.authenticator_name,createdWithDevice:r.created_with_device,createdWithOs:r.created_with_os,createdWithBrowser:r.created_with_browser,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(x);break;case"telegram":let A={type:r.type,telegramUserId:r.telegram_user_id,firstName:r.first_name,lastName:r.last_name,username:r.username,photoUrl:r.photo_url,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(A);break;default:if(i(r.type)){let e={type:r.type,subject:r.subject,name:r.name,username:r.username,email:r.email,profilePictureUrl:r.profile_picture_url,firstVerifiedAt:o(r.first_verified_at),latestVerifiedAt:o(r.latest_verified_at)};t.push(e);break}console.warn(`Unrecognized account type: ${e}. Please consider upgrading the Privy SDK.`)}}return t}(e.linked_accounts),r=s(t,"wallet"),n=s(t,"smart_wallet"),a=s(t,"email"),l=s(t,"phone"),c=s(t,"google_oauth"),u=s(t,"twitter_oauth"),d=s(t,"discord_oauth"),p=s(t,"github_oauth"),f=s(t,"spotify_oauth"),h=s(t,"instagram_oauth"),m=s(t,"tiktok_oauth"),y=s(t,"line_oauth"),b=s(t,"twitch_oauth"),g=s(t,"linkedin_oauth"),w=s(t,"apple_oauth"),v=s(t,"farcaster"),_=s(t,"telegram"),x=e.mfa_methods.map(({type:e,verified_at:t})=>({type:e,verifiedAt:o(t)}));return{id:e.id,createdAt:o(e.created_at),linkedAccounts:t,email:a&&{address:a?.address},phone:l&&{number:l?.number},wallet:r&&{id:r.id,address:r.address,chainType:r.chainType,walletClientType:r.walletClientType,connectorType:r.connectorType,recoveryMethod:r.re
3coveryMethod,imported:r.imported,delegated:r.delegated,walletIndex:r.walletIndex,publicKey:r.publicKey},smartWallet:n&&{address:n.address,smartWalletType:n.smartWalletType,smartWalletVersion:n.smartWalletVersion},google:c&&{subject:c.subject,email:c.email,name:c.name},twitter:u&&{subject:u.subject,username:u.username,name:u.name,profilePictureUrl:u.profilePictureUrl},discord:d&&{subject:d.subject,username:d.username,email:d.email},github:p&&{subject:p.subject,username:p.username,name:p.name,email:p.email},spotify:f&&{subject:f.subject,email:f.email,name:f.name},instagram:h&&{subject:h.subject,username:h.username},tiktok:m&&{subject:m.subject,username:m.username,name:m.name},line:y&&{subject:y.subject,name:y.name,email:y.email,profilePictureUrl:y.profilePictureUrl},twitch:b&&{subject:b.subject,username:b.username},linkedin:g&&{subject:g.subject,name:g.name,email:g.email,vanityName:g.vanityName},apple:w&&{subject:w.subject,email:w.email},farcaster:v&&{fid:v.fid,ownerAddress:v.ownerAddress,displayName:v.displayName,username:v.username,bio:v.bio,pfp:v.pfp,url:v.url,signerPublicKey:v.signerPublicKey},telegram:_&&{telegramUserId:_.telegramUserId,firstName:_.firstName,lastName:_.lastName,username:_.username,photoUrl:_.photoUrl},delegatedWallets:[],mfaMethods:x.map(e=>e.type),hasAcceptedTerms:e.has_accepted_terms??!1,isGuest:e.is_guest,customMetadata:e.custom_metadata}},"l",0,d,"u",0,()=>(0,r.useContext)(f)])},672526,e=>{"use strict";var t=e.i(794189);let r=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,a={setState:n,getState:i,getInitialState:()=>o,subscribe:e=>(r.add(e),()=>r.delete(e))},o=t=e(n,i,a);return a},n=e=>{let n=e?r(e):r,i=e=>(function(e,r=e=>e){let n=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(n),n})(n,e);return Object.assign(i,n),i};e.s(["create",0,e=>e?n(e):n],672526)},588365,311629,e=>{"use strict";var t,r=e.i(632220);let n=/#/g,i=/&/g,a=/\//g,o=/=/g,s=/\+/g,l=/%5e/gi,c=/%60/gi,u=/%7c/gi,d=/%20/gi;function p(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(u,"|").replace(s,"%2B").replace(d,"+").replace(n,"%23").replace(i,"%26").replace(c,"`").replace(l,"^").replace(a,"%2F")}function f(e){return p(e).replace(o,"%3D")}function h(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let m=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,b=/^([/\\]\s*){2,}[^/\\]/,g=/\/$|\/\?|\/#/,w=/^\.?\//;function v(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?m.test(e):y.test(e)||!!t.acceptRelative&&b.test(e)}let _=Symbol.for("ufo:protocolRelative");function x(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class A extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let E=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function k(e="GET"){return E.has(e.toUpperCase())}let S=new Set(["image/svg","application/xml","application/xhtml","application/html"]),T=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function C(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let I=new Set([408,409,425,429,500,502,503,504]),P=new Set([101,204,205,304]);e.s(["F",0,A,"c",0,function e(t={}){let{fetch:n=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:a=globalThis.AbortController}=t;async function o(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!k(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):I.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),l(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",i=`[${r}] ${JSON.stringify(n)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=new A(`${i}: ${a}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[r]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,l),r}let l=async function(e,l={}){var c,u,d,m;let y,b,g,A={request:e,options:(c=t.defaults,g=function(e,t,r){if(!t)return new r(e);let n=new r(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(t,i);return n}(l?.headers??e?.headers,c?.headers,i),(c?.query||c?.params||l?.params||l?.query)&&(b={...c?.params,...c?.query,...l?.params,...l?.query}),{...c,...l,query:b,params:b,headers:g}),response:void 0,error:void 0};if(A.options.method&&(A.options.method=A.options.method.toUpperCase()),A.options.onRequest&&(await C(A,A.options.onRequest),A.options.headers instanceof i||(A.options.headers=new i(A.options.headers||{}))),"string"==typeof A.request){if(A.options.baseURL&&(A.request=function(e,t){var r;if(!(r=t)||"/"===r||v(e))return e;let n=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(n)){let t=e[n.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(w,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(n,e)}(A.request,A.options.baseURL)),A.options.query){let e,t,r,n,i,a,o;u=A.request,d=A.options.query,t={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=h(e[1].replace(s," "));if("__proto__"===n||"constructor"===n)continue;let i=h((e[2]||"").replace(s," "));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}((e=function e(t="",r){let n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!v(t,{acceptRelative:!0}))return r?e(r+t):x(t);let[,i="",a,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",l=""]=o.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:u,hash:d}=x(l);return{protocol:i.toLowerCase(),auth:a?a.slice(0,Math.max(0,a.length-1)):"",host:s,pathname:c,search:u,hash:d,[_]:!i}}(u)).search),...d},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${f(e)}=${p(t)}`).join("&"):`${f(e)}=${p(r)}`:f(e)}
3).filter(Boolean).join("&"),r=(m=e).pathname||"",n=m.search?(m.search.startsWith("?")?"":"?")+m.search:"",i=m.hash||"",a=m.auth?m.auth+"@":"",o=m.host||"",A.request=(m.protocol||m[_]?(m.protocol||"")+"//":"")+a+o+r+n+i,delete A.options.query}"query"in A.options&&delete A.options.query,"params"in A.options&&delete A.options.params}if(A.options.body&&k(A.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(A.options.body)){let e=A.options.headers.get("content-type");"string"!=typeof A.options.body&&(A.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(A.options.body).toString():JSON.stringify(A.options.body)),e||A.options.headers.set("content-type","application/json"),A.options.headers.has("accept")||A.options.headers.set("accept","application/json")}else("pipeTo"in A.options.body&&"function"==typeof A.options.body.pipeTo||"function"==typeof A.options.body.pipe)&&!("duplex"in A.options)&&(A.options.duplex="half");if(!A.options.signal&&A.options.timeout){let e=new a;y=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},A.options.timeout),A.options.signal=e.signal}try{A.response=await n(A.request,A.options)}catch(e){return A.error=e,A.options.onRequestError&&await C(A,A.options.onRequestError),await o(A)}finally{y&&clearTimeout(y)}if((A.response.body||A.response._bodyInit)&&!P.has(A.response.status)&&"HEAD"!==A.options.method){let e=(A.options.parseResponse?"json":A.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return T.test(t)?"json":"text/event-stream"===t?"stream":S.has(t)||t.startsWith("text/")?"text":"blob"}(A.response.headers.get("content-type")||"");switch(e){case"json":{let e=await A.response.text(),t=A.options.parseResponse||r.default;A.response._data=t(e);break}case"stream":A.response._data=A.response.body||A.response._bodyInit;break;default:A.response._data=await A.response[e]()}}return(A.options.onResponse&&await C(A,A.options.onResponse),!A.options.ignoreResponseError&&A.response.status>=400&&A.response.status<600)?(A.options.onResponseError&&await C(A,A.options.onResponseError),await o(A)):A.response},c=async function(e,t){return(await l(e,t))._data};return c.raw=l,c.native=(...e)=>n(...e),c.create=(r={},n={})=>e({...t,...n,defaults:{...t.defaults,...n.defaults,...r}}),c}],311629);class N extends Error{toString(){return`${this.type}${this.privyErrorCode?`-${this.privyErrorCode}`:""}: ${this.message}${this.cause?` [cause: ${this.cause}]`:""}`}constructor(e,t,r){super(e),t instanceof Error&&(this.cause=t),this.privyErrorCode=r}}class O extends N{constructor(e,t,r,n,i,a){super(r,n,i),this.type=e,this.status=t,this.data=a}}class R extends N{constructor(e,t,r){super(e,t,r),this.type="client_error"}}class U extends N{constructor(e,t,r){super(e,t,r),this.type="connector_error"}}let j=e=>e instanceof N?e:e instanceof Error?new R(e.message,e):new R(`Internal error: ${e}`);var L=((t={}).OAUTH_ACCOUNT_SUSPENDED="oauth_account_suspended",t.MISSING_OR_INVALID_PRIVY_APP_ID="missing_or_invalid_privy_app_id",t.MISSING_OR_INVALID_PRIVY_ACCOUNT_ID="missing_or_invalid_privy_account_id",t.MISSING_OR_INVALID_TOKEN="missing_or_invalid_token",t.INVALID_DATA="invalid_data",t.INVALID_CAPTCHA="invalid_captcha",t.LINKED_TO_ANOTHER_USER="linked_to_another_user",t.CANNOT_LINK_MORE_OF_TYPE="cannot_link_more_of_type",t.FAILED_TO_LINK_ACCOUNT="failed_to_link_account",t.FAILED_TO_UPDATE_ACCOUNT="failed_to_update_account",t.USER_EXITED_UPDATE_FLOW="exited_update_flow",t.ALLOWLIST_REJECTED="allowlist_rejected",t.OAUTH_USER_DENIED="oauth_user_denied",t.OAUTH_UNEXPECTED="oauth_unexpected",t.UNKNOWN_AUTH_ERROR="unknown_auth_error",t.USER_EXITED_AUTH_FLOW="exited_auth_flow",t.USER_EXITED_LINK_FLOW="exited_link_flow",t.USER_EXITED_SET_PASSWORD_FLOW="user_exited_set_password_flow",t.MUST_BE_AUTHENTICATED="must_be_authenticated",t.UNKNOWN_CONNECT_WALLET_ERROR="unknown_connect_wallet_error",t.GENERIC_CONNECT_WALLET_ERROR="generic_connect_wallet_error",t.CLIENT_REQUEST_TIMEOUT="client_request_timeout",t.INVA
3LID_CREDENTIALS="invalid_credentials",t.MISSING_MFA_CREDENTIALS="missing_or_invalid_mfa",t.UNKNOWN_MFA_ERROR="unknown_mfa_error",t.EMBEDDED_WALLET_ALREADY_EXISTS="embedded_wallet_already_exists",t.EMBEDDED_WALLET_NOT_FOUND="embedded_wallet_not_found",t.EMBEDDED_WALLET_CREATE_ERROR="embedded_wallet_create_error",t.UNKNOWN_EMBEDDED_WALLET_ERROR="unknown_embedded_wallet_error",t.EMBEDDED_WALLET_PASSWORD_UNCONFIRMED="embedded_wallet_password_unconfirmed",t.EMBEDDED_WALLET_PASSWORD_ALREADY_EXISTS="embedded_wallet_password_already_exists",t.EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS="embedded_wallet_recovery_already_exists",t.TRANSACTION_FAILURE="transaction_failure",t.UNSUPPORTED_CHAIN_ID="unsupported_chain_id",t.NOT_SUPPORTED="not_supported",t.CAPTCHA_TIMEOUT="captcha_timeout",t.INVALID_MESSAGE="invalid_message",t.UNABLE_TO_SIGN="unable_to_sign",t.CAPTCHA_FAILURE="captcha_failure",t.CAPTCHA_DISABLED="captcha_disabled",t.SESSION_STORAGE_UNAVAILABLE="session_storage_unavailable",t.TOO_MANY_REQUESTS="too_many_requests",t.USER_LIMIT_REACHED="max_accounts_reached",t.DISALLOWED_LOGIN_METHOD="disallowed_login_method",t.DISALLOWED_PLUS_EMAIL="disallowed_plus_email",t.PASSKEY_NOT_ALLOWED="passkey_not_allowed",t.USER_DOES_NOT_EXIST="user_does_not_exist",t.INSUFFICIENT_BALANCE="insufficient_balance",t.ACCOUNT_TRANSFER_REQUIRED="account_transfer_required",t.BUFFER_NOT_DEFINED="buffer_not_defined",t.UNSUPPORTED_WALLET_TYPE="unsupported_wallet_type",t.NO_SOLANA_ACCOUNTS="no_solana_accounts",t.UNKNOWN_FUNDING_ERROR="unknown_funding_error",t);e.s(["P",0,R,"a",0,L,"b",0,N,"c",0,O,"d",0,class extends R{constructor(){super("Method called before `ready`. Ensure you wait until `ready` is true before calling.")}},"e",0,U,"f",0,e=>{if(e instanceof N)return e;if(!(e instanceof A))return j(e);if(!e.response)return new O("api_error",null,e.message,e);let{type:t,message:r,error:n,code:i}=e.data;return new O(t||"ApiError",e.response.status,r||n,e,i,e.data)},"g",0,class extends R{constructor(){super("Request timed out",void 0,"client_request_timeout")}},"h",0,j,"i",0,class extends U{constructor(){super("No Solana accounts found in wallet",void 0,"no_solana_accounts")}},"j",0,class extends R{constructor(e){super("This application is in development mode and must be upgraded to production to log in new users.",e,"max_accounts_reached")}},"k",0,class extends R{constructor(e="Embedded wallet error",t){super(e,t,"unknown_embedded_wallet_error")}},"l",0,class extends R{constructor(e="User must be authenticated"){super(e,void 0,"must_be_authenticated")}}],588365)},687514,e=>{"use strict";var t=e.i(895466),r=e.i(39417),n=e.i(816895),i=e.i(627569),a=e.i(588365);let o=(e,t,r)=>{let n,i=e.id,o=Number(e.id);if(e.rpcUrls.privyWalletOverride&&e.rpcUrls.privyWalletOverride.http[0])n=e.rpcUrls.privyWalletOverride.http[0];else if(t.rpcUrls&&t.rpcUrls[o])n=t.rpcUrls[o];else if(e.rpcUrls.privy?.http[0]){let t=new URL(e.rpcUrls.privy.http[0]);t.searchParams.append("privyAppId",r),n=t.toString()}else n=e.rpcUrls.public?.http[0]?e.rpcUrls.public.http[0]:e.rpcUrls.default?.http[0];if(!n)throw new a.e(`No RPC url found for ${i}`);return n};e.s(["a",0,o,"g",0,(e,s,l,c)=>{let u=Number(e),d=s.find(e=>e.id===u);if(!d)throw new a.e(`Unsupported chainId ${e}`,4901);let p=o(d,l,c.appId);if(u===n.tempo.id||u===i.tempoModerato.id){let e=u===n.tempo.id?n.tempo:i.tempoModerato;return(0,t.createPublicClient)({transport:(0,r.http)(p),chain:e})}return(0,t.createPublicClient)({transport:(0,r.http)(p),chain:d})}])},49019,e=>{"use strict";function t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError("attempted to use private field on non-instance");return e}var r=0;function n(e){return"__private_"+r+++"_"+e}var i=n("_wallet"),a=n("_account");e.s(["ConnectedStandardSolanaWallet",0,class{get standardWallet(){return t(this,i)[i]}get address(){return t(this,a)[a].address}async disconnect(){if(!t(this,i)[i].features["standard:disconnect"]?.disconnect)throw Error("Wallet does not support disconnect");await t(this,i)[i].features["standard:disconnect"].disconnect()}async signMessage(...e){if(!t(this,i)[i].features["solana:signMessage"]?.signMessage)throw Error("Wallet does not support signMessage");let r=await t(this,i)[i].features["solana:signMessage"].signMessage(...e.map(e=>({...e,account:t(this,a)[a]})));return 1===e.length?r[0]:[...r]}async signTransaction(...e){if(!t(this,i)[i].features["solana:signTransaction"]?.signTransaction)throw Error("Wallet does not support signTransaction");let r=await t(this,i)[i].features["solana:signTransaction"].signTransaction(...e.map(e=>({...e,account:t(this,a)[a]})));return 1===e.length?r[0]:[...r]}async signAndSendTransaction(...e){if(!t(this,i)[i].features["solana:signAndSendTransaction"]?.signAndSendTransaction)throw Error("Wallet does not support signAndSendTransaction");let r=await t(this,i)[i].features["solana:signAndSendTransaction"].signAndSendTransaction(...e.map(e=>({...e,account:t(this,a)[a]})));return 1===e.length?r[0]:[...r]}async signAndSendAllTransactions(e){if(!t(this,i)[i].features["solana:signAndSendTransaction"]?.signAndSendTransaction)throw Error("Wallet does not support signAndSendTransaction");return[...await t(this,i)[i].features["solana:signAndSendTransaction"].signAndSendTransaction(...e.map(e=>({...e,account:t(this,a)[a]})))]}constructor({wallet:e,account:r}){Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),t(this,i)[i]=e,t(this,a)[a]=r}}])},374840,e=>{"use strict";var t=e.i(588365),r=e.i(687514),n=e.i(602973),i=e.i(49019),a=e.i(785373),o=e.i(381741),s=e.i(853286);let l=e=>e.isApexWallet?"Apex Wallet":e.isAvalanche?"Core Wallet":e.isBackpack?"Backpack":e.isBifrost?"Bifrost Wallet":e.isBitKeep?"BitKeep":e.isBitski?"Bitski":e.isBlockWallet?"BlockWallet":e.isBraveWallet?"Brave Wallet":e.isClover?"Clover":e.isCoin98?"Coin98 Wallet":e.isCoinbaseWallet?"Coinbase Wallet":e.isDawn?"Dawn Wallet":e.isDefiant?"Defiant":e.isDesig?"Desig Wallet":e.isEnkrypt?"Enkrypt":e.isExodus?"Exodus":e.isFordefi?"Fordefi":e.isFrame?"Frame":e.isFrontier?"Frontier Wallet":e.isGamestop?"GameStop Wallet":e.isHaqqWallet?"HAQQ Wallet":e.isHyperPay?"HyperPay Wallet":e.isImToken?"ImToken":e.isHaloWallet?"Halo Wallet":e.isKuCoinWallet?"KuCoin Wallet":e.isMathWallet?"MathWallet":e.isNovaWallet?"Nova Wallet":e.isOkxWallet||e.isOKExWallet?"OKX Wallet":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch Wallet":e.isOneKey?"OneKey Wallet":e.isOpera?"Opera":e.isPhantom||"isPhantom"in e?"Phantom":e.isPortal?"Ripio Portal":e.isRabby?"Rabby Wallet":e.isRainbow?"Rainbow":e.isSafePal?"SafePal Wallet":e.isStatus?"Status":e.isSubWallet?"SubWallet":e.isTalisman?"Talisman":e.isTally||e.isTaho?"Taho":e.isTokenPocket?"TokenPocket":e.isTokenary?"Tokenary":e.isTrust||e.isTrustWallet?"Trust Wallet":e.isTTWallet?"TTWallet":e.isXDEFI?"XDEFI Wallet":e.isZeal?"Zeal":e.isZerion?"Zerion":e.isMetaMask?"MetaMask":void 0,c=(e,t)=>{if(!e.isMetaMask)return!1;if(e.isMetaMask&&!t)return!0;
3if(e.isBraveWallet&&!e._events&&!e._state||"MetaMask"!==l(e))return!1;if(e.providers){for(let t of e.providers)if(!c(t))return!1}return!0},u=(e,t=3,r=4,n="ethereum")=>{if(!e)return"";let i=2*("ethereum"===n);return t+r+i+3>=e.length?e:`${e.slice(0,i+t)}...${e.slice(e.length-r,e.length)}`},d=e=>new Promise(t=>setTimeout(t,e));async function p({store:e,walletList:t,externalWalletConfig:r,walletChainType:n,timeout:i=3e3}){let a=!1,o=window;return new Promise(s=>{function u(){if(a)return;a=!0,window.removeEventListener("ethereum#initialized",u);let i=e.getProviders();console.debug("Detected injected providers:",i.map(e=>e.info));let o=[];for(let e of i)t.includes("coinbase_wallet")&&"com.coinbase.wallet"===e.info.rdns||"solana-only"===n&&"app.phantom"===e.info.rdns||o.push({type:e.info.name.toLowerCase().replace(/\s/g,"_"),eip6963InjectedProvider:e});if("solana-only"!==n)for(let e of function(){let e=window,t=e.ethereum;if(!t)return[];let r=[];if(t.providers?.length)for(let e of t.providers)e&&r.push(e);return r.push(e.ethereum),r}()){let t=l(e);if(!i.some(e=>e.info.name===t)){if(c(e,!0)&&!o.find(e=>"metamask"===e.type)){o.push({type:"metamask",legacyInjectedProvider:e});continue}if("Phantom"===t&&!o.find(e=>"phantom"===e.type)){o.push({type:"phantom",legacyInjectedProvider:e});continue}if("Coinbase Wallet"===t&&!o.find(e=>"coinbase_wallet"===e.type&&"smartWalletOnly"!==r.coinbaseWallet?.config?.preference?.options)){o.push({type:"coinbase_wallet",legacyInjectedProvider:e});continue}o.find(e=>"unknown_browser_extension"===e.type)||o.push({type:"unknown_browser_extension",legacyInjectedProvider:e})}}s(o)}o.ethereum?u():(window.addEventListener("ethereum#initialized",u,{once:!0}),setTimeout(()=>{u()},i))})}let f="[Privy:Connectors]";function h(e){if(!e||0===Object.keys(e).length)return"";let t=Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${String(t)}`);return t.length>0?` (${t.join(", ")})`:""}let m=new class{setEnabled(e){this._enabled=e,e&&this.info("Debug logging enabled")}get enabled(){return this._enabled}debug(e,t){this._enabled&&console.debug(`${f} ${e}${h(t)}`)}info(e,t){this._enabled&&console.info(`${f} ${e}${h(t)}`)}warn(e,t){this._enabled&&console.warn(`${f} ${e}${h(t)}`)}error(e,t,r){if(!this._enabled)return;let n=t instanceof Error?t.message:t?String(t):void 0,i=n?{...r,error:n}:r;console.error(`${f} ${e}${h(i)}`)}connectionStart(e,t,r){this.info("Connection attempt started",{wallet:e,method:t,...r})}connectionSuccess(e,t){this.info("Connection successful",{wallet:e,...t})}connectionFailed(e,t,r){this.error("Connection failed",t,{wallet:e,...r})}connectorInit(e,t,r){this.debug("Connector initialized",{connector:e,wallet:t,...r})}connectorCreated(e,t,r){this.debug("Connector created",{connector:e,wallet:t,...r})}providerEvent(e,t,r){this.debug(`Provider event: ${e}`,{wallet:t,...r})}rpcRequest(e,t,r){this.debug(`RPC request: ${e}`,{wallet:t,...r})}rpcResponse(e,t,r){this.debug(`RPC response: ${e}`,{wallet:t,...r})}constructor(){this._enabled=!1}};class y extends t.e{constructor(){super("Wallet timeout"),this.type="wallet_error",m.warn("Wallet request timed out")}}let b=e=>{if(e instanceof t.e)return m.debug("Connector error (already formatted)",{error:e.message}),e;if(e?.code){let t=new w(e);return m.debug("Provider RPC error",{code:t.code,error:t.message}),t}let r=e instanceof Error?e.message:String(e);return m.debug("Unknown connector error",{error:r}),new t.e("Unknown connector error",e)};class g extends t.b{constructor(e,t,r){super(e),this.type="provider_error",this.code=t,this.data=r}}class w extends g{constructor(e){super(e.message,e.code,e.data);let t=Object.values(n.ProviderErrors).find(t=>t.eipCode===e.code);this.details=t||n.ProviderErrors.UNKNOWN_ERROR,-32002===e.code&&(e.message?.includes("already pending for origin")?e.message?.includes("wallet_requestPermissions")?this.details=n.ProviderErrors.E32002_CONNECTION_ALREADY_PENDING:this.details=n.ProviderErrors.E32002_REQUEST_ALREADY_PENDING:e.message?.includes("Already processing")&&e.message.includes("eth_requestAccounts")&&(this.details=n.ProviderErrors.E32002_WALLET_LOCKED))}}let v={ERROR_USER_EXISTS:{message:"User already exists for this address",detail
3:"Try another address!",retryable:!1},ERROR_TIMED_OUT:{message:"Wallet request timed out",detail:"Please try connecting again.",retryable:!0},ERROR_WALLET_CONNECTION:{message:"Could not log in with wallet",detail:"Please try connecting again.",retryable:!0},ERROR_USER_LIMIT_REACHED:{message:"Unable to link",detail:"You've reached the maximum number of linked wallets.",retryable:!1},...n.ProviderErrors};class _{get(e){let t=localStorage.getItem(e);return null===t?void 0:JSON.parse(t)}put(e,t){void 0!==t?localStorage.setItem(e,JSON.stringify(t)):this.del(e)}del(e){localStorage.removeItem(e)}getKeys(){return Object.entries(localStorage).map(([e])=>e)}}var x="u">typeof window&&window.localStorage?new _:new class{get(e){return this._cache[e]}put(e,t){void 0!==t?this._cache[e]=t:this.del(e)}del(e){delete this._cache[e]}getKeys(){return Object.keys(this._cache)}constructor(){this._cache={}}};class A extends a.default{constructor(e){super(),this.walletClientType=e,this.connected=!1,this.initialized=!1}}let E=()=>{let e=x.get(o.C);return e&&Array.isArray(e)&&e.map(e=>e&&"string"==typeof e.address&&"string"==typeof e.connectorType&&"string"==typeof e.walletClientType&&"number"==typeof e.connectedAt).every(Boolean)?e:[]},k=["phantom","metamask","glow","solflare","backpack","okx_wallet","walletconnect","mobile_wallet_adapter","jupiter","tokenpocket"];function S(e){return e.toLowerCase().split(" ").join("_")}function T(e){return"isWalletConnectSolana"in e&&e.isWalletConnectSolana}e.s(["A",0,S,"B",0,(e,t=3,r=4)=>u(e,t,r,"solana"),"C",0,v,"P",0,w,"S",0,class extends A{get isInstalled(){return!0}get wallet(){return this._wallet}buildConnectedWallet(){return this._wallet.accounts.map(e=>({type:"solana",provider:new i.ConnectedStandardSolanaWallet({wallet:this._wallet,account:e}),address:e.address,connectedAt:Date.now(),walletClientType:this._wallet.name,connectorType:this.connectorType,imported:!1,meta:{name:this._wallet.name,id:this._wallet.name,icon:this._wallet.icon},isConnected:async()=>this._wallet.accounts.length>0,disconnect:async()=>{await this.disconnect()}}))}async syncAccounts(){this.wallets=this.buildConnectedWallet(),this.emit("walletsUpdated")}get walletBranding(){return{id:T(this.wallet)?"walletconnect_solana":this.wallet.name,name:this.wallet.name,icon:this.wallet.icon}}async initialize(){m.debug("Initializing Solana connector",{wallet:this.walletClientType}),this.subscribeListeners(),await this.syncAccounts(),this.shouldAttemptAutoConnect()&&(m.debug("Attempting Solana auto-connect",{wallet:this.walletClientType}),await this.wallet.features["standard:connect"]?.connect({silent:!0}).catch(()=>{}),await this.isConnected()&&(m.debug("Solana auto-connect successful",{wallet:this.walletClientType}),await this.syncAccounts())),this.initialized=!0,this.emit("initialized")}async connect(e){if(m.connectionStart(this.walletClientType,"solana_adapter",{showPrompt:e.showPrompt}),e.showPrompt)try{await this.promptConnection()}catch(e){if(0===this._wallet.accounts.length)throw m.warn("Solana wallet connected but has no accounts",{wallet:this.walletClientType}),new t.i;throw m.connectionFailed(this.walletClientType,e,{method:"solana_adapter"}),e}if(!await this.isConnected())throw m.warn("Solana wallet not connected after prompt",{wallet:this.walletClientType}),new t.i;await this.syncAccounts();let r=await this.getConnectedWallet();return r&&m.connectionSuccess(this.walletClientType),r}async getConnectedWallet(){return this.wallets.sort((e,t)=>t.connectedAt-e.connectedAt)[0]||null}async isConnected(){return this._wallet.accounts.length>0}subscribeListeners(){this._unsubscribeListeners=this.wallet.features["standard:events"]?.on("change",this.onChange)}unsubscribeListeners(){this._unsubscribeListeners?.()}shouldAttemptAutoConnect(){return!(!this.autoConnectEnabled||!k.includes(this.walletClientType))&&("phantom"!==this.walletClientType&&"metamask"!==this.walletClientType.toLowerCase()||E().some(({walletClientType:e})=>"phantom"===e||"metamask"===e.toLowerCase()))}constructor(e,t){super(S(T(e)?"walletconnect_solana":e.name)),this.chainType="solana",this.connectorType="solana_adapter",this.disconnect=async()=>{m.debug("Disconnecting Solana wallet",{wallet:this.walletClientType}),await this.wallet.features["standard:disconnect"]?.disconnect().catch(e=>{m.error("Error disconnecting Solana wallet",e,{wallet:this.walletClientType})}),await this.syncAccounts()},this.promptConnection=async()=>{m.debug("Prompting Solana connection",{wallet:this.walletClientType});try{await this.wallet.features["standard:connect"]?.connect()}catch(e){throw m.connectionFailed(this.walletClientType,e,{method:"solana_adapter"}),b(e)}},this.onChange=()=>{this.syncAccounts()},this._wallet=e,this.autoConnectEnabled=t,this.wallets=[]}},"W",0,A,"a",0,d,"b",0,e=>e?.map(e=>({signer_id:e.signerId,override_policy_ids:e.policyIds})),"c",0,m,"d",0,u,"e",0,function(){try{let e="privy:__session_storage__test",t=new _;return t.put(e,"blobby"),t.del(e),!0}catch(e){return!1}},"f",0,function(e){return`eip155:${String(Number(e))}`},"g",0,e=>{let t={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},r=e.types.EIP712Domain??Object.entries(e.domain).map(([e,r])=>
3{if(null!=r&&"string"==typeof e&&e in t)return{name:e,type:t[e]}}).filter(e=>void 0!==e);return{...e,types:{...e.types,EIP712Domain:r}}},"h",0,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAHdElNRQfoDAIVODUC+w+GAAAGsUlEQVRYw6WXbYwWVxXHf+fOLAtCXYS2QJdIaClipGCTknXXNqBQMVHbfmhItH4Aral+IAEaG03UxJgYKQJGTUxtDWjaxDSNtcZqIGDwpRuW1oYiVqpdpZSlpC3qysu+PHPP3w/3mXnmeXZbPzjJZO7cefn/z/mfe865xlscq3dGDIguGiHLaMQVLja4s87FShcLo5jtApdddnHexUmHIy475JmdUkPRAQMu7gzT4ljnxJpdk0QPmMFkyAKN2OfOFpc2uuh1J3MZDrjAvXmVEQUuoosRxw642FcEG7IoDxiFxNiu8NYE+vcUYIFYRKKs113bXWx2Z34CoQZsVHOiCZ7mopdzdsFhv8NexEgRDHMxUSNREbh1bwNZwBsFblmfu/a4a6AEENYO5i3AOoEWeEUCF4MOOxBDMQAOk99OJALA2u80sBCwWGBZWG/yRwMaCAbBIAsQTJT3gea1OWfNeaPzvjoHEI85rA8ObtB1v7cIdJkIHgkh9AXpocy0LJjIKvB2wPpZB0v3wkrw5jdNEjeYeMhFX3BAyfn2ke9NUrgB9LrrcZcGJFCld4fWNddXbvbWfWzGR6xJFZsBGh0cBh3bBIxIEGTQ3W0h4NuDaSAzyAxCmGq11Vzf5uaa1aG8p+WFtrEYQGwvjICJkAEqvC+YNmcmMlMNvEaCdrcbyUvQAWDTjVuESHObM6cPGWHmzDwLaEtmzG9Z3qF1zUpXmuuZBb1z4bqeNC6f0WE1NtUTwHzEloiy3BvFisy0sYoLlQtT6XW15md2Qf9SY+2Ngfdca/TMSm/9ewz+/Boc/It45h/i4kSTsKw90SQJsPTvjSZbkWemDW7qTRZ0JEYJWSKxZJ7xmf6M224MzMzbX1s8F1YugjtvMg6eErt/4/z1jUrz1rXUKxnZC2zIg2mdBTK1mFUOKC1fOt/48kdzVixIz86Nij+eEacvpJWyZJ5xy7th8VzjjpuMJfMCW58QL73ekXPVlhsyE+vyzFiplJyauEIyrGIquruMq7qTxk+dcB495rzyTzFepCUWLIFv/kBg081Gd55WUk1IDGFTS89K++TDYxddzKnWcbluHd450xgdh7EGrOo1rr868PMTzqWJRGZ2d8oB/xpL33Xnxl2rjeNn4blXRXduzJ4B5y+28kWscAwXl+yeR654FFZPHoUb710YuPeDOUdPO48di1xptKpeEeHqOcYXNwQKGd88EDk3mqxtxPSfGRlsXRtYt8z4ytPOH/7eqpg1Aso7fYKgK4NPrMpYvsC4/poMA34yVJIQC3sCD9yecdsNyaV5yPj6ryJnR1PAvSNP4J+/1cgDfLbfePaMGGtM7Qdyl12WmKOmXgKKAp54vmBRTxfLrjE+tSYjBPjRM5FrrzIeuD2jf2lLzw8vN4JlfPVp581LsO1DgXv7jSzAiXPw/d+JiYLpjsu26Yfjf5O0rF5WoxsNT9G/bX0XKxakmPjlSee6HlizJJXSX7/oRDc+vjKR+f2wODcKd78/gR8/C9uedF44myJxmhh4OY/ipMQyqaWxmjn95TfEroMFOzbkvG+RceeqViPx1Aln1yEnOow1AnffHCpJAJ5/Vex4UvzptZRdY/O/1dJIS/NkcNmR6MTYah6qzseA4TfFtw4UvHBW1bc/O+7sPhwZHYf/jMODh5yfPudVbXj2TAJ/8XxrOZagNamj4Ei2/GNfuyRxh8t6BG2l15up+MIVODEiFr8rcPS0+O6RBF6mrrEGHHtFzOo2Lo7Dl37hvPQ6mNV6R9JYKgnYWcE37K5HlE2OT/5A0udaPUBHH+BQOMzuNsYLuDyZflTW+fTcmJFDHhJhaZqewMuewXDxcDR9IYyPN6Jj+6K4MF2vV8qBtZJScqVRNi6lpGONVJis5mpKi1WbgwsY+zIsBpcR8mzIZfuTRVZrtdu9odrptR/Xx5XONXJqBmCN0P6YMUQq9WJiwt0Je102WHdbpxSqydMObBWYdwDWLVcqcIMYe3NPjg0Ht84od0Ajju1w2XCr9e6QoqM9V23ZtnmI6cfAMMb9AY0YEHdb6oobEh4y3H3Ize6LsmGvN5IdUnhttdQ9UVrfLk/ljWEZ9wXsqAdQk1EA+O22GcgdZTke/bAs3OPY4HSdcB20HhvVtTMu0jmI8ekAhz2IICj2hKpNqI60NcuIRUHEej1quzubXa2tmZhenrfZmv3YYQ9ipDAIgvHptmblccuDjdRcmjFpWbDi/9ycZjZkRbk5jYztai/AUwiUx+qdEQB/m+25i9lxyvbcjrg45Lmd0uT/3p7/Fw6ODf+WO019AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDI0LTEyLTAyVDIxOjU2OjQ4KzAwOjAwMVpslgAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyNC0xMi0wMlQyMTo1Njo0OCswMDowMEAH1CoAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjQtMTItMDJUMjE6NTY6NTMrMDA6MDDZv6GRAAAAAElFTkSuQmCC","i",0,(e,t={})=>{let r=t.delayMs||150,n=t.maxAttempts||270;return new Promise(async(i,a)=>{let o=!1,s=0;for(;!o&&s<n;){if(t.abortSignal?.aborted)return;e().then(e=>{o=!0,i(e)},(...e)=>{o=!0,a(...e)}),s+=1,await d(r)}o||a(Error("Exceeded max attempts before resolving function"))})},"j",0,b,"k",0,e=>e.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),"l",0,E,"m",0,(e,n,i,a)=>{let o=Number(e),s=n.find(e=>e.id===o);if(!s)throw new t.e(`Unsupported chainId ${e}`,4901);return(0,r.a)(s,i,a)},"n",0,p,"o",0,y,"p",0,function(e,{interval:t=100,timeout:r=5e3}={}){return new Promise((n,i)=>{let a,o=0,s=()=>{o>=r?i("Max attempts reached without result"):(a=e(),o+=t,null==a?setTimeout(s,t):n(a))};s()})},"q",0,()=>{let e=window;if(!e.ethereum)return!1;if(e.ethereum.isCoinbaseWallet)return!0;if(e.ethereum.providers){for(let t of e.ethereum.providers)if(t&&t.isCoinbaseWallet)return!0}return!1},"r",0,(e,t)=>{let r=[],n=[];for(let[i,a]of e.entries())i<t?r.push(a):n.push(a);return[r,n]},"s",0,x,"t",0,e=>"string"==typeof e?e:"0x"+e.toString(16),"u",0,({style:e,...t})=>{let r=(0,o.u)();return(0,s.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{height:"28px",width:"28px",...e},...t,children:[(0,s.jsx)("rect",{width:"28",height:"28",rx:"3",fill:"dark"===r?.appearance.palette.colorScheme?"#3396ff":"#141414"}),(0,s.jsx)("g",{clipPath:"url(#clip0_1765_9946)",children:(0,s.jsx)("path",{d:"M8.09448 10.3941C11.3558 7.20196 16.6442 7.20196 19.9055 10.3941L20.2982 10.7782C20.3369 10.8157 20.3677 10.8606 20.3887 10.9102C20.4097 10.9599 20.4206 11.0132 20.4206 11.0671C20.4206 11.121 20.4097 11.1744 20.3887 11.224C20.3677 11.2737 20.3369 11.3186 20.2982 11.3561L18.9554 12.6702C18.9158 12.7086 18.8628 12.7301 18.8077 12.7301C18.7526 12.7301 18.6996 12.7086 18.66 12.6702L18.1198 12.1415C15.8448 9.91503 12.1557 9.91503 9.88015 12.1415L9.30167 12.7075C9.26207 12.7459 9.20909 12.7673 9.15395 12.7673C9.0988 12.7673 9.04582 12.7459 9.00622 12.7075L7.66346 11.3934C7.62475 11.3559 7.59397 11.3109 7.57295 11.2613C7.55193 11.2117 7.54
311 11.1583 7.5411 11.1044C7.5411 11.0505 7.55193 10.9971 7.57295 10.9475C7.59397 10.8979 7.62475 10.8529 7.66346 10.8154L8.09448 10.3941ZM22.6829 13.1115L23.8776 14.2814C23.9163 14.319 23.9471 14.3639 23.9681 14.4135C23.9892 14.4632 24 14.5165 24 14.5704C24 14.6243 23.9892 14.6777 23.9681 14.7273C23.9471 14.777 23.9163 14.8219 23.8776 14.8594L18.4893 20.1332C18.4102 20.2101 18.3042 20.2531 18.1938 20.2531C18.0835 20.2531 17.9775 20.2101 17.8984 20.1332L14.0743 16.3901C14.0545 16.3708 14.0279 16.36 14.0003 16.36C13.9726 16.36 13.9461 16.3708 13.9263 16.3901L10.1021 20.1332C10.023 20.2101 9.91703 20.2531 9.8067 20.2531C9.69636 20.2531 9.59038 20.2101 9.51124 20.1332L4.12236 14.8594C4.08365 14.8219 4.05287 14.777 4.03185 14.7273C4.01083 14.6777 4 14.6243 4 14.5704C4 14.5165 4.01083 14.4632 4.03185 14.4135C4.05287 14.3639 4.08365 14.319 4.12236 14.2814L5.31767 13.1115C5.39678 13.0348 5.50265 12.9919 5.61285 12.9919C5.72305 12.9919 5.82892 13.0348 5.90803 13.1115L9.73216 16.8546C9.75194 16.874 9.7785 16.8848 9.80616 16.8848C9.83381 16.8848 9.86037 16.874 9.88015 16.8546L13.7043 13.1115C13.7834 13.0346 13.8894 12.9916 13.9997 12.9916C14.1101 12.9916 14.216 13.0346 14.2952 13.1115L18.1198 16.8546C18.1396 16.874 18.1662 16.8848 18.1938 16.8848C18.2215 16.8848 18.2481 16.874 18.2678 16.8546L22.092 13.1115C22.1711 13.0346 22.2771 12.9916 22.3874 12.9916C22.4977 12.9916 22.6037 13.0346 22.6829 13.1115Z",fill:"white"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_1765_9946",children:(0,s.jsx)("rect",{width:"20",height:"12.2531",fill:"white",transform:"translate(4 8)"})})})]})},"v",0,e=>!!String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),"w",0,(e,t)=>{let r=e.slice(0),n=[];for(;r.length;)n.push(r.splice(0,t));return n},"x",0,function(e,{min:t,max:r}){return Math.min(Math.max(e,t),r)},"y",0,(e,r)=>{let n=Number(e),i=r.find(e=>e.id===n);if(!i)throw new t.e(`Unsupported chainId ${e}`,4901);return i.blockExplorers?.default.url},"z",0,g])},123382,(e,t,r)=>{!function(e){"use strict";var n="function",i="undefined",a="object",o="string",s="major",l="model",c="name",u="type",d="vendor",p="version",f="architecture",h="console",m="mobile",y="tablet",b="smarttv",g="wearable",w="embedded",v="Amazon",_="Apple",x="ASUS",A="BlackBerry",E="Browser",k="Chrome",S="Firefox",T="Google",C="Honor",I="Huawei",P="Microsoft",N="Motorola",O="Nvidia",R="OnePlus",U="Opera",j="OPPO",L="Samsung",W="Sharp",z="Sony",B="Xiaomi",D="Zebra",M="Facebook",F="Chromium OS",$="Mac OS",K=" Browser",V=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},G=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},q=function(e,t){return typeof e===o&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===o)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},J=function(e,t){for(var r,i,o,s,l,c,u=0;u<t.length&&!l;){var d=t[u],p=t[u+1];for(r=i=0;r<d.length&&!l&&d[r];)if(l=d[r++].exec(e))for(o=0;o<p.length;o++)c=l[++i],typeof(s=p[o])===a&&s.length>0?2===s.length?typeof s[1]==n?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==n||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||void 0;u+=2}},X=function(e,t){for(var r in t)if(typeof t[r]===a&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(q(t[r][n],e))return"?"===r?void 0:r}else if(q(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,p],[/opios[\/ ]+([\w\.]+)/i],[p,[c,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[c,U+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[c,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[c,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[c,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[c,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)
vendor: 5,603 bytes, line 3
3/,"$1 Secure "+E],p],[/\bfocus\/([\w\.]+)/i],[p,[c,S+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[c,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[c,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[c,"MIUI"+K]],[/fxios\/([\w\.-]+)/i],[p,[c,S]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+K],p],[/samsungbrowser\/([\w\.]+)/i],[p,[c,L+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[c,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,M],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[c,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[c,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[c,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[c,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,k+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[c,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[c,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[p,X,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[c,S+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[p,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",H]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,L],[u,y]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,L],[u,m]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,_],[u,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,_],[u,y]],[/(macintosh);/i],[l,[d,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,W],[u,m]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,C],[u,y]],[/honor([-\w ]+)[;\)]/i],[l,[d,C],[u,m]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[d,I],[u,y]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,I],[u,m]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,B],[u,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,B],[u,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,j],[u,m]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,X,{OnePlus:["304","403","203"],"*":j}],[u,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[u,m]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[u,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,N],[u,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,N],[u,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,"LG"],[u,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,"LG"],[u,m]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
3(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,"Lenovo"],[u,y]],[/(nokia) (t[12][01])/i],[d,l,[u,y]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[u,m],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,T],[u,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,T],[u,m]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,z],[u,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,z],[u,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,R],[u,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,v],[u,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,v],[u,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[u,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,A],[u,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,x],[u,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,x],[u,m]],[/(nexus 9)/i],[l,[d,"HTC"],[u,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[u,m]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[d,"TCL"],[u,y]],[/(itel) ((\w+))/i],[[d,H],l,[u,X,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[u,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[u,m]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[u,m]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[u,m]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[u,m]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[u,m]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[d,"Nothing"],[u,m]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[u,y]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[u,m]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,l,[u,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[u,m]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[u,y]],[/(surface duo)/i],[l,[d,P],[u,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[u,m]],[/(u304aa)/i],[l,[d,"AT&T"],[u,m]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[u,m]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[u,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[u,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[u,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[u,y]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[u,y]],[/\b(k88) b/i],[l,[d,"ZTE"],[u,y]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[u,m]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[u,m]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[u,y]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[u,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[u,y]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[u,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[u,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[u,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[u,m]],[/\b(ph-1) /i],[l,[d,"Essential"],[u,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[u,y]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[u,y]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[u,y]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,O],[u,y]],[/(sprint) (\w+)/i],[d,l,[u,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,P],[u,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,D],[u,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,D],[u,m]],[/smart-tv.+(samsung)/i],[d,[u,b]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,L],[u,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,"LG"],[u,b]],[/(apple) ?tv/i],[d,[l,_+" TV"],[u,b]],[/crkey/i],[[l,k+"cast"],[d,T],[u,b]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,v],[u,b]],[/(shield \w+ tv)/i],[l,[d,O],[u,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,W],[u,b]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,z],[u,b]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,B],[u,b]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[u,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Y],[l,Y],[u,b]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[u,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[u,h]],[/droid.+; (shield)( bui|\))/i],[l,[d,O],[u,h]],[/(playstation \w+)/i],[l,[d,z],[u,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,P],[u,h]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,L],[u,g]],[/((pebble))app/i,/(asu
vendor: 18,700 bytes, line 3
3s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[u,g]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,j],[u,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,_],[u,g]],[/(opwwe\d{3})/i],[l,[d,R],[u,g]],[/(moto 360)/i],[l,[d,N],[u,g]],[/(smartwatch 3)/i],[l,[d,z],[u,g]],[/(g watch r)/i],[l,[d,"LG"],[u,g]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,D],[u,g]],[/droid.+; (glass) \d/i],[l,[d,T],[u,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,l,[u,g]],[/; (quest( \d| pro)?)/i],[l,[d,M],[u,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,w]],[/(aeobc)\b/i],[l,[d,v],[u,w]],[/(homepod).+mac os/i],[l,[d,_],[u,w]],[/windows iot/i],[[u,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[u,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[u,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,m]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[c,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[c,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,p],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,p],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[c,[p,X,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,X,Z],[c,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,$],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],p],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[c,p],[/\(bb(10);/i],[p,[c,A]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[p,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[c,S+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[c,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[c,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,F],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,p],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,p]]},ee=function(t,r){if(typeof t===a&&(r=t,t=void 0),!(this instanceof ee))return new ee(t,r).getResult();var h=typeof e!==i&&e.navigator?e.navigator:void 0,b=t||(h&&h.userAgent?h.userAgent:""),g=h&&h.userAgentData?h.userAgentData:void 0,w=r?V(Q,r):Q,v=h&&h.userAgent==b;return this.getBrowser=function(){var e,t={};return t[c]=void 0,t[p]=void 0,J.call(t,b,w.browser),t[s]=typeof(e=t[p])===o?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,v&&h&&h.brave&&typeof h.brave.isBrave==n&&(t[c]="Brave"),t},this.getCPU=function(){var e={};return e[f]=void 0,J.call(e,b,w.cpu),e},this.getDevice=function(){var e={};return e[d]=void 0,e[l]=void 0,e[u]=void 0,J.call(e,b,w.device),v&&!e[u]&&g&&g.mobile&&(e[u]=m),v&&"Macintosh"==e[l]&&h&&typeof h.standalone!==i&&h.maxTouchPoints&&h.maxTouchPoints>2&&(e[l]="iPad",e[u]=y),e},this.getEngine=function(){var e={};return e[c]=void 0,e[p]=void 0,J.call(e,b,w.engine),e},this.getOS=function(){var e={};return e[c]=void 0,e[p]=void 0,J.call(e,b,w.os),v&&!e[c]&&g&&g.platform&&"Unknown"!=g.platform&&(e[c]=g.platform.replace(/chrome os/i,F).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return b},this.setUA=function(e){return b=typeof e===o&&e.length>500?Y(e,500):e,this},this.setUA(b),this};ee.VERSION="1.0.41",ee.BROWSER=G([c,p,s]),ee.CPU=G([f]),ee.DEVICE=G([l,d,u,h,m,b,y,g,w]),ee.ENGINE=ee.OS=G([c,p]),t.exports&&(r=t.exports=ee),r.UAParser=ee;var et=typeof e!==i&&(e.jQuery||e.Zepto);if(et&&!et.ua){var er=new ee;et.ua=er.getResult(),et.ua.get=function(){return er.getUA()},et.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)et.ua[r]=t[r]}}}("object"==typeof window?window:e.e)},561774,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e.r(794189),i=n&&"object"==typeof n&&"default"in n?n.default:n,a=e.r(123382),o=new a,s=o.getBrowser(),l=o.getCPU(),c=o.getDevice(),u=o.getEngine(),d=o.getOS(),p=o.getUA(),f=function(e){return o.setUA(e)},h=function(e){if(!e)return void console.error("No userAgent string was provided");var t=new a(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}},m=Object.freeze({ClientUAInstance:o,browser:s,cpu:l,device:c,engine:u,os:d,ua:p,setUa:f,parseUserAgent:h});function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function x(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var E="mobile",k="tablet",S="smarttv",T="console",C="wearable",I="embedded",P=void 0,N={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},O={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},R={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},U=function(e){switch(e){case E:return{isMobile:!0};case k:return{isTablet:!0};case S:return{isSmartTV:!0};case T:return{isConsole:!0};case C:return{isWearable:!0};case P:return{isBrowser:!0};case I:return{isEmbedded:!0};default:return R}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},L=function(){return!!("u">typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},W=function(e){var t=L();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},z=function(e){return e.type===E},B=function(e){return e.type===k},D=function(e){var t=e.type;return t===E||t===k},M=function(e){return e.type===S},F=function(e){return e.type===P},$=function(e){return e.type===C},K=function(e){return e.type===T},V=function(e){return e.type===I},G=function(e){return j(e.vendor)},q=function(e){return j(e.model)},H=function(e){return j(e.type,"browser")},Y=function(e){return e.name===O.Android},J=function(e){return e.name===O.Windows},X=function(e){return e.name===O.MAC_OS},Z=function(e){return e.name===O.WindowsPhone},Q=function(e){return e.name===O.IOS},ee=function(e){return j(e.version)},et=function(e){return j(e.name)},er=function(e){return e.name===N.Chrome},en=function(e){return e.name===N.Firefox},ei=function(e){return e.name===N.Chromium},ea=function(e){return e.name===N.Edge},eo=function(e){return e.name===N.Yandex},es=function(e){var t=e.name;return t===N.Safari||t===N.MobileSafari},el=function(e){return e.name===N.MobileSafari},ec=function(e){return e.name===N.Opera},eu=function(e){var t=e.name;return t===N.InternetExplorer||t===N.Ie},ed=function(e){return e.name===N.MIUI},ep=function(e){return e.name===N.SamsungBrowser},ef=function(e){return j(e.version)},eh=function(e){return j(e.major)},em=function(e){return j(e.name)},ey=function(e){return j(e.name)},eb=function(e){return j(e.version)},eg=function(){var e=L(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},ew=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ev=function(){var e=L();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},e_=function(){return W("iPad")},ex=function(){return W("iPhone")},eA=function(){return W("iPod")},eE=function(e){return j(e)};function ek(e){var t=e||m,r=t.device,n=t.browser,i=t.os,a=t.engine,o=t.ua;return{isSmartTV:M(r),isConsole:K(r),isWearable:$(r),isEmbedded:V(r),isMobileSafari:el(n)||e_(),isChromium:ei(n),isMobile:D(r)||e_(),isMobileOnly:z(r),isTablet:B(r)||e_(),isBrowser:F(r),isDesktop:F(r),isAndroid:Y(i),isWinPhone:Z(i),isIOS:Q(i)||e_(),isChrome:er(n),isFirefox:en(n),isSafari:es(n),isOpera:ec(n),isIE:eu(n),osVersion:ee(i),osName:et(i),fullBrowserVersion:ef(n),browserVersion:eh(n),browserName:em(n),mobileVendor:G(r),mobileModel:q(r),engineName:ey(a),engineVersion:eb(a),getUA:eE(o),isEdge:ea(n)||ew(o),isYandex:eo(n),deviceType:H(r),isIOS13:ev(),isIPad13:e_(),isIPhone13:ex(),isIPod13:eA(),isElectron:eg(),isEdgeChromium:ew(o),isLegacyEdge:ea(n)&&!ew(o),isWindows:J(i),isMacOs:X(i),isMIUI:ed(n),isSamsungBrowser:ep(n)}}var eS=M(c),eT=K(c),eC=$(c),eI=V(c),eP=el(s)||e_(),eN=ei(s),eO=D(c)||e_(),eR=z(c),eU=B(c)||e_(),ej=F(c),eL=F(c),eW=Y(d),ez=Z(d),eB=Q(d)||e_(),eD=er(s),eM=en(s),eF=es(s),e$=ec(s),eK=eu(s),eV=ee(d),eG=et(d),eq=ef(s),eH=eh(s),eY=em(s),eJ=G(c),eX=q(c),eZ=ey(u),eQ=eb(u),e0=eE(p),e1=ea(s)||ew(p),e2=eo(s),e3=H(c),e5=ev(),e6=e_(),e4=ex(),e8=eA(),e9=eg(),e7=ew(p),te=ea(s)&&!ew(p),tt=J(d),tr=X(d),tn=ed(s),ti=ep(s);function ta(e){return h(e||window.navigator.userAgent)}r.AndroidView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eW?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.BrowserTypes=N,r.BrowserView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return ej?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.ConsoleView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eT?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.CustomView=function(e){var t=e.renderWithFragment,r=e.children,a=(e.viewClassName,e.style,e.condition),o=_(e,["renderWithFragment","children","viewClassName","style","condition"]);return a?t?i.createElement(n.Fragment,null,r):i.createElement("div",o,r):null},r.IEView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eK?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.IOSView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eB?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.MobileOnlyView=function(e){var t=e.renderWithFragment,r=e.children,a=(e.viewClassName,e.style,_(e,["renderWithFragment","children","viewClassName","style"]));return eR?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.MobileView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eO?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.OsTypes=O,r.SmartTVView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eS?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.TabletView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eU?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.WearableView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return eC?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.WinPhoneView=function(e){var t=e.renderWithFragment,r=e.children,a=_(e,["renderWithFragment","children"]);return ez?t?i.createElement(n.Fragment,null,r):i.createElement("div",a,r):null},r.browserName=eY,r.browserVersion=eH,r.deviceDetect=function(e){var t,r,n,i,a=e?h(e):m,o=a.device,s=a.browser,l=a.engine,c=a.os,u=a.ua,d=U(o.type),p=d.isBrowser,f=d.isMobile,b=d.isTablet,g=d.isSmartTV,w=d.isConsole,v=d.isWearable,_=d.isEmbedded;if(p)return{isBrowser:p,browserMajorVersion:j(s.major),browserFullVersion:j(s.version),browserName:j(s.name),engineName:j(l.name),engineVersion:j(l.version),osName:j(c.name),osVersion:j(c.version),userAgent:j(u)};if(g)return{isSmartTV:g,engineName:j(l.name),engineVersion:j(l.version),osName:j(c.name),osVersion:j(c.version),userAgent:j(u)};if(w)return{isConsole:w,engineName:j(l.name),engineVersion:j(l.version),osName:j(c.name),osVersion:j(c.version),userAgent:j(u)};if(f||b){return t=d,r=o,n=c,i=u,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){var n,i,a;n=e,i=t,a=r[t],i in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t,{vendor:j(r.vendor),model:j(r.model),os:j(n.name),osVersion:j(n.version),ua:j(i)})}return v?{isWearable:v,engineName:j(l.name),engineVersion:j(l.version),osName:j(c.name),osVersion:j(c.version),userAgent:j(u)}:_?{isEmbedded:_,vendor:j(o.vendor),model:j(o.model),engineName:j(l.name),engineVersion:j(l.version),osName:j(c.name),osVersion:j(c.version),userAgent:j(u)}:void 0},r.deviceType=e3,r.engineName=eZ,r.engineVersion=eQ,r.fullBrowserVersion=eq,r.getSelectorsByUserAgent=function(e){if(!e||"string"!=typeof e)return void console.error("No valid user agent string was provided");var t=h(e);return ek({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})},r.getUA=e0,r.isAndroid=eW,r.isBrowser=ej,r.isChrome=eD,r.isChromium=eN,r.isConsole=eT,r.isDesktop=eL,r.isEdge=e1,r.isEdgeChromium=e7,r.isElectron=e9,r.isEmbedded=eI,r.isFirefox=eM,r.isIE=eK,r.isIOS=eB,r.isIOS13=e5,r.isIPad13=e6,r.isIPhone13=e4,r.isIPod13=e8,r.isLegacyEdge=te,r.isMIUI=tn,r.isMacOs=tr,r.isMobile=eO,r.isMobileOnly=eR,r.isMobileSafari=eP,r.isOpera=e$,r.isSafari=eF,r.isSamsungBrowser=ti,r.isSmartTV=eS,r.isTablet=eU,r.isWearable=eC,r.isWinPhone=ez,r.isWindows=tt,r.isYandex=e2,r.mobileModel=eX,r.mobileVendor=eJ,r.osName=eG,r.osVersion=eV,r.parseUserAgent=h,r.setUserAgent=function(e){return f(e)},r.useDeviceData=ta,r.useDeviceSelectors=function(e){var t=ta(e||window.navigator.userAgent);return[ek(t),t]},r.useMobileOrientation=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=n.useState(function(){var e=90*(window.innerWidth>window.innerHeight);return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}))||function(e){var t,r,n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),2!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return A(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return A(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],i=t[1],a=n.useCallback(function(){var e=90*(window.innerWidth>window.innerHeight),t={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};r.orientation!==t.orientation&&i(t)},[r.orientation]);return n.useEffect(function(){return("u"<typeof window?"undefined":b(window))!==void 0&&eO&&(a(),window.addEventListener("load",a,!1),window.addEventListener("resize",a,!1)),function(){window.removeEventListener("resize",a,!1),window.removeEventListener("load",a,!1)}},[a]),r},r.withOrientationChange=function(e){return function(t){var r;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function n(e){var t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return(t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return x(e)}(this,w(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(x(t)),t.onOrientationChange=t.onOr
3ientationChange.bind(x(t)),t.onPageLoad=t.onPageLoad.bind(x(t)),t.state={isLandscape:!1,isPortrait:!1},t}return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&v(n,t),r=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=90*(window.innerWidth>window.innerHeight);this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){("u"<typeof window?"undefined":b(window))!==void 0&&eO&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return i.createElement(e,g({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(n.prototype,r),n}(i.Component)}},956166,e=>{"use strict";var t=e.i(794189),r=e.i(672526),n=e.i(381741),i=e.i(54286),a=e.i(739566),o=e.i(248924),s=e.i(588365),l=e.i(374840),c=e.i(853286),u=e.i(561774);let d=(0,r.create)(()=>({listings:[],loading:!1})),p=d.setState,f=(e=!0)=>{let r=(0,n.u)(),i=d(e=>e.listings),a=d(e=>e.loading),o=!!i.length;return(0,t.useEffect)(()=>{e&&!o&&(p({listings:[],loading:!0}),(async e=>{let t=new URL("v3/wallets","https://explorer-api.walletconnect.com");t.searchParams.append("projectId",e);let r=await fetch(t);return r.ok?Object.values((await r.json()).listings).sort(({slug:e},{slug:t})=>"rainbow"===e&&"metamask"===t?1:"metamask"===e||"rainbow"===e?-1:1):(console.debug(`Failed to fetch WalletConnect listings: ${await r.text().catch(()=>"No response.")}`),[])})(r.walletConnectCloudProjectId).then(e=>p({listings:e,loading:!1})).catch(e=>{console.error(e),p({listings:[],loading:!1})}))},[e,o,r.walletConnectCloudProjectId]),{listings:i,loading:a}};function h(e){return"cryptocom"===e?"cryptocom-defi":"binance"===e?"binance-defi":e.replace(/[-_]wallet$/,"")}function m(e){return"ethereum"===e.type}function y(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(n?.address!==i?.address||n&&i&&m(n)&&m(i)&&n?.chainId!==i?.chainId||n?.connectorType!==i?.connectorType||n?.connectedAt!==i?.connectedAt||n?.walletClientType!==i?.walletClientType||n?.isConnected!==i?.isConnected||n?.linked!==i?.linked)return!1}return!0}let b=(e,t)=>e.rpcTimeouts&&e.rpcTimeouts[t]||n.o;class g extends l.W{buildConnectedWallet(e,t,r,n){let i=async()=>!!this.wallets.find(t=>(0,a.getAddress)(t.address)===(0,a.getAddress)(e));return{type:"ethereum",address:(0,a.getAddress)(e),chainId:t,meta:r,imported:n,switchChain:async r=>{let n,i,o=this.wallets.find(t=>(0,a.getAddress)(t.address)===(0,a.getAddress)(e))?.chainId;if(!o)throw new s.e("Unable to determine current chainId.");if("number"==typeof r?(n=`0x${r.toString(16)}`,i=r):(n=r,i=Number(r)),o===(0,l.f)(n))return;let c=this.chains.find(e=>e.id===i);if(!c)throw new s.e(`Unsupported chainId: ${r}`);let u=async()=>{await this.proxyProvider.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]})};try{return await u()}catch(e){if(((e,t)=>{switch(t){case"coinbase_wallet":case"base_account":return e.message.includes("addEthereumChain");case"rabby_wallet":return e.message.includes("Unrecognized chain ID");default:return 4902===e.code||e.message?.includes("4902")}})(e,this.walletClientType))return"rabby_wallet"===this.walletClientType&&await (0,l.a)(300),await this.proxyProvider.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:c.name,nativeCurrency:c.nativeCurrency,rpcUrls:[c.rpcUrls.default?.http[0]??""],blockExplorerUrls:[c.blockExplorers?.default.url??""]}]}),u();if("rainbow"===this.walletClientType&&e.message?.includes("wallet_switchEthereumChain"))throw new s.e(`Rainbow does not support the chainId ${t}`);throw e}},connectedAt:Date.now(),walletClientType:this.walletClientType,connectorType:this.connectorType,isConnected:i,getEthereumProvider:async()=>
3{if(!await i())throw new s.e("Wallet is not currently connected.");return this.proxyProvider},sign:async e=>{if(!await i())throw new s.e("Wallet is not currently connected.");return await this.sign(e)},disconnect:()=>{this.disconnect()}}}async syncAccounts(e){let t;l.c.debug("Syncing accounts",{wallet:this.walletClientType});let r=e;try{if(void 0===r){l.c.rpcRequest("eth_accounts",this.walletClientType);let e=await (0,l.i)(()=>this.proxyProvider.request({method:"eth_accounts"}),{maxAttempts:10,delayMs:500});l.c.rpcResponse("eth_accounts",this.walletClientType),Array.isArray(e)&&(r=e)}}catch(e){l.c.warn("Wallet did not respond to eth_accounts, using prefetched accounts",{wallet:this.walletClientType})}if(!r||!Array.isArray(r)||r.length<=0||!r[0])return void l.c.debug("No accounts found",{wallet:this.walletClientType});let o=r[0];if(!(0,i.isAddress)(o))return;let s=(0,a.getAddress)(o),c=[];if("privy"===this.walletClientType){let e=l.s.get((0,n.p)(s));this.chains.find(t=>t.id===Number(e))||(l.s.del((0,n.p)(s)),e=null),t=e||`0x${this.defaultChain.id.toString(16)}`;try{await this.proxyProvider.request({method:"wallet_switchEthereumChain",params:[{chainId:t}]})}catch(e){l.c.warn("Unable to switch embedded wallet chain on initialization",{wallet:this.walletClientType,chainId:t})}}else try{l.c.rpcRequest("eth_chainId",this.walletClientType);let e=await (0,l.i)(()=>this.proxyProvider.request({method:"eth_chainId"}),{maxAttempts:10,delayMs:500});if(l.c.rpcResponse("eth_chainId",this.walletClientType),"string"==typeof e)t=e;else{if("number"!=typeof e)throw Error("Invalid chainId returned from provider");t=`0x${e.toString(16)}`}}catch(e){l.c.warn("Failed to get chainId from provider, using default",{wallet:this.walletClientType,defaultChainId:n.q}),t=n.q}let u=(0,l.f)(t);if(!c.find(e=>(0,a.getAddress)(e.address)===s)){let e={name:this.walletBranding.name,icon:this.walletBranding.icon,id:this.walletBranding.id};c.push(this.buildConnectedWallet((0,a.getAddress)(o),u,e,"embedded_imported"===this.connectorType))}y(c,this.wallets)||(l.c.debug("Wallets updated",{wallet:this.walletClientType,address:s,chainId:u}),this.wallets=c,this.emit("walletsUpdated"))}async getConnectedWallet(){let e=await this.proxyProvider.request({method:"eth_accounts"});return this.wallets.sort((e,t)=>t.connectedAt-e.connectedAt).find(t=>e.find(e=>(0,a.getAddress)(e)===(0,a.getAddress)(t.address)))||null}async isConnected(){let e=await this.proxyProvider.request({method:"eth_accounts"});return Array.isArray(e)&&e.length>0}async sign(e){return await this.connect({showPrompt:!1}),this.proxyProvider.request({method:"personal_sign",params:[(0,o.toHex)(e),this.wallets[0]?.address]})}subscribeListeners(){this.proxyProvider.on("accountsChanged",this.onAccountsChanged),this.proxyProvider.on("chainChanged",this.onChainChanged),this.proxyProvider.on("disconnect",this.onDisconnect),this.proxyProvider.on("connect",this.onConnect)}unsubscribeListeners(){this.proxyProvider.removeListener("accountsChanged",this.onAccountsChanged),this.proxyProvider.removeListener("chainChanged",this.onChainChanged),this.proxyProvider.removeListener("disconnect",this.onDisconnect),this.proxyProvider.removeListener("connect",this.onConnect)}
3constructor(e,t,r,i){super(e),this.chainType="ethereum",this.onAccountsChanged=e=>{l.c.providerEvent("accountsChanged",this.walletClientType,{accountsCount:e.length}),0===e.length?this.onDisconnect():this.syncAccounts(e)},this.onChainChanged=e=>{l.c.providerEvent("chainChanged",this.walletClientType,{chainId:e}),this.wallets.forEach(t=>{t.chainId=(0,l.f)(e),"privy"===this.walletClientType&&l.s.put((0,n.p)(t.address),e)}),this.emit("walletsUpdated")},this.onDisconnect=()=>{l.c.providerEvent("disconnect",this.walletClientType),this.connected=!1,this.wallets=[],this.emit("walletsUpdated")},this.onConnect=async()=>{l.c.providerEvent("connect",this.walletClientType),"base_account"===this.connectorType&&this.connected||(this.connected=!0,"coinbase_wallet"===this.connectorType&&await (0,l.a)(500),this.syncAccounts())},this.wallets=[],this.walletClientType=e,this.chains=t,this.defaultChain=r,this.rpcConfig=i,this.rpcTimeoutDuration=b(i,e),this.connected=!1,this.initialized=!1}}class w{on(e,t){if(this.walletProvider)return this.walletProvider.on(e,t);this._subscriptions.push({eventName:e,listener:t})}async request(e){if(!this.walletProvider)throw new s.e(`A wallet request of type ${e.method} was made before setting a wallet provider.`);return Promise.race([this.walletProvider.request(e),this.walletTimeout()]).catch(e=>{throw(0,l.j)(e)})}constructor(e,t){this.removeListener=(e,t)=>{if(this.walletProvider)try{return this.walletProvider.removeListener(e,t)}catch(e){console.warn("Unable to remove wallet provider listener")}},this.walletTimeout=(e=new l.o,t=this.rpcTimeoutDuration)=>new Promise((r,n)=>setTimeout(()=>{n(e)},t)),this.setWalletProvider=e=>{this.walletProvider&&this._subscriptions.forEach(e=>{this.removeListener(e.eventName,e.listener)}),this.walletProvider=e,this._subscriptions.forEach(e=>{this.walletProvider?.on(e.eventName,e.listener)})},this.walletProvider=e,this.rpcTimeoutDuration=t||n.o,this._subscriptions=[]}}let v=["metamask","phantom","brave_wallet","rainbow","uniswap_wallet_extension","uniswap_extension","rabby_wallet","bybit_wallet","ronin_wallet","haha_wallet","crypto.com_wallet_extension","crypto.com_onchain","binance","bitget_wallet","coinbase_wallet","coinbase_smart_wallet","base_account","metamask","trust","safe","rainbow","uniswap","zerion","argent","spot","omni","cryptocom","blockchain","safepal","bitget_wallet","zengo","1inch","binance","exodus","mew_wallet","alphawallet","keyring_pro","mathwallet","unstoppable","obvious","ambire","internet_money_wallet","coin98","abc_wallet","arculus_wallet","haha","cling_wallet","broearn","copiosa","burrito_wallet","enjin_wallet","plasma_wallet","avacus","bee","pitaka","pltwallet","minerva","kryptogo","prema","slingshot","kriptonio","timeless","secux","bitizen","blocto","okx_wallet","safemoon","rabby_wallet","bybit_wallet","ronin_wallet","haha_wallet","privy","unknown","phantom","solflare","glow","backpack","jupiter","mobile_wallet_adapter"],_=Object.freeze({phantom:{client:"phantom",name:"Phantom",installLink:u.isFirefox?"https://addons.mozilla.org/en-US/firefox/addon/phantom-app/":"https://chrome.google.com/webstore/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa?hl=en",chainTypes:["ethereum","solana"],get isInstalled(){if("phantom"in window){let e=window;if(e?.phantom?.ethereum?.isPhantom&&e?.phantom?.ethereum?.chainId||e?.phantom?.solana?.isPhantom)return!0}return!1},getMobileRedirect({useUniversalLink:e,isSolana:t,connectOnly:r}){let n=x({client:this.client,isSolana:t,connectOnly:r});return`${e?"phantom://":"https://phantom.app/ul/"}browse/${n}?ref=${n}`}},solflare:{client:"solflare",name:"Solflare",installLink:u.isFirefox?"https://addons.mozilla.org/es/firefox/addon/solflare-wallet/":"https://chromewebstore.google.com/detail/solflare-wallet/bhhhlbepdkbapadjdnnojkbgioiodbic",chainTypes:["solana"],get isInstalled(){return"solflare"in window&&!!window?.solflare?.isSolflare},getMobileRedirect({useUniversalLink:e,isSolana:t,connectOnly:r}){let n=x({client:this.client,isSolana:t,connectOnly:r});return`${e?"solflare://ul/v1/":"https://solflare.com/ul/v1/"}browse/${n}?ref=${n}`}},jupiter:{client:"jupiter",name:"Jupiter Wallet",installLink:"https://chromewebstore.google.com/detail/jupiter-wallet/iledlaeogohbilgbfhmbgkgmpplbfboh",chainTypes:["solana"],get isInstalled(){return"jupiter"in window&&!!window?.jupiter?.isJupiter},getMobileRedirect({isSolana:e,connectOnly:t}){let r=x({client:this.client,isSolana:e,connectOnly:t});return`jupjupjup://jup.ag/browse/${r}?ref=${r}`}},backpack:{client:"backpack",name:"Backpack",installLink:"https://chromewebstore.google.com/detail/backpack/aflkmfhebedbjioipglgcb
3cmnbpgliof",chainTypes:["ethereum","solana"],get isInstalled(){return!(!("backpack"in window)||!window?.backpack?.ethereum?.isBackpack&&!window?.backpack?.solana?.isBackpack)},getMobileRedirect({useUniversalLink:e,isSolana:t,connectOnly:r}){let n=x({client:this.client,isSolana:t,connectOnly:r});return`${e?"backpack://ul/v1/":"https://backpack.app/ul/v1/"}browse/${n}?ref=${n}`}},okx_wallet:{client:"okx_wallet",name:"OKX Wallet",installLink:"https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",chainTypes:["ethereum","solana"],get isInstalled(){return"okxwallet"in window&&!!window?.okxwallet?.isOkxWallet},getMobileRedirect({isSolana:e,connectOnly:t}){return`okx://wallet/dapp/url?dappUrl=${x({client:this.client,isSolana:e,connectOnly:t})}`}}});function x({client:e,isSolana:t,connectOnly:r}){let n=new URL(window.location.href);return n.searchParams.set("privy_connector",t?"solana_adapter":"injected"),n.searchParams.set("privy_wallet_client",e),n.searchParams.set("privy_connect_only",String(r)),encodeURIComponent(n.href.replace(/\/$/g,""))}class A extends l.S{get walletBranding(){return{id:this.id,name:this.name,icon:this.icon}}async initialize(){this.initialized=!0,this.emit("initialized")}async connect(){throw Error("connect called for an uninstalled wallet via the SolanaNullConnector")}constructor({id:e,name:t,icon:r}){super({name:t},!1),this.connectorType="null",this.proxyProvider=new w(void 0,n.o),this.disconnect=async()=>{throw Error("disconnect called for an uninstalled wallet via the SolanaNullConnector")},this.promptConnection=async()=>{throw Error("promptConnection called for an uninstalled wallet via the SolanaNullConnector")},this.id=e,this.name=t,this.icon=r}}e.s(["E",0,g,"M",0,({...e}={})=>(0,c.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",...e,children:[(0,c.jsx)("rect",{width:"32",height:"32",rx:"6",fill:"#121314"}),(0,c.jsx)("g",{transform:"translate(4, 4)",children:(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 318.6 318.6",children:[(0,c.jsx)("style",{children:".s1{stroke-linecap:round;stroke-linejoin:round}.s2{fill:#e4761b;stroke:#e4761b}.s3{fill:#f6851b;stroke:#f6851b}"}),(0,c.jsx)("path",{fill:"#e2761b",stroke:"#e2761b",className:"s1",d:"m274.1 35.5-99.5 73.9L193 65.8z"}),(0,c.jsx)("path",{d:"m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z",className:"s1 s2"}),(0,c.jsx)("path",{d:"m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z",className:"s1 s2"}),(0,c.jsx)("path",{fill:"#d7c1b3",stroke:"#d7c1b3",className:"s1",d:"m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"}),(0,c.jsx)("path",{fill:"#233447",stroke:"#233447",className:"s1",d:"m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"}),(0,c.jsx)("path",{fill:"#cd6116",stroke:"#cd6116",className:"s1",d:"m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"}),(0,c.jsx)("path",{fill:"#e4751f",stroke:"#e4751f",className:"s1",d:"m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"}),(0,c.jsx)("path",{d:"m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z",className:"s3"}),(0,c.jsx)("path",{fill:"#c0ad9e",stroke:"#c0ad9e",className:"s1",d:"m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"}),(0,c.jsx)("path",{fill:"#161616",stroke:"#161616",className:"s1",d:"m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"}),(0,c.jsx)("path",{fill:"#763d16",stroke:"#763d16",className:"s1",d:"m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"}),(0,c.jsx)("path",{d:"m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h4
36.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z",className:"s3"})]})})]}),"P",0,w,"S",0,A,"a",0,y,"b",0,function({connectorType:e,walletClientType:t}){for(let r of v)if(e===r||t===r)return _[r]},"c",0,function(e){return"solana"===e.type},"d",0,function(e){return"solana"===e.chainType},"e",0,e=>{let t;try{t=new URL(e).hostname}catch(e){return}return d.getState().listings.find(({homepage:e})=>{let r;try{r=new URL(e).hostname}catch(e){return!1}return t.includes(r)})},"f",0,e=>d.getState().listings.find(({slug:t})=>h(t)===h(e)),"g",0,b,"h",0,function(e){return"ethereum"===e.chainType},"i",0,m,"j",0,class extends g{get walletBranding(){return{id:this.id,name:this.name,icon:this.icon}}async initialize(){this.initialized=!0,this.emit("initialized")}async connect(){throw Error("connect called for an uninstalled wallet via the EthereumNullConnector")}disconnect(){throw Error("disconnect called for an uninstalled wallet via the EthereumNullConnector")}promptConnection(e){throw Error(`promptConnection called for an uninstalled wallet via the EthereumNullConnector for ${e}`)}constructor({id:e,name:t,icon:r,walletClientType:i,defaultChain:a}){super(i,[],a,{}),this.connectorType="null",this.proxyProvider=new w(void 0,n.o),this.id=e,this.name=t,this.icon=r}},"k",0,e=>{let{listings:t}=f();return t.find(({slug:t})=>h(t)===h(e))},"l",0,function({isMobile:e,walletConfig:t}){return!e&&"phantom"===t?.client},"m",0,_,"s",0,function(e){return["wallet_connect","backpack","binance","binanceus","bitget_wallet","bybit_wallet","cryptocom","haha_wallet","jupiter","metamask","okx_wallet","phantom","rabby_wallet","rainbow","ronin_wallet","safe","solflare","uniswap","zerion","kraken_wallet"].some(t=>e?.includes(t))},"u",0,f])},930879,e=>{"use strict";let t=(0,e.i(672526).create)(()=>({user:null,authenticated:!1,hasResolvedInitialUser:!1}));e.s(["a",0,e=>t.setState({user:e}),"b",0,e=>t.setState({hasResolvedInitialUser:e}),"s",0,e=>t.setState({authenticated:e}),"u",0,t])},193035,e=>{"use strict";var t=e.i(794189),r=e.i(930879),n=e.i(672526),i=e.i(801088),a=e.i(588365),o=e.i(908058);let s=(e,{chainType:t,walletIndex:r}={})=>e?.linkedAccounts.filter(e=>"wallet"===e.type&&"privy"===e.walletClientType&&(void 0===r||e.walletIndex===r)&&(void 0===t||e.chainType===t))??[],l=(0,n.create)(()=>({ethereumExternal:[],areExternalConnectorsReady:!1,ethereumEmbedded:[]})),c=(0,t.createContext)(!1),u=e=>{if("ethereum"===e.chainType)return{entropyId:e.address,entropyIdVerifier:"ethereum-address-verifier"};if("solana"===e.chainType)return{entropyId:e.address,entropyIdVerifier:"solana-address-ver
3ifier"};throw Error("Failed to get account entropy details")};e.s(["P",0,c,"a",0,l,"b",0,()=>{if((0,t.useContext)(c))throw new a.P("Multiple PrivyProvider instances found","Found multiple instances of PrivyProvider, ensure there is only one mounted in your application tree.")},"c",0,s,"g",0,(e,t)=>{if(t?.imported)return u(t);let r=(0,o.g)(e);if(!r)throw Error("Failed to find primary wallet");return u(r)},"s",0,e=>l.setState({areExternalConnectorsReady:e}),"t",0,u,"u",0,function(){let e=(0,t.useContext)(c),n=(0,i.u)(),a=l(e=>e.ethereumEmbedded),o=l(e=>e.ethereumExternal),u=l(e=>e.areExternalConnectorsReady),d=(0,r.u)(e=>e.user),p=(0,r.u)(e=>e.hasResolvedInitialUser),f=(0,t.useMemo)(()=>[...a,...o].sort((e,t)=>t.connectedAt-e.connectedAt),[a,o]),h=s(d,{chainType:"ethereum"}).length>0,m=a.length>0,y=!!u&&!!p&&!!n.walletProxy&&(!h||m);return e?(0,t.useMemo)(()=>({wallets:f,ready:y}),[f,y]):(console.warn("`useWallets` was called outside the PrivyProvider component"),{wallets:[],ready:!1})}])},334359,e=>{"use strict";var t=e.i(794189);let r=(0,t.createContext)(void 0),n=()=>(0,t.useContext)(r);function i(e,t,r,...n){for(let i of e.current[t][r])i(...n)}e.s(["P",0,r,"a",0,function(){let e=n();return(t,r,...n)=>i(e,t,r,...n)},"e",0,i,"p",0,{login:{onComplete:[],onError:[]},logout:{onSuccess:[]},connectWallet:{onSuccess:[],onError:[]},connectOrCreateWallet:{onSuccess:[],onError:[]},createWallet:{onSuccess:[],onError:[]},linkAccount:{onSuccess:[],onError:[]},update:{onSuccess:[],onError:[]},configureMfa:{onMfaRequired:[]},setWalletPassword:{onSuccess:[],onError:[]},setWalletRecovery:{onSuccess:[],onError:[]},signMessage:{onSuccess:[],onError:[]},signTypedData:{onSuccess:[],onError:[]},sendTransaction:{onSuccess:[],onError:[]},signTransaction:{onSuccess:[],onError:[]},accessToken:{onAccessTokenGranted:[],onAccessTokenRemoved:[]},oAuthAuthorization:{onOAuthTokenGrant:[]},fundWallet:{onUserExited:[]},fundSolanaWallet:{onUserExited:[]},customAuth:{onAuthenticated:[],onUnauthenticated:[]}},"u",0,function(e,r){if(!r)return;let i=n().current[e];return(0,t.useEffect)(()=>{for(let[t,n]of Object.entries(r))Object.prototype.hasOwnProperty.call(i,t)||console.warn(`Invalid event type "${t}" for action "${e}"`),i[t]?.push(n);return()=>{for(let[t,n]of Object.entries(r))Object.prototype.hasOwnProperty.call(i,t)||console.warn(`Invalid event type "${t}" for action "${e}"`),i[t]=i[t]?.filter(e=>e!==n)}},[r])}])},934746,e=>{"use strict";var t,r,n,i=e.i(692139);e.i(570606);var a=e.i(794189),o="-ms-",s="-moz-",l="-webkit-",c="comm",u="rule",d="decl",p="@keyframes",f=Math.abs,h=String.fromCharCode,m=Object.assign;function y(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,r){return e.replace(t,r)}function g(e,t,r){return e.indexOf(t,r)}function w(e,t){return 0|e.charCodeAt(t)}function v(e,t,r){return e.slice(t,r)}function _(e){return e.length}function x(e,t){return t.push(e),e}function A(e,t){return e.filter(function(e){return!y(e,t)})}var E=1,k=1,S=0,T=0,C=0,I="";function P(e,t,r,n,i,a,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:E,column:k,length:o,return:"",siblings:s}}function N(e,t){return m(P("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function O(e){for(;e.root;)e=N(e.root,{children:[e]});x(e,e.siblings)}function R(){return C=T<S?w(I,T++):0,k++,10===C&&(k=1,E++),C}function U(){return w(I,T)}function j(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){var t,r;return(t=T-1,r=function e(t){for(;R();)switch(C){case t:return T;case 34:case 39:34!==t&&39!==t&&e(C);break;case 40:41===t&&e(t);break;case 92:R()}return T}(91===e?e+2:40===e?e+1:e),v(I,t,r)).trim()}function W(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case d:return e.return=e.return||e.value;case c:return"";case p:return e.return=e.value+"{"+W(e.children,n)+"}";case u:if(!_(e.value=e.props.join(",")))return""}return _(r=W(e.children,n))?e.return=e.value+"{"+r+"}":""}function B(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case d:e.return=function e(t,r,n){var i;switch(i=r,45^w(t,0)?(((i<<2^w(t,0))<<2^w(t,1))<<2^w(t,2))<<2^w(t,3):0){case 5103:return l+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return l+t+t;case 4855:return l+t.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+t;case 4789:return s+t+t;
3case 5349:case 4246:case 4810:case 6968:case 2756:return l+t+s+t+o+t+t;case 5936:switch(w(t,r+11)){case 114:return l+t+o+b(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return l+t+o+b(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return l+t+o+b(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return l+t+o+t+t;case 6165:return l+t+o+"flex-"+t+t;case 5187:return l+t+b(t,/(\w+).+(:[^]+)/,l+"box-$1$2"+o+"flex-$1$2")+t;case 5443:return l+t+o+"flex-item-"+b(t,/flex-|-self/g,"")+(y(t,/flex-|baseline/)?"":o+"grid-row-"+b(t,/flex-|-self/g,""))+t;case 4675:return l+t+o+"flex-line-pack"+b(t,/align-content|flex-|-self/g,"")+t;case 5548:return l+t+o+b(t,"shrink","negative")+t;case 5292:return l+t+o+b(t,"basis","preferred-size")+t;case 6060:return l+"box-"+b(t,"-grow","")+l+t+o+b(t,"grow","positive")+t;case 4554:return l+b(t,/([^-])(transform)/g,"$1"+l+"$2")+t;case 6187:return b(b(b(t,/(zoom-|grab)/,l+"$1"),/(image-set)/,l+"$1"),t,"")+t;case 5495:case 3959:return b(t,/(image-set\([^]*)/,l+"$1$`$1");case 4968:return b(b(t,/(.+:)(flex-)?(.*)/,l+"box-pack:$3"+o+"flex-pack:$3"),/space-between/,"justify")+l+t+t;case 4200:if(!y(t,/flex-|baseline/))return o+"grid-column-align"+v(t,r)+t;break;case 2592:case 3360:return o+b(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,y(e.props,/grid-\w+-end/)}))return~g(t+(n=n[r].value),"span",0)?t:o+b(t,"-start","")+t+o+"grid-row-span:"+(~g(n,"span",0)?y(n,/\d+/):y(n,/\d+/)-y(t,/\d+/))+";";return o+b(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return y(e.props,/grid-\w+-start/)})?t:o+b(b(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return b(t,/(.+)-inline(.+)/,l+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(t)-1-r>6)switch(w(t,r+1)){case 109:if(45!==w(t,r+4))break;case 102:return b(t,/(.+:)(.+)-([^]+)/,"$1"+l+"$2-$3$1"+s+(108==w(t,r+3)?"$3":"$2-$3"))+t;case 115:return~g(t,"stretch",0)?e(b(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return b(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,i,a,s,l){return o+r+":"+n+l+(i?o+r+"-span:"+(a?s:s-n)+l:"")+t});case 4949:if(121===w(t,r+6))return b(t,":",":"+l)+t;break;case 6444:switch(w(t,45===w(t,14)?18:11)){case 120:return b(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+l+(45===w(t,14)?"inline-":"")+"box$3$1"+l+"$2$3$1"+o+"$2box$3")+t;case 100:return b(t,":",":"+o)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case p:return W([N(e,{value:b(e.value,"@","@"+l)})],n);case u:if(e.length){var i,a;return i=r=e.props,a=function(t){switch(y(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":O(N(e,{props:[b(t,/:(read-\w+)/,":"+s+"$1")]})),O(N(e,{props:[t]})),m(e,{props:A(r,n)});break;case"::placeholder":O(N(e,{props:[b(t,/:(plac\w+)/,":"+l+"input-$1")]})),O(N(e,{props:[b(t,/:(plac\w+)/,":"+s+"$1")]})),O(N(e,{props:[b(t,/:(plac\w+)/,o+"input-$1")]})),O(N(e,{props:[t]})),m(e,{props:A(r,n)})}return""},i.map(a).join("")}}}function D(e,t,r,n,i,a,o,s,l,c,d,p){for(var h=i-1,m=0===i?a:[""],y=m.length,g=0,w=0,_=0;g<n;++g)for(var x=0,A=v(e,h+1,h=f(w=o[g])),E=e;x<y;++x)(E=(w>0?m[x]+" "+A:b(A,/&\f/g,m[x])).trim())&&(l[_++]=E);return P(e,t,r,0===i?u:s,l,c,d,p)}function M(e,t,r,n,i){return P(e,t,r,d,v(e,0,n),v(e,n+1,-1),n,i)}let F=void 0!==i.default&&void 0!==i.default.env&&(i.default.env.REACT_APP_SC_ATTR||i.default.env.SC_ATTR)||"data-styled",$="active",K="data-styled-version",V="6.4.2",G="/*!sc*/\n",q="u">typeof window&&"u">typeof document;function H(e){if(void 0!==i.default&&void 0!==i.default.env){let t=i.default.env[e];if(void 0!==t&&""!==t)return"false"!==t}}let Y=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!=(r=null!=(t=H("REACT_APP_SC_DISABLE_SPEEDY"))?t:H("SC_DISABLE_SPEEDY"))?r:void 0!==i.default&&void 0!==i.default.env&&!1),J="sc-keyframes-",X={};function Z(e,...t){return Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Q=new Map,ee=new Map,et=1,er=e=>{if(Q.has(e))return Q.get(e);for(;ee.has(et);)et++;let t=et++;return Q.set(e,t),ee.set(t,e),t},en=e=>ee.get(e),ei=(e,t)=>{et=t+1,Q.set(e,t),ee.set(t,e)},ea=Object.freeze([]),eo=Object.freeze({});function es(e,t,r=eo){return e.theme!==r.theme&&e.theme||t||r.theme}let el=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ec=/(^-|-$)/g;function eu(e){return e.replace(el,"-").replace(ec,"")}let ed=/(a)(d)/gi,ep=e=>String.fromCharCode(e+(e>25?39:97));function ef(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ep(t%52)+r;return(ep(t%52)+r).replace(ed,"$1-$2")}let eh=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e};function em(e){return ef(eh(5381,e)>>>0)}function ey(e){return"string"==typeof e}let eb=Symbol.for("react.memo"),eg=Symbol.for("react.forward_ref"),ew={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},e_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ex={[eg]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[eb]:e_};function eA(e){return("type"in e&&e.type.$$typeof)===eb?e_:"$$typeof"in e?ex[e.$$typeof]:ew}let eE=Object.defineProperty,ek=Object.getOwnPropertyNames,eS=Object.getOwnPropertySymbols,eT=Object.getOwnPropertyDescriptor,eC=Object.getPrototypeOf,eI=Object.prototype;function eP(e){return"function"==typeof e}let eN=Symbol.for("react.forward_ref");function eO(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===eN&&"styledComponentId"in e}function eR(e,t){return e&&t?e+" "+t:e||t||""}function eU(e,t){return e.join(t||"")}function ej(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eL(e,t){Object.defineProperty(e,"toString",{value:t})}let eW=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,r=t.length,n=r;for(;e>=n;)if((n<<=1)<0)throw Z(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(r,t[i])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;let r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r;for(let e=n;e<i;e++)t+=this.tag.getRule(e)+G;return t}},ez=`style[${F}][${K}="${V}"]`,eB=RegExp(`^${F}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),eD=e=>"u">typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,eM=e=>{if(!e)return document;if(eD(e))return e;if("getRootNode"in e){let t=e.getRootNode();if(eD(t))return t}return document},eF=(e,t,r)=>{let n,i=r.split(",");for(let r=0,a=i.length;r<a;r++)(n=i[r])&&e.registerName(t,n)},e$=(e,t)=>{var r;let n=(null!=(r=t.textContent)?r:"").split(G),i=[];for(let t=0,r=n.length;t<r;t++){let r=n[t].trim();if(!r)continue;let a=r.match(eB);if(a){let t=0|parseInt(a[1],10),r=a[2];0!==t&&(ei(r,t),eF(e,r,a[3]),e.getTag().insertRules(t,i)),i.length=0}else i.push(r)}},eK=e=>{let t=eM(e.options.target).querySelectorAll(ez);for(let r=0,n=t.length;r<n;r++){let n=t[r];n&&n.getAttribute(F)!==$&&(e$(e,n),n.parentNode&&n.parentNode.removeChild(n))}},eV=!1,eG=(e,t)=>{let r,n=document.head,i=e||n,a=document.createElement("style"),o=(r=Array.from(i.querySelectorAll(`style[${F}]`)))[r.length-1],s=void 0!==o?o.nextSibling:null;a.setAttribute(F,$),a.setAttribute(K,V);let l=t||function(){if(!1!==eV)return eV;if("u">typeof document){let e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return eV=e.nonce||e.getAttribute("content")||void 0;let t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return eV=t.getAttribute("content")||void 0}return eV="u">typeof __webpack_nonce__?__webpack_nonce__:void 0}();return l&&a.setAttribute("nonce",l),i.insertBefore(a,s),a},eq=class{constructor(e,t){this.element=eG(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;let r=null!=(t=e.getRootNode().styleSheets)?t:document.styleSheets;for(let t=0,n=r.length;t<n;t++){let n=r[t];if(n.ownerNode===e)return n}throw Z(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}}
3,eH=class{constructor(e,t){this.element=eG(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},eY=q,eJ={isServer:!q,useCSSOMInjection:!Y};class eX{static registerId(e){return er(e)}constructor(e=eo,t={},r){this.options=Object.assign(Object.assign({},eJ),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!e.isServer,!this.server&&q&&eY&&(eY=!1,eK(this)),eL(this,()=>(e=>{let t=e.getTag(),{length:r}=t,n="";for(let i=0;i<r;i++){let r=en(i);if(void 0===r)continue;let a=e.names.get(r);if(void 0===a||!a.size)continue;let o=t.getGroup(i);if(0===o.length)continue;let s=F+".g"+i+'[id="'+r+'"]',l="";for(let e of a)e.length>0&&(l+=e+",");n+=o+s+'{content:"'+l+'"}'+G}return n})(this))}rehydrate(){!this.server&&q&&eK(this)}reconstructWithOptions(e,t=!0){let r=new eX(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&q&&e.target!==this.options.target&&eM(this.options.target)!==eM(e.target)&&eK(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=new eW((({useCSSOMInjection:e,target:t,nonce:r})=>e?new eq(t,r):new eH(t,r))(this.options)))}hasNameForId(e,t){var r,n;return null!=(n=null==(r=this.names.get(e))?void 0:r.has(t))&&n}registerName(e,t){er(e),e.startsWith(J)&&this.keyframeIds.add(e);let r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,r){this.registerName(e,t),this.getTag().insertRules(er(e),r)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(er(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}let eZ=new WeakSet,eQ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function e0(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);t+=n>=65&&n<=90?"-"+String.fromCharCode(n+32):e[r]}return t.startsWith("ms-")?"-"+t:t}let e1=Symbol.for("sc-keyframes");function e2(e){return eP(e)&&!(e.prototype&&e.prototype.isReactComponent)}let e3=e=>null==e||!1===e||""===e,e5=Symbol.for("react.client.reference");function e6(e){return e.$$typeof===e5}function e4(e,t,r,n,i=[]){if(e3(e))return i;let a=typeof e;if("string"===a)return i.push(e),i;if("function"===a)return e6(e)?i:e2(e)&&t?e4(e(t),t,r,n,i):(i.push(e),i);if(Array.isArray(e)){for(let a=0;a<e.length;a++)e4(e[a],t,r,n,i);return i}return eO(e)?i.push(`.${e.styledComponentId}`):"object"==typeof e&&null!==e&&e1 in e?r?(e.inject(r,n),i.push(e.getName(n))):i.push(e):e6(e)||(ej(e)?e.toString!==Object.prototype.toString?i.push(e.toString()):function e(t,r){for(let n in t){let i=t[n];t.hasOwnProperty(n)&&!e3(i)&&(Array.isArray(i)&&eZ.has(i)||eP(i)?r.push(e0(n)+":",i,";"):ej(i)?(r.push(n+" {"),e(i,r),r.push("}")):r.push(e0(n)+": "+(null==i||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in eQ||n.startsWith("--")?String(i).trim():i+"px")+";"))}}(e,i):i.push(e.toString())),i}let e8=eh(5381,V);class e9{constructor(e,t,r){this.rules=e,this.componentId=t,this.baseHash=eh(e8,t),this.baseStyle=r,eX.registerId(t)}generateAndInjectStyles(e,t,r){let n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";{let i="";for(let n=0;n<this.rules.length;n++){let a=this.rules[n];if("string"==typeof a)i+=a;else if(a)if(e2(a)){let n=a(e);"string"==typeof n?i+=n:null!=n&&!1!==n&&(i+=eU(e4(n,e,t,r)))}else i+=eU(e4(a,e,t,r))}
3if(i){this.dynamicNameCache||(this.dynamicNameCache=new Map);let e=r.hash?r.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=ef(eh(eh(this.baseHash,r.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=r(i,"."+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}n=eR(n,a)}}return n}}let e7=/&/g;function te(e,t){let r=0;for(;--t>=0&&92===e.charCodeAt(t);)r++;return!(1&~r)}function tt(e){let t=e.length,r="",n=0,i=0,a=0,o=!1,s=!1;for(let l=0;l<t;l++){let c=e.charCodeAt(l);if(0!==a||o||47!==c||42!==e.charCodeAt(l+1))if(o)42===c&&47===e.charCodeAt(l+1)&&(o=!1,l++);else if(34!==c&&39!==c||te(e,l)){if(0===a)if(123===c)i++;else if(125===c){if(--i<0){s=!0;let r=l+1;for(;r<t;){let t=e.charCodeAt(r);if(59===t||10===t)break;r++}r<t&&59===e.charCodeAt(r)&&r++,i=0,l=r-1,n=r;continue}0===i&&(r+=e.substring(n,l+1),n=l+1)}else 59===c&&0===i&&(r+=e.substring(n,l+1),n=l+1)}else 0===a?a=c:a===c&&(a=0);else o=!0,l++}return s||0!==i||0!==a?(n<t&&0===i&&0===a&&(r+=e.substring(n)),r):e}let tr=new eX,tn=function({options:e=eo,plugins:t=ea}=eo){var r,n,i;let a,o,s,l=(e,t,r)=>r.startsWith(o)&&r.endsWith(o)&&r.replaceAll(o,"").length>0?`.${a}`:e,d=t.slice();d.push(e=>{e.type===u&&e.value.includes("&")&&(s||(s=RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(e7,o).replace(s,l))}),e.prefix&&d.push(B),d.push(z);let p=[],m=(i=(n=d.concat((r=e=>p.push(e),function(e){!e.root&&(e=e.return)&&r(e)}))).length,function(e,t,r,a){for(var o="",s=0;s<i;s++)o+=n[s](e,t,r,a)||"";return o}),y=(t,r="",n="",i="&")=>{var l,u,d;a=i,o=r,s=void 0;let y=function(e){let t=-1!==e.indexOf("//"),r=-1!==e.indexOf("}");if(!t&&!r)return e;if(!t)return tt(e);let n=e.length,i="",a=0,o=0,s=0,l=0,c=0,u=!1;for(;o<n;){let t=e.charCodeAt(o);if(34!==t&&39!==t||te(e,o))if(0===s)if(47===t&&o+1<n&&42===e.charCodeAt(o+1)){for(o+=2;o+1<n&&(42!==e.charCodeAt(o)||47!==e.charCodeAt(o+1));)o++;o+=2}else if(40!==t)if(41!==t)if(l>0)o++;else if(42===t&&o+1<n&&47===e.charCodeAt(o+1))i+=e.substring(a,o),o+=2,a=o,u=!0;else if(47===t&&o+1<n&&47===e.charCodeAt(o+1)){for(i+=e.substring(a,o);o<n&&10!==e.charCodeAt(o);)o++;a=o,u=!0}else 123===t?c++:125===t&&c--,o++;else l>0&&l--,o++;else l++,o++;else o++;else 0===s?s=t:s===t&&(s=0),o++}return u?(a<n&&(i+=e.substring(a)),0===c?i:tt(i)):0===c?e:tt(e)}(t),A=(d=function e(t,r,n,i,a,o,s,l,u){for(var d,p,m,y,A=0,S=0,N=s,O=0,W=0,z=0,B=1,F=1,$=1,K=0,V="",G=a,q=o,H=i,Y=V;F;)switch(z=K,K=R()){case 40:if(108!=z&&58==w(Y,N-1)){-1!=g(Y+=b(L(K),"&","&\f"),"&\f",f(A?l[A-1]:0))&&($=-1);break}case 34:case 39:case 91:Y+=L(K);break;case 9:case 10:case 13:case 32:Y+=function(e){for(;C=U();)if(C<33)R();else break;return j(e)>2||j(C)>3?"":" "}(z);break;case 92:Y+=function(e,t){for(var r;--t&&R()&&!(C<48)&&!(C>102)&&(!(C>57)||!(C<65))&&(!(C>70)||!(C<97)););return r=T+(t<6&&32==U()&&32==R()),v(I,e,r)}(T-1,7);continue;case 47:switch(U()){case 42:case 47:x((d=function(e,t){for(;R();)if(e+C===57)break;else if(e+C===84&&47===U())break;return"/*"+v(I,t,T-1)+"*"+h(47===e?e:R())}(R(),T),p=r,m=n,y=u,P(d,p,m,c,h(C),v(d,2,-2),0,y)),u),(5==j(z||1)||5==j(U()||1))&&_(Y)&&" "!==v(Y,-1,void 0)&&(Y+=" ");break;default:Y+="/"}break;case 123*B:l[A++]=_(Y)*$;case 125*B:case 59:case 0:switch(K){case 0:case 125:F=0;case 59+S:-1==$&&(Y=b(Y,/\f/g,"")),W>0&&(_(Y)-N||0===B&&47===z)&&x(W>32?M(Y+";",i,n,N-1,u):M(b(Y," ","")+";",i,n,N-2,u),u);break;case 59:Y+=";";default:if(x(H=D(Y,r,n,A,S,a,l,V,G=[],q=[],N,o),o),123===K)if(0===S)e(Y,r,H,H,G,o,N,l,q);else{switch(O){case 99:if(110===w(Y,3))break;case 108:if(97===w(Y,2))break;default:S=0;case 100:case 109:case 115:}S?e(t,H,H,i&&x(D(t,H,H,0,0,a,l,V,a,G=[],N,q),q),a,q,N,l,i?G:q):e(Y,H,H,H,[""],q,0,l,q)}}A=S=W=0,B=$=1,V=Y="",N=s;break;case 58:N=1+_(Y),W=z;default:if(B<1){if(123==K)--B;else if(125==K&&0==B++&&125==(C=T>0?w(I,--T):0,k--,10===C&&(k=1,E--),C))continue}switch(Y+=h(K),K*B){case 38:$=S>0?1:(Y+="\f",-1);break;case 44:l[A++]=(_(Y)-1)*$,$=1;break;case 64:45===U()&&(Y+=L(R())),O=U(),S=N=_(V=Y+=function(e){for(;!j(U());)R();return v(I,e,T)}(T)),K++;break;case 45:45===z&&2==_(Y)&&(B=0)}}return o}("",null,null,null,[""],(u=l=n||r?n+" "+r+" { "+y+" }":y,E=k=1,S=_(I=u),T=0,l=[]),0,[0],l),I="",d);return e.namespace&&(A=function e(t,r){let n=r+" ",i=","+n;for(let a=0;a<t.length;a++){let o=t[a];if("rule"===o.type){o.value=(n+o.value).replaceAll(",",i);let e=o.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];o.props=t}Array.isArray(o.children)&&"@keyframes"!==o.type&&e(o.children,r)}return t}(A,e.namespace)),p=[],W(A,m),p},A=5381;for(let e=0;e<t.length;e++)t[e].name||Z(15),A=eh(A,t[e].name);return(null==e?void 0:e.namespace)&&(A=eh(A,e.namespace)),(null==e?void 0:e.prefix)&&(A=eh(A,"p")),y.hash=5381!==A?A.toString():"",y}(),ti=a.default.createContext({shouldForwardProp:void 0,styleSheet:tr,stylis:tn,stylisPlugins:void 0});function ta(){return a.default.useContext(ti)}ti.Consumer;let to=a.default.createContext(void 0);to.Consumer;let ts=Object.prototype.hasOwnProperty,tl={};function tc(e,t,r){var n,i;let o,s,l=eO(e),c=!ey(e),{attrs:u=ea,componentId:d=(n=t.displayName,i=t.parentComponentId,tl[o="str
3ing"!=typeof n?"sc":eu(n)]=(tl[o]||0)+1,s=o+"-"+em(V+o+tl[o]),i?i+"-"+s:s),displayName:p=ey(e)?`styled.${e}`:`Styled(${e.displayName||e.name||"Component"})`}=t,f=t.displayName&&t.componentId?eu(t.displayName)+"-"+t.componentId:t.componentId||d,h=l&&e.attrs?e.attrs.concat(u).filter(Boolean):u,{shouldForwardProp:m}=t;if(l&&e.shouldForwardProp){let r=e.shouldForwardProp;if(t.shouldForwardProp){let e=t.shouldForwardProp;m=(t,n)=>r(t,n)&&e(t,n)}else m=r}let y=new e9(r,f,l?e.componentStyle:void 0);function b(e,t){return function(e,t,r){let n,i,{attrs:o,componentStyle:s,defaultProps:l,foldedComponentIds:c,styledComponentId:u,target:d}=e,p=a.default.useContext(to),f=ta(),h=e.shouldForwardProp||f.shouldForwardProp,m=es(t,p,l)||eo;{let e=a.default.useRef(null),r=e.current;if(null!==r&&r[1]===m&&r[2]===f.styleSheet&&r[3]===f.stylis&&r[7]===s&&function(e,t,r){let n=0;for(let r in t)if(ts.call(t,r)&&(n++,e[r]!==t[r]))return!1;return n===r}(r[0],t,r[4]))n=r[5],i=r[6];else{var y,b,g;n=function(e,t,r){let n=Object.assign(Object.assign({},t),{className:void 0,theme:r}),i=e.length>1;for(let r=0;r<e.length;r++){let a=e[r],o=eP(a)?a(i?Object.assign({},n):n):a;for(let e in o)"className"===e?n.className=eR(n.className,o[e]):"style"===e?n.style=Object.assign(Object.assign({},n.style),o[e]):e in t&&void 0===t[e]||(n[e]=o[e])}return"className"in t&&"string"==typeof t.className&&(n.className=eR(n.className,t.className)),n}(o,t,m),y=n,b=f.styleSheet,g=f.stylis,i=s.generateAndInjectStyles(y,b,g);let r=0;for(let e in t)ts.call(t,e)&&r++;e.current=[t,m,f.styleSheet,f.stylis,r,n,i,s]}}let w=n.as||d,v=function(e,t,r,n){let i={};for(let a in e)void 0===e[a]||"$"===a[0]||"as"===a||"theme"===a&&e.theme===r||("forwardedAs"===a?i.as=e.forwardedAs:n&&!n(a,t)||(i[a]=e[a]));return i}(n,w,m,h),_=eR(c,u);return i&&(_+=" "+i),n.className&&(_+=" "+n.className),v[ey(w)&&w.includes("-")?"class":"className"]=_,r&&(v.ref=r),(0,a.createElement)(w,v)}(g,e,t)}b.displayName=p;let g=a.default.forwardRef(b);return g.attrs=h,g.componentStyle=y,g.displayName=p,g.shouldForwardProp=m,g.foldedComponentIds=l?eR(e.foldedComponentIds,e.styledComponentId):"",g.styledComponentId=f,g.target=l?e.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(t){this._foldedDefaultProps=l?function(e,...t){for(let r of t)!function e(t,r,n=!1){if(!n&&!ej(t)&&!Array.isArray(t))return r;if(Array.isArray(r))for(let n=0;n<r.length;n++)t[n]=e(t[n],r[n]);else if(ej(r))for(let n in r)t[n]=e(t[n],r[n]);return t}(e,r,!0);return e}({},e.defaultProps,t):t}}),eL(g,()=>`.${g.styledComponentId}`),c&&function e(t,r,n){if("string"!=typeof r){let i=eC(r);i&&i!==eI&&e(t,i,n);let a=ek(r).concat(eS(r)),o=eA(t),s=eA(r);for(let e=0;e<a.length;++e){let i=a[e];if(!(i in ev||n&&n[i]||s&&i in s||o&&i in o)){let e=eT(r,i);try{eE(t,i,e)}catch(e){}}}}return t}(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var tu=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function td(e,t){let r=[e[0]];for(let n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}let tp=e=>(eZ.add(e),e);function tf(e,...t){return eP(e)||ej(e)?tp(e4(td(ea,[e,...t]))):0===t.length&&1===e.length&&"string"==typeof e[0]?e4(e):tp(e4(td(e,t)))}let th=e=>(function e(t,r,n=eo){if(!r)throw Z(1,r);let i=(e,...i)=>t(r,n,tf(e,...i));return i.attrs=i=>e(t,r,Object.assign(Object.assign({}
3,n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)})),i.withConfig=i=>e(t,r,Object.assign(Object.assign({},n),i)),i})(tc,e);tu.forEach(e=>{th[e]=th(e)});class tm{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let r=e[t];if(eP(r)&&!eO(r))return!1}return!0}(e),eX.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,r,n){let i=this.componentId;if(this.isStatic){if(r.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,r,n);else{let a=this.computeRules(e,t,r,n);r.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,r,n),!r.server&&a){let t=a.rules,r=this.instanceRules.get(e).rules;if(t.length===r.length){let e=!0;for(let n=0;n<t.length;n++)if(t[n]!==r[n]){e=!1;break}if(e)return}}this.rebuildGroup(r)}computeRules(e,t,r,n){let i=eU(e4(this.rules,t,r,n)),a={name:this.componentId+e,rules:n(i,"")};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;for(let r of(e.clearRules(t),this.instanceRules.values()))e.insertRules(t,r.name,r.rules)}}class ty{constructor(e,t){this[n]=!0,this.inject=(e,t=tn)=>{let r=this.getName(t);if(!e.hasNameForId(this.id,r)){let n=t(this.rules,r,"@keyframes");e.insertRules(this.id,r,n)}},this.name=e,this.id=J+e,this.rules=t,er(this.id),eL(this,()=>{throw Z(12,String(this.name))})}getName(e=tn){return e.hash?this.name+ef(e.hash>>>0):this.name}}n=e1,e.s(["createGlobalStyle",0,function(e,...t){let r=tf(e,...t),n=`sc-global-${em(JSON.stringify(r))}`,i=new tm(r,n),o=e=>{let t,r=ta(),o=a.default.useContext(to);{let e=a.default.useRef(null);null===e.current&&(e.current=r.styleSheet.allocateGSInstance(n)),t=e.current}r.styleSheet.server&&s(t,e,r.styleSheet,o,r.stylis);{let l=i.isStatic?[t,r.styleSheet,i]:[t,e,r.styleSheet,o,r.stylis,i],c=a.default.useRef(i);a.default.useLayoutEffect(()=>{r.styleSheet.server||(c.current!==i&&(r.styleSheet.clearRules(n),c.current=i),s(t,e,r.styleSheet,o,r.stylis))},l),a.default.useLayoutEffect(()=>()=>{r.styleSheet.server||i.removeStyles(t,r.styleSheet)},[t,r.styleSheet,i])}return r.styleSheet.server&&i.instanceRules.delete(t),null};function s(e,t,r,n,a){if(i.isStatic)i.renderStyles(e,X,r,a);else{let s=Object.assign(Object.assign({},t),{theme:es(t,n,o.defaultProps)});i.renderStyles(e,s,r,a)}}return a.default.memo(o)},"css",0,tf,"keyframes",0,function(e,...t){let r=eU(tf(e,...t));return new ty(em(r),r)},"styled",0,th],934746)},342433,e=>{"use strict";var t=e.i(794189),r=e.i(934746),n=e.i(853286),i=e.i(381741),a=e.i(334359),o=e.i(374840),s=e.i(801088),l=e.i(908058);e.i(956166),e.i(193035);var c=e.i(672526);let u=r.styled.div`
4  text-align: left;
5  flex-grow: 1;
6`,d=r.styled.div`
7  display: flex;
8  flex-direction: column;
9  justify-content: flex-end;
10  flex-grow: 1;
11`,p=r.styled.div`
12  display: flex;
13  flex-direction: column;
14  gap: 8px;
15
16  /* for Internet Explorer, Edge */
17  -ms-overflow-style: none;
18
19  /* for Firefox */
20  scrollbar-width: none;
21
22  /* for Chrome, Safari, and Opera */
23  &::-webkit-scrollbar {
24    display: none;
25  }
26`,f=(0,r.styled)(p)`
27  ${e=>"light"===e.$colorScheme?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.06)) bottom;":"dark"===e.$colorScheme?"background: linear-gradient(var(--privy-color-background), var(--privy-color-background) 70%) bottom, linear-gradient(rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.06)) bottom;":void 0}
28
29  background-repeat: no-repeat;
30  background-size:
31    100% 32px,
32    100% 16px;
33  background-attachment: local, scroll;
34  max-height: 400px;
35  overflow-y: auto;
36  scrollbar-width: none;
37  padding: 3px;
38`,h=r.css`
39  && {
40    width: 100%;
41    font-size: 16px;
42    line-height: 24px;
43    min-height: 56px;
44
45    /* Tablet and Up */
46    @media (min-width: 440px) {
47      font-size: 14px;
48    }
49
50    display: flex;
51    gap: 12px;
52    align-items: center;
53    color: var(--privy-color-foreground);
54
55    padding: 10px 12px;
56    border: 1px solid var(--privy-color-foreground-4) !important;
57    border-radius: var(--privy-border-radius-md);
58    transition: background-color 200ms ease;
59
60    cursor: pointer;
61
62    &:hover {
63      background-color: var(--privy-color-background-2);
64    }
65
66    &:disabled {
67      cursor: pointer;
68      background-color: var(--privy-color-background-2);
69    }
70  }
71`,m=r.styled.div`
72  text-align: center;
73  font-size: 14px;
74  margin-bottom: 24px;
75`,y=r.styled.button.attrs({className:"login-method-button"})`
76  ${h}
77`;r.styled.a`
78  ${h}
79`;let b=r.styled.div`
80  width: 32px;
81  height: 32px;
82  border-radius: ${e=>e.$fullSize?"0":"4px"};
83  background: ${e=>e.$fullSize?"transparent":"var(--privy-color-background-2)"};
84  display: flex;
85  align-items: center;
86  justify-content: center;
87  flex-shrink: 0;
88
89  svg {
90    width: ${e=>e.$fullSize?"32px":"18px"};
91    height: ${e=>e.$fullSize?"32px":"18px"};
92    color: ${e=>e.$fullSize?"inherit":"var(--privy-color-icon-muted)"};
93  }
94`,g=r.styled.div`
95  width: 100%;
96  height: 100%;
97  min-height: inherit;
98  display: flex;
99  flex-direction: column;
100  ${e=>e.$if?"display: none;":""}
101`,w=r.styled.div`
102  width: 100%;
103  height: 100%;
104  padding: ${e=>e.$withPadding?"64px 0px":"0px"};
105`,v=r.styled.div`
106  display: flex;
107  flex-direction: column;
108  align-items: center;
109  justify-content: center;
110  margin-bottom: 32px;
111  gap: 12px;
112  & h3 {
113    font-size: 18px;
114    font-style: normal;
115    font-weight: 600;
116    line-height: 24px;
117  }
118  & p {
119    max-width: 300px;
120    font-size: 14px;
121    font-style: normal;
122    font-weight: 400;
123    line-height: 20px;
124  }
125`,_=r.styled.span`
126  && {
127    position: absolute;
128    top: 0;
129    left: 0;
130    z-index: 2;
131  }
132`,x=r.styled.span`
133  position: relative;
134  width: 82px;
135  height: 82px;
136  display: inline-block;
137`,A=r.styled.span`
138  && {
139    width: 82px;
140    height: 82px;
141    border-width: 4px;
142    border-style: solid;
143    border-color: ${e=>e.color??"var(--privy-color-icon-subtle)"};
144    border-bottom-color: transparent;
145    border-radius: 50%;
146    display: inline-block;
147    box-sizing: border-box;
148    animation: rotation 1.2s linear infinite;
149    transition: border-color 800ms;
150  }
151
152  @keyframes rotation {
153    0% {
154      transform: rotate(0deg);
155    }
156    100% {
157      transform: rotate(360deg);
158    }
159  }
160
161  &&&.success {
162    border-color: var(--privy-color-icon-success);
163    border-bottom-color: var(--privy-color-icon-success);
164  }
165
166  &&&.fail {
167    border-color: var(--privy-color-icon-error);
168    border-bottom-color: var(--privy-color-icon-error);
169  }
170`,E=(0,r.styled)(A)`
171  && {
172    border-bottom-color: ${e=>e.color??"var(--privy-color-border-default)"};
173    border-color: ${e=>e.color??"var(--privy-color-border-default)"};
174    animation: none;
175    opacity: 0.5;
176  }
177`,k=(0,r.styled)(A)`
178  && {
179    height: 1rem;
180    width: 1rem;
181    margin: 2px 0;
182    border-width: 1.5px;
183
184    /* Override default Loader to match button transitions */
185    transition: border-color 200ms ease;
186  }
187`,S=(0,t.createContext)({}),T=e=>`privy:${e}:recent-login-method`,C=e=>`privy:${e}:recent-login-wallet-client`,I=e=>`privy:${e}:recent-login-chain-type`,P=(0,c.create)(()=>({isModalOpen:!1,resolvers:null}));(0,c.create)(()=>({}));e.s(["A",0,d,"B",0,e=>(0,n.jsx)(k,{color:e.color||"var(--privy-color-foreground-3)"}
187),"C",0,({success:e,fail:t})=>(0,n.jsxs)(x,{children:[(0,n.jsx)(_,{children:(0,n.jsx)(E,{className:e?"success":t?"fail":""})}),(0,n.jsx)(_,{children:(0,n.jsx)(A,{className:e?"success":t?"fail":""})})]}),"E",0,w,"G",0,u,"H",0,g,"L",0,A,"R",0,({children:e})=>{let r=(0,i.u)(),[s,l]=(0,t.useState)({});return(0,a.u)("login",{onComplete:({loginAccount:e})=>{e&&"passkey"!==e.type&&"cross_app"!==e.type&&("wallet"!==e.type||"privy"!==e.walletClientType)&&(o.s.put(T(r.id),e.type),"wallet"===e.type?(o.s.put(C(r.id),e.walletClientType),o.s.put(I(r.id),e.chainType),l({accountType:e.type,walletClientType:e.walletClientType,chainType:e.chainType})):(o.s.del(C(r.id)),o.s.del(I(r.id)),l({accountType:e.type})))}}),(0,t.useEffect)(()=>{if(!r.id)return;let e=o.s.get(T(r.id)),t=o.s.get(C(r.id)),n=o.s.get(I(r.id));e&&l("wallet"===e?{accountType:e,walletClientType:t,chainType:n}:{accountType:e})},[r.id]),(0,n.jsx)(S.Provider,{value:s,children:e})},"S",0,m,"a",0,e=>{(0,a.u)("fundWallet",e);let{fundWallet:t}=(0,s.u)();return{fundWallet:({address:e,options:r})=>t(e,r)}},"c",0,function(e){let{connectWallet:r}=(0,t.useContext)(l.P);return(0,a.u)("connectWallet",e),{connectWallet:r}},"d",0,function(e){let{login:r}=(0,t.useContext)(l.P);return(0,a.u)("login",e),{login:r}},"e",0,function(e){let{logout:r}=(0,t.useContext)(l.P);return(0,a.u)("logout",e),{logout:r}},"f",0,()=>(0,t.useContext)(S),"k",0,y,"l",0,b,"m",0,v,"n",0,f,"o",0,E,"p",0,p,"s",0,({address:e,client:t,appId:r})=>{let n,i=`${t}:${e}`;r&&o.s.put((n=r,`privy:${n}:active-wallet-connection`),i),P.setState({wallet:i})},"u",0,e=>{let[r,n]=(0,t.useState)("auto");return(0,t.useEffect)(()=>{let t=new ResizeObserver(e=>{n(e[0]?.contentRect.height??"auto")});return e.current&&t.observe(e.current),()=>{e.current&&t.unobserve(e.current)}},[e.current]),r}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.